sqllogictest
Artifact Content
Not logged in

Artifact b0611d8811b41615756dea3ee848492a5993216d:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - col0 * + 21 FROM tab2 AS cor0
----
-147
-1638
-1659

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

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

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

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT 32 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * tab0.col0 col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT 44 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
1366
3517

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

query I rowsort
SELECT ALL col1 * + cor0.col0 + col0 + + col0 AS col1 FROM tab2 AS cor0
----
1501
231
4758

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

query I rowsort
SELECT + col0 * cor0.col1 * + 4 - + cor0.col2 FROM tab1 AS cor0
----
2503
258
4064

query I rowsort
SELECT col1 + col0 + + tab1.col1 * + col1 AS col0 FROM tab1
----
174
262
705

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

query I rowsort
SELECT - + cor0.col2 + - ( - 93 ) + col1 FROM tab0 AS cor0
----
102
146
189

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

query I rowsort
SELECT + - cor0.col0 + 92 AS col2 FROM tab2 AS cor0
----
13
14
85

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

query I rowsort
SELECT DISTINCT 40 * col1 AS col0 FROM tab2
----
1240
2360
680

onlyif mysql # use DIV operator for integer division
query I rowsort label-19
SELECT DISTINCT + 81 DIV - col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT + 81 / - col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + - col0 + tab2.col1 * tab2.col0 col2 FROM tab2
----
1334
280
4594

onlyif mysql # use DIV operator for integer division
query I rowsort label-21
SELECT DISTINCT col0 DIV col2 col2 FROM tab1
----
0
1

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

query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL col2 + + col0 + - col1 * - col0 FROM tab1
----
1216
135
761

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE col0 NOT IN ( col1 * col0 + col2 )
----
10
13
26

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-27
SELECT cor0.col2 DIV + cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-27
SELECT cor0.col2 / + cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT tab1.col2 DIV + col1 + + col0 * - col0 * tab1.col1 AS col2 FROM tab1
----
-232
-40955
-83193

skipif mysql # not compatible
query I rowsort label-30
SELECT tab1.col2 / + col1 + + col0 * - col0 * tab1.col1 AS col2 FROM tab1
----
-232
-40955
-83193

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT - col0 DIV + cor0.col1 + col1 col1 FROM tab2 AS cor0
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-33
SELECT - col0 / + cor0.col1 + col1 col1 FROM tab2 AS cor0
----
13
31
58

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

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

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

query I rowsort
SELECT col1 * col1 * + col2 - - col0 AS col1 FROM tab0
----
244092
679131
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-38
SELECT DISTINCT + + 25 + col1 - col0 DIV cor0.col0 FROM tab1 AS cor0
----
34
37
50

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT + + 25 + col1 - col0 / cor0.col0 FROM tab1 AS cor0
----
34
37
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + col2 col0 FROM tab0 AS cor0
----
164
2
66

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * col1 + + cor0.col2 + - col0 * + col0 col0 FROM tab2 cor0
----
-10660
-239
-7546

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

query I rowsort
SELECT DISTINCT cor0.col0 + col0 AS col2 FROM tab2 cor0
----
14
156
158

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + tab0.col1 + col1 * + tab0.col1 * - col1 + - tab0.col0 col0 FROM tab0
----
-633242
-746198
-912611

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

query I rowsort
SELECT + col1 * + col2 * col1 + - col0 * col0 FROM tab1
----
1604
36495
9824

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NULL NOT IN ( - col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 + col1 col0 FROM tab0 AS cor0
----
157
162
168

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE + col1 BETWEEN NULL AND + col0
----

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

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

query I rowsort
SELECT + col1 + tab2.col0 + + col2 AS col1 FROM tab2
----
134
163
65

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-58
SELECT col0 DIV + col1 + col1 AS col2 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-58
SELECT col0 / + col1 + col1 AS col2 FROM tab2
----
21
31
60

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 <= ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-60
SELECT ALL + col2 * tab1.col1 + col0 DIV col2 - col2 AS col0 FROM tab1
----
1152
1350
514

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL + col2 * tab1.col1 + col0 / col2 - col2 AS col0 FROM tab1
----
1152
1350
514

query I rowsort
SELECT col0 * col0 + col0 + col0 AS col2 FROM tab2
----
6240
63
6399

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

query I rowsort
SELECT DISTINCT tab1.col1 + col1 * - tab1.col1 + + col2 * col0 FROM tab1
----
-488
3558
7524

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT DISTINCT - tab2.col1 DIV tab2.col0 AS col2 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT - tab2.col1 / tab2.col0 AS col2 FROM tab2
----
-4
0

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

query I rowsort
SELECT DISTINCT col2 + - col2 - + col0 FROM tab1
----
-3
-64
-80

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-75
SELECT col1 + + col1 * + col0 DIV col0 + col1 FROM tab2
----
177
51
93

skipif mysql # not compatible
query I rowsort label-75
SELECT col1 + + col1 * + col0 / col0 + col1 FROM tab2
----
177
51
93

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

skipif mysql # not compatible
query I rowsort label-76
SELECT + col0 / + col0 FROM tab0
----
1
1
1

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT DISTINCT + col1 DIV - col1 + + col2 AS col0 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT + col1 / - col1 + + col2 AS col0 FROM tab2
----
25
26
37

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 - + col0 * + col0 AS col1 FROM tab2
----
-42
-6006
-6162

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

query I rowsort
SELECT DISTINCT - 31 * - col2 FROM tab2
----
1178
806
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT ALL - col0 DIV cor0.col1 + + col1 * + cor0.col1 FROM tab1 cor0
----
163
676
94

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL - col0 / cor0.col1 + + col1 * + cor0.col1 FROM tab1 cor0
----
163
676
94

query I rowsort
SELECT cor1.col1 + + 43 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to e7f2bf9497cb9166ced9a6cf1e5c1bfd

query I rowsort
SELECT 42 + - col2 FROM tab0 AS cor0
----
-40
41
9

query I rowsort
SELECT + - cor0.col2 * - col2 + 36 FROM tab1 AS cor0
----
2952
3285
9252

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 + - 48 AS col0 FROM tab0 AS cor0
----
1177
528
7873

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

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

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

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

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

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

query I rowsort
SELECT ALL - 97 AS col0 FROM tab1
----
-97
-97
-97

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

query I rowsort
SELECT - 73 * col2 FROM tab2
----
-1898
-1971
-2774

query I rowsort
SELECT ALL - col2 * - col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + - cor0.col0 * - 49 AS col0 FROM tab1 AS cor0
----
147
3136
3920

query I rowsort
SELECT ALL + 91 * + col2 AS col0 FROM tab0
----
3003
7462
91

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 3 ) * - col2 + col2 col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + col2 * - 77 * col2 FROM tab2 AS cor0
----
-111188
-52052
-56133

onlyif mysql # use DIV operator for integer division
query I rowsort label-115
SELECT DISTINCT + ( + col1 ) + + col0 + col2 DIV 93 FROM tab1 cor0
----
29
74
94

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT + ( + col1 ) + + col0 + col2 / 93 FROM tab1 cor0
----
29
74
94

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

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

query I rowsort
SELECT + 56 + - 35 AS col2 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-119
SELECT ALL - ( + 55 ) * cor0.col1 + - CAST( - col0 * + col0 AS SIGNED ) FROM tab1 cor0
----
-1421
3546
5685

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL - ( + 55 ) * cor0.col1 + - CAST ( - col0 * + col0 AS INTEGER ) FROM tab1 cor0
----
-1421
3546
5685

onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT - col2 * col2 + col1 DIV - col1 FROM tab0 AS cor0
----
-1090
-2
-6725

skipif mysql # not compatible
query I rowsort label-120
SELECT - col2 * col2 + col1 / - col1 FROM tab0 AS cor0
----
-1090
-2
-6725

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col0 col1 FROM tab2
----
-14
-156
-158

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

query I rowsort
SELECT - col1 * + 18 * - col1 + col1 * col2 FROM tab2 AS cor0
----
18135
5848
64192

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-126
SELECT - - col0 + + col1 DIV 80 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-126
SELECT - - col0 + + col1 / 80 AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + - 22 + + col0 FROM tab1 AS cor0
----
-19
42
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT DISTINCT 51 DIV - col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT 51 / - col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - 75 + col2 AS col1 FROM tab1 AS cor0
----
-18
-21
21

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

query I rowsort
SELECT 24 * col1 + cor0.col1 * - col1 FROM tab2 AS cor0
----
-2065
-217
119

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

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL + - col0 - col1 / + col1 FROM tab2 AS cor0
----
-79
-8
-80

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

query I rowsort
SELECT + col0 * col1 - col0 * col0 AS col1 FROM tab0 AS cor0
----
1488
178
2170

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT 52 DIV col0 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-136
SELECT 52 / col0 AS col2 FROM tab0
----
0
1
2

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

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

query I rowsort
SELECT 90 * ( - col1 * - col2 ) FROM tab0
----
255420
671580
8730

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

query I rowsort
SELECT + 88 AS col1 FROM tab0
----
88
88
88

query I rowsort
SELECT 12 - col1 FROM tab2 AS cor0
----
-19
-47
-5

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

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

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

query I rowsort
SELECT DISTINCT col2 * 94 * + col0 AS col1 FROM tab0
----
3290
686012
74448

query I rowsort
SELECT ALL ( - 69 ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # use DIV operator for integer division
query I rowsort label-147
SELECT DISTINCT tab1.col0 DIV 67 FROM tab1, tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT tab1.col0 / 67 FROM tab1, tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL - + col1 + + col0 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-118922
-49622
-720902

query I rowsort
SELECT DISTINCT col0 * - 82 FROM tab1 AS cor0
----
-246
-5248
-6560

onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT ALL - col0 DIV - 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL - col0 / - 99 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT col1 * - ( 23 ) AS col1 FROM tab2
----
-1357
-391
-713

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

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

query I rowsort
SELECT ALL - 44 * 11 AS col0 FROM tab1 AS cor0
----
-484
-484
-484

query I rowsort
SELECT DISTINCT 71 * cor0.col0 + col2 FROM tab1 AS cor0
----
267
4601
5776

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

query I rowsort
SELECT ALL - col1 + 25 AS col1 FROM tab1
----
-1
12
15

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

skipif mysql # not compatible
query I rowsort label-158
SELECT col0 - CAST ( NULL AS REAL ) * 49 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 71 ) + + col2 AS col1 FROM tab1 AS cor0
----
-14
-17
25

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

skipif mysql # not compatible
query I rowsort label-160
SELECT CAST ( NULL AS INTEGER ) + 53 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 - - col0 * + col0 * 43 col0 FROM tab0
----
24809
340644
52716

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

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

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

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

skipif mysql # not compatible
query I rowsort label-169
SELECT + col2 / - col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-171
SELECT - ( col1 * + col1 ) + tab0.col0 * + col0 + 33 DIV col0 col2 FROM tab0
----
-360
-6819
-8184

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-171
SELECT - ( col1 * + col1 ) + tab0.col0 * + col0 + 33 / col0 col2 FROM tab0
----
-360
-6819
-8184

query I rowsort
SELECT - col2 * col1 + - col1 + col2 FROM tab2 AS cor0
----
-1567
-625
-841

query I rowsort
SELECT + + col1 + col2 - + 1 FROM tab0 AS cor0
----
118
172
97

query I rowsort
SELECT - 15 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

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

skipif mysql # not compatible
query I rowsort label-175
SELECT - col1 * col0 + - col1 / 48 AS col0 FROM tab0 AS cor0
----
-2065
-3397
-8100

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT - + col1 * + col0 DIV ( cor0.col0 ) + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-181
SELECT - + col1 * + col0 / ( cor0.col0 ) + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

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

query I rowsort
SELECT ALL + ( tab2.col0 ) * + 98 FROM tab2
----
686
7644
7742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * - 89 + + cor0.col1 col2 FROM tab0 cor0
----
-27
-2875
-7296

query I rowsort
SELECT ALL col2 * - ( + 41 ) FROM tab2 AS cor0
----
-1066
-1107
-1558

query I rowsort
SELECT DISTINCT + col0 + ( ( - col0 ) ) + + col2 * 23 FROM tab1 AS cor0
----
1242
1311
2208

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

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

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + - col2 * col2 FROM tab0 AS cor0
----
1557
6307
9408

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

query I rowsort
SELECT ALL col2 + - 23 AS col2 FROM tab0 AS cor0
----
-22
10
59

query I rowsort
SELECT ALL ( cor0.col1 ) + tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 35de0b553e14f89ea44b7652e1ff642c

query I rowsort
SELECT ALL - col1 + - col2 * - col1 + col2 FROM tab2
----
1501
667
833

onlyif mysql # use DIV operator for integer division
query I rowsort label-194
SELECT ALL col0 DIV ( 56 ) + + tab0.col1 FROM tab0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL col0 / ( 56 ) + + tab0.col1 FROM tab0
----
86
92
97

query I rowsort
SELECT 67 - - 67 FROM tab1, tab0 AS cor0
----
9 values hashing to 3ceb25f3d86505c05ae8b32388dc5c47

query I rowsort
SELECT - col0 - 69 FROM tab1 cor0
----
-133
-149
-72

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

query I rowsort
SELECT DISTINCT + col0 + - 79 * - 97 + col1 FROM tab2 AS cor0
----
7701
7759
7800

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

query I rowsort
SELECT + + col0 * + cor0.col2 * + 4 - - col0 AS col1 FROM tab0 cor0
----
175
29281
3192

onlyif mysql # use DIV operator for integer division
query I rowsort label-201
SELECT DISTINCT col2 - - ( col0 ) DIV + col0 FROM tab2 cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT col2 - - ( col0 ) / + col0 FROM tab2 cor0
----
27
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-202
SELECT + col2 DIV + 73 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1247
-1404
-570

skipif mysql # not compatible
query I rowsort label-202
SELECT + col2 / + 73 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1247
-1404
-570

query I rowsort
SELECT DISTINCT - col0 + - col0 * - 17 FROM tab0 AS cor0
----
1424
384
560

query I rowsort
SELECT + col1 + 99 AS col1 FROM tab2 AS cor0
----
116
130
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-205
SELECT DISTINCT + col0 DIV - 37 + - col0 AS col2 FROM tab2
----
-7
-80
-81

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT + col0 / - 37 + - col0 AS col2 FROM tab2
----
-7
-80
-81

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT + 29 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-208
SELECT + 29 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 + + col2 * col1 col1 FROM tab0 AS cor0
----
2829
7453
88

query I rowsort
SELECT DISTINCT - col2 + - 21 * - col2 FROM tab2
----
520
540
760

query I rowsort
SELECT - col2 * 38 + tab1.col2 FROM tab1
----
-1998
-2109
-3552

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

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT - col0 / ( - col0 ) + - col1 AS col2 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT DISTINCT + col0 * - 76 * col0 + + col0 * col0 AS col0 FROM tab1
----
-307200
-480000
-675

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

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

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

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

query I rowsort
SELECT ALL col2 * - col0 - col1 * 31 AS col2 FROM tab1 AS cor0
----
-3958
-8083
-968

query I rowsort
SELECT DISTINCT - 73 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1270
144
4529

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-220
SELECT ALL + + 8 - col1 / + ( + col2 + + col0 ) col2 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT ALL - + col0 + col2 * - 72 FROM tab1 AS cor0
----
-3891
-4168
-6992

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

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

query I rowsort
SELECT ALL + + 39 AS col0 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT ( + col0 * col0 ) - tab0.col2 * tab0.col2 FROM tab0
----
-513
1197
1224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + col0 col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - ( + 66 ) FROM tab1
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - 81 * col0 - - 54 AS col2 FROM tab1
----
-189
-5130
-6426

query I rowsort
SELECT ALL + 33 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT tab1.col1 - - 28 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3d0b826f3763893563c9459c6e460621

query I rowsort
SELECT DISTINCT 98 + col0 * - col1 * + cor0.col1 FROM tab0 AS cor0
----
-177406
-329217
-736911

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab0 cor0, tab2, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ALL 41 + - 42 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL 39 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

query I rowsort
SELECT DISTINCT - 35 * 52 * + col1 FROM tab2
----
-107380
-30940
-56420

skipif mysql # not compatible
query I rowsort
SELECT ( + tab0.col1 * col0 ) + CAST ( - col1 AS REAL ) AS col0 FROM tab0
----
1978
3298
8008

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

query I rowsort
SELECT - col2 * + col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ( + cor0.col2 ) * col0 + 3 + - col2 FROM tab1 AS cor0
----
111
3594
7587

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

query I rowsort
SELECT + + 62 * - col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT ALL - 59 * col0 FROM tab1
----
-177
-3776
-4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT ALL ( + cor0.col1 ) DIV - tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL ( + cor0.col1 ) / - tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

query I rowsort
SELECT - col2 + - col0 + 37 FROM tab1 AS cor0
----
-139
-20
-84

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 * 5 + col1 AS col0 FROM tab0 AS cor0
----
-319
-79
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-253
SELECT DISTINCT + - col2 + 67 DIV col1 FROM tab2 AS cor0
----
-25
-35

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT + - col2 + 67 / col1 FROM tab2 AS cor0
----
-25
-35

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

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

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL - col2 / ( - col2 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col2 + 56 * + 87 AS col2 FROM tab2 AS cor0
----
4898
4899
4910

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

query I rowsort
SELECT + cor0.col2 * - col0 + 59 AS col2 FROM tab0 AS cor0
----
-7239
-733
24

query I rowsort
SELECT DISTINCT + col0 + 83 FROM tab0 AS cor0
----
107
118
172

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

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

query I rowsort
SELECT ALL + - col0 * 18 + + col1 * - col0 FROM tab2 cor0
----
-2765
-343
-6006

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 64 + cor0.col1 FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT - 39 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

query I rowsort
SELECT DISTINCT - - 14 FROM tab1 AS cor0
----
14

query I rowsort
SELECT ALL - 21 * + col1 FROM tab2 cor0
----
-1239
-357
-651

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

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

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

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

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

query I rowsort
SELECT + ( - col2 ) * col0 * 93 AS col2 FROM tab2 AS cor0
----
-17577
-188604
-279186

query I rowsort
SELECT ALL ( 41 * + col1 + col0 ) FROM tab0
----
3550
3820
4012

query I rowsort
SELECT col2 + + col2 * 6 + + col2 AS col0 FROM tab2 AS cor0
----
208
216
304

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

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

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

query I rowsort
SELECT 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL 79 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

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

query I rowsort
SELECT ALL + col0 + + col0 * 10 AS col1 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT ALL + 74 + + col2 AS col0 FROM tab2 AS cor0
----
100
101
112

query I rowsort
SELECT ALL col1 + col0 * 91 AS col2 FROM tab0 AS cor0
----
2270
3282
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-289
SELECT DISTINCT + 21 * col1 * CAST( + col0 * + col1 + col2 * + 69 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2076984
2092272
960330

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT + 21 * col1 * CAST ( + col0 * + col1 + col2 * + 69 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2076984
2092272
960330

onlyif mysql # use DIV operator for integer division
query I rowsort label-290
SELECT DISTINCT - col0 DIV + col1 + ( ( + col1 ) ) * + 73 * 14 col1 FROM tab1 cor0
----
10214
13280
26572

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT - col0 / + col1 + ( ( + col1 ) ) * + 73 * 14 col1 FROM tab1 cor0
----
10214
13280
26572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 10 * col1 col2 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT DISTINCT + 30 * - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
-2494
-2639
-2813

query I rowsort
SELECT + + col0 * + col2 + + 98 FROM tab1 AS cor0
----
260
3746
7778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-294
SELECT ALL CAST( col0 AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col1 FROM tab0, tab0 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * + 36 + cor0.col1 col0 FROM tab2 AS cor0
----
1003
1385
995

onlyif mysql # use DIV operator for integer division
query I rowsort label-302
SELECT ALL - ( - col1 ) DIV col0 + col1 AS col0 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL - ( - col1 ) / col0 + col1 AS col0 FROM tab1
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + + col1 col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL 91 + col1 AS col1 FROM tab0
----
177
182
188

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

query I rowsort
SELECT DISTINCT col2 * 61 + col2 * + 58 AS col1 FROM tab0 AS cor0
----
119
3927
9758

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-307
SELECT ALL cor1.col1 * CAST( NULL AS SIGNED ) - cor1.col0 col2 FROM tab0, 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-307
SELECT ALL cor1.col1 * CAST ( NULL AS INTEGER ) - cor1.col0 col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort
SELECT col2 + - CAST ( + 72 AS REAL ) FROM tab2
----
-34
-45
-46

query I rowsort
SELECT ALL col0 * - 6 FROM tab2
----
-42
-468
-474

query I rowsort
SELECT - col1 * + 26 FROM tab0
----
-2236
-2366
-2522

query I rowsort
SELECT DISTINCT + tab1.col0 + - 17 FROM tab1
----
-14
47
63

query I rowsort
SELECT ALL 34 - + 65 FROM tab0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT col2 - 4 AS col0 FROM tab1
----
50
53
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-314
SELECT DISTINCT CAST( ( - col0 ) AS SIGNED ) * col2 - tab2.col0 AS col2 FROM tab2
----
-196
-2106
-3081

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT CAST ( ( - col0 ) AS INTEGER ) * col2 - tab2.col0 AS col2 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT ( col0 ) * + col1 + - 44 AS col1 FROM tab0 AS cor0
----
2020
3351
8055

onlyif mysql # use DIV operator for integer division
query I rowsort label-316
SELECT + 97 DIV col1 + - col2 AS col0 FROM tab2 AS cor0
----
-24
-25
-33

skipif mysql # not compatible
query I rowsort label-316
SELECT + 97 / col1 + - col2 AS col0 FROM tab2 AS cor0
----
-24
-25
-33

query I rowsort
SELECT 94 * - col0 * col2 + col2 AS col1 FROM tab1 cor0
----
-15174
-342855
-721824

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

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

query I rowsort
SELECT - - ( - 49 ) FROM tab2 cor0
----
-49
-49
-49

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-321
SELECT DISTINCT col0 * 72 - col2 DIV + CAST( + 7 AS SIGNED ) AS col1 FROM tab2
----
501
5613
5683

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT col0 * 72 - col2 / + CAST ( + 7 AS INTEGER ) AS col1 FROM tab2
----
501
5613
5683

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

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

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

query I rowsort
SELECT + - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT cor1.col0 FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 + col0 FROM tab1 cor0
----
-48
64
71

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

query I rowsort
SELECT DISTINCT ( + col0 ) + 26 * col0 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT ALL 18 AS col0 FROM tab2
----
18
18
18

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

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

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

query I rowsort
SELECT ALL + 35 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

query I rowsort
SELECT DISTINCT + col1 + + 42 * col2 FROM tab1 AS cor0
----
2294
2404
4045

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + 80 * - ( - col2 ) col2 FROM tab1 AS cor0
----
4346
4570
7693

query I rowsort
SELECT ALL + col2 + + 99 * + col1 FROM tab1 cor0
----
1047
1383
2628

query I rowsort
SELECT ALL + + col0 + - col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

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

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

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

query I rowsort
SELECT - col1 * 38 * + col2 AS col0 FROM tab1 AS cor0
----
-21660
-47424
-53352

query I rowsort
SELECT DISTINCT - 18 * 0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 * col0 col2 FROM tab2 AS cor0
----
399
4446
4503

query I rowsort
SELECT 40 * + col2 FROM tab2 AS cor0
----
1040
1080
1520

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

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

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

query I rowsort
SELECT + 45 * + cor0.col0 * - col1 FROM tab1 AS cor0
----
-28800
-3510
-46800

query I rowsort
SELECT DISTINCT col0 * 85 FROM tab1 AS cor0
----
255
5440
6800

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

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

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

query I rowsort
SELECT DISTINCT - - cor0.col0 * 36 * - col1 FROM tab0 AS cor0
----
-122220
-291564
-74304

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

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + ( col2 ) / + col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - tab2.col1 * + ( - col2 + - col1 ) AS col0 FROM tab2
----
1798
5015
935

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

query I rowsort
SELECT - col0 * - ( 57 ) AS col1 FROM tab1 AS cor0
----
171
3648
4560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-358
SELECT + + col0 + CAST( - 44 AS SIGNED ) FROM tab2 AS cor0
----
-37
34
35

skipif mysql # not compatible
query I rowsort label-358
SELECT + + col0 + CAST ( - 44 AS INTEGER ) FROM tab2 AS cor0
----
-37
34
35

query I rowsort
SELECT DISTINCT tab2.col0 + 93 + col2 AS col2 FROM tab2
----
127
197
210

query I rowsort
SELECT DISTINCT + col0 * 85 + + tab0.col2 * - tab0.col2 + - 57 AS col2 FROM tab0
----
2917
784
894

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

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

query I rowsort
SELECT + col0 + + col2 * - 48 FROM tab0 AS cor0
----
-13
-1560
-3847

onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT - col1 * col0 DIV col2 AS col0 FROM tab0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-364
SELECT - col1 * col0 / col2 AS col0 FROM tab0
----
-3395
-62
-98

query I rowsort
SELECT + 64 + + ( col0 + - col1 * 91 ) FROM tab0
----
-7738
-8128
-8728

query I rowsort
SELECT - - 26 * col2 + + 49 FROM tab2 AS cor0
----
1037
725
751

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

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

query I rowsort
SELECT ALL + ( + 90 ) AS col0 FROM tab1
----
90
90
90

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

query I rowsort
SELECT ALL - col1 + + col1 + - col0 * 82 * col2 AS col1 FROM tab0 cor0
----
-2870
-598436
-64944

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

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

query I rowsort
SELECT DISTINCT + 53 - + col0 * col0 AS col1 FROM tab0 AS cor0
----
-1172
-523
-7868

query I rowsort
SELECT ( col1 ) * 56 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT ALL - 96 + - col1 + - 96 AS col2 FROM tab2 AS cor0
----
-209
-223
-251

query I rowsort
SELECT - + 90 + + col2 FROM tab2 AS cor0
----
-52
-63
-64

query I rowsort
SELECT DISTINCT 94 + col0 * tab1.col2 AS col1 FROM tab1
----
256
3742
7774

query I rowsort
SELECT ALL 23 + - col2 + 57 * - ( + col2 ) AS col0 FROM tab0
----
-1891
-35
-4733

query I rowsort
SELECT col2 + 45 FROM tab1 AS cor0
----
102
141
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT - col2 DIV ( - 78 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-381
SELECT - col2 / ( - 78 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 32 FROM tab1
----
-32
-32
-32

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

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

query I rowsort
SELECT ALL cor0.col1 * - 85 + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-2824
-4447
-7043

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

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

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

query I rowsort
SELECT + + 39 + col0 FROM tab2 AS cor0
----
117
118
46

query I rowsort
SELECT - col0 * + ( col0 ) + - col1 - - col2 AS col1 FROM tab1 AS cor0
----
-4049
-6317
19

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

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

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

query I rowsort
SELECT 13 + col0 * - col0 * + col1 FROM tab0 AS cor0
----
-118812
-49523
-720798

query I rowsort
SELECT DISTINCT - 6 * col2 FROM tab1 AS cor0
----
-324
-342
-576

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

query I rowsort
SELECT ALL + - col1 + + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-17
25
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + 10 + col2 * + cor0.col1 col1 FROM tab0 cor0
----
1067
3698
8372

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-402
SELECT - - col0 * CAST( col1 AS SIGNED ) + col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
2066
3492
8100

skipif mysql # not compatible
query I rowsort label-402
SELECT - - col0 * CAST ( col1 AS INTEGER ) + col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
2066
3492
8100

query I rowsort
SELECT DISTINCT - cor0.col0 * + ( - 47 * col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
27048
372198
57540

query I rowsort
SELECT ALL + col0 + 36 FROM tab0 AS cor0
----
125
60
71

query I rowsort
SELECT DISTINCT col2 * 55 AS col1 FROM tab1 AS cor0
----
2970
3135
5280

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

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

query I rowsort
SELECT - - 89 * col0 + - col1 + + cor0.col2 * 34 AS col0 FROM tab2 AS cor0
----
1510
7767
8306

query I rowsort
SELECT DISTINCT - 20 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-7
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-409
SELECT - 57 * col0 + - col0 DIV + ( + 60 ) FROM tab1 AS cor0
----
-171
-3649
-4561

skipif mysql # not compatible
query I rowsort label-409
SELECT - 57 * col0 + - col0 / + ( + 60 ) FROM tab1 AS cor0
----
-171
-3649
-4561

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

query I rowsort
SELECT - - ( col1 ) + + col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col2 + col2 col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - + col1 * - col1 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
1150
3291
5509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - col0 + + 89 * - 8 * - col2 FROM tab0 cor0
----
23472
58295
677

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

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

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

query I rowsort
SELECT ALL - 70 * col2 AS col0 FROM tab1
----
-3780
-3990
-6720

query I rowsort
SELECT 24 * - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3e4108b225cb7fe6996db851fb87e75b

onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT + 11 DIV 5 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-420
SELECT + 11 / 5 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT col0 * + 6 AS col0 FROM tab2 cor0
----
42
468
474

query I rowsort
SELECT - + ( 73 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT col2 * + col0 + 34 FROM tab0
----
69
7332
826

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

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

query I rowsort
SELECT col1 * + 41 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT ALL col2 + + col1 * - col0 * - col0 FROM tab2 AS cor0
----
106135
1546
358982

onlyif mysql # use DIV operator for integer division
query I rowsort label-428
SELECT ALL + col2 DIV + col0 + - 30 + col0 AS col2 FROM tab2 cor0
----
-20
48
49

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + col2 / + col0 + - 30 + col0 AS col2 FROM tab2 cor0
----
-20
48
49

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

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

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

query I rowsort
SELECT ALL 76 + - 43 * + col1 FROM tab0
----
-3622
-3837
-4095

query I rowsort
SELECT 98 FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - ( col0 ) - col1 FROM tab1
----
-29
-74
-93

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

query I rowsort
SELECT + ( - 92 ) * col1 AS col0 FROM tab2
----
-1564
-2852
-5428

onlyif mysql # use DIV operator for integer division
query I rowsort label-436
SELECT - col0 * - col0 + + col1 DIV + 74 + col0 AS col0 FROM tab0
----
1261
601
8011

skipif mysql # not compatible
query I rowsort label-436
SELECT - col0 * - col0 + + col1 / + 74 + col0 AS col0 FROM tab0
----
1261
601
8011

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-439
SELECT ALL ( - cor0.col0 ) * col0 + + 94 + + col2 DIV cor0.col0 FROM tab1 cor0
----
-4002
-6305
103

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL ( - cor0.col0 ) * col0 + + 94 + + col2 / cor0.col0 FROM tab1 cor0
----
-4002
-6305
103

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

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

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

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

query I rowsort
SELECT ALL - 23 + col2 + - col0 * 14 * col2 AS col2 FROM tab2 AS cor0
----
-2642
-28389
-42013

query I rowsort
SELECT + col0 * col0 + col1 + + col1 AS col1 FROM tab1 AS cor0
----
4116
61
6426

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

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

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

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

skipif mysql # not compatible
query I rowsort label-448
SELECT + cor0.col0 + - col1 / - 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 - 47 + + col2 * - col2 col1 FROM tab2 AS cor0
----
-1491
-723
-776

query I rowsort
SELECT DISTINCT + col2 + + col0 * + 46 AS col0 FROM tab1 AS cor0
----
192
3001
3776

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

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

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

query I rowsort
SELECT ALL + 62 * col0 FROM tab1 cor0
----
186
3968
4960

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-458
SELECT ALL col0 + + col2 DIV + col1 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL col0 + + col2 / + col1 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT - - col2 * + col1 + 25 AS col2 FROM tab2 AS cor0
----
1559
671
862

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

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

query I rowsort
SELECT ALL + 3 * 58 FROM tab2, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 009a6c191a0512eacb09b988f3cf4bf5

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

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

query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab0
----
46

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

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

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

skipif mysql # not compatible
query I rowsort label-466
SELECT - col1 + 15 / - ( - tab0.col0 * + col1 ) FROM tab0
----
-86
-91
-97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to cbc7ea781e219f4177126feeb59feb2d

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

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

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

query I rowsort
SELECT + 22 FROM tab2, tab1 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT col2 + cor0.col0 * + 71 AS col2 FROM tab1 AS cor0
----
267
4601
5776

query I rowsort
SELECT + ( - 7 ) FROM tab0
----
-7
-7
-7

query I rowsort
SELECT - 24 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to ad9e2feda1bc3d52e1a836279e031a8b

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-476
SELECT - cor0.col0 DIV + ( + 25 ) + + col2 * 63 FROM tab0 AS cor0
----
2079
5163
62

skipif mysql # not compatible
query I rowsort label-476
SELECT - cor0.col0 / + ( + 25 ) + + col2 * 63 FROM tab0 AS cor0
----
2079
5163
62

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

query I rowsort
SELECT cor0.col2 * + 90 + col1 FROM tab2 AS cor0
----
2399
2461
3437

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

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

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

query I rowsort
SELECT col1 * + col2 + + 75 FROM tab2 AS cor0
----
1609
721
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT DISTINCT tab0.col1 DIV - col0 + col1 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT tab0.col1 / - col0 + col1 FROM tab0
----
83
90
95

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

query I rowsort
SELECT DISTINCT 73 + - col2 * + tab1.col1 * col1 + col0 AS col2 FROM tab1
----
-16071
-36428
-5563

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

query I rowsort
SELECT ALL + tab0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL cor0.col2 + 65 FROM tab0, tab0 AS cor0
----
9 values hashing to 6c310bb9e1507e918218ff02788ea69c

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

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

query I rowsort
SELECT ALL + col0 * col2 + 28 + + col1 AS col0 FROM tab0 cor0
----
160
7417
906

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

query I rowsort
SELECT ALL col2 + + ( - 81 ) * cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
-15282
-164242
-243124

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + 35 * - 6 FROM tab0, tab1 AS cor0
----
9 values hashing to ceea7215d265e15a570f1309daac50d8

query I rowsort
SELECT ALL - col2 * 76 - + 46 AS col2 FROM tab2 AS cor0
----
-2022
-2098
-2934

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

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

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

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

query I rowsort
SELECT ALL + - col2 - 62 * col1 * 65 FROM tab0 AS cor0
----
-346613
-366812
-390911

query I rowsort
SELECT ALL + tab2.col0 * col0 - 29 AS col0 FROM tab2
----
20
6055
6212

query I rowsort
SELECT DISTINCT - col2 - - ( col2 ) * + col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT 12 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + cor0.col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col1 + 82 + col2 FROM tab2 cor0
----
137
140
167

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

query I rowsort
SELECT ALL ( - 93 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

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

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

query I rowsort
SELECT cor0.col0 + - col0 + 65 * - col2 AS col2 FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT - + col0 + 55 AS col1 FROM tab2 cor0
----
-23
-24
48

query I rowsort
SELECT + col0 + col0 + 78 FROM tab1 AS cor0
----
206
238
84

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

query I rowsort
SELECT ALL - 66 * col2 AS col2 FROM tab0
----
-2178
-5412
-66

query I rowsort
SELECT - col2 - col0 AS col0 FROM tab0
----
-171
-36
-57

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

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + 54 FROM tab0 cor0
----
-7244
-738
19

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

query I rowsort
SELECT - - cor0.col1 + - col2 * + 91 FROM tab0 AS cor0
----
-2917
-7371
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-517
SELECT ALL col0 DIV + col2 + col1 col2 FROM tab0 AS cor0
----
132
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-517
SELECT ALL col0 / + col2 + col1 col2 FROM tab0 AS cor0
----
132
86
92

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 48 * - col0 col0 FROM tab2 cor0
----
-309
-3718
-3754

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 - + col1 * col1 * + ( - 88 ) col2 FROM tab0 AS cor0
----
648784
720629
824597

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

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

query I rowsort
SELECT ALL + 49 + 71 FROM tab2
----
120
120
120

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

query I rowsort
SELECT - + ( - cor0.col1 ) * cor0.col2 + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1417
2080
670

query I rowsort
SELECT ALL - ( 80 ) + col1 FROM tab0 AS cor0
----
11
17
6

query I rowsort
SELECT ALL + + col1 * - 72 FROM tab1 AS cor0
----
-1872
-720
-936

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

query I rowsort
SELECT ALL + col0 + col2 + col2 FROM tab2 cor0
----
130
155
61

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

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

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

query I rowsort
SELECT - col0 * + col1 * col0 + ( cor0.col1 ) * col1 + + col0 AS col1 FROM tab2 AS cor0
----
-105729
-355397
-551

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

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

query I rowsort
SELECT ALL - + 68 * cor0.col2 FROM tab2 AS cor0
----
-1768
-1836
-2584

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

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

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

query I rowsort
SELECT ALL - ( - col0 * + col1 ) + ( col1 * + col1 ) AS col1 FROM tab2
----
1178
1632
8083

query I rowsort
SELECT DISTINCT - - 13 + col1 FROM tab1 AS cor0
----
23
26
39

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-551
SELECT 11 DIV - col0 FROM tab1 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-551
SELECT 11 / - col0 FROM tab1 AS cor0
----
-3
0
0

query I rowsort
SELECT ( col0 ) + + cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT DISTINCT 47 * col1 DIV 45 FROM tab2 AS cor0
----
17
32
61

skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT 47 * col1 / 45 FROM tab2 AS cor0
----
17
32
61

query I rowsort
SELECT + + 9 AS col1 FROM tab2 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort
SELECT col1 * - col1 + CAST ( + 52 + + col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
-199
-3403
-882

query I rowsort
SELECT ALL 59 + + col0 FROM tab2
----
137
138
66

query I rowsort
SELECT DISTINCT - + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - col0 * col2 * + 57 + - col0 AS col0 FROM tab1 AS cor0
----
-208000
-437840
-9237

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

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

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

query I rowsort
SELECT DISTINCT 64 * + col2 AS col0 FROM tab0
----
2112
5248
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-563
SELECT ALL 11 * 74 + col0 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
862
884
992

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL 11 * 74 + col0 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
862
884
992

query I rowsort
SELECT DISTINCT + - 49 + col1 * cor0.col2 * 59 FROM tab0 AS cor0
----
167393
440209
5674

query I rowsort
SELECT + 45 * - col2 + col1 * + ( + 38 ) FROM tab0 AS cor0
----
-232
1783
3641

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

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

query I rowsort
SELECT ALL - + 67 + - cor0.col1 * 80 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b05628212b2819f6276a45d25f56d8e0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col0 * col0 col1 FROM tab2
----
238
8112
9243

query I rowsort
SELECT - 56 + col0 * col1 + col2 * col2 AS col1 FROM tab1
----
10200
2938
3833

onlyif mysql # use DIV operator for integer division
query I rowsort label-571
SELECT DISTINCT col0 + col2 DIV + tab0.col2 col0 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT col0 + col2 / + tab0.col2 col0 FROM tab0
----
25
36
90

query I rowsort
SELECT - col0 * 4 - + col2 FROM tab2
----
-338
-354
-55

query I rowsort
SELECT DISTINCT - tab0.col1 + col0 + col0 AS col2 FROM tab0
----
-27
-38
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT + 72 / - col1 + col0 col1 FROM tab1 AS cor0
----
1
57
75

query I rowsort
SELECT 60 + 28 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT + + col0 * cor0.col0 + col0 * 19 AS col2 FROM tab1 AS cor0
----
5312
66
7920

query I rowsort
SELECT DISTINCT + 82 + + col1 * cor0.col1 * - col2 FROM tab0 AS cor0
----
-243986
-678960
-9327

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

query I rowsort
SELECT ALL 77 AS col0 FROM tab1
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + 86 col0 FROM tab0 AS cor0
----
4
53
85

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

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

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

query I rowsort
SELECT ALL 79 AS col1 FROM tab2, tab0, tab1 cor0, tab2 cor1
----
81 values hashing to da0116d31b8af0da9f685c090d378baf

query I rowsort
SELECT DISTINCT + col1 * - 64 + + col0 FROM tab2
----
-1009
-1977
-3698

onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT + ( col1 ) + col0 DIV CAST( col2 * col2 AS SIGNED ) FROM tab0 AS cor0
----
132
86
91

skipif mysql # not compatible
query I rowsort label-589
SELECT + ( col1 ) + col0 / CAST ( col2 * col2 AS INTEGER ) FROM tab0 AS cor0
----
132
86
91

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

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

query I rowsort
SELECT - 91 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT col0 * cor0.col0 + cor0.col2 + col0 FROM tab1 AS cor0
----
4217
6576
66

query I rowsort
SELECT - 53 * - col1 + col2 + + col2 * - col2 FROM tab2 cor0
----
-505
2477
941

query I rowsort
SELECT + col1 - col2 * - 82 AS col0 FROM tab2 AS cor0
----
2191
2245
3133

query I rowsort
SELECT - + col0 + - col0 - col1 AS col1 FROM tab2 AS cor0
----
-175
-215
-45

query I rowsort
SELECT col0 * 84 + + 1 FROM tab0 AS cor0
----
2017
2941
7477

query I rowsort
SELECT - - col2 * + col0 + cor0.col1 + + col2 FROM tab2 AS cor0
----
2113
247
3057

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col0 col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-600
SELECT - ( col2 * CAST( + col1 AS SIGNED ) ) + col2 + tab1.col2 DIV 66 FROM tab1
----
-1151
-1350
-513

skipif mysql # not compatible
query I rowsort label-600
SELECT - ( col2 * CAST ( + col1 AS INTEGER ) ) + col2 + tab1.col2 / 66 FROM tab1
----
-1151
-1350
-513

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

query I rowsort
SELECT + 35 * - col1 + - col2 * - 55 AS col0 FROM tab2
----
-635
1495
400

query I rowsort
SELECT DISTINCT col1 * - col0 * + 26 AS col1 FROM tab0
----
-210574
-53664
-88270

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-605
SELECT DISTINCT 12 DIV - col0 + - 45 * - col1 AS col1 FROM tab1
----
1166
450
585

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT 12 / - col0 + - 45 * - col1 AS col1 FROM tab1
----
1166
450
585

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

query I rowsort
SELECT + + col1 * 40 + + 21 AS col0 FROM tab0 AS cor0
----
3461
3661
3901

query I rowsort
SELECT + col2 + 9 * 24 FROM tab0 AS cor0
----
217
249
298

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT col0 * 30 DIV - col0 + cor0.col1 FROM tab1 AS cor0
----
-17
-20
-4

skipif mysql # not compatible
query I rowsort label-613
SELECT col0 * 30 / - col0 + cor0.col1 FROM tab1 AS cor0
----
-17
-20
-4

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

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

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

query I rowsort
SELECT ALL col0 * 91 AS col1 FROM tab1
----
273
5824
7280

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

query I rowsort
SELECT - col0 + 96 FROM tab2 cor0
----
17
18
89

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

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

query I rowsort
SELECT + col2 * tab1.col0 + col2 - col2 * + col1 AS col2 FROM tab1
----
-1188
3135
6528

query I rowsort
SELECT ALL + col0 + 21 FROM tab2
----
100
28
99

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-624
SELECT ALL col2 * + col2 + + ( + cor0.col1 ) DIV col1 + + col0 AS col1 FROM tab1 AS cor0
----
2920
3314
9297

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL col2 * + col2 + + ( + cor0.col1 ) / col1 + + col0 AS col1 FROM tab1 AS cor0
----
2920
3314
9297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + cor0.col1 * - col0 col1 FROM tab1 cor0
----
-540
-871
598

query I rowsort
SELECT ALL + 30 + col1 AS col1 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT DISTINCT - ( + tab1.col0 ) AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - 88 FROM tab2
----
-88

query I rowsort
SELECT + 50 - + col0 AS col0 FROM tab1
----
-14
-30
47

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

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

query I rowsort
SELECT - 51 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ALL - - col0 + 11 * col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT ALL - col1 * col1 + + cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
-6604
-9374
-983

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-638
SELECT col1 - 40 DIV col1 FROM tab2
----
15
30
59

skipif mysql # not compatible
query I rowsort label-638
SELECT col1 - 40 / col1 FROM tab2
----
15
30
59

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

query I rowsort
SELECT ALL + col0 + - 79 * - col0 + tab0.col2 AS col2 FROM tab0
----
1953
2801
7202

onlyif mysql # use DIV operator for integer division
query I rowsort label-641
SELECT DISTINCT tab0.col1 + CAST( col1 AS SIGNED ) DIV + col1 AS col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT tab0.col1 + CAST ( col1 AS INTEGER ) / + col1 AS col2 FROM tab0
----
87
92
98

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

query I rowsort
SELECT 78 * col1 + + col2 * + col0 AS col2 FROM tab1
----
2190
4428
8694

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-645
SELECT ALL - ( 38 ) - col0 DIV - CAST( - col0 * col2 + 92 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL - ( 38 ) - col0 / - CAST ( - col0 * col2 + 92 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-38
-38
-38

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * - col1 col0 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT ALL - 82 + col2 AS col1 FROM tab0 cor0
----
-49
-81
0

query I rowsort
SELECT 92 * cor0.col1 FROM tab0 AS cor0
----
7912
8372
8924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-651
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + cor1.col2 + cor0.col1 * - ( cor0.col0 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 996f51b559b7c385ee76334108e35bef

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab1
----
23

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

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

skipif mysql # not compatible
query I rowsort label-655
SELECT - col2 + ( col1 ) * + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + + ( 22 ) - - col2 * col2 AS col2 FROM tab0 cor0
----
1111
23
6746

onlyif mysql # use DIV operator for integer division
query I rowsort label-657
SELECT DISTINCT - - cor0.col2 DIV 78 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT - - cor0.col2 / 78 FROM tab0 AS cor0
----
0
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT col0 DIV + col0 - CAST( col1 AS SIGNED ) * - col1 * ( 78 + col0 * col0 ) FROM tab2 AS cor0
----
122048
1826192
21449923

skipif mysql # not compatible
query I rowsort label-659
SELECT col0 / + col0 - CAST ( col1 AS INTEGER ) * - col1 * ( 78 + col0 * col0 ) FROM tab2 AS cor0
----
122048
1826192
21449923

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-661
SELECT + - col2 * - col1 + col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-661
SELECT + - col2 * - col1 + col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
2841
7463
99

query I rowsort
SELECT DISTINCT col2 - - col0 AS col1 FROM tab1 AS cor0
----
121
176
57

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

query I rowsort
SELECT DISTINCT col1 * 66 + col1 FROM tab0 cor0
----
5762
6097
6499

query I rowsort
SELECT col1 + + ( - 34 ) * - col2 AS col0 FROM tab0
----
1208
131
2879

query I rowsort
SELECT 84 + + 14 FROM tab1, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - col0 + ( 67 ) FROM tab0
----
-22
32
43

query I rowsort
SELECT ALL col1 + + col0 * - 28 FROM tab2
----
-165
-2125
-2195

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

query I rowsort
SELECT + col2 + ( - 28 ) FROM tab2 cor0
----
-1
-2
10

query I rowsort
SELECT + + cor0.col0 + + 99 AS col0 FROM tab0 AS cor0
----
123
134
188

query I rowsort
SELECT col0 * 44 + + col0 * - col2 + 3 AS col1 FROM tab1 AS cor0
----
-27
-4157
-829

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

query I rowsort
SELECT ALL + col2 + + col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
144
72
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-675
SELECT ALL col1 * cor0.col2 + col2 + col0 DIV col2 FROM tab1 AS cor0
----
1344
1458
628

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL col1 * cor0.col2 + col2 + col0 / col2 FROM tab1 AS cor0
----
1344
1458
628

query I rowsort
SELECT DISTINCT + + cor0.col1 + 66 FROM tab1 AS cor0
----
76
79
92

query I rowsort
SELECT + cor0.col2 - - 70 * - col2 AS col0 FROM tab2 AS cor0
----
-1794
-1863
-2622

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

query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 + + col0 FROM tab1 AS cor0
----
-25
-3
17

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-681
SELECT + col0 + - ( 54 ) + col2 DIV + col0 FROM tab1 AS cor0
----
-33
10
27

skipif mysql # not compatible
query I rowsort label-681
SELECT + col0 + - ( 54 ) + col2 / + col0 FROM tab1 AS cor0
----
-33
10
27

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

query I rowsort
SELECT - col0 + 75 * col0 FROM tab1 AS cor0
----
222
4736
5920

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

query I rowsort
SELECT + + cor0.col2 * col2 + - 74 + - col2 FROM tab2 AS cor0
----
1332
576
628

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col1 * - col2 AS col0 FROM tab1 cor0
----
-1326
-208
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT + - 71 + - cor0.col0 DIV cor0.col1 AS col0 FROM tab2 cor0
----
-71
-72
-75

skipif mysql # not compatible
query I rowsort label-687
SELECT + - 71 + - cor0.col0 / cor0.col1 AS col0 FROM tab2 cor0
----
-71
-72
-75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-688
SELECT + ( - cor0.col1 ) * col2 + 40 / 46 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

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

query I rowsort
SELECT ALL - - 64 + + col0 * col0 * ( + 89 ) - - col2 * col0 AS col2 FROM tab2 AS cor0
----
4614
543568
558515

query I rowsort
SELECT col0 + - 40 * cor0.col1 FROM tab2 cor0
----
-1233
-2282
-601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 49 col1 FROM tab1
----
-15
-31
46

query I rowsort
SELECT 74 * col2 * + col2 FROM tab0 AS cor0
----
497576
74
80586

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

query I rowsort
SELECT DISTINCT + - 25 * col1 FROM tab1 cor0
----
-250
-325
-650

query I rowsort
SELECT - 38 * col1 AS col1 FROM tab2 AS cor0
----
-1178
-2242
-646

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

query I rowsort
SELECT DISTINCT + 80 * + col0 + col0 + - col2 FROM tab0 AS cor0
----
1911
2834
7127

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

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

query I rowsort
SELECT ALL - - ( + col1 ) + ( + 81 * col2 ) FROM tab0 cor0
----
178
2759
6733

query I rowsort
SELECT ALL - 1 + - col2 - + tab0.col0 AS col0 FROM tab0
----
-172
-37
-58

query I rowsort
SELECT 98 * + tab1.col2 AS col1 FROM tab1
----
5292
5586
9408

query I rowsort
SELECT ALL col0 * col1 - + ( 24 ) FROM tab1
----
1016
54
616

query I rowsort
SELECT col0 * - ( col2 ) + + col1 + col0 FROM tab2 AS cor0
----
-151
-1891
-2906

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

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

query I rowsort
SELECT col0 * ( + 35 ) + + col2 FROM tab1 AS cor0
----
159
2297
2896

query I rowsort
SELECT ALL - col2 * - col1 - tab1.col0 * + 72 * col1 AS col1 FROM tab1
----
-4212
-45510
-73632

onlyif mysql # use DIV operator for integer division
query I rowsort label-709
SELECT + 45 DIV col1 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-709
SELECT + 45 / col1 FROM tab1
----
1
3
4

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

skipif mysql # not compatible
query I rowsort label-710
SELECT 33 / - col1 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT + 42 + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 4e66aae591d101409e7161297fc6558d

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

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

query I rowsort
SELECT 95 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT + col1 * + col0 + + 55 FROM tab2 AS cor0
----
1398
272
4657

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-717
SELECT + cor0.col0 DIV - col0 + ( + cor0.col2 ) * - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1226
-19009
-649523

skipif mysql # not compatible
query I rowsort label-717
SELECT + cor0.col0 / - col0 + ( + cor0.col2 ) * - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1226
-19009
-649523

onlyif mysql # use DIV operator for integer division
query I rowsort label-718
SELECT DISTINCT col2 * + ( tab0.col1 ) DIV - col1 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT col2 * + ( tab0.col1 ) / - col1 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL + ( 93 ) FROM tab0, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT - - col1 + col1 + 69 FROM tab2 AS cor0
----
103
131
187

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

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

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

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

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

query I rowsort
SELECT - 72 FROM tab2 cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT + - col1 * 59 FROM tab0 AS cor0
----
-5074
-5369
-5723

query I rowsort
SELECT ALL - + col1 + 41 * + col0 AS col0 FROM tab0 AS cor0
----
1338
3558
898

query I rowsort
SELECT DISTINCT + col2 * 28 - + col0 * 57 FROM tab1 cor0
----
-1872
-2052
1341

query I rowsort
SELECT DISTINCT + - 76 * col0 + cor0.col0 FROM tab2 AS cor0
----
-525
-5850
-5925

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

query I rowsort
SELECT + + ( - col2 ) * cor0.col1 + col1 * 57 FROM tab0 AS cor0
----
-2275
2064
5432

query I rowsort
SELECT + ( - 67 ) * col0 - - col2 * + col1 * col1 FROM tab2 cor0
----
25478
5689
85280

query I rowsort
SELECT - cor0.col1 * - 83 AS col2 FROM tab2 AS cor0
----
1411
2573
4897

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

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

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

query I rowsort
SELECT ALL 39 * - 92 AS col2 FROM tab1
----
-3588
-3588
-3588

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

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

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

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

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

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

query I rowsort
SELECT - - col2 - - cor0.col2 * 3 AS col2 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT DISTINCT - - 17 FROM tab2 AS cor0
----
17

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

query I rowsort
SELECT + col2 - cor0.col0 * - col1 * - 36 AS col1 FROM tab0 AS cor0
----
-122219
-291482
-74271

query I rowsort
SELECT 44 * col1 * col2 AS col1 FROM tab2 AS cor0
----
28424
36828
67496

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col1 col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col1 + + col2 * col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT - tab1.col2 * cor0.col1 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to a8ce768203b74f299b6ebad5477b14c1

query I rowsort
SELECT ALL - 14 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab0 AS cor0
----
-24
-35
-89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 + 17 col1 FROM tab0 AS cor0
----
-2821
-7445
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-755
SELECT - col2 + - 44 DIV 2 col0 FROM tab1 AS cor0
----
-118
-76
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-755
SELECT - col2 + - 44 / 2 col0 FROM tab1 AS cor0
----
-118
-76
-79

query I rowsort
SELECT - col0 * - ( + col1 ) + + col0 + col0 FROM tab0 AS cor0
----
2112
3465
8277

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

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

query I rowsort
SELECT ALL - col0 + - col2 * + col0 * col2 AS col1 FROM tab1 AS cor0
----
-208000
-737360
-8751

query I rowsort
SELECT DISTINCT tab1.col0 + + 64 AS col1 FROM tab1, tab0 AS cor0
----
128
144
67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * col0 col1 FROM tab0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-763
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
NULL

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

query I rowsort
SELECT - 3 * col0 * 3 + col0 FROM tab2 AS cor0
----
-56
-624
-632

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

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

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

query I rowsort
SELECT + - col1 + col0 * + 6 + col1 * - col2 * col0 AS col2 FROM tab0 AS cor0
----
-3282
-663675
-68054

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) * + col2 * + col1 + col2 col0 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT DISTINCT 96 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2160
3491
8195

query I rowsort
SELECT ALL - - 30 + cor0.col0 AS col1 FROM tab1 AS cor0
----
110
33
94

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT ALL + col1 + - cor0.col0 DIV 33 + col0 AS col2 FROM tab1 AS cor0
----
29
73
91

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + col1 + - cor0.col0 / 33 + col0 AS col2 FROM tab1 AS cor0
----
29
73
91

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

query I rowsort
SELECT DISTINCT - 43 * col2 + - col0 FROM tab1 AS cor0
----
-2325
-2515
-4208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col0 - col0 * col0 col0 FROM tab2 AS cor0
----
-15
-5980
-6124

onlyif mysql # use DIV operator for integer division
query I rowsort label-778
SELECT - 79 DIV - col2 + - col2 * + col2 + + col2 * col1 FROM tab0 cor0
----
175
1751
738

skipif mysql # not compatible
query I rowsort label-778
SELECT - 79 / - col2 + - col2 * + col2 + + col2 * col1 FROM tab0 cor0
----
175
1751
738

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT col1 DIV + col1 + + 38 - col1 FROM tab1
----
13
26
29

skipif mysql # not compatible
query I rowsort label-780
SELECT col1 / + col1 + + 38 - col1 FROM tab1
----
13
26
29

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-783
SELECT DISTINCT col1 DIV col2 + + col1 * + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT col1 / col2 + + col1 * + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT DISTINCT + col2 DIV - 19 col2 FROM tab2 cor0
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT + col2 / - 19 col2 FROM tab2 cor0
----
-1
-2

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

query I rowsort
SELECT DISTINCT - cor0.col1 * 6 FROM tab1 AS cor0
----
-156
-60
-78

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

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

query I rowsort
SELECT DISTINCT col0 + col2 * tab2.col1 + col0 * col0 FROM tab2
----
6966
7696
893

query I rowsort
SELECT DISTINCT 85 + - col1 FROM tab0
----
-1
-12
-6

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

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

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

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

query I rowsort
SELECT ALL ( + col1 ) * col0 + + col2 * 45 FROM tab2 AS cor0
----
1432
3053
5772

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

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

query I rowsort
SELECT ALL - + ( + 4 ) * col0 AS col1 FROM tab2 AS cor0
----
-28
-312
-316

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

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

query I rowsort
SELECT - col1 + - 54 * tab1.col2 FROM tab1
----
-2942
-3088
-5197

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

query I rowsort
SELECT - col0 - + col0 * col1 * 37 AS col1 FROM tab2
----
-170352
-49770
-8036

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-805
SELECT DISTINCT - CAST( - 21 AS SIGNED ) + col2 - 90 FROM tab0
----
-36
-68
13

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT - CAST ( - 21 AS INTEGER ) + col2 - 90 FROM tab0
----
-36
-68
13

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

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

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

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

query I rowsort
SELECT DISTINCT col1 * - 7 * col1 FROM tab2
----
-2023
-24367
-6727

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

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

query I rowsort
SELECT + tab1.col2 + cor0.col0 * 85 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fcfc1c91cedb6d3f0fd04328ce5a6224

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

query I rowsort
SELECT ALL - 54 + - col0 FROM tab0 AS cor0
----
-143
-78
-89

query I rowsort
SELECT - - 4 - + cor0.col2 AS col2 FROM tab1 AS cor0
----
-50
-53
-92

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT + col1 * col0 + + 59 DIV col0 FROM tab0 AS cor0
----
2066
3396
8099

skipif mysql # not compatible
query I rowsort label-821
SELECT + col1 * col0 + + 59 / col0 FROM tab0 AS cor0
----
2066
3396
8099

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-825
SELECT ALL + col2 + col0 * CAST( + 75 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1833
2626
6757

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + col2 + col0 * CAST ( + 75 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1833
2626
6757

query I rowsort
SELECT DISTINCT + col0 * - col1 + + 73 AS col1 FROM tab1 AS cor0
----
-5
-567
-967

query I rowsort
SELECT + col2 * + cor0.col1 - 29 FROM tab1 AS cor0
----
1219
1375
541

query I rowsort
SELECT DISTINCT + 13 + + col2 - - cor0.col2 * 77 FROM tab1 AS cor0
----
4225
4459
7501

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

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

query I rowsort
SELECT - - col2 + 39 FROM tab0 cor0
----
121
40
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT DISTINCT - col1 * CAST( ( col0 ) AS SIGNED ) DIV - col0 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - col1 * CAST ( ( col0 ) AS INTEGER ) / - col0 AS col2 FROM tab0 AS cor0
----
86
91
97

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

query I rowsort
SELECT ALL + col0 * 2 * + col2 AS col0 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT - cor0.col0 + - col2 * + 28 FROM tab0 AS cor0
----
-2385
-63
-948

query I rowsort
SELECT ALL 79 FROM tab1 AS cor0
----
79
79
79

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

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

query I rowsort
SELECT DISTINCT - col1 * - 0 FROM tab1
----
0

query I rowsort
SELECT ALL + 3 - + col1 AS col0 FROM tab2 cor0
----
-14
-28
-56

query I rowsort
SELECT DISTINCT + 63 AS col0 FROM tab0 AS cor0
----
63

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-843
SELECT ALL CAST( 81 AS SIGNED ) FROM tab2, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL CAST ( 81 AS INTEGER ) FROM tab2, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

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

query I rowsort
SELECT cor0.col0 * - 18 AS col1 FROM tab0 cor0
----
-1602
-432
-630

query I rowsort
SELECT ALL + col2 + col2 * 17 FROM tab2 AS cor0
----
468
486
684

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT - - col1 DIV 17 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-848
SELECT - - col1 / 17 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT + col0 * 77 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT - 19 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 99bbabf7eff84050cf6c6974a01eb714

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-851
SELECT ALL + CAST( NULL AS DECIMAL ) / 90 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL + CAST ( NULL AS REAL ) / 90 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( 42 ) FROM tab1, tab0 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-853
SELECT DISTINCT CAST( + 66 * col2 AS SIGNED ) AS col1 FROM tab2
----
1716
1782
2508

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT CAST ( + 66 * col2 AS INTEGER ) AS col1 FROM tab2
----
1716
1782
2508

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749

query I rowsort
SELECT 1 * col2 FROM tab1
----
54
57
96

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

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

query I rowsort
SELECT + 91 + col0 FROM tab1 cor0
----
155
171
94

query I rowsort
SELECT DISTINCT 13 + - 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-26

query I rowsort
SELECT DISTINCT - - col0 * 53 FROM tab1 cor0
----
159
3392
4240

query I rowsort
SELECT col1 * - 19 + 17 FROM tab2
----
-1104
-306
-572

query I rowsort
SELECT DISTINCT + + col0 * 13 AS col2 FROM tab0 AS cor0
----
1157
312
455

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

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

query I rowsort
SELECT DISTINCT - col2 * 95 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT DISTINCT + - cor0.col2 * + 47 + - col0 FROM tab2 cor0
----
-1276
-1300
-1865

query I rowsort
SELECT - 10 - + col2 FROM tab0
----
-11
-43
-92

query I rowsort
SELECT 33 - col2 AS col2 FROM tab0
----
-49
0
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 77 * + col1 col2 FROM tab2
----
-118118
-49742
-64449

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - 70 + col0 + + col1 col0 FROM tab0 AS cor0
----
-1570
-2318
-6050

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

query I rowsort
SELECT 29 * + col0 + col1 + col2 FROM tab0 AS cor0
----
1113
2754
815

query I rowsort
SELECT ALL 59 + + col1 AS col2 FROM tab0 cor0
----
145
150
156

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-877
SELECT ALL col1 DIV + cor0.col1 + + col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL col1 / + cor0.col1 + + col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + + 11 + + col1 - - cor0.col2 * col0 FROM tab1 AS cor0
----
199
3669
7704

onlyif mysql # use DIV operator for integer division
query I rowsort label-879
SELECT DISTINCT + 98 DIV + col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT + 98 / + col2 FROM tab1 AS cor0
----
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-881
SELECT + col1 DIV - col0 + 36 FROM tab1 AS cor0
----
28
36
36

skipif mysql # not compatible
query I rowsort label-881
SELECT + col1 / - col0 + 36 FROM tab1 AS cor0
----
28
36
36

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-886
SELECT DISTINCT - col1 + col2 DIV col0 FROM tab1
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT - col1 + col2 / col0 FROM tab1
----
-10
-12
-8

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

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

query I rowsort
SELECT ALL col2 * tab1.col2 * - col1 + tab1.col2 - + col1 AS col1 FROM tab1
----
-119725
-32443
-75788

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-894
SELECT - - col2 * col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-894
SELECT - - col2 * col1 / - col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

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

query I rowsort
SELECT ALL col2 + + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
246
3
99

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + col0 * + col2 col2 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT - + col1 * col0 * col1 - cor0.col2 * col1 AS col0 FROM tab1 cor0
----
-14768
-3432
-6970

onlyif mysql # use DIV operator for integer division
query I rowsort label-902
SELECT ALL - col0 * + col1 * col2 + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-3394
-664117
-68111

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL - col0 * + col1 * col2 + col2 / + col2 AS col0 FROM tab0 AS cor0
----
-3394
-664117
-68111

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT col2 + - col2 * - col0 - + col1 AS col1 FROM tab1
----
190
3695
7763

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

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col0 * - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT col0 + + col0 + col0 * col1 * col2 FROM tab0 AS cor0
----
3465
664296
68160

query I rowsort
SELECT 12 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1432
-664
-717

query I rowsort
SELECT DISTINCT - - 17 * col1 FROM tab0 AS cor0
----
1462
1547
1649

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

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

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

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

skipif mysql # not compatible
query I rowsort label-915
SELECT - 10 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - col2 * col1 + - col1 * - col0 * - col1 FROM tab1 AS cor0
----
-14688
-3429
-6906

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

query I rowsort
SELECT DISTINCT + 84 + + col1 * + col1 * + col2 FROM tab2 AS cor0
----
11066
26031
90590

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

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

query I rowsort
SELECT - 41 * cor0.col1 FROM tab1 AS cor0
----
-1066
-410
-533

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 76 + cor0.col2 col0 FROM tab2 AS cor0
----
102
103
114

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

query I rowsort
SELECT ALL 6 * tab1.col1 FROM tab1
----
156
60
78

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * col1 * + col2 + col1 * col2 + + col1 AS col2 FROM tab0
----
-604331
-90730
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - tab1.col2 * col2
----

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

query I rowsort
SELECT col2 + col2 + col0 * col1 AS col1 FROM tab2
----
1419
271
4654

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

query I rowsort
SELECT - col2 + - tab0.col1 + + col2 FROM tab0
----
-86
-91
-97

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

query I rowsort
SELECT col2 FROM tab1 WHERE col2 = col0 / + col1 + + col2 * col1
----

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

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

query I rowsort
SELECT - col1 * + col2 FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + col0 + col2 * - col2 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-948
SELECT DISTINCT + col1 + + col0 DIV col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT + col1 + + col0 / col1 FROM tab0
----
86
91
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col2 FROM tab1
----
28
47
83

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

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

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

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

query I rowsort
SELECT ALL - col0 * + cor0.col0 + + col2 - col0 AS col0 FROM tab0 cor0
----
-1259
-567
-7928

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

query I rowsort
SELECT DISTINCT col2 + + col2 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
1357
1484
637

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

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

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

query I rowsort
SELECT ALL - col1 * - 24 AS col0 FROM tab0
----
2064
2184
2328

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT + 93 DIV + 28 + col2 AS col1 FROM tab2 AS cor0
----
29
30
41

skipif mysql # not compatible
query I rowsort label-963
SELECT + 93 / + 28 + col2 AS col1 FROM tab2 AS cor0
----
29
30
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-964
SELECT + col0 DIV + 26 FROM tab1 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-964
SELECT + col0 / + 26 FROM tab1 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
1
33
82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 + col0 col1 FROM tab0 AS cor0
----
-38
-49
16

query I rowsort
SELECT - 63 * col0 AS col1 FROM tab2 AS cor0
----
-441
-4914
-4977

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab2 cor2
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929

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

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

query I rowsort
SELECT col0 * 46 + col0 + col0 * 91 FROM tab1 cor0
----
11040
414
8832

query I rowsort
SELECT - cor0.col2 + ( + 20 ) FROM tab2 AS cor0
----
-18
-6
-7

query I rowsort
SELECT - col1 - + 21 FROM tab2 AS cor0
----
-38
-52
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-974
SELECT + col1 DIV col0 + col1 AS col0 FROM tab1 cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-974
SELECT + col1 / col0 + col1 AS col0 FROM tab1 cor0
----
10
13
34

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

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT col2 / - 71 FROM tab1
----
-1
0

query I rowsort
SELECT 47 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-980
SELECT ALL 85 DIV - ( - col0 ) + - col1 FROM tab2 AS cor0
----
-16
-19
-58

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL 85 / - ( - col0 ) + - col1 FROM tab2 AS cor0
----
-16
-19
-58

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

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

query I rowsort
SELECT ALL + col0 * + col1 * + col1 - col0 AS col2 FROM tab1 AS cor0
----
13440
2025
6336

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

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT ( + col1 ) + - col2 / col2 AS col1 FROM tab1 AS cor0
----
12
25
9

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

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

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

query I rowsort
SELECT + 67 - col0 AS col0 FROM tab1
----
-13
3
64

query I rowsort
SELECT 65 * + col0 + col2 * - col0 FROM tab2
----
2133
266
3042

query I rowsort
SELECT DISTINCT 90 + col0 AS col2 FROM tab1
----
154
170
93

query I rowsort
SELECT DISTINCT - ( col2 ) + col0 * col1 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT 18 + - col1 AS col1 FROM tab1
----
-8
5
8

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

query I rowsort
SELECT + col1 + - ( ( col2 ) + col1 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-10148
-15652
-9409

query I rowsort
SELECT ALL + col2 * 66 * - col2 FROM tab1 AS cor0
----
-192456
-214434
-608256

onlyif mysql # use DIV operator for integer division
query I rowsort label-994
SELECT + col0 - 94 DIV - col1 FROM tab0 cor0
----
25
35
90

skipif mysql # not compatible
query I rowsort label-994
SELECT + col0 - 94 / - col1 FROM tab0 cor0
----
25
35
90

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

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

query I rowsort
SELECT + + col1 + + 17 FROM tab2 AS cor0
----
34
48
76

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-999
SELECT ALL + - col2 / ( ( col2 ) ) + col1 col1 FROM tab0 AS cor0
----
85
90
96

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

query I rowsort
SELECT + col2 * 47 - - 98 AS col1 FROM tab0 AS cor0
----
145
1649
3952

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1002
SELECT col1 / + ( cor0.col2 ) + col1 col0 FROM tab1 AS cor0
----
10
13
26

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT + col1 DIV + 22 FROM tab0 AS cor0
----
3
4
4

skipif mysql # not compatible
query I rowsort label-1005
SELECT + col1 / + 22 FROM tab0 AS cor0
----
3
4
4

query I rowsort
SELECT DISTINCT + col1 + + 15 AS col0 FROM tab1 AS cor0
----
25
28
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT ALL + + col1 DIV - 19 + col2 + col0 * - 0 FROM tab0 AS cor0
----
-4
29
78

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL + + col1 / - 19 + col2 + col0 * - 0 FROM tab0 AS cor0
----
-4
29
78

query I rowsort
SELECT - 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1009
SELECT DISTINCT col1 * CAST( ( - col0 ) AS SIGNED ) AS col2 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT col1 * CAST ( ( - col0 ) AS INTEGER ) AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL tab2.col1 + 86 * - col0 AS col2 FROM tab2
----
-571
-6649
-6777

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

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

query I rowsort
SELECT ALL + col0 + + 70 + - col1 AS col2 FROM tab0 AS cor0
----
68
8
8

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

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

query I rowsort
SELECT 5 * 36 FROM tab1, tab2 AS cor0
----
9 values hashing to 23f8878249837974086cc4c256b553c0

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

query I rowsort
SELECT ALL + col2 + - 83 * - col2 AS col1 FROM tab1 AS cor0
----
4536
4788
8064

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * 36 + - col2 * + ( + col0 * + col1 ) col0 FROM tab0
----
-6203
-666926
-70920

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

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

query I rowsort
SELECT ALL 76 * 96 + col0 * ( + col2 ) AS col0 FROM tab1
----
10944
14976
7458

query I rowsort
SELECT + 73 + tab1.col2 AS col1 FROM tab1
----
127
130
169

query I rowsort
SELECT ALL - col0 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT + + col2 * col2 + col1 DIV - col0 FROM tab2 AS cor0
----
1444
676
725

skipif mysql # not compatible
query I rowsort label-1029
SELECT + + col2 * col2 + col1 / - col0 FROM tab2 AS cor0
----
1444
676
725

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

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

query I rowsort
SELECT ALL + - 92 FROM tab2 AS cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + col1 * 65 col1 FROM tab2 AS cor0
----
1394
2976
7316

onlyif mysql # use DIV operator for integer division
query I rowsort label-1033
SELECT ALL cor0.col0 DIV - 71 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL cor0.col0 / - 71 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 * col2 + col2 col0 FROM tab0 AS cor0
----
-1881
-4674
-57

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * + col0 col0 FROM tab1 AS cor0
----
-147
-3136
-3920

query I rowsort
SELECT DISTINCT - col2 * + 81 + + tab0.col1 AS col1 FROM tab0
----
-2587
-6551
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col1 * - 34 AS col0 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT + - 59 * + cor0.col2 FROM tab1 AS cor0
----
-3186
-3363
-5664

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 * - col1 col0 FROM tab1 AS cor0
----
1950
750
975

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT ALL - col0 DIV + tab0.col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - col0 / + tab0.col2 FROM tab0
----
-1
-35
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + - ( - 60 ) col1 FROM tab0 AS cor0
----
-1165
-516
-7861

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

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

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

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

query I rowsort
SELECT col2 * 25 AS col0 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT ALL + 85 AS col1 FROM tab1
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( 25 ) + col2 col1 FROM tab1 AS cor0
----
-193
-229
-596

query I rowsort
SELECT DISTINCT + + col1 * 75 AS col1 FROM tab2 cor0
----
1275
2325
4425

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

query I rowsort
SELECT + - ( col1 ) + col2 - 70 FROM tab0 cor0
----
-123
-166
-79

query I rowsort
SELECT ALL + ( col2 ) + col2 + + 50 * col1 FROM tab0 AS cor0
----
4366
4714
4852

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

query I rowsort
SELECT + 39 * col2 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-1026
-5472
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 - col1 col0 FROM tab2 AS cor0
----
-5
23
37

query I rowsort
SELECT DISTINCT + 6 * + 39 + + col1 * - 3 AS col1 FROM tab0 AS cor0
----
-24
-39
-57

query I rowsort
SELECT - ( + col2 ) + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1065
SELECT ALL col2 - col2 DIV col1 FROM tab1
----
52
52
89

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL col2 - col2 / col1 FROM tab1
----
52
52
89

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

query I rowsort
SELECT - 74 * col2 + + cor0.col1 + col1 FROM tab0 cor0
----
-2270
-5886
120

query I rowsort
SELECT col0 * 41 - - cor0.col0 AS col0 FROM tab0 cor0
----
1008
1470
3738

query I rowsort
SELECT + - cor0.col1 + 50 + col1 FROM tab2 AS cor0
----
50
50
50

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

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

query I rowsort
SELECT - + 24 + + cor0.col2 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-132
-3615
-7608

query I rowsort
SELECT + 67 * 70 FROM tab2, tab2 AS cor0
----
9 values hashing to 43a96c368f8162666f2d8e87ef92a121

query I rowsort
SELECT DISTINCT - 10 * - col0 FROM tab1
----
30
640
800

query I rowsort
SELECT ALL 73 + 84 AS col2 FROM tab2
----
157
157
157

query I rowsort
SELECT DISTINCT col2 - + 82 AS col1 FROM tab2 AS cor0
----
-44
-55
-56

query I rowsort
SELECT 8 + - col0 AS col1 FROM tab0 AS cor0
----
-16
-27
-81

query I rowsort
SELECT ALL 12 + cor0.col1 + + col1 * 30 FROM tab2 AS cor0
----
1841
539
973

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

query I rowsort
SELECT DISTINCT - - 77 + col0 FROM tab0 AS cor0
----
101
112
166

query I rowsort
SELECT ALL ( col1 ) * + col0 - 80 FROM tab1 cor0
----
-2
560
960

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

query I rowsort
SELECT col1 * - ( col1 ) * + col2 + + col1 AS col2 FROM tab1
----
-16211
-36478
-5690

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

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

skipif mysql # not compatible
query I rowsort label-1084
SELECT CAST ( + col2 AS INTEGER ) * - col2 * col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT - - col0 * ( col1 ) + + col1 + + col1 FROM tab2 AS cor0
----
1377
279
4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

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

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

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

query I rowsort
SELECT - - 70 * col0 AS col0 FROM tab1 cor0
----
210
4480
5600

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col1 AS REAL ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * 37 col1 FROM tab1 cor0
----
-111
-2368
-2960

query I rowsort
SELECT DISTINCT - + 17 + + 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col1 FROM tab0, tab2 AS cor0
----
86
91
97

query I rowsort
SELECT + + col1 * cor0.col1 * 76 FROM tab1 AS cor0
----
12844
51376
7600

query I rowsort
SELECT col2 + col0 * 52 AS col2 FROM tab1 AS cor0
----
210
3385
4256

query I rowsort
SELECT + col0 * + col0 * 73 AS col2 FROM tab0 AS cor0
----
42048
578233
89425

query I rowsort
SELECT col0 + col2 * - 30 FROM tab1 AS cor0
----
-1617
-1646
-2800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1098
SELECT + cor0.col2 * 13 + + cor0.col0 DIV col1 + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1212
-147
-6855

skipif mysql # not compatible
query I rowsort label-1098
SELECT + cor0.col2 * 13 + + cor0.col0 / col1 + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1212
-147
-6855

onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT + col2 * col2 + + 14 DIV + cor0.col1 FROM tab1 AS cor0
----
2916
3250
9217

skipif mysql # not compatible
query I rowsort label-1099
SELECT + col2 * col2 + + 14 / + cor0.col1 FROM tab1 AS cor0
----
2916
3250
9217

query I rowsort
SELECT - + col2 * - col0 + 95 AS col2 FROM tab1 AS cor0
----
257
3743
7775

query I rowsort
SELECT - + cor0.col2 * col2 + col1 * col0 AS col2 FROM tab0 cor0
----
1375
3394
975

query I rowsort
SELECT + col0 + + 92 AS col1 FROM tab1 AS cor0
----
156
172
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 - - col2 * col1 col2 FROM tab2 AS cor0
----
-798
108
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-1104
SELECT - 34 DIV - col0 AS col1 FROM tab1
----
0
0
11

skipif mysql # not compatible
query I rowsort label-1104
SELECT - 34 / - col0 AS col1 FROM tab1
----
0
0
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-1105
SELECT ALL + col0 * 33 + + col1 DIV - col2 FROM tab1 AS cor0
----
2112
2640
99

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + col0 * 33 + + col1 / - col2 FROM tab1 AS cor0
----
2112
2640
99

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

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

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

query I rowsort
SELECT - col2 * ( 50 ) + col0 * + 24 + - col1 * - col1 FROM tab2 AS cor0
----
-221
285
4053

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( - col1 + col0 ) col2 FROM tab0 cor0
----
-182
-5332
-6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-1111
SELECT ALL + - col1 DIV + 11 FROM tab0 AS cor0
----
-7
-8
-8

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL + - col1 / + 11 FROM tab0 AS cor0
----
-7
-8
-8

query I rowsort
SELECT + col0 * 98 FROM tab2 AS cor0
----
686
7644
7742

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1113
SELECT + - col0 + + CAST( 12 AS SIGNED ) + col2 * col2 FROM tab2 AS cor0
----
1377
610
734

skipif mysql # not compatible
query I rowsort label-1113
SELECT + - col0 + + CAST ( 12 AS INTEGER ) + col2 * col2 FROM tab2 AS cor0
----
1377
610
734

onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT - col0 DIV 42 - col0 col1 FROM tab1 AS cor0
----
-3
-65
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1114
SELECT - col0 / 42 - col0 col1 FROM tab1 AS cor0
----
-3
-65
-81

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

query I rowsort
SELECT - + col2 * 48 AS col0 FROM tab0 cor0
----
-1584
-3936
-48

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

query I rowsort
SELECT col1 + + ( + col1 * - col2 ) + ( col1 * col0 ) FROM tab2 AS cor0
----
-589
3127
714

onlyif mysql # use DIV operator for integer division
query I rowsort label-1119
SELECT DISTINCT - 43 * col0 + col1 DIV + 46 AS col0 FROM tab1 AS cor0
----
-129
-2752
-3440

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT - 43 * col0 + col1 / + 46 AS col0 FROM tab1 AS cor0
----
-129
-2752
-3440

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

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

skipif mysql # not compatible
query I rowsort label-1121
SELECT col0 - col2 * + col1 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-611795
-62
-93630

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col2 col2 FROM tab0 AS cor0
----
-164
-2
-66

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

query I rowsort
SELECT + 72 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT ALL + 45 * + col0 FROM tab1
----
135
2880
3600

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-1131
SELECT - 81 + + ( cor0.col0 ) + CAST( - col2 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
-46
-57
8

skipif mysql # not compatible
query I rowsort label-1131
SELECT - 81 + + ( cor0.col0 ) + CAST ( - col2 AS INTEGER ) / col1 FROM tab0 AS cor0
----
-46
-57
8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 31 col2 FROM tab2 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT ( + col2 ) * - col2 * 30 + col2 FROM tab2
----
-20254
-21843
-43282

query I rowsort
SELECT - + 24 + col2 AS col1 FROM tab2 AS cor0
----
14
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1136
SELECT ALL CAST( col1 AS SIGNED ) DIV col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL CAST ( col1 AS INTEGER ) / col1 FROM tab0
----
1
1
1

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

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

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

skipif mysql # not compatible
query I rowsort label-1139
SELECT + col2 * CAST ( col2 AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL col2 * - 48 - + col1 FROM tab2 cor0
----
-1307
-1327
-1841

query I rowsort
SELECT + col2 * 93 + - col2 FROM tab1 AS cor0
----
4968
5244
8832

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

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

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

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

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

query I rowsort
SELECT - - 68 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT + ( + col1 ) + + col1 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT - col2 * 55 + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3078
-5184

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT + col2 DIV + tab2.col0 + col2 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-1151
SELECT + col2 / + tab2.col0 + col2 FROM tab2
----
26
30
38

query I rowsort
SELECT col0 * + 53 + col1 FROM tab2 AS cor0
----
402
4193
4204

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

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

query I rowsort
SELECT DISTINCT col2 - 65 FROM tab0 AS cor0
----
-32
-64
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1156
SELECT DISTINCT col2 DIV cor0.col0 - + 60 FROM tab0 AS cor0
----
-59
-60

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT col2 / cor0.col0 - + 60 FROM tab0 AS cor0
----
-59
-60

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 * + ( col0 ) + cor0.col1 * CAST ( - 54 * col0 AS REAL ) FROM tab2 AS cor0
----
-11529
-246480
-69520

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

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

query I rowsort
SELECT ALL col0 + 25 AS col2 FROM tab1 AS cor0
----
105
28
89

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

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

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL + col2 + - 9 / col1 AS col0 FROM tab2 AS cor0
----
26
27
38

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

query I rowsort
SELECT + col0 * ( 8 * col0 ) FROM tab1
----
32768
51200
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 19 ) + col2 * + cor0.col2 col0 FROM tab0 AS cor0
----
-18
1070
6705

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

query I rowsort
SELECT ALL + 46 AS col1 FROM tab1 AS cor0
----
46
46
46

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

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

query I rowsort
SELECT ALL - - 61 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT - 36 + col1 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
-36516
-4248
-99876

onlyif mysql # use DIV operator for integer division
query I rowsort label-1172
SELECT DISTINCT + col1 + - col0 DIV - col0 col2 FROM tab2 cor0
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT + col1 + - col0 / - col0 col2 FROM tab2 cor0
----
18
32
60

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

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

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

query I rowsort
SELECT + 88 + - col1 FROM tab1 AS cor0
----
62
75
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT + - 72 DIV 3 + col1 AS col2 FROM tab2 AS cor0
----
-7
35
7

skipif mysql # not compatible
query I rowsort label-1177
SELECT + - 72 / 3 + col1 AS col2 FROM tab2 AS cor0
----
-7
35
7

query I rowsort
SELECT - - ( 65 ) * - col0 + - 79 FROM tab0 AS cor0
----
-1639
-2354
-5864

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1180
SELECT ALL + col0 * col0 DIV col1 AS col1 FROM tab0 AS cor0
----
12
6
87

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL + col0 * col0 / col1 AS col1 FROM tab0 AS cor0
----
12
6
87

query I rowsort
SELECT 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL 79 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1168
6803
80

query I rowsort
SELECT + 14 * col2 FROM tab2 AS cor0
----
364
378
532

onlyif mysql # use DIV operator for integer division
query I rowsort label-1184
SELECT DISTINCT + + col2 * col0 + + 63 DIV - col0 col0 FROM tab2 cor0
----
180
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT + + col2 * col0 + + 63 / - col0 col0 FROM tab2 cor0
----
180
2028
3002

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1185
SELECT cor0.col0 / - col0 col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 74 + col2 AS col1 FROM tab2 cor0
----
-36
-47
-48

query I rowsort
SELECT DISTINCT - 89 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT col0 - - 71 FROM tab1 cor0
----
135
151
74

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

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

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

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

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

query I rowsort
SELECT + col2 * + 10 + col2 AS col1 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT + col0 * + col2 + + col2 + - col2 * 57 AS col1 FROM tab1 AS cor0
----
-2862
2304
456

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

query I rowsort
SELECT - - 81 - + col2 FROM tab2 AS cor0
----
43
54
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1198
SELECT - cor0.col2 * col0 - + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif mysql # not compatible
query I rowsort label-1198
SELECT - cor0.col2 * col0 - + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-1199
SELECT 72 * col0 DIV tab0.col0 FROM tab0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-1199
SELECT 72 * col0 / tab0.col0 FROM tab0
----
72
72
72

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

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

query I rowsort
SELECT ( + 38 ) * col0 AS col0 FROM tab1
----
114
2432
3040

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

query I rowsort
SELECT ALL - - 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT col0 DIV - col2 + col2 * col1 - - col2 FROM tab0
----
2871
63
7543

skipif mysql # not compatible
query I rowsort label-1205
SELECT col0 / - col2 + col2 * col1 - - col2 FROM tab0
----
2871
63
7543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1206
SELECT CAST( - 95 AS SIGNED ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

skipif mysql # not compatible
query I rowsort label-1206
SELECT CAST ( - 95 AS INTEGER ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT DISTINCT + - col1 * - 68 FROM tab1 cor0
----
1768
680
884

query I rowsort
SELECT - col2 * - ( + 35 + + col0 ) FROM tab2 cor0
----
1134
2938
4332

query I rowsort
SELECT ALL + - col2 + - ( 19 ) * - col2 AS col1 FROM tab1 AS cor0
----
1026
1728
972

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

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

query I rowsort
SELECT ALL ( tab2.col2 ) * - tab2.col0 * - col0 + 16 - + tab2.col2 AS col1 FROM tab2
----
1312
158174
237136

query I rowsort
SELECT 87 * col2 * + col1 AS col2 FROM tab2
----
133458
56202
72819

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

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

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

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL - col2 / - 74 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT - + 52 DIV 77 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1217
SELECT - + 52 / 77 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 53 + - col2 * col2 FROM tab0 cor0
----
-1036
-6671
52

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

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

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

query I rowsort
SELECT - - col2 * + cor0.col1 * - col1 + 78 FROM tab0 AS cor0
----
-243990
-678964
-9331

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

query I rowsort
SELECT ALL - 2 + cor0.col1 FROM tab2 AS cor0
----
15
29
57

query I rowsort
SELECT 30 + cor0.col1 * ( col1 ) FROM tab2 AS cor0
----
319
3511
991

query I rowsort
SELECT 65 * col2 FROM tab0 AS cor0
----
2145
5330
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1227
SELECT col1 DIV col1 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1227
SELECT col1 / col1 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL 82 * col1 FROM tab2
----
1394
2542
4838

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

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

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

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

query I rowsort
SELECT 25 * 77 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 76cec113a191afa9d01d553835158c20

query I rowsort
SELECT + - col2 * 40 FROM tab0 AS cor0
----
-1320
-3280
-40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 79 col0 FROM tab0 AS cor0
----
112
161
80

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

query I rowsort
SELECT 81 * - col2 AS col1 FROM tab0 AS cor0
----
-2673
-6642
-81

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

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

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

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

query I rowsort
SELECT + col0 * - 99 FROM tab0 cor0
----
-2376
-3465
-8811

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

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

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

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

query I rowsort
SELECT - col2 - 53 * + 14 AS col2 FROM tab1
----
-796
-799
-838

query I rowsort
SELECT col0 * - 94 FROM tab0
----
-2256
-3290
-8366

onlyif mysql # use DIV operator for integer division
query I rowsort label-1249
SELECT ALL + col0 + - col0 * col0 DIV - col1 col2 FROM tab2
----
181
446
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL + col0 + - col0 * col0 / - col1 col2 FROM tab2
----
181
446
8

query I rowsort
SELECT ALL 62 * + col1 AS col1 FROM tab1 cor0
----
1612
620
806

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

query I rowsort
SELECT + + col1 * - col0 - - col1 * + col1 FROM tab1 AS cor0
----
-540
-871
598

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

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

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

query I rowsort
SELECT ALL 78 * col0 - col0 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT DISTINCT 31 + col2 * col0 FROM tab1 AS cor0
----
193
3679
7711

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

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

query I rowsort
SELECT col1 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

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

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

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

query I rowsort
SELECT DISTINCT + 78 * - ( col1 ) FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT ALL + 32 * - col2 AS col2 FROM tab1 AS cor0
----
-1728
-1824
-3072

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

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

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

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

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

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

query I rowsort
SELECT 93 AS col2 FROM tab0 AS cor0
----
93
93
93

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

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

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

query I rowsort
SELECT ALL + 44 * - col2 - + col0 * + col0 FROM tab2
----
-1237
-7228
-7913

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1275
SELECT - col1 * col1 + + col1 DIV col0 + + col1 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-289
-3481
-953

skipif mysql # not compatible
query I rowsort label-1275
SELECT - col1 * col1 + + col1 / col0 + + col1 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-289
-3481
-953

query I rowsort
SELECT - col1 * + col0 * + col2 - - col1 AS col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + col1 col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col2 AS col2 FROM tab0
----
-7363
-8199
-9408

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + - 32 col1 FROM tab0
----
54
59
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1281
SELECT ALL + CAST( - col1 AS SIGNED ) * - col1 + + col1 + - col2 FROM tab2
----
268
3514
965

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL + CAST ( - col1 AS INTEGER ) * - col1 + + col1 + - col2 FROM tab2
----
268
3514
965

query I rowsort
SELECT ALL col0 + - col0 + + col1 AS col0 FROM tab2
----
17
31
59

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1287
SELECT col2 DIV + col1 + - tab0.col2 * col1 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-1287
SELECT col2 / + col1 + - tab0.col2 * col1 FROM tab0
----
-2838
-7462
-97

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT DISTINCT col1 + col1 DIV + col0 AS col2 FROM tab1 WHERE col0 NOT IN ( + col2 )
----
10
13
34

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT col1 + col1 / + col0 AS col2 FROM tab1 WHERE col0 NOT IN ( + col2 )
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * - col0 + + col0 col0 FROM tab0
----
-2040
-3360
-8010

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= NULL OR NOT NULL < col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1297
SELECT DISTINCT col2 * col0 + + col2 DIV + col0 - col0 FROM tab2 AS cor0
----
185
1950
2923

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT col2 * col0 + + col2 / + col0 - col0 FROM tab2 AS cor0
----
185
1950
2923

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1299
SELECT DISTINCT + - col1 * + col0 DIV cor0.col0 + col0 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT + - col1 * + col0 / cor0.col0 + col0 FROM tab2 AS cor0
----
-24
19
62

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

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

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

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

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

query I rowsort
SELECT - col0 * 13 FROM tab1 AS cor0
----
-1040
-39
-832

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - ( + col1 ) AS REAL ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col0 + - ( - cor0.col1 ) + col0 AS col0 FROM tab2 AS cor0
----
175
215
45

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

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

query I rowsort
SELECT DISTINCT - - col1 + 72 AS col1 FROM tab1 cor0
----
82
85
98

query I rowsort
SELECT ALL + + 67 + + col1 AS col1 FROM tab1 AS cor0
----
77
80
93

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

query I rowsort
SELECT - 64 * col0 + col2 FROM tab1 AS cor0
----
-138
-4039
-5024

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1316
SELECT DISTINCT col1 * - CAST( + col2 * + col2 AS SIGNED ) FROM tab1
----
-119808
-32490
-75816

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT col1 * - CAST ( + col2 * + col2 AS INTEGER ) FROM tab1
----
-119808
-32490
-75816

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

query I rowsort
SELECT DISTINCT - + col0 * - 76 + col0 AS col0 FROM tab2 AS cor0
----
539
6006
6083

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

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

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

query I rowsort
SELECT - + cor0.col1 AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL 70 * ( col1 + 27 ) * col1 FROM tab0
----
680260
751660
841960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1323
SELECT + CAST( - col0 AS SIGNED ) * tab1.col0 AS col2 FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-1323
SELECT + CAST ( - col0 AS INTEGER ) * tab1.col0 AS col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL + - col2 + + col2 * + 76 FROM tab1 cor0
----
4050
4275
7200

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

query I rowsort
SELECT DISTINCT 85 * - col2 AS col0 FROM tab1
----
-4590
-4845
-8160

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

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

query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query I rowsort
SELECT ALL col1 - - 91 * 61 AS col0 FROM tab0 AS cor0
----
5637
5642
5648

onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT DISTINCT - col2 DIV col0 + + col2 col2 FROM tab0 cor0
----
1
32
82

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

query I rowsort
SELECT DISTINCT - col2 + - 0 FROM tab1 AS cor0
----
-54
-57
-96

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

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

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

query I rowsort
SELECT ALL - - col0 + + 41 * + cor0.col2 + + cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
-1695
-2384
2208

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

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

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

query I rowsort
SELECT ALL 36 * col1 + col1 AS col1 FROM tab1
----
370
481
962

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT DISTINCT col0 DIV col0 + col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT col0 / col0 + col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1088
-6723
0

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT - tab1.col0 DIV col0 + - col2 AS col2 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-1345
SELECT - tab1.col0 / col0 + - col2 AS col2 FROM tab1
----
-55
-58
-97

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

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

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

skipif mysql # not compatible
query I rowsort label-1347
SELECT CAST ( NULL AS REAL ) * - 27 * col1 - 79 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 29 + col0 FROM tab2
----
1789
572
906

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

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0, tab0 AS cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

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

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

query I rowsort
SELECT DISTINCT - 36 + + 36 AS col1 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1353
SELECT DISTINCT ( col0 ) DIV - 14 + + 70 AS col0 FROM tab1 AS cor0
----
65
66
70

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT ( col0 ) / - 14 + + 70 AS col0 FROM tab1 AS cor0
----
65
66
70

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

query I rowsort
SELECT ALL tab1.col0 + 52 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 7a53cb0eefbaba432aa29271caf3e719

query I rowsort
SELECT DISTINCT + tab2.col1 + col1 * - col0 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-1357
SELECT + tab0.col2 DIV + col0 + ( col2 ) AS col2 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-1357
SELECT + tab0.col2 / + col0 + ( col2 ) AS col2 FROM tab0
----
1
34
82

query I rowsort
SELECT + + 47 * - cor0.col0 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to acc9f0a2ba51823129d15be1945560b3

query I rowsort
SELECT DISTINCT - 47 + + tab1.col2 * col0 AS col1 FROM tab1
----
115
3601
7633

skipif mysql # not compatible
query I rowsort
SELECT - ( cor0.col1 ) + - CAST ( + col2 + col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
-152
-255
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1361
SELECT DISTINCT - + 12 * col1 * CAST( + col0 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
-16099
-2573
-55165

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT - + 12 * col1 * CAST ( + col0 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
-16099
-2573
-55165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - + col2 col0 FROM tab0 AS cor0
----
-164
-2
-66

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

query I rowsort
SELECT ALL - col0 + + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1365
SELECT 12 DIV col1 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1365
SELECT 12 / col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

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

query I rowsort
SELECT DISTINCT + ( 9 ) * col0 + col1 FROM tab1
----
53
586
733

query I rowsort
SELECT DISTINCT - col2 * + 28 - col1 AS col0 FROM tab1
----
-1538
-1606
-2701

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

query I rowsort
SELECT DISTINCT col2 * + 19 + - col2 AS col0 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT ALL + ( ( - cor0.col2 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 * 11 col1 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT ALL 93 + col2 FROM tab2 AS cor0
----
119
120
131

onlyif mysql # use DIV operator for integer division
query I rowsort label-1378
SELECT + 55 * - col2 + + ( col2 ) * cor0.col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-1697
-4427
-53

skipif mysql # not compatible
query I rowsort label-1378
SELECT + 55 * - col2 + + ( col2 ) * cor0.col1 / col0 AS col2 FROM tab0 AS cor0
----
-1697
-4427
-53

query I rowsort
SELECT + 72 * col2 + col0 * + 21 FROM tab2 cor0
----
2091
3510
4395

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

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

query I rowsort
SELECT + col2 * - col2 * + 5 - col1 AS col0 FROM tab0 AS cor0
----
-102
-33711
-5531

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

query I rowsort
SELECT + 6 + - cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to e56739f5e536b607d85c0750eb47ed11

query I rowsort
SELECT ( cor0.col2 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL 57 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

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

query I rowsort
SELECT + col1 * cor0.col0 + 39 AS col2 FROM tab0 cor0
----
2103
3434
8138

query I rowsort
SELECT ALL + col0 * 16 * - 99 AS col1 FROM tab0
----
-140976
-38016
-55440

query I rowsort
SELECT + col1 + + 60 AS col0 FROM tab1
----
70
73
86

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
7
78
79

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

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

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

query I rowsort
SELECT - cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col2 * - 60 + 84 AS col1 FROM tab0 cor0
----
-1896
-4836
24

query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 * cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
-233462
-460
-614387

onlyif mysql # use DIV operator for integer division
query I rowsort label-1396
SELECT ALL + + col1 + 4 - - col0 DIV - col1 FROM tab2 AS cor0
----
17
35
62

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + + col1 + 4 - - col0 / - col1 FROM tab2 AS cor0
----
17
35
62

query I rowsort
SELECT 6 + + ( - col1 ) FROM tab1 AS cor0
----
-20
-4
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col0 + + col0 * + col1 col1 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT + 59 + col0 FROM tab2 AS cor0
----
137
138
66

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

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab1 AS cor0
----
88

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

query I rowsort
SELECT ALL + col0 * + 67 FROM tab1 cor0
----
201
4288
5360

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

query I rowsort
SELECT 22 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT tab1.col0 * + 37 FROM tab1
----
111
2368
2960

skipif mysql # not compatible
query I rowsort
SELECT + tab2.col2 + CAST ( col0 * col1 + - col1 * - 18 AS REAL ) AS col0 FROM tab2
----
1687
5690
802

query I rowsort
SELECT - - 79 AS col1 FROM tab0 AS cor0
----
79
79
79

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

query I rowsort
SELECT col2 + + 86 FROM tab2
----
112
113
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 * + col0 col0 FROM tab1
----
-108
-2304
-2880

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

query I rowsort
SELECT ALL - + col1 * - 94 + + cor0.col1 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT DISTINCT + + 21 AS col1 FROM tab1 AS cor0
----
21

query I rowsort
SELECT + 6 + col1 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT ALL + + col2 + + col0 * + cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT ALL 18 * - col0 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT - 45 FROM tab0
----
-45
-45
-45

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

query I rowsort
SELECT ALL + 96 + - tab0.col2 FROM tab0, tab0 cor0
----
9 values hashing to 1216aa56968a0f1cacafe5a4d4fa2cea

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

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

query I rowsort
SELECT col1 * + col0 * cor0.col2 + col0 * + ( + col0 ) FROM tab0 AS cor0
----
4620
672039
68688

onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT - col0 * ( - cor0.col2 + - col1 ) DIV col1 FROM tab2 AS cor0
----
112
13
255

skipif mysql # not compatible
query I rowsort label-1423
SELECT - col0 * ( - cor0.col2 + - col1 ) / col1 FROM tab2 AS cor0
----
112
13
255

query I rowsort
SELECT DISTINCT col1 + + col0 * 60 AS col2 FROM tab1
----
206
3850
4813

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

query I rowsort
SELECT DISTINCT + 58 + - col0 * col0 * col2 FROM tab1
----
-233414
-428
-614342

query I rowsort
SELECT DISTINCT - 6 + - col0 AS col0 FROM tab2
----
-13
-84
-85

query I rowsort
SELECT ALL - + tab0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

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

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

query I rowsort
SELECT ( col0 ) + tab2.col2 * col2 + - col1 * 91 FROM tab2
----
-2085
-24
-4615

query I rowsort
SELECT ALL - 35 FROM tab2, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

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

skipif mysql # not compatible
query I rowsort label-1432
SELECT + col2 * col2 + - col0 / - col0 FROM tab1 AS cor0
----
2917
3250
9217

query I rowsort
SELECT DISTINCT - col2 * + 82 + - 31 FROM tab2 AS cor0
----
-2163
-2245
-3147

query I rowsort
SELECT ALL + col0 + + 44 * col2 AS col2 FROM tab1 AS cor0
----
2379
2572
4304

onlyif mysql # use DIV operator for integer division
query I rowsort label-1435
SELECT DISTINCT col0 * 71 DIV + col1 col2 FROM tab2 AS cor0
----
16
329
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT col0 * 71 / + col1 col2 FROM tab2 AS cor0
----
16
329
93

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

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 - col2 * + col2 + + col0 * col0 * col2 col2 FROM tab0 cor0
----
1224
17919
642798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1439
SELECT col0 * - col1 * + CAST( 41 * - col1 AS SIGNED ) + - col1 FROM tab1
----
262390
554307
83122

skipif mysql # not compatible
query I rowsort label-1439
SELECT col0 * - col1 * + CAST ( 41 * - col1 AS INTEGER ) + - col1 FROM tab1
----
262390
554307
83122

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 cor0, tab1 cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT + 44 * - col1 * col0 FROM tab1 AS cor0
----
-28160
-3432
-45760

onlyif mysql # use DIV operator for integer division
query I rowsort label-1442
SELECT DISTINCT cor0.col1 DIV - col0 + + 40 + col0 AS col0 FROM tab2 AS cor0
----
118
119
43

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT cor0.col1 / - col0 + + 40 + col0 AS col0 FROM tab2 AS cor0
----
118
119
43

query I rowsort
SELECT - col1 * + ( + 13 ) FROM tab2 cor0
----
-221
-403
-767

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

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

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

query I rowsort
SELECT col1 + - 70 AS col1 FROM tab2 AS cor0
----
-11
-39
-53

query I rowsort
SELECT ALL - col1 * + 49 * 79 FROM tab2 AS cor0
----
-120001
-228389
-65807

onlyif mysql # use DIV operator for integer division
query I rowsort label-1448
SELECT DISTINCT col2 + - 87 DIV - col0 FROM tab1 cor0
----
58
83
97

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT col2 + - 87 / - col0 FROM tab1 cor0
----
58
83
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1449
SELECT col2 + col0 DIV col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-1449
SELECT col2 + col0 / col2 FROM tab1
----
54
58
96

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

query I rowsort
SELECT ALL col2 * + col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col1 + col0 + - col1 FROM tab0
----
-148
-159
-93

query I rowsort
SELECT DISTINCT - col1 - + tab0.col1 FROM tab0
----
-172
-182
-194

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

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

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

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

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

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

query I rowsort
SELECT col0 - - col0 AS col0 FROM tab1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT + col2 * + tab1.col0 * - tab1.col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT tab1.col2 * + col1 * + col1 FROM tab1
----
16224
36504
5700

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1464
SELECT DISTINCT - col1 DIV - col2 FROM tab0 WHERE col0 NOT IN ( col1 )
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT - col1 / - col2 FROM tab0 WHERE col0 NOT IN ( col1 )
----
1
2
97

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

query I rowsort
SELECT - + 8 * col0 * cor0.col0 FROM tab2 AS cor0
----
-392
-48672
-49928

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

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

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

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

query I rowsort
SELECT 61 + cor0.col2 FROM tab0 AS cor0
----
143
62
94

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

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

query I rowsort
SELECT DISTINCT - col1 + - col2 * - col0 * col1 AS col2 FROM tab1 AS cor0
----
36470
4186
99827

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

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

query I rowsort
SELECT - 12 * + col1 FROM tab2 AS cor0
----
-204
-372
-708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * col0 col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + 71 + cor0.col0 * + cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
236
3783
7831

query I rowsort
SELECT ALL + 93 * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2208
-3220
-8188

query I rowsort
SELECT ( - 48 ) * - col2 FROM tab1
----
2592
2736
4608

query I rowsort
SELECT ALL + 24 - col2 * - col2 FROM tab1
----
2940
3273
9240

query I rowsort
SELECT DISTINCT + + 36 + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1284
1440
606

query I rowsort
SELECT - 66 * + col0 + - ( 83 * col1 ) AS col1 FROM tab0 cor0
----
-10361
-13427
-8722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 * cor0.col1 col0 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT - 32 + - cor0.col0 + 68 AS col2 FROM tab2 AS cor0
----
-42
-43
29

query I rowsort
SELECT ALL 7 * col1 AS col2 FROM tab0 AS cor0
----
602
637
679

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

query I rowsort
SELECT - ( + col0 ) * col0 + 33 AS col2 FROM tab0 AS cor0
----
-1192
-543
-7888

query I rowsort
SELECT ALL 99 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT - + col0 * ( + 36 + cor0.col1 ) FROM tab1 AS cor0
----
-186
-2944
-3920

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

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

query I rowsort
SELECT DISTINCT - + col2 + 76 * col2 AS col1 FROM tab1 AS cor0
----
4050
4275
7200

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

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

query I rowsort
SELECT col1 * + 59 FROM tab0 AS cor0
----
5074
5369
5723

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

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

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

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

query I rowsort
SELECT - 90 FROM tab2, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT DISTINCT col1 - - 18 AS col1 FROM tab0 cor0
----
104
109
115

onlyif mysql # use DIV operator for integer division
query I rowsort label-1498
SELECT ALL tab2.col2 DIV - col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL tab2.col2 / - col0 FROM tab2
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT ALL + ( col2 ) + + col2 DIV - 80 AS col1 FROM tab1 AS cor0
----
54
57
95

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL + ( col2 ) + + col2 / - 80 AS col1 FROM tab1 AS cor0
----
54
57
95

query I rowsort
SELECT ALL col2 + 1 AS col0 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT ALL - 44 FROM tab2, tab2 cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

query I rowsort
SELECT - col1 * + col1 + 66 AS col2 FROM tab2
----
-223
-3415
-895

query I rowsort
SELECT ALL - 49 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT ALL ( + col2 ) * + tab1.col1 + - 55 * + ( + col1 ) + col0 * ( + col1 ) FROM tab1
----
1573
52
660

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

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

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

query I rowsort
SELECT - - cor0.col0 + 75 AS col2 FROM tab1 AS cor0
----
139
155
78

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

query I rowsort
SELECT DISTINCT ( 61 ) + col0 FROM tab2 AS cor0
----
139
140
68

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

query I rowsort
SELECT DISTINCT + 52 * 78 * col2 FROM tab0 AS cor0
----
133848
332592
4056

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL + - col1 + 9 / col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-23

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

query I rowsort
SELECT 3 * - 50 FROM tab2, tab2 cor0
----
9 values hashing to e5af916819b090fbb4fa18997d625c07

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

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

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

query I rowsort
SELECT + + col2 * + 52 * + col1 FROM tab1 AS cor0
----
29640
64896
73008

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

query I rowsort
SELECT + cor0.col2 + 48 * 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9d78a59f77fefd51c8910a1aa3c297ee

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1527
SELECT col0 * col1 DIV col1 + 56 AS col0 FROM tab2
----
134
135
63

skipif mysql # not compatible
query I rowsort label-1527
SELECT col0 * col1 / col1 + 56 AS col0 FROM tab2
----
134
135
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col1 * col0 col2 FROM tab1 AS cor0
----
36480
4212
99840

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

query I rowsort
SELECT ALL - - 78 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT - col0 * col1 + 83 AS col0 FROM tab0 AS cor0
----
-1981
-3312
-8016

onlyif mysql # use DIV operator for integer division
query I rowsort label-1532
SELECT DISTINCT - col2 DIV + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT - col2 / + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

query I rowsort
SELECT 56 * tab2.col0 * col2 FROM tab2
----
10584
113568
168112

query I rowsort
SELECT + + col1 * col2 + 95 * - cor0.col2 FROM tab2 AS cor0
----
-1728
-2964
-936

query I rowsort
SELECT DISTINCT - ( col2 * - 32 ) AS col2 FROM tab1
----
1728
1824
3072

onlyif mysql # use DIV operator for integer division
query I rowsort label-1536
SELECT + col2 DIV col1 + col2 * col2 AS col2 FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-1536
SELECT + col2 / col1 + col2 * col2 AS col2 FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1537
SELECT 24 DIV cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1537
SELECT 24 / cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col2 * - ( + col1 ) + ( + col2 ) * col2 + 43 * cor0.col2 FROM tab1 cor0
----
14592
6270
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 66 ) + col1 col2 FROM tab2 cor0
----
-35
-49
-7

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

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

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

query I rowsort
SELECT - 61 * + col1 AS col2 FROM tab2
----
-1037
-1891
-3599

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

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

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT - col1 * - col0 - + col1 * - CAST ( - col0 * + col1 AS INTEGER ) FROM tab1 cor0
----
-12480
-1950
-5760

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

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

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

query I rowsort
SELECT - col2 * col0 * - 43 AS col2 FROM tab1 AS cor0
----
156864
330240
6966

query I rowsort
SELECT - col1 * + col1 * 60 + - cor0.col2 FROM tab2 AS cor0
----
-17378
-208886
-57687

query I rowsort
SELECT - ( + cor0.col1 ) * 91 + ( - cor0.col2 ) * + ( col1 ) + - col1 FROM tab0 AS cor0
----
-10750
-15834
-9021

query I rowsort
SELECT + col0 * 69 FROM tab1
----
207
4416
5520

query I rowsort
SELECT - col1 * 73 FROM tab0
----
-6278
-6643
-7081

query I rowsort
SELECT col1 * - 88 AS col1 FROM tab0
----
-7568
-8008
-8536

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1556
SELECT DISTINCT + 84 * - ( col1 ) + - CAST( col0 * - col2 AS SIGNED ) FROM tab1 AS cor0
----
-2022
2808
6588

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT + 84 * - ( col1 ) + - CAST ( col0 * - col2 AS INTEGER ) FROM tab1 AS cor0
----
-2022
2808
6588

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

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

query I rowsort
SELECT ALL 60 + + col1 AS col2 FROM tab2 AS cor0
----
119
77
91

query I rowsort
SELECT ALL + 79 FROM tab1, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1562
SELECT ALL - ( col2 ) * col0 DIV - 80 + tab2.col1 * col1 DIV ( tab2.col1 ) FROM tab2
----
33
54
84

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - ( col2 ) * col0 / - 80 + tab2.col1 * col1 / ( tab2.col1 ) FROM tab2
----
33
54
84

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

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

query I rowsort
SELECT ALL - 5 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1566
SELECT ALL CAST( + 96 AS SIGNED ) FROM tab1
----
96
96
96

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL CAST ( + 96 AS INTEGER ) FROM tab1
----
96
96
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1567
SELECT - col1 DIV ( + cor0.col0 * + col0 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT - col1 / ( + cor0.col0 * + col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 + col2 * col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT tab2.col2 * col0 - col1 AS col2 FROM tab2
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT CAST( col0 AS SIGNED ) + - col1 DIV + cor0.col1 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1570
SELECT CAST ( col0 AS INTEGER ) + - col1 / + cor0.col1 FROM tab1 cor0
----
2
63
79

query I rowsort
SELECT ALL tab2.col1 * - tab2.col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - 40 * - col2 AS col1 FROM tab1
----
2160
2280
3840

query I rowsort
SELECT DISTINCT + 78 FROM tab2, tab0, tab2 AS cor0
----
78

query I rowsort
SELECT ( col0 ) * col2 AS col2 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1575
SELECT - 43 DIV - col0 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1575
SELECT - 43 / - col0 AS col1 FROM tab0
----
0
1
1

query I rowsort
SELECT + 7 * col0 FROM tab1
----
21
448
560

query I rowsort
SELECT + 90 * col2 AS col2 FROM tab1 AS cor0
----
4860
5130
8640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * - ( 71 ) col1 FROM tab1
----
-210
-4480
-5600

query I rowsort
SELECT col0 * + col2 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT + + col1 + - 37 FROM tab2 AS cor0
----
-20
-6
22

query I rowsort
SELECT ALL + 77 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT col1 + + ( tab2.col2 ) FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT - cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + + col1 + + 99 * col0 FROM tab0 AS cor0
----
2462
3562
8902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1585
SELECT ALL col0 / CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL col0 / CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - 14 + - 13 FROM tab0 AS cor0
----
-1259
-349
-503

query I rowsort
SELECT DISTINCT + cor0.col1 * 20 FROM tab1 AS cor0
----
200
260
520

query I rowsort
SELECT ALL - - col1 * - cor0.col2 * - 94 + - col2 FROM tab0 AS cor0
----
266739
701346
9117

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1589
SELECT + col2 * + CAST( NULL AS SIGNED ) + cor0.col1 * + col2 / 43 - col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1589
SELECT + col2 * + CAST ( NULL AS INTEGER ) + cor0.col1 * + col2 / 43 - col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1590
SELECT - col1 / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT - col1 / CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT cor0.col1 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1591
SELECT cor0.col1 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 + col0 * - col2 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT DISTINCT tab1.col1 DIV - 97 + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT tab1.col1 / - 97 + col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1594
SELECT + tab2.col2 DIV - col0 AS col2 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT + tab2.col2 / - col0 AS col2 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL col2 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - col2 + 93 FROM tab0 AS cor0
----
11
60
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1598
SELECT + col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT + col1 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col1 * - col0 * - col1 AS col0 FROM tab0 cor0
----
-177480
-329280
-736920

query I rowsort
SELECT DISTINCT col0 * 13 * - col1 + 67 FROM tab2 AS cor0
----
-17392
-2754
-59759

query I rowsort
SELECT ALL + ( col1 ) + - col0 * + 13 FROM tab0 AS cor0
----
-1066
-226
-358

query I rowsort
SELECT ALL + col1 * col2 - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + ( - 38 ) + + col0 * col2 FROM tab1 AS cor0
----
124
3610
7642

query I rowsort
SELECT DISTINCT cor0.col2 * 60 * + cor0.col2 AS col1 FROM tab2 cor0
----
40560
43740
86640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1605
SELECT - CAST( - col0 AS SIGNED ) - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1605
SELECT - CAST ( - col0 AS INTEGER ) - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT col0 + 88 AS col0 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT DISTINCT - - ( + col2 ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col0 * + 55 + col1 * + cor0.col2 FROM tab1 AS cor0
----
1569
4090
5648

query I rowsort
SELECT - 40 * - col1 + - col2 FROM tab0 AS cor0
----
3407
3558
3879

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1611
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( col2 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( col2 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - col1 + - col2 * + col0 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT - + col1 * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL + col2 - + col2 * - col0 * + col0 FROM tab2
----
1350
158210
237196

query I rowsort
SELECT ALL + col2 * col2 - - ( col0 ) FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL + col1 + - col1 * + col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - 69 * + cor0.col0 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT + ( 74 ) AS col2 FROM tab2 cor0
----
74
74
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1619
SELECT ALL CAST( 32 AS SIGNED ) * col0 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL CAST ( 32 AS INTEGER ) * col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1620
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 51 col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 51 col1 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1621
SELECT DISTINCT + 71 DIV 21 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT + 71 / 21 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1623
SELECT + col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1623
SELECT + col2 / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - ( - col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - 32 * col1 + - col2 FROM tab0 AS cor0
----
-2785
-2994
-3105

onlyif mysql # use DIV operator for integer division
query I rowsort label-1626
SELECT 24 + col2 DIV + ( - col0 ) FROM tab0 AS cor0
----
23
24
24

skipif mysql # not compatible
query I rowsort label-1626
SELECT 24 + col2 / + ( - col0 ) FROM tab0 AS cor0
----
23
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col1 FROM tab2 AS cor0
----
88

query I rowsort
SELECT DISTINCT - col2 + + col1 AS col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 + + col1 * - col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - col1 * col2 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL col0 * - col1 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + 92 - + cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0e7ab9c0879b7e39e09b887dc4e80baa

query I rowsort
SELECT ALL + cor0.col0 * + 7 FROM tab1 AS cor0
----
21
448
560

query I rowsort
SELECT DISTINCT - col2 * - ( - 43 ) AS col0 FROM tab0 AS cor0
----
-1419
-3526
-43

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d

query I rowsort
SELECT ALL 14 * - col0 AS col2 FROM tab0
----
-1246
-336
-490

query I rowsort
SELECT - + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + 58 * - col1 + + col0 * 42 AS col0 FROM tab0 AS cor0
----
-1540
-3980
-4156

query I rowsort
SELECT DISTINCT cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1642
SELECT DISTINCT CAST( - 87 AS SIGNED ) col1 FROM tab2 AS cor0
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT CAST ( - 87 AS INTEGER ) col1 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT + - 33 + col2 * cor0.col1 AS col2 FROM tab1 cor0
----
1215
1371
537

query I rowsort
SELECT DISTINCT - + 71 + col2 * cor0.col0 AS col0 FROM tab2 cor0
----
118
1957
2931

query I rowsort
SELECT DISTINCT - ( + 74 ) AS col0 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT - col2 * - 11 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT ALL + - ( - ( col2 ) ) FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * col0 col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT col0 + 21 AS col2 FROM tab1 cor0
----
101
24
85

query I rowsort
SELECT ALL + + col0 + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 75 col2 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT col0 + + 58 AS col0 FROM tab2 AS cor0
----
136
137
65

query I rowsort
SELECT ALL + col1 * 75 FROM tab1 AS cor0
----
1950
750
975

query I rowsort
SELECT - + col1 + + cor0.col2 * + col1 * 76 FROM tab0 cor0
----
215602
567021
7275

query I rowsort
SELECT + ( ( - col1 ) ) + 13 FROM tab2 AS cor0
----
-18
-4
-46

query I rowsort
SELECT DISTINCT ( col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col2 * - 73 AS col1 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT + 14 * - col1 * ( + 95 * - col0 ) AS col1 FROM tab2 AS cor0
----
1786190
288610
6120660

query I rowsort
SELECT + cor0.col1 * + cor0.col2 - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL - col1 * 44 + cor0.col2 * - col2 - col1 AS col0 FROM tab1 AS cor0
----
-3699
-4086
-9801

query I rowsort
SELECT - - col0 + + ( col1 ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT 73 + + col0 AS col1 FROM tab0
----
108
162
97

query I rowsort
SELECT - tab0.col2 * - 68 FROM tab0, tab1 AS cor0
----
9 values hashing to 74746ae6b2ca3072fd52364a79bb12cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT 67 * col0 DIV + 18 AS col1 FROM tab0
----
130
331
89

skipif mysql # not compatible
query I rowsort label-1664
SELECT 67 * col0 / + 18 AS col1 FROM tab0
----
130
331
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1665
SELECT col1 * CAST( col1 AS SIGNED ) FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-1665
SELECT col1 * CAST ( col1 AS INTEGER ) FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1666
SELECT DISTINCT col1 * ( col0 * col1 ) + CAST( - ( col0 ) AS SIGNED ) + col1 FROM tab2
----
22769
271499
6751

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT col1 * ( col0 * col1 ) + CAST ( - ( col0 ) AS INTEGER ) + col1 FROM tab2
----
22769
271499
6751

query I rowsort
SELECT DISTINCT + tab2.col2 + 95 AS col1 FROM tab2
----
121
122
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col1 + - 2 FROM tab0 AS cor0
----
84
89
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1670
SELECT col1 * + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-1670
SELECT col1 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT col0 * 23 AS col1 FROM tab0
----
2047
552
805

onlyif mysql # use DIV operator for integer division
query I rowsort label-1672
SELECT DISTINCT col2 * + col2 DIV - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT col2 * + col2 / - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL 93 + tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e1a2b6eee187a73c43be247e0c829c99

query I rowsort
SELECT - + ( + col2 ) * col2 - - 27 AS col0 FROM tab1 AS cor0
----
-2889
-3222
-9189

query I rowsort
SELECT 21 - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5efacd2b73414c7d0520f181198ecfee

query I rowsort
SELECT - col1 * + cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - 21 FROM tab1, tab2 cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1678
SELECT col2 + ( col1 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT col2 + ( col1 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT - tab0.col1 * col2 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + tab0.col0 * col0 * 22 FROM tab0
----
12672
174262
26950

onlyif mysql # use DIV operator for integer division
query I rowsort label-1682
SELECT ALL 8 DIV col1 - 82 * col2 col1 FROM tab2 AS cor0
----
-2132
-2214
-3116

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL 8 / col1 - 82 * col2 col1 FROM tab2 AS cor0
----
-2132
-2214
-3116

query I rowsort
SELECT - - cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col2 * 19 * - 53 - + col1 * cor0.col0 FROM tab0 AS cor0
----
-35295
-4402
-90673

query I rowsort
SELECT - - cor0.col0 * - 6 - + col1 * col2 FROM tab2 AS cor0
----
-1120
-2002
-879

query I rowsort
SELECT + + col0 * - col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col2 * 64 + cor0.col0 FROM tab2 cor0
----
1735
1742
2511

query I rowsort
SELECT col2 * + col0 * + 76 + + col1 AS col0 FROM tab2 AS cor0
----
14395
154187
228169

query I rowsort
SELECT ALL col2 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + - col0 * - 96 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT - cor0.col2 * + ( + 23 ) AS col0 FROM tab2 AS cor0
----
-598
-621
-874

query I rowsort
SELECT - - col2 + ( col2 ) AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col2 * col1 + - col1 * + cor0.col0 + + col1 AS col1 FROM tab1 AS cor0
----
-60
1352
221

query I rowsort
SELECT 4 + + 38 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1695
SELECT + col1 DIV col0 + - col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-1695
SELECT + col1 / col0 + - col0 FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT + + 22 + + col0 + - cor0.col1 AS col0 FROM tab2 cor0
----
-2
41
84

query I rowsort
SELECT - col1 * cor0.col1 + col2 + + col2 FROM tab1 AS cor0
----
-568
14
23

query I rowsort
SELECT - col1 + + col2 * col1 * cor0.col1 + + col0 FROM tab0 AS cor0
----
244006
679040
9347

onlyif mysql # use DIV operator for integer division
query I rowsort label-1699
SELECT + col2 * col2 + cor0.col0 DIV + ( - col1 ) - + col1 FROM tab1 AS cor0
----
2890
3233
9197

skipif mysql # not compatible
query I rowsort label-1699
SELECT + col2 * col2 + cor0.col0 / + ( - col1 ) - + col1 FROM tab1 AS cor0
----
2890
3233
9197

query I rowsort
SELECT DISTINCT - col0 + col0 * + col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL + 60 AS col0 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT + - col0 + - col2 + col1 AS col2 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT cor0.col0 + + col2 + ( col1 + - col2 ) AS col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1704
SELECT DISTINCT - cor0.col1 * - CAST( - col1 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - cor0.col1 * - CAST ( - col1 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT ALL col1 * - col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT DISTINCT + col0 DIV + col1 AS col2 FROM tab1 cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + col0 / + col1 AS col2 FROM tab1 cor0
----
0
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1707
SELECT + + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1707
SELECT + + col0 / + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - cor0.col2 * + 47 FROM tab1 AS cor0
----
-2538
-2679
-4512

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1709
SELECT DISTINCT - - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT - - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 51 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL 71 - + col0 FROM tab1
----
-9
68
7

query I rowsort
SELECT - tab1.col1 - col0 AS col1 FROM tab1
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1713
SELECT ALL - + ( col1 ) * + col0 * CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL - + ( col1 ) * + col0 * CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1714
SELECT + + CAST( 35 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
1225
3115
840

skipif mysql # not compatible
query I rowsort label-1714
SELECT + + CAST ( 35 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
1225
3115
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT - 84 DIV - cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bbb27326c926bed56f07f4b0660b3cff

skipif mysql # not compatible
query I rowsort label-1715
SELECT - 84 / - cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bbb27326c926bed56f07f4b0660b3cff

onlyif mysql # use DIV operator for integer division
query I rowsort label-1716
SELECT ALL - col2 DIV - ( tab1.col1 ) FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - col2 / - ( tab1.col1 ) FROM tab1
----
2
5
7

query I rowsort
SELECT - tab2.col2 FROM tab2, tab0, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT - ( 18 ) FROM tab1
----
-18
-18
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
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-1719
SELECT - ( + col1 ) / - col0 col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT + ( + cor0.col1 ) * col0 AS col2 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1721
SELECT - + CAST( ( col1 ) AS SIGNED ) + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312

skipif mysql # not compatible
query I rowsort label-1721
SELECT - + CAST ( ( col1 ) AS INTEGER ) + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1722
SELECT cor0.col2 DIV - 63 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1722
SELECT cor0.col2 / - 63 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 45 FROM tab1, tab2, tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col0 FROM tab1
----
4
4
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT DISTINCT + col1 * col1 - + ( + col1 ) DIV col0 AS col1 FROM tab0 cor0
----
7393
8280
9407

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT + col1 * col1 - + ( + col1 ) / col0 AS col1 FROM tab0 cor0
----
7393
8280
9407

onlyif mysql # use DIV operator for integer division
query I rowsort label-1726
SELECT ALL 97 DIV col2 + col2 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
1124
6807
99

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL 97 / col2 + col2 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
1124
6807
99

query I rowsort
SELECT ALL + 64 AS col0 FROM tab2
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 38 + tab0.col1 ) col1 FROM tab0
----
124
129
135

query I rowsort
SELECT DISTINCT + col0 + col1 - col0 * + 9 FROM tab2 AS cor0
----
-25
-565
-615

onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT ALL + col0 + col2 DIV - 18 FROM tab1 AS cor0
----
0
61
75

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL + col0 + col2 / - 18 FROM tab1 AS cor0
----
0
61
75

query I rowsort
SELECT DISTINCT - 41 - - col2 AS col2 FROM tab0 cor0
----
-40
-8
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1732
SELECT - col0 + + col1 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT - col0 + + col1 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 * - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL + ( col1 ) + 86 AS col2 FROM tab0 AS cor0
----
172
177
183

query I rowsort
SELECT + + col1 + - col2 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col2 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL + - col0 * + col1 + 67 FROM tab2 AS cor0
----
-1276
-150
-4535

query I rowsort
SELECT DISTINCT - 56 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
-1762
-4501
41

query I rowsort
SELECT ALL + ( col2 ) * - ( - col2 ) FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL 96 + col1 AS col2 FROM tab0 AS cor0
----
182
187
193

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + col1 * col1 FROM tab1 AS cor0
----
1417
2080
670

query I rowsort
SELECT col0 + - 88 AS col2 FROM tab1 AS cor0
----
-24
-8
-85

query I rowsort
SELECT - col2 * + ( col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + cor0.col0 + + 47 + - 16 AS col1 FROM tab0 AS cor0
----
120
55
66

query I rowsort
SELECT - col0 + col0 * 19 FROM tab2 cor0
----
126
1404
1422

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 32 col1 FROM tab0 cor0
----
-31
1
50

query I rowsort
SELECT + col2 + - 20 AS col0 FROM tab2 cor0
----
18
6
7

query I rowsort
SELECT ALL + ( cor0.col2 ) + - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + + 38 * + col1 * - col2 FROM tab2 AS cor0
----
-24548
-31806
-58292

query I rowsort
SELECT DISTINCT 55 + + 22 * + col0 AS col0 FROM tab0 AS cor0
----
2013
583
825

query I rowsort
SELECT ALL col0 + 63 * - col1 * - col1 FROM tab0 AS cor0
----
465972
521792
592802

onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT ALL col0 * col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL col0 * col1 / - col0 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - col0 * col2 * col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT + + col2 * 3 + - cor0.col1 * - 39 AS col1 FROM tab1 AS cor0
----
1176
561
795

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1755
SELECT - CAST( + ( cor0.col1 ) AS SIGNED ) + col0 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-1755
SELECT - CAST ( + ( cor0.col1 ) AS INTEGER ) + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT tab0.col0 * col1 + - 6 * + col2 FROM tab0
----
1866
3389
7607

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab1, tab0 AS cor0
----
58

query I rowsort
SELECT col1 * - 92 FROM tab0
----
-7912
-8372
-8924

query I rowsort
SELECT DISTINCT col1 + ( + col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT col1 + - 37 + + col1 * - col0 AS col1 FROM tab0
----
-2015
-3335
-8045

query I rowsort
SELECT - col1 * ( col1 + col1 * col2 ) AS col2 FROM tab1
----
-16393
-37180
-5800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT ALL col1 + - 58 DIV - 50 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL col1 + - 58 / - 50 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1763
SELECT col0 + + CAST( col0 * col0 AS SIGNED ) FROM tab1 AS cor0
----
12
4160
6480

skipif mysql # not compatible
query I rowsort label-1763
SELECT col0 + + CAST ( col0 * col0 AS INTEGER ) FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT col2 * col1 + - cor0.col1 * + col0 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - cor0.col1 * - 71 + - col0 FROM tab0 AS cor0
----
6082
6372
6852

query I rowsort
SELECT ALL 57 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL 20 + col0 FROM tab2 cor0
----
27
98
99

query I rowsort
SELECT ALL + cor0.col2 + col1 + + col1 * + 79 FROM tab0 AS cor0
----
6913
7362
7761

onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT + 46 * cor0.col1 + + col1 DIV - ( col2 + col1 ) col0 FROM tab1 AS cor0
----
1196
460
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1771
SELECT + 46 * cor0.col1 + + col1 / - ( col2 + col1 ) col0 FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT DISTINCT + col1 * - ( col1 + + col2 ) FROM tab1 AS cor0
----
-1417
-2080
-670

query I rowsort
SELECT + col1 * + 59 AS col1 FROM tab1 AS cor0
----
1534
590
767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1774
SELECT - CAST( NULL AS SIGNED ) * col1 / + cor0.col0 + 73 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT - CAST ( NULL AS INTEGER ) * col1 / + cor0.col0 + 73 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT col0 * + col1 + + col1 DIV ( cor0.col1 ) FROM tab1 cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-1775
SELECT col0 * + col1 + + col1 / ( cor0.col1 ) FROM tab1 cor0
----
1041
641
79

query I rowsort
SELECT + - col0 + col2 * col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL - - 68 * - col1 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT DISTINCT - col2 + - col1 * + 81 FROM tab0 AS cor0
----
-6999
-7453
-7858

query I rowsort
SELECT 83 * - col0 FROM tab0 cor0
----
-1992
-2905
-7387

query I rowsort
SELECT + 97 + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9bd2e01a9ccc346938157215dcfbcbe9

query I rowsort
SELECT ALL + col0 * + col0 + 40 FROM tab0 cor0
----
1265
616
7961

query I rowsort
SELECT DISTINCT + - col1 + col0 - col1 FROM tab0 AS cor0
----
-148
-159
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1783
SELECT - ( - col2 ) * CAST( col0 AS SIGNED ) FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1783
SELECT - ( - col2 ) * CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 * col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + col1 + - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - + col1 * + col2 * - 72 FROM tab0 AS cor0
----
204336
537264
6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1789
SELECT DISTINCT + - col1 - + col2 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + - col1 - + col2 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 + col2 col2 FROM tab0 AS cor0
----
-4
-53
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1791
SELECT + col1 - + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1791
SELECT + col1 - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * ( - ( + col2 ) ) - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT - col0 + - col2 + 29 FROM tab0
----
-142
-28
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1794
SELECT + + col2 DIV + ( - col0 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT + + col2 / + ( - col0 ) FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col2 * + cor0.col1 - + 92 AS col0 FROM tab1 cor0
----
-1340
-1496
-662

query I rowsort
SELECT - cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col0 * ( + cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT col2 * + col0 * col2 FROM tab2 cor0
----
114076
5103
52728

skipif mysql # not compatible
query I rowsort
SELECT col0 * - CAST ( 66 AS REAL ) FROM tab2 AS cor0
----
-462
-5148
-5214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + cor0.col1 * + col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL 42 AS col2 FROM tab2 cor0
----
42
42
42

query I rowsort
SELECT + ( + col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col2 * col2 - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT - col2 * - cor0.col2 + 70 AS col0 FROM tab2 AS cor0
----
1514
746
799

query I rowsort
SELECT ( - ( col2 ) + 98 ) * + 76 FROM tab1
----
152
3116
3344

onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT ALL - 97 DIV - col2 AS col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - 97 / - col2 AS col2 FROM tab0
----
1
2
97

query I rowsort
SELECT - cor0.col1 * 90 FROM tab1, tab1 AS cor0
----
9 values hashing to 59f0d554f46aced322dfaa2485535d42

query I rowsort
SELECT 4 * + col1 AS col1 FROM tab1 cor0
----
104
40
52

query I rowsort
SELECT tab2.col1 + - col1 * col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT + col2 FROM tab1 WHERE col0 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1813
SELECT ALL col1 * + col0 DIV col0 - tab0.col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL col1 * + col0 / col0 - tab0.col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 + + col2 + + col1 FROM tab0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT DISTINCT + tab2.col0 DIV col1 + col0 AS col1 FROM tab2
----
7
79
83

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + tab2.col0 / col1 + col0 AS col1 FROM tab2
----
7
79
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1816
SELECT DISTINCT - col0 DIV col1 - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT - col0 / col1 - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT col1 + tab1.col0 + - tab1.col2 * col1 * + col0 AS col2 FROM tab1
----
-36406
-4183
-99747

query I rowsort
SELECT + col1 + + col1 FROM tab0 WHERE NOT - col2 IN ( col0 )
----
172
182
194

query I rowsort
SELECT ALL + col1 - - col0 FROM tab1 WHERE - col2 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT ALL + tab0.col2 DIV - col0 - + col2 * + col1 FROM tab0
----
-2839
-7462
-97

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL + tab0.col2 / - col0 - + col2 * + col1 FROM tab0
----
-2839
-7462
-97

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0 WHERE + col1 <> col1
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL IN ( - col0 + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + tab2.col1 ) IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( col1 * + col2 / + col1 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL <= col2 * - col2
----

query I rowsort
SELECT ALL + col1 + + tab2.col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL col2 * col2 * col2 + tab0.col2 AS col2 FROM tab0
----
2
35970
551450

query I rowsort
SELECT ALL col0 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT cor0.col2 * + col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1831
SELECT - ( col2 ) + + col2 DIV - col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-1831
SELECT - ( col2 ) + + col2 / - col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT ALL + - col2 + col2 * - ( - 69 ) AS col0 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT cor0.col1 + col0 + col0 AS col0 FROM tab1 AS cor0
----
138
173
32

query III rowsort
SELECT * FROM tab1 WHERE col0 >= ( NULL )
----

query I rowsort
SELECT + - 77 * + col1 + + col0 FROM tab0 cor0
----
-6598
-6918
-7434

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1836
SELECT DISTINCT col1 + - col0 * - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT col1 + - col0 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + col1 * col1 + 65 - + col1 AS col0 FROM tab2 AS cor0
----
337
3487
995

query I rowsort
SELECT ALL + ( col0 ) + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT cor0.col2 - - col2 * cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + + 56 AS col2 FROM tab0 cor0
----
56
56
56

query I rowsort
SELECT + col0 * col2 + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT col0 + - col1 * + col1 AS col2 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT ALL col2 - col1 AS col2 FROM tab2
----
-33
-4
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 / - col2 + + col2 * col0 * + col0 > - col1 * + col1 + - col2 * - col1
----
64
10
57
80
13
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT ALL col0 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL col0 / col1 AS col0 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT + col1 * col2 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - col1 - cor0.col1 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT col0 - tab2.col0 * col2 * - col0 AS col1 FROM tab2
----
1330
158262
237237

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * + col1 NOT BETWEEN col2 * + col0 AND + col2 - - tab2.col2 * - tab2.col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 + - tab0.col0 ) <> - tab0.col1 + + col1 + - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT col2 DIV - col1 + - col1 DIV - col1 + col2 AS col2 FROM tab2
----
27
28
37

skipif mysql # not compatible
query I rowsort label-1851
SELECT col2 / - col1 + - col1 / - col1 + col2 AS col2 FROM tab2
----
27
28
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 * col0 col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - col0 * - col1 * + col1 AS col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + col0 * - col0 + col2 * - col2 + col2 * - col2 AS col1 FROM tab0
----
-1227
-21369
-2754

query I rowsort
SELECT ALL - col2 + + col0 - col1 AS col0 FROM tab2 WHERE NULL BETWEEN col0 + + col2 AND NULL
----

query I rowsort
SELECT col2 - - tab0.col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + col0 + col1 AS col2 FROM tab1 WHERE col1 > + col1 + col1 + + col1 / col2
----

query I rowsort
SELECT - + col1 + cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - + ( 54 ) FROM tab2 AS cor0
----
-54

query I rowsort
SELECT DISTINCT - - 93 * 14 + - col0 AS col2 FROM tab1 AS cor0
----
1222
1238
1299

query I rowsort
SELECT DISTINCT + tab0.col2 + col1 * col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL - + 46 * + col0 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1865
SELECT DISTINCT col1 DIV 31 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT col1 / 31 FROM tab2
----
0
1

query I rowsort
SELECT tab2.col0 * - cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 99e52647357b835698a6730896ff820d

query I rowsort
SELECT - 3 FROM tab2, tab2 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT + + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + col2 col1 FROM tab1
----
110
113
152

query I rowsort
SELECT ALL 37 AS col0 FROM tab0
----
37
37
37

query I rowsort
SELECT ALL + col2 * col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - 6 + - col0 col0 FROM tab2 AS cor0
----
149
155
78

query I rowsort
SELECT ALL + - col0 + - ( col2 ) FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1875
SELECT + col1 + col0 DIV - 95 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1875
SELECT + col1 + col0 / - 95 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + col2 - + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col1 + - col1 * + ( ( + col2 ) ) AS col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT ALL + 52 + col1 * - col1 + + col2 * col2 AS col1 FROM tab2
----
-180
-2753
1207

onlyif mysql # use DIV operator for integer division
query I rowsort label-1879
SELECT ALL - tab2.col1 DIV ( 80 ) + + tab2.col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL - tab2.col1 / ( 80 ) + + tab2.col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - cor0.col0 * + ( + col0 ) AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col0 * - ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 + 80 FROM tab2 AS cor0
----
21
49
63

query I rowsort
SELECT ALL + col0 * col2 + - col1 * + col1 AS col0 FROM tab2 cor0
----
-1453
-772
2713

query I rowsort
SELECT col1 * 79 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
2000
733
931

query I rowsort
SELECT ALL - col2 * ( cor0.col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - col1 * + col0 + 70 FROM tab1 AS cor0
----
-570
-8
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 * + col0 + col0 * cor0.col2 col0 FROM tab2 AS cor0
----
121680
54036
6048

query I rowsort
SELECT DISTINCT - cor0.col0 * - ( 74 ) AS col1 FROM tab2 cor0
----
518
5772
5846

query I rowsort
SELECT - col0 + 41 AS col1 FROM tab1 AS cor0
----
-23
-39
38

query I rowsort
SELECT + col2 * 66 AS col0 FROM tab1 cor0
----
3564
3762
6336

query I rowsort
SELECT col1 + + 79 * - col2 FROM tab2 AS cor0
----
-1995
-2102
-2985

query I rowsort
SELECT - 48 * col0 + 22 FROM tab2 AS cor0
----
-314
-3722
-3770

onlyif mysql # use DIV operator for integer division
query I rowsort label-1894
SELECT + ( + 14 ) DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1894
SELECT + ( + 14 ) / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + + 37 * - col1 - - col0 FROM tab1 AS cor0
----
-306
-401
-959

query I rowsort
SELECT - + col0 - + col1 * col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT tab1.col1 * - tab1.col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + col0 + + col1 + col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + + 93 * cor0.col0 + 22 AS col0 FROM tab1 AS cor0
----
301
5974
7462

query I rowsort
SELECT + cor0.col1 + - col0 - - 78 FROM tab1 AS cor0
----
101
11
24

query I rowsort
SELECT DISTINCT + col0 * + col2 * - ( col0 * - col2 + ( + ( + col2 ) ) ) FROM tab2 AS cor0
----
30618
4060056
8897928

onlyif mysql # use DIV operator for integer division
query I rowsort label-1902
SELECT - 47 DIV 25 FROM tab1, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-1902
SELECT - 47 / 25 FROM tab1, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + col1 * 95 + + col0 FROM tab0 AS cor0
----
8194
8734
9250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 - col0 col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col2 * - ( + col0 * cor0.col2 ) + col0 * + col0 FROM tab2 AS cor0
----
120317
5152
58812

query I rowsort
SELECT ALL + col1 * col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL - + col2 - + ( - col2 + cor0.col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - cor0.col1 * - col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL col2 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + ( col1 ) * - col0 + 2 AS col1 FROM tab0 AS cor0
----
-2062
-3393
-8097

query I rowsort
SELECT ALL - ( + col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - + col0 + - col2 * col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT 52 + - cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ac0be5c09155cd211c4d961d06e284ab

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - 80 col0 FROM tab0 AS cor0
----
166
171
177

query I rowsort
SELECT ALL - col2 * col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col0 * - col0 + + col2 * 28 AS col1 FROM tab1 AS cor0
----
-2500
-3712
1503

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1917
SELECT - CAST( + col1 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-1917
SELECT - CAST ( + col1 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL + 39 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT + col1 * 92 AS col1 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT + 98 * col1 AS col0 FROM tab1 AS cor0
----
1274
2548
980

query I rowsort
SELECT col2 + + 92 AS col1 FROM tab2 cor0
----
118
119
130

query I rowsort
SELECT - col2 * + col0 * col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + tab2.col2 * + ( - col1 ) * - tab2.col2 + ( - col1 + - col0 ) * col0 AS col2 FROM tab2
----
16964
22333
29198

query I rowsort
SELECT - - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT 37 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT + col1 + + 59 FROM tab0 cor0
----
145
150
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * 64 col0 FROM tab2
----
1664
1728
2432

query I rowsort
SELECT 10 + col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
199
2038
3012

query I rowsort
SELECT - 68 * 95 AS col0 FROM tab0 AS cor0
----
-6460
-6460
-6460

query I rowsort
SELECT + 28 * col2 FROM tab1 cor0
----
1512
1596
2688

query I rowsort
SELECT DISTINCT 70 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + col0 col1 FROM tab1
----
132
148
71

query I rowsort
SELECT ALL - col0 * 86 + ( col1 ) AS col0 FROM tab1 AS cor0
----
-232
-5494
-6867

query I rowsort
SELECT ALL - - col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1936
SELECT col1 DIV col1 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1936
SELECT col1 / col1 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 + - col0 FROM tab2 cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - col0 * + 21 AS col2 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT ALL ( col1 ) * - tab2.col1 + 1 * 27 FROM tab2
----
-262
-3454
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1941
SELECT ALL + CAST( NULL AS DECIMAL ) + + tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + CAST ( NULL AS REAL ) + + tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * col0 + col0 AS col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT col0 * col2 - + col1 * col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL + col0 + col0 * col2 FROM tab0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + col0 * ( col2 ) + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - cor0.col2 - col2 * + col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT + + col1 + + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 - + col2 * 71 FROM tab1 AS cor0
----
-3912
-4687
-7856

query I rowsort
SELECT ALL col2 + - col0 + - col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT + col1 * - cor0.col0 + CAST( NULL AS SIGNED ) * - 29 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT + col1 * - cor0.col0 + CAST ( NULL AS INTEGER ) * - 29 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col1 * - ( col2 ) FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ( + col2 ) + + 79 + + col2 FROM tab0 cor0
----
145
243
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + cor0.col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + - col2 + col0 * - 25 FROM tab0 AS cor0
----
-2307
-633
-876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 74 + - cor0.col1 col2 FROM tab1 AS cor0
----
-100
-84
-87

query I rowsort
SELECT - - 84 AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT col2 + - col1 + + 60 * + 83 FROM tab2 AS cor0
----
4947
4976
5001

query I rowsort
SELECT ALL + 59 + - col2 * ( col1 ) FROM tab2 AS cor0
----
-1475
-587
-778

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL 21 * col2 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT ALL - + col1 * cor0.col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - - ( col1 ) - ( col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 24 FROM tab2, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT + - 41 * - col2 + col2 * - col1 FROM tab2 AS cor0
----
-468
270
912

query I rowsort
SELECT DISTINCT 51 + col0 FROM tab1 AS cor0
----
115
131
54

query I rowsort
SELECT 82 * - cor0.col1 + cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
-2493
1246
4847

query I rowsort
SELECT + + col1 + + 5 FROM tab2 AS cor0
----
22
36
64

query I rowsort
SELECT col0 * + 9 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT ALL col2 + - 1 AS col2 FROM tab2 AS cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col2 - col0 col2 FROM tab0 cor0
----
-132
-2862
-7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1975
SELECT col0 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT col0 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + col0 * 4 * + col0 AS col0 FROM tab1 AS cor0
----
10
16374
25587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 75 + - col0 AS col2 FROM tab1
----
-5
11
72

query I rowsort
SELECT - col1 * col2 - - 81 FROM tab0
----
-16
-2757
-7381

query I rowsort
SELECT ALL 85 + - col0 AS col1 FROM tab0
----
-4
50
61

query I rowsort
SELECT ( + tab0.col0 ) + + ( + col2 ) AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT col0 * + col0 * col2 + 84 * + col2 AS col0 FROM tab0
----
1309
21780
656410

query I rowsort
SELECT ALL col0 * col1 * + col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
3430
664207
68136

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT DISTINCT 2 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT 2 / col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - col2 * - cor0.col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT 3 * cor0.col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT ALL + ( col0 ) + col1 * 32 AS col1 FROM tab0 AS cor0
----
2776
3001
3139

query I rowsort
SELECT ALL 61 * cor0.col2 FROM tab2 cor0
----
1586
1647
2318

query I rowsort
SELECT DISTINCT + - 73 + - 72 AS col2 FROM tab1 AS cor0
----
-145

query I rowsort
SELECT - 57 - - col0 * col2 AS col1 FROM tab1 AS cor0
----
105
3591
7623

query I rowsort
SELECT DISTINCT + col0 * - 2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + + 35 * col1 + - col0 + + col0 FROM tab0 AS cor0
----
3010
3185
3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - col1 * 93 * - col0 + + col0 FROM tab2
----
124978
20188
428064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - ( + col2 ) ) * ( col2 ) col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + - 48 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT 19 DIV 80 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT 19 / 80 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 81 AS col1 FROM tab0
----
-81
-81
-81

query I rowsort
SELECT - ( tab2.col2 ) + - col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL + ( col0 * - col1 ) - ( - col0 ) FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + ( + col0 ) - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + 82 * - col0 AS col1 FROM tab0
----
-1968
-2870
-7298

query I rowsort
SELECT DISTINCT + col1 * - col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + col1 * 79 AS col1 FROM tab2 cor0
----
1343
2449
4661

query I rowsort
SELECT - col2 * - ( ( + col0 ) ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + + col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col0 * 10 AS col1 FROM tab1 AS cor0
----
-30
-640
-800

query I rowsort
SELECT + col2 * - col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2010
SELECT + CAST( 96 AS SIGNED ) + cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 274d4a7bb1c492c08174a17f4d5f5823

skipif mysql # not compatible
query I rowsort label-2010
SELECT + CAST ( 96 AS INTEGER ) + cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 274d4a7bb1c492c08174a17f4d5f5823

onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT - 73 DIV - 23 FROM tab2, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-2011
SELECT - 73 / - 23 FROM tab2, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - 67 + col1 * + col2 FROM tab1 AS cor0
----
1181
1337
503

query I rowsort
SELECT + + ( col0 ) + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 8 + col0 FROM tab1 AS cor0
----
-5
56
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2016
SELECT - - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2016
SELECT - - col1 / col0 AS col2 FROM tab0 AS cor0
----
1
2
3

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 - 1 * col2 + - col0 * + col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT - 37 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 + - col1 * col2 FROM tab1
----
-1079
-470
-728

query I rowsort
SELECT + col1 + 55 + + col2 FROM tab2
----
110
113
140

query I rowsort
SELECT DISTINCT - 47 * col1 FROM tab2
----
-1457
-2773
-799

onlyif mysql # use DIV operator for integer division
query I rowsort label-2023
SELECT DISTINCT + col1 * 32 DIV - col1 AS col1 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT + col1 * 32 / - col1 AS col1 FROM tab0
----
-32

query I rowsort
SELECT DISTINCT col2 + + col2 * - col2 FROM tab1
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT ALL - 88 + col1 DIV + col0 FROM tab2
----
-84
-88
-88

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - 88 + col1 / + col0 FROM tab2
----
-84
-88
-88

query I rowsort
SELECT + 78 + cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cac3e02d99ed2821efd3e4f568978d21

query I rowsort
SELECT col0 + col2 * col1 AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT ( + tab0.col0 ) * tab0.col0 + + ( - 77 ) FROM tab0
----
1148
499
7844

query I rowsort
SELECT ALL - 91 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT ALL - + 63 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT + col0 * col0 + + 9 FROM tab0 cor0
----
1234
585
7930

query I rowsort
SELECT ALL - ( col2 ) * cor0.col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 51 * col2 col2 FROM tab1 AS cor0
----
2754
2907
4896

query I rowsort
SELECT ALL + col0 + col2 * - 36 AS col0 FROM tab0 AS cor0
----
-1
-1164
-2863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2035
SELECT cor0.col1 * - cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT cor0.col1 * - cor0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 5 * + col2 FROM tab2 AS cor0
----
130
135
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2037
SELECT DISTINCT 79 DIV col0 FROM tab1
----
0
1
26

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT 79 / col0 FROM tab1
----
0
1
26

query I rowsort
SELECT + col2 * 11 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT - col2 * + 15 AS col1 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT ALL cor0.col0 + + col0 * - cor0.col0 * + col1 FROM tab2 AS cor0
----
-106018
-1512
-358878

query I rowsort
SELECT DISTINCT cor0.col0 + 97 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1570
-3000
-5645

query I rowsort
SELECT ALL col1 * - 76 * + col2 + + col2 + - col1 FROM tab1 AS cor0
----
-106676
-43273
-94765

query I rowsort
SELECT ALL + col0 + - tab2.col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 77 + col1 * tab0.col1 + col0 FROM tab0
----
7343
8293
9367

query I rowsort
SELECT DISTINCT col0 + - col1 * col1 + - col2 FROM tab2
----
-248
-3429
-981

query I rowsort
SELECT cor0.col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - tab0.col1 + + cor0.col0 AS col1 FROM tab0, tab2, tab1 cor0, tab1 AS cor1
----
81 values hashing to d34090ac9b0693a1e969cb80e9d679ba

query I rowsort
SELECT DISTINCT 82 * - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1968
-2870
-7298

query I rowsort
SELECT ALL col1 * - ( col0 ) * col1 AS col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT + - cor0.col2 + + col2 * col1 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT DISTINCT + cor0.col0 + + 42 * + cor0.col1 DIV col1 FROM tab2 cor0
----
120
121
49

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT + cor0.col0 + + 42 * + cor0.col1 / col1 FROM tab2 cor0
----
120
121
49

query I rowsort
SELECT ALL + - col2 * 27 FROM tab2 AS cor0
----
-1026
-702
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT + col1 + + ( - col2 ) DIV col0 FROM tab0 cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-2053
SELECT + col1 + + ( - col2 ) / col0 FROM tab0 cor0
----
85
91
97

query I rowsort
SELECT col2 * cor0.col2 + 44 * col1 + - 53 AS col0 FROM tab2 AS cor0
----
2040
2139
3219

onlyif mysql # use DIV operator for integer division
query I rowsort label-2055
SELECT col2 * + ( 69 ) + col1 DIV ( ( cor0.col0 ) ) AS col2 FROM tab2 cor0
----
1794
1867
2622

skipif mysql # not compatible
query I rowsort label-2055
SELECT col2 * + ( 69 ) + col1 / ( ( cor0.col0 ) ) AS col2 FROM tab2 cor0
----
1794
1867
2622

query I rowsort
SELECT - col2 * + 20 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT - col2 + 71 * col2 AS col1 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT - + 63 * + col0 * col0 + - cor0.col1 FROM tab1 AS cor0
----
-258058
-403213
-593

query I rowsort
SELECT 88 + col2 * + col2 FROM tab1
----
3004
3337
9304

query I rowsort
SELECT + 14 + col0 FROM tab0 AS cor0
----
103
38
49

query I rowsort
SELECT - col2 - 98 AS col2 FROM tab0 AS cor0
----
-131
-180
-99

query I rowsort
SELECT - ( + 96 ) * col1 AS col0 FROM tab2 AS cor0
----
-1632
-2976
-5664

query I rowsort
SELECT + col0 - - col0 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col1 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT + cor0.col2 * - col1 + + col0 * col1 * + col0 AS col1 FROM tab2 cor0
----
105451
357422
682

query I rowsort
SELECT 18 * - cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8727a2ad14475e21d22a60dcb7a4a6b4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2067
SELECT DISTINCT + ( col0 ) * + CAST( NULL AS SIGNED ) + 6 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT + ( col0 ) * + CAST ( NULL AS INTEGER ) + 6 FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2068
SELECT - CAST( - 9 AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

skipif mysql # not compatible
query I rowsort label-2068
SELECT - CAST ( - 9 AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT 63 * + col2 + - col0 + ( tab2.col2 * + col1 ) FROM tab2
----
2531
2961
3094

query I rowsort
SELECT DISTINCT + 41 FROM tab2, tab0 AS cor0
----
41

query I rowsort
SELECT col0 * col2 - 97 AS col0 FROM tab1 AS cor0
----
3551
65
7583

query I rowsort
SELECT - + 51 + col1 FROM tab2 cor0
----
-20
-34
8

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - 45 * - col1 AS col2 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT DISTINCT - col1 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 + + cor0.col2 * col0 * ( col0 * - col1 ) AS col2 FROM tab2 AS cor0
----
-4031648
-40986
-9332830

query I rowsort
SELECT DISTINCT - col1 * col1 + col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT + + 9 * - col2 AS col1 FROM tab2 AS cor0
----
-234
-243
-342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 14 col2 FROM tab0 AS cor0
----
-72
-77
-83

query I rowsort
SELECT - + col1 * - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab1 cor0
----
-20

query I rowsort
SELECT ALL - cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2083
SELECT DISTINCT CAST( col0 AS SIGNED ) * col1 - + ( - 6 ) FROM tab1 AS cor0
----
1046
646
84

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col1 - + ( - 6 ) FROM tab1 AS cor0
----
1046
646
84

query I rowsort
SELECT ALL + ( col1 ) * col2 + - 5 AS col0 FROM tab1 cor0
----
1243
1399
565

query I rowsort
SELECT cor0.col1 + + 53 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to ef82db2c81c448b21df3a112732bca60

query I rowsort
SELECT DISTINCT - 22 FROM tab1, tab1 AS cor0
----
-22

query I rowsort
SELECT ALL 45 * col2 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ALL + col1 * ( + col2 ) + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL col1 + cor0.col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - 45 * - col0 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT + col0 + + col0 + col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT - 41 * + col1 AS col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT DISTINCT - 97 * - col2 * - cor0.col0 FROM tab2 AS cor0
----
-18333
-196716
-291194

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT ALL - col2 + + col2 DIV col1 AS col1 FROM tab1
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL - col2 + + col2 / col1 AS col1 FROM tab1
----
-52
-52
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT ( + col1 ) - - col2 DIV col1 AS col0 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-2095
SELECT ( + col1 ) - - col2 / col1 AS col0 FROM tab1
----
15
20
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + + 51 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8667eeebc3bd38c22e3d6fe4781c2fd9

query I rowsort
SELECT 61 * + col0 FROM tab0 AS cor0
----
1464
2135
5429

query I rowsort
SELECT ALL + 39 + - col2 FROM tab2 AS cor0
----
1
12
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 28 col2 FROM tab2
----
-1064
-728
-756

query I rowsort
SELECT - 63 + + col2 FROM tab2
----
-25
-36
-37

query I rowsort
SELECT ALL + col2 * cor0.col1 + 90 FROM tab0 AS cor0
----
187
2928
7552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT col1 - + col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col1 + 58 + - 82 * col0 AS col1 FROM tab2 AS cor0
----
-485
-6279
-6403

onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT DISTINCT - + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT - + col1 / col1 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT - 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2108
SELECT + tab2.col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2108
SELECT + tab2.col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col2 + - ( col0 ) FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL - col2 + - 18 + + col2 * col1 FROM tab0
----
2787
7362
78

query I rowsort
SELECT - col1 + 76 * - 71 FROM tab2 AS cor0
----
-5413
-5427
-5455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2112
SELECT ALL - cor0.col0 + CAST( col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
159
3584
7600

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - cor0.col0 + CAST ( col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT ALL + - col1 DIV 64 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + - col1 / 64 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col1 * ( + col0 ) FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL cor0.col0 + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT col1 + + 1 * - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL cor1.col1 * 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to c2ad2b026ad2ac98c4a2b4bc163043a8

query I rowsort
SELECT DISTINCT col0 * ( cor0.col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 + + ( - col0 * - col0 ) FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL 29 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302

query I rowsort
SELECT + 79 AS col1 FROM tab2
----
79
79
79

query I rowsort
SELECT + col1 + ( col0 ) AS col2 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + ( + col0 ) AS REAL ) + - 83 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
127244
53539
69464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + ( col2 ) col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT col1 * col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT col1 + - 20 AS col1 FROM tab2 AS cor0
----
-3
11
39

query I rowsort
SELECT + col2 * + cor0.col0 + col0 * + cor0.col1 * col0 FROM tab0 AS cor0
----
118860
50328
728109

query I rowsort
SELECT 7 + col0 FROM tab1
----
10
71
87

query I rowsort
SELECT ALL col2 * - col2 * - col0 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2131
SELECT DISTINCT + CAST( NULL AS SIGNED ) - cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT + - ( col2 ) * col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2133
SELECT DISTINCT + col0 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + col0 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - + ( - col1 ) + 71 * + col0 FROM tab2 AS cor0
----
528
5597
5626

query I rowsort
SELECT DISTINCT + col2 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL - col0 - - col1 AS col2 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - - col1 - - col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 + col2 col0 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2139
SELECT DISTINCT - + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2140
SELECT DISTINCT - + cor0.col1 * CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT - + cor0.col1 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 54 * 77 col1 FROM tab2 AS cor0
----
4175
4189
4217

query I rowsort
SELECT + tab2.col0 * col1 + col0 AS col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - col0 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT 98 * - col2 FROM tab0
----
-3234
-8036
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab0.col0 ) col2 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + 86 AS col2 FROM tab0
----
86
86
86

query I rowsort
SELECT ALL 4 AS col2 FROM tab0
----
4
4
4

query I rowsort
SELECT ALL + 1 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + 9 * - col1 AS col0 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT 71 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + cor0.col0 + + cor0.col2 * col1 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2153
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 * - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 * - col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2154
SELECT ALL + CAST( 44 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
2376
2508
4224

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + CAST ( 44 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT DISTINCT + 52 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-4496
-4821
-5079

query I rowsort
SELECT col1 + + cor0.col0 * col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT col0 * + col2 * col0 + + col1 AS col2 FROM tab0
----
1322
19094
649613

query I rowsort
SELECT DISTINCT ( 68 ) AS col0 FROM tab0
----
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2159
SELECT DISTINCT CAST( col1 + col1 AS SIGNED ) FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT CAST ( col1 + col1 AS INTEGER ) FROM tab0
----
172
182
194

query I rowsort
SELECT + 7 * cor0.col0 * col2 FROM tab1 AS cor0
----
1134
25536
53760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2161
SELECT DISTINCT CAST( col1 + col0 AS SIGNED ) col1 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT CAST ( col1 + col0 AS INTEGER ) col1 FROM tab2
----
137
38
96

query I rowsort
SELECT + - col1 + col2 + col1 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - cor0.col2 + 38 * + col1 FROM tab0 AS cor0
----
3235
3376
3685

query I rowsort
SELECT DISTINCT + col0 * 69 AS col0 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT cor0.col2 * col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 + + 78 * + col2 FROM tab1 AS cor0
----
4215
4510
7568

query I rowsort
SELECT DISTINCT col2 + ( col2 ) AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + cor0.col1 * - col1 + + col0 + col2 FROM tab1 AS cor0
----
-619
21
7

query I rowsort
SELECT - col2 + col0 + + 11 * + col0 FROM tab1 AS cor0
----
-18
711
864

query I rowsort
SELECT ALL + col0 + ( - col1 ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - - col2 + + col0 * col0 AS col1 FROM tab0 cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 + - col0 col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + cor0.col2 - 58 FROM tab0 AS cor0
----
-25
-57
24

query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col1 - + col1 AS col0 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT - col2 + col2 * - col0 + 28 FROM tab1
----
-188
-3677
-7748

query I rowsort
SELECT ALL 54 + col1 AS col1 FROM tab2
----
113
71
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2178
SELECT ( col2 ) + ( + 37 ) DIV col1 AS col0 FROM tab1
----
55
60
98

skipif mysql # not compatible
query I rowsort label-2178
SELECT ( col2 ) + ( + 37 ) / col1 AS col0 FROM tab1
----
55
60
98

query I rowsort
SELECT - col2 + 81 * 17 AS col1 FROM tab0 cor0
----
1295
1344
1376

query I rowsort
SELECT - + col1 - + 6 FROM tab0 AS cor0
----
-103
-92
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col1 col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT + 2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT + col1 * - col0 + - col1 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL tab0.col0 * ( ( col1 ) * + col1 ) FROM tab0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT DISTINCT col2 DIV - col1 + col1 + + col1 AS col0 FROM tab2 AS cor0
----
118
32
62

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT col2 / - col1 + col1 + + col1 AS col0 FROM tab2 AS cor0
----
118
32
62

query I rowsort
SELECT - col0 + cor0.col2 + col1 FROM tab0 cor0
----
63
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + col2 * - col1 + + col1 + - col2 * - col2 * + col0 FROM tab2 AS cor0
----
113447
4297
51253

query I rowsort
SELECT - cor0.col1 + col1 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col0 * + col2 * col2 + - cor0.col2 + col0 FROM tab1 AS cor0
----
207943
737264
8697

query I rowsort
SELECT - tab2.col0 * col1 AS col0 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 * col0 col1 FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT + col0 * - col1 DIV + col1 AS col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2193
SELECT + col0 * - col1 / + col1 AS col0 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT + col0 DIV col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2194
SELECT + col0 / col0 AS col2 FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT + col2 DIV + tab0.col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2195
SELECT + col2 / + tab0.col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 + col2 + col1 AS col2 FROM tab1
----
124
134
205

query I rowsort
SELECT ALL col1 * + col2 * - tab1.col1 + tab1.col0 FROM tab1
----
-16144
-36501
-5636

query I rowsort
SELECT - col1 + - col2 + col0 AS col2 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT + + cor0.col2 * col1 + col0 * + cor0.col0 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT ALL col1 - col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - cor0.col1 + col2 * col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT col0 - col1 AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + ( - col1 ) + - 21 AS col1 FROM tab0
----
-107
-112
-118

query I rowsort
SELECT - ( col0 ) * - col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL col0 * - col1 + + ( - 14 * + cor0.col1 ) + - col0 AS col1 FROM tab0 cor0
----
-3292
-4788
-9462

query I rowsort
SELECT - cor0.col0 + + col2 * + col2 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2210
SELECT ALL - - 90 DIV - col1 + - col0 * 56 AS col0 FROM tab2 cor0
----
-394
-4369
-4429

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL - - 90 / - col1 + - col0 * 56 AS col0 FROM tab2 cor0
----
-394
-4369
-4429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 - - 98 * - col0 col2 FROM tab1 AS cor0
----
-216
-5632
-6800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT - col2 DIV - col0 - col2 AS col2 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-2212
SELECT - col2 / - col0 - col2 AS col2 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT DISTINCT cor0.col1 * col2 * col0 + - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
3298
65274
656656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 col2 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT + - cor0.col1 * + col1 - 54 * col2 FROM tab2 AS cor0
----
-2341
-2419
-4885

query I rowsort
SELECT ALL + col2 * col2 - 19 FROM tab1 AS cor0
----
2897
3230
9197

query I rowsort
SELECT cor0.col1 - col0 * 21 * 52 FROM tab0 AS cor0
----
-26122
-38123
-97097

query I rowsort
SELECT ALL + - 0 * + col1 * cor0.col2 + - col0 AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col1 * ( col0 ) FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2221
SELECT DISTINCT - - col0 + CAST( 67 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
145
146
74

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT - - col0 + CAST ( 67 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
145
146
74

query I rowsort
SELECT - col1 * 47 + + 80 * cor0.col2 FROM tab1 AS cor0
----
3098
4090
7069

onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT DISTINCT col0 DIV - 28 + col0 FROM tab1 cor0
----
3
62
78

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT col0 / - 28 + col0 FROM tab1 cor0
----
3
62
78

query I rowsort
SELECT col0 * ( - col0 ) + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + col2 * 80 - col2 FROM tab0 AS cor0
----
2607
6478
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2226
SELECT ALL + col2 + - CAST( + col1 AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + col2 + - CAST ( + col1 AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + + col1 - + col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ( col1 ) * + col0 - 23 AS col0 FROM tab1
----
1017
55
617

onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT col2 DIV + 88 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT col2 / + 88 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 5 FROM tab2
----
-35
-390
-395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2231
SELECT CAST( - 45 AS SIGNED ) + col2 FROM tab0
----
-12
-44
37

skipif mysql # not compatible
query I rowsort label-2231
SELECT CAST ( - 45 AS INTEGER ) + col2 FROM tab0
----
-12
-44
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2232
SELECT ALL - col2 DIV 30 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - col2 / 30 FROM tab2
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT + col1 + tab1.col0 DIV - col2 AS col0 FROM tab1
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2233
SELECT + col1 + tab1.col0 / - col2 AS col0 FROM tab1
----
13
26
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2234
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-2234
SELECT ALL col2 + - cor0.col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 85 - - col2 FROM tab0 AS cor0
----
118
167
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - tab2.col1 col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT col2 + 26 * + col0 FROM tab0
----
2396
657
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT ( col2 ) DIV col2 - col0 AS col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2238
SELECT ( col2 ) / col2 - col0 AS col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT ALL - ( + 64 + - col1 ) AS col1 FROM tab2
----
-33
-47
-5

query I rowsort
SELECT 17 AS col1 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT 4 + + col2 AS col1 FROM tab2
----
30
31
42

query I rowsort
SELECT ALL + 0 * col0 + col0 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - 3 * + col0 AS col0 FROM tab2 cor0
----
-21
-234
-237

query I rowsort
SELECT - 13 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2246
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * ( col2 ) + col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT - col1 + - 54 FROM tab2
----
-113
-71
-85

query I rowsort
SELECT col0 * tab2.col0 * col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT ALL - col1 * - col0 + 21 FROM tab0 AS cor0
----
2085
3416
8120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2252
SELECT DISTINCT + - col0 + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + - col0 + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT ALL + col1 + 15 + col1 DIV col2 col1 FROM tab1 AS cor0
----
25
28
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL + col1 + 15 + col1 / col2 col1 FROM tab1 AS cor0
----
25
28
41

query I rowsort
SELECT DISTINCT + + col2 * - col1 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT col0 + col0 * - ( col0 ) AS col0 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT col2 * + 65 FROM tab2
----
1690
1755
2470

query I rowsort
SELECT DISTINCT - + col1 * + 82 AS col1 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT ALL - + col2 + 76 FROM tab2 cor0
----
38
49
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-2259
SELECT ALL - - cor0.col1 + - col1 + col2 DIV col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL - - cor0.col1 + - col1 + col2 / col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - 7 - + cor0.col0 * - col2 * + col2 FROM tab2 AS cor0
----
114069
5096
52721

query I rowsort
SELECT - 85 * - 10 AS col2 FROM tab0 AS cor0
----
850
850
850

query I rowsort
SELECT ALL + col1 + col0 * + col1 AS col1 FROM tab1 cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col2 * - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2266
SELECT + + col1 DIV + cor0.col2 + + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2266
SELECT + + col1 / + cor0.col2 + + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col0 + + tab2.col0 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2268
SELECT DISTINCT - cor0.col1 * col1 DIV - col0 FROM tab2 AS cor0
----
137
3
44

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - cor0.col1 * col1 / - col0 FROM tab2 AS cor0
----
137
3
44

query I rowsort
SELECT ( ( - col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 * cor0.col0 - ( 47 ) FROM tab2 AS cor0
----
149
2059
3034

query I rowsort
SELECT ALL + + col0 + - col0 + + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT - ( - col2 ) DIV col0 AS col2 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2273
SELECT - ( - col2 ) / col0 AS col2 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT - ( + col2 ) * col2 + 2 * col2 - + col1 * + col1 FROM tab0 cor0
----
-14841
-8419
-9408

query I rowsort
SELECT ALL - ( - tab0.col1 ) FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT ALL ( - col2 ) DIV - col1 + + tab0.col2 * col0 + col1 * col0 FROM tab0
----
15397
2856
3430

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL ( - col2 ) / - col1 + + tab0.col2 * col0 + col1 * col0 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT - ( col1 ) * col2 - - 6 * + col0 FROM tab0
----
-2694
-6928
113

query I rowsort
SELECT ALL 41 + - col2 FROM tab1
----
-13
-16
-55

query I rowsort
SELECT ALL col1 * 77 AS col2 FROM tab1
----
1001
2002
770

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT 44 * cor0.col2 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT DISTINCT - - 95 * + col1 AS col2 FROM tab0 AS cor0
----
8170
8645
9215

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2284
SELECT - col1 * - CAST( + cor0.col2 AS SIGNED ) - - col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-2284
SELECT - col1 * - CAST ( + cor0.col2 AS INTEGER ) - - col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - - col0 + 34 FROM tab2 cor0
----
112
113
41

query I rowsort
SELECT + - cor0.col2 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - cor0.col0 * ( col1 ) + col1 + - col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2288
SELECT ALL - - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * 44 + + col2 FROM tab0 AS cor0
----
-3751
-3922
-4267

query I rowsort
SELECT - col0 * ( + col1 ) + + col2 * col0 AS col0 FROM tab1 cor0
----
3008
6640
84

query I rowsort
SELECT + col2 * + 80 AS col2 FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT col2 * + cor0.col2 + col1 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - col1 - col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT col0 - + ( + col1 * + tab1.col1 ) AS col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + - ( col0 * - col1 ) FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT DISTINCT + col1 + 26 AS col1 FROM tab1 AS cor0
----
36
39
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - ( + col0 ) col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 77 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
77

query I rowsort
SELECT ALL col2 + 70 AS col2 FROM tab2 AS cor0
----
108
96
97

query I rowsort
SELECT - 14 - + 76 AS col0 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL ( + col0 ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 96 * - col0 col2 FROM tab1 AS cor0
----
-234
-6087
-7584

query I rowsort
SELECT DISTINCT - - col2 - - col1 * col2 * + 12 AS col0 FROM tab2 AS cor0
----
10071
18434
7790

query I rowsort
SELECT + 65 + + col2 AS col2 FROM tab1 AS cor0
----
119
122
161

query I rowsort
SELECT 47 - col1 FROM tab0 AS cor0
----
-39
-44
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + + cor0.col2 col1 FROM tab2 AS cor0
----
34
35
46

query I rowsort
SELECT - col2 * - cor0.col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT - + col2 * + col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2309
SELECT ALL 28 * - col1 + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL 28 * - col1 + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2310
SELECT - tab0.col0 DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2310
SELECT - tab0.col0 / col1 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 33 col1 FROM tab2
----
231
2574
2607

onlyif mysql # use DIV operator for integer division
query I rowsort label-2312
SELECT col1 DIV + 37 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2312
SELECT col1 / + 37 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - - 86 + - cor0.col1 FROM tab2 AS cor0
----
27
55
69

query I rowsort
SELECT DISTINCT 50 + cor0.col1 FROM tab1 cor0
----
60
63
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2315
SELECT ALL + CAST( - ( cor0.col0 ) AS SIGNED ) * - col1 - col1 FROM tab1 AS cor0
----
1027
52
630

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + CAST ( - ( cor0.col0 ) AS INTEGER ) * - col1 - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - 9 * col2 + ( ( + col0 ) ) FROM tab1 AS cor0
----
-449
-483
-784

query I rowsort
SELECT + ( cor0.col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 11 * + col1 AS col0 FROM tab1 cor0
----
110
143
286

query I rowsort
SELECT ALL + col1 * + col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col1 * - col1 AS col0 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + + col1 + - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab2
----
-61

query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( col1 + col0 * ( cor0.col2 ) ) col2 FROM tab0 AS cor0
----
-132
-28974
-605898

query I rowsort
SELECT ALL + col2 - + cor0.col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL 93 * col1 FROM tab1
----
1209
2418
930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2327
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col0 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - tab0.col0 * + 95 + col2 AS col2 FROM tab0
----
-2247
-3324
-8373

query I rowsort
SELECT col1 * + col1 - col0 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT + tab1.col0 + - 56 FROM tab1
----
-53
24
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2332
SELECT - CAST( NULL AS SIGNED ) * 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT - CAST ( NULL AS INTEGER ) * 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - ( col1 ) ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT col2 + col1 * col1 AS col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT - 83 * 50 + col1 AS col0 FROM tab2
----
-4091
-4119
-4133

query I rowsort
SELECT ALL 80 * + col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
2077
736
960

query I rowsort
SELECT + col0 + + col1 + 81 AS col1 FROM tab0 AS cor0
----
191
213
261

query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - 13 * col1 + - col1 AS col1 FROM tab0
----
-1204
-1274
-1358

query I rowsort
SELECT 72 * col2 FROM tab0 AS cor0
----
2376
5904
72

query I rowsort
SELECT ALL + + cor0.col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + + 47 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT - - col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + 4 + col0 FROM tab0 AS cor0
----
28
39
93

query I rowsort
SELECT - - col2 * + col2 - ( col1 ) FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + - 95 AS col1 FROM tab1 AS cor0
----
-257
-3743
-7775

query I rowsort
SELECT ALL col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col0 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col0 * col0 + 48 AS col0 FROM tab2 AS cor0
----
6132
6289
97

query I rowsort
SELECT DISTINCT col1 + + ( + 27 ) AS col1 FROM tab2 AS cor0
----
44
58
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 - + col2 col1 FROM tab1 cor0
----
-48
64
71

query I rowsort
SELECT - + cor0.col0 + col2 AS col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL + + col0 + - 88 FROM tab0 AS cor0
----
-53
-64
1

query I rowsort
SELECT + + col0 * + 88 + col1 FROM tab2 AS cor0
----
647
6923
6969

query I rowsort
SELECT cor0.col2 * 98 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bf6b3dfff73e7bbfba273f527b4ba958

onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT DISTINCT + + cor0.col2 DIV - cor0.col1 + col0 * - 94 * + col2 AS col2 FROM tab0 AS cor0
----
-3290
-686012
-74448

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + + cor0.col2 / - cor0.col1 + col0 * - 94 * + col2 AS col2 FROM tab0 AS cor0
----
-3290
-686012
-74448

query I rowsort
SELECT ALL + col2 + + col1 + - col0 AS col0 FROM tab2
----
-24
51
7

query I rowsort
SELECT ALL + 62 * + 20 + col1 * col2 FROM tab2 AS cor0
----
1886
2077
2774

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2360
SELECT DISTINCT + col2 * + col0 + col0 * ( - ( col2 ) ) * - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-204288
-729600
-8586

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT + col2 * + col0 + col0 * ( - ( col2 ) ) * - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-204288
-729600
-8586

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2361
SELECT + CAST( col2 AS SIGNED ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-2361
SELECT + CAST ( col2 AS INTEGER ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT ( 98 ) * - col0 AS col1 FROM tab2 AS cor0
----
-686
-7644
-7742

query I rowsort
SELECT - - cor0.col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - - ( 55 ) FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + col0 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL 36 + col0 AS col0 FROM tab2 AS cor0
----
114
115
43

query I rowsort
SELECT - 23 * ( col1 ) FROM tab1 AS cor0
----
-230
-299
-598

query I rowsort
SELECT - ( - 33 ) FROM tab1 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col1 FROM tab2 cor0
----
-76
-76
-76

query I rowsort
SELECT col0 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - 44 + col0 AS col1 FROM tab2 AS cor0
----
-37
34
35

query I rowsort
SELECT + col0 * 19 AS col0 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT DISTINCT + 28 FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL col2 + - 1 AS col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT - - col1 + + col0 * + cor0.col1 * col1 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT + - 91 * - col0 AS col0 FROM tab1 AS cor0
----
273
5824
7280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2377
SELECT + ( + col0 + col2 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT + ( + col0 + col2 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 31 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # use DIV operator for integer division
query I rowsort label-2379
SELECT + - col1 DIV col0 + - cor0.col2 * - cor0.col1 - - col2 * - col0 AS col0 FROM tab0 AS cor0
----
163
2043
60

skipif mysql # not compatible
query I rowsort label-2379
SELECT + - col1 / col0 + - cor0.col2 * - cor0.col1 - - col2 * - col0 AS col0 FROM tab0 AS cor0
----
163
2043
60

query I rowsort
SELECT - + cor0.col2 + + col2 + cor0.col2 * + col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT + cor0.col2 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT - col2 * col0 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2383
SELECT DISTINCT cor0.col2 DIV 54 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT cor0.col2 / 54 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 cor1
----
0

query I rowsort
SELECT ( + 56 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 - tab1.col2 col0 FROM tab1
----
-102
-60
-63

query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab1
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 + - 51 AS col0 FROM tab0 AS cor0
----
-18
-50
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2389
SELECT ALL - cor0.col1 - + CAST( NULL AS SIGNED ) * col0 * - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - cor0.col1 - + CAST ( NULL AS INTEGER ) * col0 * - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 27 col1 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT - col1 + - col0 * + 73 FROM tab0
----
-1838
-2652
-6588

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2392
SELECT + cor0.col2 / + col2 + + CAST( NULL AS DECIMAL ) * - col2 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT + cor0.col2 / + col2 + + CAST ( NULL AS REAL ) * - col2 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT - 21 + col1 * + cor0.col1 * - col0 + - col1 DIV col0 AS col0 FROM tab2 cor0
----
-22852
-271539
-6752

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 21 + col1 * + cor0.col1 * - col0 + - col1 / col0 AS col0 FROM tab2 cor0
----
-22852
-271539
-6752

query I rowsort
SELECT ALL + 51 + tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8667eeebc3bd38c22e3d6fe4781c2fd9

query I rowsort
SELECT 40 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT col1 DIV tab0.col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2396
SELECT col1 / tab0.col0 AS col1 FROM tab0
----
1
2
3

query I rowsort
SELECT - 49 * tab0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d108f3bdef1d4b5a496a51e39b16742e

query I rowsort
SELECT ALL 91 + col2 FROM tab1
----
145
148
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab2.col0 col1 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2400
SELECT + tab1.col1 DIV + tab1.col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2400
SELECT + tab1.col1 / + tab1.col0 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT 57 * - col1 * + col2 AS col2 FROM tab0
----
-161766
-425334
-5529

query I rowsort
SELECT + col2 * col1 * 87 AS col0 FROM tab1
----
108576
122148
49590

onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT 73 DIV - col1 col2 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2403
SELECT 73 / - col1 col2 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 31 * + col0 col1 FROM tab0 AS cor0
----
-1085
-2759
-744

query I rowsort
SELECT + 97 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab2, tab2 AS cor0
----
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT 58 + - col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-2407
SELECT 58 + - col2 / - col2 AS col2 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + 9 + + col2 FROM tab2 AS cor0
----
35
36
47

query I rowsort
SELECT ALL + 72 * col2 FROM tab2
----
1872
1944
2736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2410
SELECT col0 DIV - 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT col0 / - 96 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2411
SELECT ( + col0 ) + col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT ( + col0 ) + col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2412
SELECT DISTINCT - 13 DIV + cor0.col1 AS col1 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT - 13 / + cor0.col1 AS col1 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT - - 94 AS col1 FROM tab2 cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 15 * col2 ) - ( + 99 ) col1 FROM tab2
----
291
306
471

query I rowsort
SELECT ALL + ( 40 ) FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT - cor0.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + col1 + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col1 * 25 * - col1 - - col2 FROM tab2
----
-23998
-7187
-86999

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - + 97 AS col1 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL 13 * col2 + col0 AS col1 FROM tab2 AS cor0
----
358
416
573

query I rowsort
SELECT + ( - col0 ) + cor0.col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + 2 + col2 AS col1 FROM tab1 AS cor0
----
56
59
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2424
SELECT ALL + - col0 DIV cor0.col0 + col2 * col2 FROM tab1 AS cor0
----
2915
3248
9215

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL + - col0 / cor0.col0 + col2 * col2 FROM tab1 AS cor0
----
2915
3248
9215

onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT - col2 DIV + cor0.col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT - col2 / + cor0.col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL ( - col2 ) * ( + 97 ) FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT - cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT tab1.col1 * col0 * - col1 AS col0 FROM tab1
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col2 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 * - 74 + col1 + - cor0.col0 * col0 FROM tab1 cor0
----
132
4013
717

onlyif mysql # use DIV operator for integer division
query I rowsort label-2431
SELECT - col0 DIV col0 + + 26 FROM tab1 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-2431
SELECT - col0 / col0 + + 26 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2432
SELECT ALL CAST( + 49 AS SIGNED ) * - col0 AS col0 FROM tab1 cor0
----
-147
-3136
-3920

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL CAST ( + 49 AS INTEGER ) * - col0 AS col0 FROM tab1 cor0
----
-147
-3136
-3920

query I rowsort
SELECT - 1 + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0bcad3cb763a7d70d03c2e2f650124ec

query I rowsort
SELECT 98 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - - col1 * + ( + 30 ) FROM tab0 AS cor0
----
2580
2730
2910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col2 * - col0 col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2438
SELECT DISTINCT + col0 * ( ( + col2 ) ) + + CAST( + 43 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-1470
-240
3471

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT + col0 * ( ( + col2 ) ) + + CAST ( + 43 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-1470
-240
3471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col2 * col1 + - 68 * 3 FROM tab2
----
-1041
-1738
-850

query I rowsort
SELECT DISTINCT 66 + col0 FROM tab2
----
144
145
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT + tab0.col2 * + col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT + tab0.col2 * + col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 cor0, tab0 cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT + ( col1 ) + col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL + col1 * 51 * - ( tab1.col2 * col0 ) AS col1 FROM tab1
----
-1860480
-214812
-5091840

query I rowsort
SELECT ALL - col2 * - 66 AS col1 FROM tab1
----
3564
3762
6336

query I rowsort
SELECT col1 + - 30 FROM tab1 AS cor0
----
-17
-20
-4

query I rowsort
SELECT col0 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + 49 * + 0 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - + col2 * ( 84 ) AS col2 FROM tab0 AS cor0
----
-2772
-6888
-84

query I rowsort
SELECT ALL + - cor0.col1 * ( + 95 ) + - cor0.col2 + cor0.col1 * col0 FROM tab0 AS cor0
----
-5821
-6139
-628

query I rowsort
SELECT col2 * + col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT col1 - - 25 AS col2 FROM tab2
----
42
56
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2454
SELECT DISTINCT + col1 DIV col2 + + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT + col1 / col2 + + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + + 9 AS col1 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col0 * + tab1.col2 * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col0 * + tab1.col2 * col0 FROM tab1
----
NULL

query I rowsort
SELECT - ( + ( + col2 ) ) + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - + cor0.col0 * ( cor0.col2 * - 7 ) + 17 - + col1 AS col2 FROM tab2 cor0
----
1309
14154
21014

query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - 27 * col0 FROM tab2 AS cor0
----
-189
-2106
-2133

query I rowsort
SELECT + col1 + cor0.col2 * 62 FROM tab0 AS cor0
----
159
2132
5175

query I rowsort
SELECT DISTINCT + + col1 * col2 + ( ( col2 ) + 38 ) AS col0 FROM tab2 AS cor0
----
1598
722
902

query I rowsort
SELECT DISTINCT - - 18 + col1 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT DISTINCT - 94 * + col1 AS col1 FROM tab1
----
-1222
-2444
-940

query I rowsort
SELECT ALL + 7 - col2 AS col1 FROM tab2 AS cor0
----
-19
-20
-31

query I rowsort
SELECT DISTINCT - + 49 AS col0 FROM tab2 AS cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 69 * col1 + col1 col1 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT + cor0.col0 * - cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to b15545f355f69103b24dcef12195596e

query I rowsort
SELECT DISTINCT + tab1.col2 * - 95 FROM tab1, tab0 AS cor0
----
-5130
-5415
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT DISTINCT + - col0 + + col0 DIV + 2 FROM tab0 AS cor0
----
-12
-18
-45

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + - col0 + + col0 / + 2 FROM tab0 AS cor0
----
-12
-18
-45

query I rowsort
SELECT - 73 * + col1 - cor0.col2 FROM tab2 AS cor0
----
-1279
-2290
-4333

query I rowsort
SELECT cor0.col2 * col2 + 72 * + col0 * + col1 FROM tab1 AS cor0
----
49329
84096
8532

query I rowsort
SELECT ALL col2 * - cor0.col2 * ( 96 * + col2 ) FROM tab2 AS cor0
----
-1687296
-1889568
-5267712

query I rowsort
SELECT 33 * col1 AS col2 FROM tab1 AS cor0
----
330
429
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 + col1 + - col1 col2 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT 82 - col1 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT ALL cor0.col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * - col2 + + 43 * + col0 FROM tab1 AS cor0
----
-1275
2182
2192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - - col0 * cor0.col2 + - col2 AS col0 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT 37 * ( - col2 * 1 ) AS col1 FROM tab1 AS cor0
----
-1998
-2109
-3552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2482
SELECT DISTINCT - ( + col0 ) * + col0 * CAST( col1 AS SIGNED ) + col1 * tab1.col0 FROM tab1
----
-156
-40320
-82160

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT - ( + col0 ) * + col0 * CAST ( col1 AS INTEGER ) + col1 * tab1.col0 FROM tab1
----
-156
-40320
-82160

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT DISTINCT 35 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT 35 / col1 AS col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT + ( + 6 ) * col0 AS col2 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT ALL + + 99 * - 85 FROM tab1 AS cor0
----
-8415
-8415
-8415

query I rowsort
SELECT - + 93 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-13
-29
-90

query I rowsort
SELECT - 42 * - 24 AS col2 FROM tab0 AS cor0
----
1008
1008
1008

query I rowsort
SELECT - + 96 + - col2 FROM tab1 AS cor0
----
-150
-153
-192

query I rowsort
SELECT ALL col2 - - col2 * col2 AS col0 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT 91 * - ( + col2 ) - col0 FROM tab0
----
-126
-3027
-7551

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab0, tab2, tab1 AS cor0
----
98

query I rowsort
SELECT ALL + col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - 87 + + col2 AS col1 FROM tab2 cor0
----
-49
-60
-61

query I rowsort
SELECT - 49 * + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT DISTINCT + col1 * 2 + col2 * - 51 FROM tab2
----
-1208
-1315
-1904

query I rowsort
SELECT ALL ( tab1.col0 * 39 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 86fbc498c8643fae1c9b6a8927493ea9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2498
SELECT - 81 + + col0 + - col0 DIV ( - 16 + + col2 ) AS col2 FROM tab1
----
-18
-2
-78

skipif mysql # not compatible
query I rowsort label-2498
SELECT - 81 + + col0 + - col0 / ( - 16 + + col2 ) AS col2 FROM tab1
----
-18
-2
-78

query I rowsort
SELECT ALL 57 + - col0 * - col1 AS col2 FROM tab0
----
2121
3452
8156

query I rowsort
SELECT 94 * - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fac3ae1610e9f3cd3dfc30552461cbb4

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - col2 * col1 + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * + col0 + col2 AS col0 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT + + 10 * col1 AS col2 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT ALL 78 + + col2 + + col0 AS col0 FROM tab1 AS cor0
----
135
199
254

query I rowsort
SELECT + 91 * + cor0.col1 + + 40 FROM tab1 AS cor0
----
1223
2406
950

query I rowsort
SELECT + 43 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - 61 + col2 FROM tab1 AS cor0
----
-4
-7
35

query I rowsort
SELECT col2 * col0 * col2 + col0 * + cor0.col1 FROM tab2 AS cor0
----
115419
5320
57330

query I rowsort
SELECT col1 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2512
SELECT + 60 + - col0 + - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT + 60 + - col0 + - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 87 ) + col2 * + tab1.col2 AS col2 FROM tab1
----
2829
3162
9129

query I rowsort
SELECT + + cor0.col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - tab2.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT + col2 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2517
SELECT ALL col2 * - CAST( 56 AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
-1430
-1485
-2090

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL col2 * - CAST ( 56 AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT ALL tab0.col2 * - tab0.col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ( col1 ) * - ( col2 ) * tab2.col1 FROM tab2
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col2 * col2 + col1 * col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT - tab1.col1 * col2 + - tab1.col1 FROM tab1 WHERE ( NOT NULL IN ( - col1 * col2 * col2 ) ) AND NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT 77 * + tab1.col0 FROM tab1
----
231
4928
6160

query I rowsort
SELECT ALL col2 * col1 * + col0 + - tab0.col2 AS col0 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT + col1 * tab0.col0 - + col0 * + col0 AS col0 FROM tab0
----
1488
178
2170

query I rowsort
SELECT DISTINCT - col2 * col1 + + col2 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT + col2 * + col0 * col0 + col1 * - col0 * col2 AS col1 FROM tab1
----
-3726
196992
514560

query I rowsort
SELECT - col2 + col0 * col0 * - tab1.col1 FROM tab1
----
-288
-41017
-83296

onlyif mysql # use DIV operator for integer division
query I rowsort label-2531
SELECT col2 + + col1 DIV + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2531
SELECT col2 + + col1 / + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab1
----
85

query I rowsort
SELECT 44 * - 68 FROM tab2
----
-2992
-2992
-2992

query I rowsort
SELECT - 22 * - 2 FROM tab1
----
44
44
44

query I rowsort
SELECT ALL 73 AS col1 FROM tab1
----
73
73
73

query I rowsort
SELECT - tab0.col0 * ( - col0 ) FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2537
SELECT DISTINCT - col2 DIV - col0 - - col2 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT - col2 / - col0 - - col2 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) + col1 * col0 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
15306
2770
3333

query I rowsort
SELECT + - cor0.col2 * col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT ( tab1.col2 ) AS col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT DISTINCT + tab2.col1 DIV col0 - col0 AS col2 FROM tab2
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT + tab2.col1 / col0 - col0 AS col2 FROM tab2
----
-3
-78
-79

query I rowsort
SELECT ALL - col0 - + col1 AS col0 FROM tab0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT - col0 * + 27 + col2 DIV col1 AS col2 FROM tab1
----
-1723
-2153
-79

skipif mysql # not compatible
query I rowsort label-2543
SELECT - col0 * + 27 + col2 / col1 AS col2 FROM tab1
----
-1723
-2153
-79

query I rowsort
SELECT - 20 + - col0 FROM tab0
----
-109
-44
-55

query I rowsort
SELECT - + col2 + + col1 + - cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2944
-3296
-9299

query I rowsort
SELECT DISTINCT ( col2 ) + col0 * - col2 + col0 * cor0.col0 FROM tab0 AS cor0
----
-183
1191
705

query I rowsort
SELECT + - col2 - + col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + - col2 + col0 AS col1 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT DISTINCT 86 DIV - col1 + + col0 FROM tab1 AS cor0
----
0
56
74

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT 86 / - col1 + + col0 FROM tab1 AS cor0
----
0
56
74

query I rowsort
SELECT ALL 10 * + col1 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT col1 + col1 + + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1066
130
660

query I rowsort
SELECT ALL cor0.col2 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL col0 * - ( col1 ) + 31 + 80 * cor0.col0 * 1 AS col2 FROM tab2 AS cor0
----
1669
374
5008

query I rowsort
SELECT ALL col1 * - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT - 77 * - col0 * + col2 FROM tab2
----
14553
156156
231154

query I rowsort
SELECT + cor0.col0 * - 29 + col1 AS col0 FROM tab2 AS cor0
----
-172
-2203
-2274

query I rowsort
SELECT - cor0.col0 + 64 AS col0 FROM tab2 AS cor0
----
-14
-15
57

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT - ( + 16 ) FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) * 77 FROM tab2 AS cor0
----
-539
-6006
-6083

query I rowsort
SELECT DISTINCT 69 + - cor0.col1 FROM tab2 AS cor0
----
10
38
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2562
SELECT - 54 + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-54
-55
-72

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 54 + - col2 / col0 AS col0 FROM tab1 AS cor0
----
-54
-55
-72

query I rowsort
SELECT DISTINCT col0 * col0 * 63 + col0 + + col2 FROM tab0 AS cor0
----
36345
499194
77211

query I rowsort
SELECT ALL + 39 AS col0 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT 82 + col2 + 50 FROM tab1 AS cor0
----
186
189
228

onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT + col0 DIV col0 + + tab0.col1 * col0 * + col0 col1 FROM tab0
----
118826
49537
720812

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2566
SELECT + col0 / col0 + + tab0.col1 * col0 * + col0 col1 FROM tab0
----
118826
49537
720812

query I rowsort
SELECT + col0 + + col2 * - tab2.col1 AS col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT + col2 - + 15 AS col1 FROM tab0
----
-14
18
67

query I rowsort
SELECT ALL 6 + - 31 * - col1 * - 70 FROM tab1
----
-21694
-28204
-56414

query I rowsort
SELECT ALL + 25 + col1 * col0 FROM tab2
----
1368
242
4627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2571
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 * col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 * col0 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 * col2 + cor0.col2 AS col1 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT + col1 * - 56 FROM tab2 AS cor0
----
-1736
-3304
-952

query I rowsort
SELECT DISTINCT + col2 + + col2 * - cor0.col2 * + col2 FROM tab2 cor0
----
-17550
-19656
-54834

query I rowsort
SELECT ALL + + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col1 * 59 - 39 AS col2 FROM tab2 AS cor0
----
1790
3442
964

query I rowsort
SELECT ALL + col0 * + 89 - - col1 * - col0 AS col0 FROM tab2 AS cor0
----
2340
406
5688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 40 col1 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT DISTINCT + col1 * - 74 + 64 + col0 * + 74 AS col0 FROM tab1 AS cor0
----
-1638
4060
5022

onlyif mysql # use DIV operator for integer division
query I rowsort label-2580
SELECT DISTINCT + col0 DIV col1 col2 FROM tab1 AS cor0
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + col0 / col1 col2 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ( + col1 ) - + 79 FROM tab1
----
-53
-66
-69

query I rowsort
SELECT + tab1.col1 + + col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT + 20 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT col1 * + 60 AS col2 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT DISTINCT cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort
SELECT col0 - - CAST ( col1 AS REAL ) / cor0.col1 AS col1 FROM tab1 AS cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 3 * + col2 + + col1 col0 FROM tab2 AS cor0
----
119
210
215

query I rowsort
SELECT DISTINCT + cor0.col2 - 14 FROM tab0 AS cor0
----
-13
19
68

query I rowsort
SELECT - 39 * - col2 + col2 + - col0 AS col2 FROM tab2 AS cor0
----
1073
1441
962

query I rowsort
SELECT tab1.col0 * ( - col2 ) * col1 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col2 * + cor0.col0 + - col2 + ( 47 * col2 ) AS col1 FROM tab1 AS cor0
----
12096
2646
6270

onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT col2 + col2 + col2 DIV cor0.col2 FROM tab1 AS cor0
----
109
115
193

skipif mysql # not compatible
query I rowsort label-2592
SELECT col2 + col2 + col2 / cor0.col2 FROM tab1 AS cor0
----
109
115
193

query I rowsort
SELECT ALL col1 * 39 + col2 * tab0.col1 FROM tab0
----
11011
3880
6192

query I rowsort
SELECT + 92 AS col0 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to cfcf012ce1a8dd60a7428b4ef6b95843

query I rowsort
SELECT - col1 + 43 * col0 + + cor0.col2 FROM tab1 AS cor0
----
157
2799
3523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col1 + + col1 + 67 col1 FROM tab2 AS cor0
----
1059
3607
373

query I rowsort
SELECT - - 19 - - col1 * col0 FROM tab2 AS cor0
----
1362
236
4621

query I rowsort
SELECT DISTINCT + + ( - ( + col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 16 * col2 AS col0 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT + col1 - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2601
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT ALL - col1 DIV 84 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL - col1 / 84 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2603
SELECT ALL - ( col2 ) DIV + 33 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - ( col2 ) / + 33 FROM tab1
----
-1
-1
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT ALL - ( col1 ) DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL - ( col1 ) / col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2606
SELECT - - col1 * cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT - - col1 * cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 67 * col1 + 7 FROM tab0 AS cor0
----
-5755
-6090
-6492

query I rowsort
SELECT ALL + - col2 - + col0 * col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT + - col1 / col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT 60 * + col1 AS col2 FROM tab2 AS cor0
----
1020
1860
3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-2611
SELECT DISTINCT + cor0.col2 DIV - ( cor0.col0 ) col1 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT + cor0.col2 / - ( cor0.col0 ) col1 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + cor0.col2 * + col0 * col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + col0 + + 7 AS col2 FROM tab0 AS cor0
----
31
42
96

query I rowsort
SELECT ALL + ( cor1.col0 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT 22 FROM tab0, tab1 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - 64 * - col1 FROM tab0
----
5504
5824
6208

onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT ALL + col2 + col2 DIV col1 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + col2 + col2 / col1 FROM tab2
----
26
27
40

query I rowsort
SELECT col0 * + col1 + - ( + 16 * - col2 ) AS col0 FROM tab0 AS cor0
----
2592
3411
9411

onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT + ( col0 ) DIV + ( + col2 ) AS col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2621
SELECT + ( col0 ) / + ( + col2 ) AS col2 FROM tab1 cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT + + col2 + - col0 DIV + 28 FROM tab0 AS cor0
----
0
33
79

skipif mysql # not compatible
query I rowsort label-2622
SELECT + + col2 + - col0 / + 28 FROM tab0 AS cor0
----
0
33
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
6

query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) FROM tab2
----
-189
-2028
-3002

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 cor2
----
3645 values hashing to f23c9ebf4a57b11b108cf933fe3c62aa

query I rowsort
SELECT ALL + - cor0.col1 + + col1 * + cor0.col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT tab0.col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + - 84 * + col0 + + col1 FROM tab1 AS cor0
----
-226
-5366
-6707

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT + + col2 DIV - col0 - cor0.col2 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-2629
SELECT + + col2 / - col0 - cor0.col2 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + ( cor0.col2 ) + + ( cor0.col2 ) * - col0 col1 FROM tab0 cor0
----
-14596
-1584
-70

query I rowsort
SELECT - col2 + col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT 31 + col1 AS col0 FROM tab1 AS cor0
----
41
44
57

query I rowsort
SELECT - + ( - col1 ) * col2 + + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT 34 * col0 AS col2 FROM tab1 cor0
----
102
2176
2720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab1
----
78
78
78

query I rowsort
SELECT + 79 + + col0 FROM tab2
----
157
158
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 25 ) col2 FROM tab2
----
25
25
25

query I rowsort
SELECT DISTINCT + ( col2 + - col2 ) * + 62 AS col2 FROM tab0
----
0

query I rowsort
SELECT + + 42 * - col2 * - 23 + ( col2 * col1 ) FROM tab0 AS cor0
----
1063
34716
86674

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT - + cor0.col0 DIV col1 + + cor0.col1 * - 30 FROM tab0 AS cor0
----
-2580
-2730
-2910

skipif mysql # not compatible
query I rowsort label-2641
SELECT - + cor0.col0 / col1 + + cor0.col1 * - 30 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT col2 + + col1 * 89 * col0 AS col2 FROM tab1 AS cor0
----
57017
6996
92656

query I rowsort
SELECT + + 46 * + col1 + - 54 FROM tab2 AS cor0
----
1372
2660
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col1 * col2 col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - + ( col0 ) + + ( col1 ) * - col0 + - col0 * - col0 FROM tab1 AS cor0
----
-72
3392
5280

query I rowsort
SELECT DISTINCT + - 88 FROM tab2 cor0
----
-88

query I rowsort
SELECT DISTINCT - col1 * tab1.col0 * col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT ALL col0 * ( - 45 ) * + col0 AS col2 FROM tab2 AS cor0
----
-2205
-273780
-280845

onlyif mysql # use DIV operator for integer division
query I rowsort label-2649
SELECT + - col0 * col1 + + col0 * col1 DIV + ( + 71 ) FROM tab2 cor0
----
-1325
-214
-4538

skipif mysql # not compatible
query I rowsort label-2649
SELECT + - col0 * col1 + + col0 * col1 / + ( + 71 ) FROM tab2 cor0
----
-1325
-214
-4538

query I rowsort
SELECT DISTINCT col0 * + col2 + - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT col1 + + 61 FROM tab2 AS cor0
----
120
78
92

query I rowsort
SELECT ALL - col0 - + cor0.col1 * - col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2653
SELECT col1 + col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2653
SELECT col1 + col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * + tab0.col2 + 88 col0 FROM tab0
----
157
2365
5746

query I rowsort
SELECT + 35 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT ALL - 16 + col0 FROM tab0
----
19
73
8

query I rowsort
SELECT ALL ( col2 ) * + col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col2 FROM tab0 AS cor0
----
49

query I rowsort
SELECT DISTINCT + 95 + - col0 FROM tab1 AS cor0
----
15
31
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2660
SELECT + ( col0 ) DIV + col0 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2660
SELECT + ( col0 ) / + col0 col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + 14 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-114
-183
-690

query I rowsort
SELECT ALL - col2 * ( col0 ) AS col2 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT ALL + 86 DIV + col0 AS col1 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + 86 / + col0 AS col1 FROM tab0 cor0
----
0
2
3

query I rowsort
SELECT - + 39 * col2 FROM tab0 AS cor0
----
-1287
-3198
-39

query I rowsort
SELECT DISTINCT + 90 + 19 AS col2 FROM tab1 AS cor0
----
109

query I rowsort
SELECT - 12 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT ALL col2 DIV 58 - - tab1.col0 FROM tab1
----
3
64
81

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL col2 / 58 - - tab1.col0 FROM tab1
----
3
64
81

query I rowsort
SELECT ALL + 84 FROM tab0, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT 91 * - col2 AS col2 FROM tab2 cor0
----
-2366
-2457
-3458

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2670
SELECT - - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT - - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + cor0.col1 + + 41 * + col0 AS col1 FROM tab1 AS cor0
----
149
2634
3293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 - - col0 col2 FROM tab1
----
106
55
84

query I rowsort
SELECT ALL + col2 * + col0 * - tab1.col0 + tab1.col2 * col0 AS col2 FROM tab1 WHERE - col0 + col2 BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2675
SELECT + col0 DIV - tab2.col1 - col1 AS col0 FROM tab2
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-2675
SELECT + col0 / - tab2.col1 - col1 AS col0 FROM tab2
----
-21
-31
-60

query I rowsort
SELECT DISTINCT col0 * + col0 * + col0 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT col1 * col1 FROM tab1 WHERE NULL < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= ( - col0 * col2 )
----

query I rowsort
SELECT col1 * col1 + tab0.col2 AS col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL + col1 * - col0 * - col2 + - cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
3396
670842
69201

query I rowsort
SELECT + cor0.col1 * - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT DISTINCT - col1 * - col2 * - col1 + col0 + col1 AS col1 FROM tab1 cor0
----
-16131
-36475
-5626

query I rowsort
SELECT ALL col2 * tab2.col1 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT tab0.col0 * - col2 * + col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT - col0 * cor0.col0 * - col0 + + col2 FROM tab2 AS cor0
----
370
474578
493077

query I rowsort
SELECT DISTINCT - col0 * col2 * - col2 + - col1 AS col1 FROM tab1 AS cor0
----
207926
737267
8722

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) < - col2
----
35
97
1
89
91
82

query I rowsort
SELECT + col0 + tab2.col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT col2 * col1 + col0 * col1 AS col1 FROM tab1
----
1210
1482
2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 - + col2 col1 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT col0 * col0 + col2 * + col0 FROM tab2
----
238
8112
9243

onlyif mysql # use DIV operator for integer division
query I rowsort label-2694
SELECT DISTINCT + col0 * + tab1.col1 DIV - tab1.col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + col0 * + tab1.col1 / - tab1.col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT col1 + + col0 + col2 AS col2 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2696
SELECT ALL + col2 DIV + col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + col2 / + col2 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( tab2.col1 * + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * tab1.col0 * - col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT ALL + col1 * tab0.col2 + col0 * + tab0.col0 AS col2 FROM tab0
----
1322
15383
3414

onlyif mysql # use DIV operator for integer division
query I rowsort label-2700
SELECT ALL + col0 DIV + col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL + col0 / + col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col2 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT + col1 + - col1 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col1 * - col2 - - col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT tab2.col0 * col1 FROM tab2 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab0.col0 * - col1 + + col0 col1 FROM tab0
----
-177480
-329280
-736920

query I rowsort
SELECT DISTINCT - - col0 * + col1 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + cor0.col1 * col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) IN ( col0 + col2 + - col1 ) AND NULL IN ( col1 )
----

query I rowsort
SELECT + + col2 * col1 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + col0 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + tab2.col1 * + col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT - cor0.col2 * - col1 + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL col1 * col0 + + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL col1 * - col0 + - col0 + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT cor0.col1 + - 95 * - cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
118573
133406
54160

query I rowsort
SELECT ALL - 32 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

query I rowsort
SELECT + + cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + cor0.col0 FROM tab0, tab2, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT DISTINCT - col1 * + 72 FROM tab0
----
-6192
-6552
-6984

query I rowsort
SELECT 21 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT col1 + - 96 FROM tab1 AS cor0
----
-70
-83
-86

query I rowsort
SELECT DISTINCT tab1.col2 + col0 AS col0 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT ALL - col1 DIV - 32 + + col1 - col1 col0 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - col1 / - 32 + + col1 - col1 col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + col2 * col1 * col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL - tab2.col0 * col0 * col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT col0 * - col0 + + col1 AS col2 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT + 27 * col2 FROM tab1 cor0
----
1458
1539
2592

query I rowsort
SELECT - - ( col1 ) * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col1 - tab0.col1 AS col2 FROM tab0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 + tab1.col0 col1 FROM tab1
----
165
3712
7760

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + tab2.col1 >= NULL
----

query I rowsort
SELECT ALL - col2 + + col1 * tab2.col1 * col0 FROM tab2
----
22793
271492
6700

query I rowsort
SELECT + col0 + + tab2.col2 * - col2 AS col0 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT - col0 * + col2 * - col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + col2 - - col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL col1 * - tab1.col2 + - tab1.col2 AS col1 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT col2 + + tab1.col0 DIV col1 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-2739
SELECT col2 + + tab1.col0 / col1 FROM tab1
----
102
54
63

query I rowsort
SELECT ALL + col0 * + cor0.col2 + - cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 9 + col2 * - 98 AS col0 FROM tab1 AS cor0
----
-5301
-5595
-9417

query I rowsort
SELECT - 43 * col0 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-197808
-57670
-9324

query I rowsort
SELECT DISTINCT - + 36 AS col1 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT - + col0 + + col1 * col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - + 80 AS col0 FROM tab1 cor0
----
-80
-80
-80

query I rowsort
SELECT - col1 * - ( col1 ) + - col0 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + + 67 AS col1 FROM tab0 AS cor0
----
67

query I rowsort
SELECT ALL cor0.col0 * - 4 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT - ( col0 ) + - col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2750
SELECT + CAST( - 20 AS SIGNED ) FROM tab0 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-2750
SELECT + CAST ( - 20 AS INTEGER ) FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT + - col2 DIV + 87 + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2751
SELECT + - col2 / + 87 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - - col1 * col0 FROM tab2 cor0
----
1343
217
4602

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f

query I rowsort
SELECT col0 + col0 + + col1 FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT + + ( + col1 ) + col2 DIV - cor0.col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-2755
SELECT + + ( + col1 ) + col2 / - cor0.col1 FROM tab2 AS cor0
----
15
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT - - ( + cor0.col2 ) * - col2 + - col2 + col0 DIV col0 FROM tab0 AS cor0
----
-1
-1121
-6805

skipif mysql # not compatible
query I rowsort label-2756
SELECT - - ( + cor0.col2 ) * - col2 + - col2 + col0 / col0 FROM tab0 AS cor0
----
-1
-1121
-6805

query I rowsort
SELECT ( + col1 ) * - col1 * col1 + - 97 AS col2 FROM tab2
----
-205476
-29888
-5010

query I rowsort
SELECT + cor0.col0 * - ( + col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT 57 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT col0 + - tab1.col2 - col1 FROM tab1
----
-29
-3
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col1 * + 48 col1 FROM tab0
----
162960
388752
99072

query I rowsort
SELECT - col0 + col2 + 24 FROM tab2 AS cor0
----
-17
-28
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col1 col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - 8 FROM tab0, tab0 AS cor0, tab2 cor1
----
-8

query I rowsort
SELECT - - col1 * + 27 AS col0 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT - - col0 * - 3 * col0 FROM tab0 cor0
----
-1728
-23763
-3675

query I rowsort
SELECT ALL + col2 + cor0.col0 AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col2 * + 9 FROM tab1 AS cor0
----
-486
-513
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab0.col2 + + 42 * tab0.col1 col2 FROM tab0
----
-3640
3977
774

query I rowsort
SELECT - + col1 + + col1 - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + 17 * cor0.col2 + - col1 FROM tab1 AS cor0
----
1619
892
959

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2772
SELECT + CAST( NULL AS DECIMAL ) * - col2 + col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT + CAST ( NULL AS REAL ) * - col2 + col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col0 col2 FROM tab2, tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col0 * + ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT - col0 DIV col1 + - col2 DIV - col2 + - col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT - col0 / col1 + - col2 / - col2 + - col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL ( + col1 ) + col2 * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 + + col1 + - col0 col1 FROM tab0 AS cor0
----
3
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT col2 * - cor0.col2 - + col2 DIV col2 FROM tab1 AS cor0
----
-2917
-3250
-9217

skipif mysql # not compatible
query I rowsort label-2778
SELECT col2 * - cor0.col2 - + col2 / col2 FROM tab1 AS cor0
----
-2917
-3250
-9217

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2779
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-2779
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2781
SELECT - col0 + - col1 * col1 * col1 + col1 * col2 DIV col1 FROM tab1 AS cor0
----
-1007
-17525
-2181

skipif mysql # not compatible
query I rowsort label-2781
SELECT - col0 + - col1 * col1 * col1 + col1 * col2 / col1 FROM tab1 AS cor0
----
-1007
-17525
-2181

query I rowsort
SELECT ALL + + col1 + col2 + - col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 68 + col2 FROM tab0 AS cor0
----
101
150
69

query I rowsort
SELECT - - col2 - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + ( col2 * col2 ) + 70 FROM tab1
----
2986
3319
9286

query I rowsort
SELECT 65 * col2 + ( - col0 + - col0 ) FROM tab0
----
-5
2097
5152

query I rowsort
SELECT cor0.col2 + + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd

query I rowsort
SELECT DISTINCT cor0.col0 + 86 * 79 AS col0 FROM tab1, tab2 cor0
----
6801
6872
6873

query I rowsort
SELECT + - 72 * col1 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT - col0 * + col2 + + 78 FROM tab0 AS cor0
----
-714
-7220
43

query I rowsort
SELECT + 9 + col2 * col0 AS col0 FROM tab0 AS cor0
----
44
7307
801

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-448
1280
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-2793
SELECT DISTINCT - 25 DIV col1 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT - 25 / col1 FROM tab2 cor0
----
-1
0

query I rowsort
SELECT DISTINCT - + col2 * 98 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT DISTINCT - - cor0.col2 + - 69 AS col0 FROM tab1 AS cor0
----
-12
-15
27

query I rowsort
SELECT ALL - + col1 * ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col1 + + 4 AS col2 FROM tab0 cor0
----
-82
-87
-93

query I rowsort
SELECT ALL - cor0.col2 * 17 * + 92 AS col0 FROM tab0 AS cor0
----
-128248
-1564
-51612

query I rowsort
SELECT + + col2 * - 13 AS col1 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT ALL col1 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT DISTINCT + col0 * - 66 + col0 AS col0 FROM tab0 AS cor0
----
-1560
-2275
-5785

onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT DISTINCT col2 * + col1 + - col0 DIV col1 FROM tab2 AS cor0
----
1533
642
837

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT col2 * + col1 + - col0 / col1 FROM tab2 AS cor0
----
1533
642
837

query I rowsort
SELECT - + 13 + cor0.col2 AS col0 FROM tab2 AS cor0
----
13
14
25

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + + 99 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 66b0b0906bcd72d5f1ade3ec251d414d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2806
SELECT CAST( + col2 AS SIGNED ) * col1 + - 32 FROM tab1
----
1216
1372
538

skipif mysql # not compatible
query I rowsort label-2806
SELECT CAST ( + col2 AS INTEGER ) * col1 + - 32 FROM tab1
----
1216
1372
538

query I rowsort
SELECT ALL 67 + col1 AS col0 FROM tab0
----
153
158
164

query I rowsort
SELECT ALL ( col1 ) * ( tab2.col1 ) + tab2.col2 AS col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL + 19 + col0 AS col0 FROM tab2
----
26
97
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2810
SELECT + 47 DIV - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

skipif mysql # not compatible
query I rowsort label-2810
SELECT + 47 / - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT ALL col1 + col2 DIV + col2 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL col1 + col2 / + col2 AS col2 FROM tab1
----
11
14
27

query I rowsort
SELECT + col2 * + ( 6 ) AS col0 FROM tab1
----
324
342
576

query I rowsort
SELECT ALL + cor0.col1 + col1 * col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 15 * col0 * - col1 col0 FROM tab0 AS cor0
----
-121396
-30936
-50890

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929

query I rowsort
SELECT ALL col2 * col0 + 86 FROM tab0 AS cor0
----
121
7384
878

query I rowsort
SELECT ALL ( + 44 ) + tab1.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to a7917b43255f748866cc909b9a7a6291

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2818
SELECT col1 * CAST( col0 AS SIGNED ) FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2818
SELECT col1 * CAST ( col0 AS INTEGER ) FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2819
SELECT - + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT - + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col2 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + col0 * 83 FROM tab1 AS cor0
----
249
5312
6640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2822
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 * col2 * - col0 AS col2 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL 44 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1490
-602
-793

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + + col1 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + 43 AS col1 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL - + 32 + + col1 * + col2 FROM tab2 AS cor0
----
1502
614
805

query I rowsort
SELECT DISTINCT + 65 * col2 FROM tab0 AS cor0
----
2145
5330
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT + 40 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT + 40 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( cor0.col0 ) * col1 + - 33 * col0 * - col2 FROM tab0 AS cor0
----
-2240
232735
24072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2833
SELECT ALL + CAST( ( + col1 ) * 68 + 71 AS SIGNED ) FROM tab0
----
5919
6259
6667

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + CAST ( ( + col1 ) * 68 + 71 AS INTEGER ) FROM tab0
----
5919
6259
6667

query I rowsort
SELECT 45 * col2 FROM tab1
----
2430
2565
4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col0 ) * - col2 + - col1 col0 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2836
SELECT ALL - - cor0.col2 * + cor0.col2 + col0 + 1 DIV - col2 col1 FROM tab0 AS cor0
----
1113
35
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - - cor0.col2 * + cor0.col2 + col0 + 1 / - col2 col1 FROM tab0 AS cor0
----
1113
35
6813

query I rowsort
SELECT - 81 FROM tab1 cor0
----
-81
-81
-81

query I rowsort
SELECT 53 * + col1 AS col0 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT 83 + col1 * + ( 53 * + col2 ) AS col1 FROM tab1 cor0
----
30293
66227
74495

query I rowsort
SELECT 55 + + ( col1 ) FROM tab2
----
114
72
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2841
SELECT ALL + col1 DIV 10 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
30
31
39

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + col1 / 10 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
30
31
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2842
SELECT - col0 + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-2842
SELECT - col0 + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col0 col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col1 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2845
SELECT DISTINCT + col2 + + ( 69 ) + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT + col2 + + ( 69 ) + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT ALL + col0 DIV + ( col1 ) + col0 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + col0 / + ( col1 ) + col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col1 + + col2 * + 87 FROM tab0 AS cor0
----
-10
2785
7043

onlyif mysql # use DIV operator for integer division
query I rowsort label-2848
SELECT - col1 DIV - col1 - - 71 * cor0.col0 AS col0 FROM tab2 AS cor0
----
498
5539
5610

skipif mysql # not compatible
query I rowsort label-2848
SELECT - col1 / - col1 - - 71 * cor0.col0 AS col0 FROM tab2 AS cor0
----
498
5539
5610

query I rowsort
SELECT + + col1 * 28 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT col0 * 27 + + 12 AS col0 FROM tab0 cor0
----
2415
660
957

skipif mysql # not compatible
query I rowsort
SELECT - - col2 * CAST ( - cor0.col2 AS REAL ) * - col2 - col2 * + 45 FROM tab2 AS cor0
----
16406
18468
53162

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * col2 + + cor0.col1 col1 FROM tab2 AS cor0
----
1255
1273
1765

query I rowsort
SELECT + 44 * + 56 AS col2 FROM tab1 AS cor0
----
2464
2464
2464

query I rowsort
SELECT - col2 + col0 * - ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT col2 * - cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col0 + col2 * + 98 FROM tab0 AS cor0
----
133
3258
8125

query I rowsort
SELECT + 42 + - col0 * col1 FROM tab2 AS cor0
----
-1301
-175
-4560

query I rowsort
SELECT - 83 FROM tab1 cor0
----
-83
-83
-83

query I rowsort
SELECT + - 73 * col0 FROM tab0 cor0
----
-1752
-2555
-6497

query I rowsort
SELECT ALL - col2 * col0 + + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2862
SELECT ALL + col2 DIV - 35 + col0 FROM tab2 AS cor0
----
7
78
78

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL + col2 / - 35 + col0 FROM tab2 AS cor0
----
7
78
78

query I rowsort
SELECT - col2 * - col1 + 64 * + col2 FROM tab0 AS cor0
----
12710
161
4950

query I rowsort
SELECT ALL + + cor0.col2 + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - - col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - col2 + 61 AS col0 FROM tab2 AS cor0
----
23
34
35

query I rowsort
SELECT DISTINCT col1 * 66 AS col2 FROM tab0
----
5676
6006
6402

query I rowsort
SELECT DISTINCT + ( 40 ) * + tab0.col2 FROM tab0
----
1320
3280
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2869
SELECT - CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2869
SELECT - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab2
----
54
54
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2871
SELECT CAST( NULL AS DECIMAL ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT CAST ( NULL AS REAL ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col0 ) - + col1 FROM tab2
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2873
SELECT + CAST( NULL AS SIGNED ) + col2 * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT + CAST ( NULL AS INTEGER ) + col2 * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col0 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2877
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT - ( + col1 ) * tab1.col0 + + col2 * - col0 FROM tab1
----
-240
-4288
-8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-2879
SELECT 92 DIV cor0.col1 + - col2 FROM tab1 cor0
----
-48
-51
-89

skipif mysql # not compatible
query I rowsort label-2879
SELECT 92 / cor0.col1 + - col2 FROM tab1 cor0
----
-48
-51
-89

query I rowsort
SELECT + 7 + - col1 AS col1 FROM tab1
----
-19
-3
-6

query I rowsort
SELECT DISTINCT col2 * col2 * - ( 35 * + tab2.col2 ) FROM tab2
----
-1920520
-615160
-688905

query I rowsort
SELECT - 6 * - tab2.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 687d40698910b137efdf952c513255fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT + col2 * col0 DIV 62 FROM tab1 AS cor0
----
123
2
58

skipif mysql # not compatible
query I rowsort label-2883
SELECT + col2 * col0 / 62 FROM tab1 AS cor0
----
123
2
58

query I rowsort
SELECT DISTINCT - - 26 AS col2 FROM tab1 AS cor0
----
26

query I rowsort
SELECT - tab0.col0 - col1 AS col0 FROM tab0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT ALL + col2 DIV 84 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL + col2 / 84 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT - col1 * - cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - + col0 * + 34 + + col1 FROM tab1 AS cor0
----
-2166
-2707
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT CAST( NULL AS SIGNED ) + col2 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT CAST ( NULL AS INTEGER ) + col2 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT ALL col0 + + col2 + col0 * CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL col0 + + col2 + col0 * CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 23 ) * + col1 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - ( col2 ) * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - + col0 + + 74 FROM tab0 AS cor0
----
-15
39
50

query I rowsort
SELECT DISTINCT - 58 + ( - col0 ) FROM tab2 AS cor0
----
-136
-137
-65

query I rowsort
SELECT - ( col2 ) * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - cor0.col2 * ( - col1 * cor0.col1 ) FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2898
SELECT CAST( NULL AS DECIMAL ) * 83 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT CAST ( NULL AS REAL ) * 83 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2899
SELECT ALL + 74 DIV ( col1 ) + ( - 77 ) FROM tab1 AS cor0
----
-70
-72
-75

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL + 74 / ( col1 ) + ( - 77 ) FROM tab1 AS cor0
----
-70
-72
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( - col1 ) col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2901
SELECT DISTINCT + col1 DIV + tab2.col1 col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT + col1 / + tab2.col1 col0 FROM tab2
----
1

query I rowsort
SELECT + col0 * + col1 + + col0 * col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT ALL - col1 * col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL cor0.col0 * 7 FROM tab1 AS cor0
----
21
448
560

query I rowsort
SELECT + ( - 85 ) AS col1 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + + col0 + + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - + col1 * - ( - col2 ) + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - + 32 * - cor0.col2 FROM tab0 cor0
----
1056
2624
32

query I rowsort
SELECT DISTINCT + ( 49 ) AS col2 FROM tab0 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 * 74 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 1b670cf8d34c92c73c4e34c87ef2b328

query I rowsort
SELECT DISTINCT - + col1 * ( col1 ) - + col1 * - cor0.col0 FROM tab2 AS cor0
----
-744
1054
1121

query I rowsort
SELECT ALL + cor0.col0 - 69 FROM tab0 AS cor0
----
-34
-45
20

query I rowsort
SELECT - + cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + tab2.col2 * col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT tab0.col2 + - 5 FROM tab0
----
-4
28
77

query I rowsort
SELECT + + 20 AS col2 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2917
SELECT col0 * tab0.col1 + col1 DIV col1 FROM tab0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-2917
SELECT col0 * tab0.col1 + col1 / col1 FROM tab0
----
2065
3396
8100

query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT + col1 * tab2.col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + + col1 + + col1 * + 14 * - col2 AS col0 FROM tab2 AS cor0
----
-11687
-21417
-9027

query I rowsort
SELECT 45 + col1 * + col2 AS col2 FROM tab1
----
1293
1449
615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 82 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-207
-3399
-879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 * 52 col1 FROM tab1 AS cor0
----
1355
584
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col0 col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + 61 * - col1 FROM tab1 AS cor0
----
-1586
-610
-793

query I rowsort
SELECT - + 14 * col2 FROM tab1 cor0
----
-1344
-756
-798

query I rowsort
SELECT - 90 FROM tab0, tab1, tab0 cor0, tab0 cor1
----
81 values hashing to 7414b682e5ab5dac55bc20746601d17a

query I rowsort
SELECT ALL - col1 + - tab1.col0 FROM tab1
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2930
SELECT ALL CAST( NULL AS DECIMAL ) + tab2.col2 + - col2 * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL CAST ( NULL AS REAL ) + tab2.col2 + - col2 * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 8 + tab1.col1 + col2 FROM tab1
----
117
75
88

query I rowsort
SELECT ALL - col2 + tab2.col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - + 52 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT - col2 * + col0 + + ( col0 ) * col0 FROM tab2 AS cor0
----
-140
3239
4056

onlyif mysql # use DIV operator for integer division
query I rowsort label-2935
SELECT + + ( + col1 ) DIV 12 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2935
SELECT + + ( + col1 ) / 12 FROM tab2 AS cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col0 FROM tab2 cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2937
SELECT + col1 + - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT + col1 + - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * col1 + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + + ( - col2 ) * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - + 8 * + col2 FROM tab2 AS cor0
----
-208
-216
-304

query I rowsort
SELECT ALL + ( - col0 ) * - col2 * + col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL + 10 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT ALL - ( + col0 ) + col0 DIV col1 col0 FROM tab2 AS cor0
----
-7
-75
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - ( + col0 ) + col0 / col1 col0 FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT - col1 * - tab1.col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT - + col2 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col0 + col0 * cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - col1 * 66 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT + col0 * ( col1 * - col0 ) AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT + col0 DIV - col0 + ( col2 + col2 ) FROM tab1 AS cor0
----
107
113
191

skipif mysql # not compatible
query I rowsort label-2949
SELECT + col0 / - col0 + ( col2 + col2 ) FROM tab1 AS cor0
----
107
113
191

query I rowsort
SELECT - - col0 * + 18 + col2 AS col2 FROM tab0 AS cor0
----
1684
465
631

query I rowsort
SELECT ALL - 50 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2952
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-2952
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT col2 + - cor0.col1 AS col1 FROM tab1 cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2954
SELECT cor0.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-2954
SELECT cor0.col1 / + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 53 AS col1 FROM tab0 AS cor0
----
-18
-29
36

query I rowsort
SELECT col1 * 95 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT DISTINCT 40 + + col0 FROM tab0 AS cor0
----
129
64
75

query I rowsort
SELECT ALL + + cor0.col1 - 48 AS col1 FROM tab1 AS cor0
----
-22
-35
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2959
SELECT DISTINCT + 14 * + col0 + col1 DIV + col1 FROM tab0 AS cor0
----
1247
337
491

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT + 14 * + col0 + col1 / + col1 FROM tab0 AS cor0
----
1247
337
491

query I rowsort
SELECT ALL + - 99 - - 37 AS col2 FROM tab0 AS cor0
----
-62
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2961
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2962
SELECT - CAST( + cor0.col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2962
SELECT - CAST ( + cor0.col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT + - CAST( NULL AS SIGNED ) * col2 + + col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT + - CAST ( NULL AS INTEGER ) * col2 + + col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 63 AS col1 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL - col0 * - col1 - + col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT 55 * col1 + col0 FROM tab2 AS cor0
----
1014
1712
3323

query I rowsort
SELECT + + cor0.col2 * col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + - 7 * col2 - 98 FROM tab1 cor0
----
-476
-497
-770

query I rowsort
SELECT DISTINCT 41 + 94 FROM tab2, tab0 AS cor0
----
135

query I rowsort
SELECT 58 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2971
SELECT - + 75 * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT - + 75 * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT DISTINCT + ( col1 ) DIV tab1.col1 + col2 AS col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + ( col1 ) / tab1.col1 + col2 AS col2 FROM tab1
----
55
58
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2974
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 * + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 * + col1 FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2975
SELECT col0 * - col2 - - CAST( - col0 AS SIGNED ) * cor0.col2 FROM tab0 cor0
----
-14596
-1584
-70

skipif mysql # not compatible
query I rowsort label-2975
SELECT col0 * - col2 - - CAST ( - col0 AS INTEGER ) * cor0.col2 FROM tab0 cor0
----
-14596
-1584
-70

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf

onlyif mysql # use DIV operator for integer division
query I rowsort label-2977
SELECT col2 + 61 DIV + col1 + 67 * + 0 AS col1 FROM tab2
----
27
28
41

skipif mysql # not compatible
query I rowsort label-2977
SELECT col2 + 61 / + col1 + 67 * + 0 AS col1 FROM tab2
----
27
28
41

query I rowsort
SELECT ALL + ( 8 ) * + col1 FROM tab2
----
136
248
472

onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT DISTINCT col2 DIV + ( + col2 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT col2 / + ( + col2 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT tab1.col2 * - col0 * - col1 - 30 AS col0 FROM tab1
----
36450
4182
99810

onlyif mysql # use DIV operator for integer division
query I rowsort label-2981
SELECT DISTINCT ( - col1 ) DIV - col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT ( - col1 ) / - col2 AS col0 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT ( + tab2.col2 ) FROM tab2
----
26
27
38

query I rowsort
SELECT col2 * - col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT + + 96 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-13

skipif mysql # not compatible
query I rowsort label-2984
SELECT + + 96 / - col0 FROM tab2 AS cor0
----
-1
-1
-13

query I rowsort
SELECT 95 AS col2 FROM tab2 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT + 93 * + col0 + + 54 * + 10 FROM tab2 AS cor0
----
1191
7794
7887

query I rowsort
SELECT - 71 * col0 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT ALL + 64 * col0 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT DISTINCT col1 * col2 + - ( + ( col0 ) * col0 ) FROM tab1 cor0
----
-3526
-5152
1395

query I rowsort
SELECT DISTINCT col1 * + col2 * - cor0.col0 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col1 * - col0 * col2 + col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT col1 + - col1 + - tab2.col0 * - col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col1 * cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - - col1 - - col2 * - 69 AS col1 FROM tab1 AS cor0
----
-3700
-3923
-6611

query I rowsort
SELECT col1 * 40 FROM tab1 AS cor0
----
1040
400
520

skipif mysql # not compatible
query I rowsort
SELECT - col0 + + CAST ( + cor0.col1 AS REAL ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + - col1 * cor0.col0 * + 75 + - col1 FROM tab1 AS cor0
----
-48010
-5876
-78013

query I rowsort
SELECT DISTINCT + 15 + cor0.col0 FROM tab1 AS cor0
----
18
79
95

query I rowsort
SELECT + ( 90 ) AS col2 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + ( col2 ) * + col2 - + col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL - + 42 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT DISTINCT - cor0.col2 + + 44 FROM tab1 AS cor0
----
-10
-13
-52

query I rowsort
SELECT 68 + + 3 AS col2 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3006
SELECT ALL - 53 DIV + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - 53 / + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT ( 10 ) + + col1 AS col2 FROM tab0 AS cor0
----
101
107
96

query I rowsort
SELECT DISTINCT - - col0 * - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col1 * - 86 FROM tab0 AS cor0
----
-7396
-7826
-8342

query I rowsort
SELECT DISTINCT - 80 + - col1 FROM tab0 AS cor0
----
-166
-171
-177

onlyif mysql # use DIV operator for integer division
query I rowsort label-3011
SELECT DISTINCT - + ( - col1 ) DIV col1 col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT - + ( - col1 ) / col1 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col0 + ( + col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + cor0.col1 + 41 FROM tab1 AS cor0
----
51
54
67

query I rowsort
SELECT tab1.col2 * - 17 * + col1 AS col1 FROM tab1
----
-21216
-23868
-9690

query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3017
SELECT ALL - CAST( 17 AS SIGNED ) + col2 FROM tab1 cor0
----
37
40
79

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - CAST ( 17 AS INTEGER ) + col2 FROM tab1 cor0
----
37
40
79

query I rowsort
SELECT + col2 * ( col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 74 - - cor0.col0 col0 FROM tab2 AS cor0
----
2002
2005
2891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 55 ) + cor0.col1 col1 FROM tab1 AS cor0
----
65
68
81

query I rowsort
SELECT ALL + ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT 52 * + 89 + cor0.col0 * + 91 FROM tab0 AS cor0
----
12727
6812
7813

query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3024
SELECT DISTINCT CAST( NULL AS SIGNED ) / + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + tab2.col1 col1 FROM tab2
----
125
83
97

query I rowsort
SELECT col2 - + col2 * col0 AS col0 FROM tab0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT - col1 DIV - cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3027
SELECT - col1 / - cor0.col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - cor0.col1 + - 27 * cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1043
-2576
-767

query I rowsort
SELECT + col2 * + cor0.col0 - - col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT ALL col0 - + ( + col0 + - col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col0 * col2 + col2 * col2 AS col0 FROM tab0 cor0
----
-34
-574
297

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3032
SELECT col0 - CAST( NULL AS SIGNED ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT col0 - CAST ( NULL AS INTEGER ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col0 - + 55 FROM tab0 AS cor0
----
-1280
-631
-7976

query I rowsort
SELECT ALL col1 * + col0 - col0 AS col2 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT ALL + 62 * - col0 - + 67 FROM tab2
----
-4903
-4965
-501

query I rowsort
SELECT ALL col2 + 26 AS col0 FROM tab1
----
122
80
83

query I rowsort
SELECT ALL - col0 + + col1 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col2 * 24 AS col2 FROM tab2
----
-624
-648
-912

query I rowsort
SELECT ALL - col1 + col0 * 6 FROM tab0
----
113
443
58

query I rowsort
SELECT DISTINCT + col1 + - 2 FROM tab0 AS cor0
----
84
89
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT DISTINCT cor0.col2 DIV 66 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT cor0.col2 / 66 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 84 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT DISTINCT - - col0 + - 36 AS col1 FROM tab0 AS cor0
----
-1
-12
53

query I rowsort
SELECT + col2 * col0 + - 21 * - cor0.col2 FROM tab0 AS cor0
----
1485
56
9020

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col1 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col1 * col2 col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + - cor0.col1 + + cor0.col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL col0 * col0 + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - cor0.col1 col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - cor0.col0 + - col2 AS col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - col1 + + col1 * - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL - cor0.col1 + cor0.col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT col0 * - col0 - - col2 AS col1 FROM tab0 cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * cor0.col0 + col0 * col2 col0 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT ALL + cor0.col2 + + col0 * cor0.col1 * + col1 FROM tab0 AS cor0
----
177537
329316
737091

query I rowsort
SELECT DISTINCT + col2 * col0 + tab2.col1 FROM tab2
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 + col1 col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - col2 + + col1 * tab0.col0 AS col1 FROM tab0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT col1 * col0 + - col1 * col1 + + col1 DIV col0 AS col1 FROM tab2
----
-740
1054
1121

skipif mysql # not compatible
query I rowsort label-3060
SELECT col1 * col0 + - col1 * col1 + + col1 / col0 AS col1 FROM tab2
----
-740
1054
1121

query I rowsort
SELECT - cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT + + col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3062
SELECT + + col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col0 * col2 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT - + 27 - + col1 FROM tab1 AS cor0
----
-37
-40
-53

query I rowsort
SELECT - + col2 + + col1 * - col2 FROM tab2 AS cor0
----
-1560
-684
-864

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-3067
SELECT col2 + + col1 DIV + col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3067
SELECT col2 + + col1 / + col1 FROM tab0
----
2
34
83

query I rowsort
SELECT - col0 - - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + - tab2.col0 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col2 * - col2 * + 94 FROM tab0
----
102366
632056
94

query I rowsort
SELECT - - 95 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT - - cor0.col2 - col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3073
SELECT ALL CAST( + 66 AS SIGNED ) + cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f0cfa5fe36736846f95821dc37e20e6f

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL CAST ( + 66 AS INTEGER ) + cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f0cfa5fe36736846f95821dc37e20e6f

query I rowsort
SELECT - col0 + - col1 * 23 FROM tab0 AS cor0
----
-2002
-2182
-2266

query I rowsort
SELECT col2 * - col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT 91 AS col1 FROM tab1
----
91
91
91

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab2
----
33

query I rowsort
SELECT ALL tab0.col2 * - cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6e956995b57dab53690e9e5feefd0b3a

query I rowsort
SELECT tab1.col2 * - tab1.col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col0 * - col1 + - col0 AS col0 FROM tab2 WHERE ( - col2 * col2 ) NOT IN ( col2 )
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col0 FROM tab1
----
109
67
80

query I rowsort
SELECT col2 - + tab0.col1 * - col0 * col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT DISTINCT + tab2.col0 - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col2 * tab2.col2 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE + col0 * col0 < NULL
----

query I rowsort
SELECT DISTINCT - col1 + - tab1.col2 * + tab1.col2 FROM tab1
----
-2942
-3259
-9229

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 BETWEEN NULL AND - col2 + col0
----

query I rowsort
SELECT DISTINCT + col0 + col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT - tab2.col1 + col2 FROM tab2
----
-33
-4
21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col1
----

query I rowsort
SELECT col2 - - col0 AS col1 FROM tab2
----
104
117
34

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = ( NULL )
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT - col2 IN ( + col0 )
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT ALL tab1.col2 - col2 DIV col0 AS col0 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL tab1.col2 - col2 / col0 AS col0 FROM tab1
----
36
57
95

query I rowsort
SELECT ALL - col0 + tab2.col0 FROM tab2 WHERE NOT NULL NOT IN ( - col2 - col0 )
----

query I rowsort
SELECT col1 + col1 * + col2 * col1 FROM tab1
----
16237
36530
5710

query I rowsort
SELECT ALL - tab2.col1 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + 71 * + tab0.col1 FROM tab0
----
6106
6461
6887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( + col2 + + col1 ) * + 9 col1 FROM tab0 AS cor0
----
127674
35343
882

query I rowsort
SELECT DISTINCT + col0 * - ( cor0.col2 ) + col2 + + ( - col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 + col2 + col2 col1 FROM tab1
----
111
178
272

query I rowsort
SELECT + 2 AS col1 FROM tab0
----
2
2
2

query I rowsort
SELECT + 12 * + col2 AS col0 FROM tab2
----
312
324
456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3106
SELECT - col0 * CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3106
SELECT - col0 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * ( + col1 ) col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col1 * ( - col0 + - 8 ) FROM tab2
----
-1479
-465
-5074

query I rowsort
SELECT + + 26 * - col1 - col0 AS col0 FROM tab1 AS cor0
----
-324
-418
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 94 col2 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT col2 * - 53 - col2 * 98 FROM tab1 AS cor0
----
-14496
-8154
-8607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 + col0 col2 FROM tab1 AS cor0
----
-12
-28
-89

query I rowsort
SELECT - ( cor0.col2 ) + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 58 * + col0 AS col2 FROM tab2 AS cor0
----
-406
-4524
-4582

query I rowsort
SELECT + - cor0.col1 + cor0.col1 * col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL - 88 * col1 + + col1 * col1 FROM tab2 AS cor0
----
-1207
-1711
-1767

query I rowsort
SELECT - 8 * col1 AS col0 FROM tab1
----
-104
-208
-80

query I rowsort
SELECT - 21 * cor0.col1 - - ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT col0 * col2 + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - + cor0.col2 + col0 * col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + 46 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL - col2 - - cor0.col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * cor0.col0 - col2 * - 62 FROM tab1 AS cor0
----
13632
3510
7182

query I rowsort
SELECT ALL 71 + col1 AS col0 FROM tab0 AS cor0
----
157
162
168

onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT DISTINCT 13 * col2 DIV - 85 + - 51 FROM tab0 AS cor0
----
-51
-56
-63

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT 13 * col2 / - 85 + - 51 FROM tab0 AS cor0
----
-51
-56
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT ALL col2 + + col1 DIV + col1 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL col2 + + col1 / + col1 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT + + col2 * - cor0.col1 + + 73 FROM tab2 AS cor0
----
-1461
-573
-764

onlyif mysql # use DIV operator for integer division
query I rowsort label-3130
SELECT DISTINCT + 25 + - col2 DIV col1 FROM tab1 AS cor0
----
18
20
23

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT + 25 + - col2 / col1 FROM tab1 AS cor0
----
18
20
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3131
SELECT + col0 * + col1 * CAST( col0 AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
288
41017
83296

skipif mysql # not compatible
query I rowsort label-3131
SELECT + col0 * + col1 * CAST ( col0 AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
288
41017
83296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3132
SELECT + col2 * cor0.col1 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT + col2 * cor0.col1 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - - cor0.col1 + 40 AS col1 FROM tab1 AS cor0
----
50
53
66

query I rowsort
SELECT + col2 * 88 + - cor0.col1 FROM tab2 AS cor0
----
2229
2345
3327

query I rowsort
SELECT ALL + - cor0.col1 * 80 + - 2 AS col0 FROM tab2 AS cor0
----
-1362
-2482
-4722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col0 FROM tab1, tab0 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3138
SELECT - col0 DIV + col2 + tab1.col0 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-3138
SELECT - col0 / + col2 + tab1.col0 FROM tab1
----
3
63
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT DISTINCT col0 + ( col2 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT col0 + ( col2 ) / + col2 AS col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT ( 50 ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col0 AS REAL ) + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - cor1.col1 + + 18 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
-8
5
8

query I rowsort
SELECT ALL + + col2 + - col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - col2 * 64 AS col1 FROM tab2 AS cor0
----
-1664
-1728
-2432

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

query I rowsort
SELECT DISTINCT col0 * ( col1 * - tab0.col1 ) FROM tab0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-3150
SELECT ( - col0 ) DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3150
SELECT ( - col0 ) / col1 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col2 FROM tab2 cor0
----
9

query I rowsort
SELECT + 96 * - col2 + - col2 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT + ( col1 * col1 ) + - 75 FROM tab0
----
7321
8206
9334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - cor0.col1 ) * col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3155
SELECT CAST( + col1 AS SIGNED ) * tab0.col0 - - 79 FROM tab0
----
2143
3474
8178

skipif mysql # not compatible
query I rowsort label-3155
SELECT CAST ( + col1 AS INTEGER ) * tab0.col0 - - 79 FROM tab0
----
2143
3474
8178

query I rowsort
SELECT + 42 * 75 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cec48f344f3a7cf98f610a1d27e57b05

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3157
SELECT DISTINCT col2 + - CAST( col1 * - col0 + + col0 AS SIGNED ) FROM tab1
----
1056
129
633

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT col2 + - CAST ( col1 * - col0 + + col0 AS INTEGER ) FROM tab1
----
1056
129
633

query I rowsort
SELECT ALL col0 * - col1 + ( tab1.col1 ) * col2 FROM tab1
----
-70
1326
208

query I rowsort
SELECT DISTINCT + - col1 + 69 FROM tab1 cor0
----
43
56
59

query I rowsort
SELECT + - col2 + + 90 * - col0 * + col1 FROM tab2 AS cor0
----
-120908
-19557
-414206

query I rowsort
SELECT - col0 - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * cor0.col0 + col2 col2 FROM tab2 AS cor0
----
107
6169
6296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * 17 col0 FROM tab0
----
-1326
-1326
-1326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + + col0 col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - + ( + col0 ) + col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 21 * 9 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2253
3584
8288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3167
SELECT CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 87 * - col0 FROM tab2 AS cor0
----
609
6786
6873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * tab0.col0 * col1 col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - 37 * col1 AS col1 FROM tab2
----
-1147
-2183
-629

query I rowsort
SELECT + ( tab2.col0 ) * col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - tab0.col0 * - tab0.col0 * - col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT + col1 + + col1 + + col2 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT - - 25 AS col2 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT col2 + - cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - cor1.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL col0 * - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL 76 + col0 FROM tab2 cor0
----
154
155
83

query I rowsort
SELECT - 93 + - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-127
-155
-211

query I rowsort
SELECT ALL 21 + + col2 FROM tab1 AS cor0
----
117
75
78

query I rowsort
SELECT DISTINCT + col1 - - col2 FROM tab1 cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col1 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT - 27 * col2 FROM tab1 AS cor0
----
-1458
-1539
-2592

query I rowsort
SELECT ALL + + 62 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT ALL cor0.col2 * - col2 + - col1 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT + col0 DIV ( - col2 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT + col0 / ( - col2 ) FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + - col1 * - 41 AS col1 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + - ( - col0 + + ( col1 ) ) FROM tab0 AS cor0
----
-159
-2900
-7464

query I rowsort
SELECT ALL + cor0.col1 + col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT col2 * - col2 + + 2 * + 37 FROM tab1
----
-2842
-3175
-9142

query I rowsort
SELECT - tab1.col2 + + col0 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - col2 * ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col0 - tab2.col2 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT 8 * - tab0.col0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to f174bfcdf744ed770bc50917db3881fb

query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab0
----
96

query I rowsort
SELECT ALL - 59 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT + - ( + 79 ) AS col1 FROM tab2 AS cor0
----
-79
-79
-79

query I rowsort
SELECT - 95 AS col2 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT col0 * col1 + + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT col0 - ( col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + ( + col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 8 + col2 AS col0 FROM tab0 AS cor0
----
41
9
90

query I rowsort
SELECT + col0 + 38 FROM tab1 AS cor0
----
102
118
41

query I rowsort
SELECT - cor0.col2 * - col0 + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT 71 + + col1 AS col1 FROM tab0 AS cor0
----
157
162
168

query I rowsort
SELECT + + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 + tab1.col2 col0 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL tab1.col1 + + tab1.col0 FROM tab1, tab1 cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT 83 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT + 91 * cor0.col2 + + CAST( + 3 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
4914
5187
8736

skipif mysql # not compatible
query I rowsort label-3212
SELECT + 91 * cor0.col2 + + CAST ( + 3 AS INTEGER ) / col1 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - cor0.col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT ALL col0 + col1 * col1 DIV col2 FROM tab1 AS cor0
----
15
65
81

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL col0 + col1 * col1 / col2 FROM tab1 AS cor0
----
15
65
81

query I rowsort
SELECT + 57 * + col0 + + ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
13172
3432
5390

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3217
SELECT CAST( NULL AS SIGNED ) * col0 + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT CAST ( NULL AS INTEGER ) * col0 + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 86 * + cor0.col0 - col0 * + col0 * - col2 FROM tab1 AS cor0
----
227968
228
607520

onlyif mysql # use DIV operator for integer division
query I rowsort label-3219
SELECT ALL + ( col0 ) + + col1 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL + ( col0 ) + + col1 / cor0.col0 AS col2 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + 98 * + col2 * + col2 + + col0 FROM tab1 AS cor0
----
285771
318466
903248

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3222
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - cor0.col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT CAST ( NULL AS REAL ) + - cor0.col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 + + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col2 FROM tab1
----
84
84
84

query I rowsort
SELECT - 19 * col1 + col2 FROM tab1 AS cor0
----
-133
-151
-440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 + + col0 col0 FROM tab1 AS cor0
----
129
145
68

query I rowsort
SELECT ALL col0 * col0 + col2 + col0 * col1 FROM tab0 AS cor0
----
16102
2673
4621

query I rowsort
SELECT ALL + col2 * col0 + + 79 * + col2 FROM tab2 AS cor0
----
2322
4082
6004

query I rowsort
SELECT DISTINCT + + 29 * + col1 FROM tab1 AS cor0
----
290
377
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT ALL - 87 + col0 DIV 91 FROM tab1 cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - 87 + col0 / 91 FROM tab1 cor0
----
-87
-87
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3231
SELECT - CAST( - col0 AS SIGNED ) * + col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3231
SELECT - CAST ( - col0 AS INTEGER ) * + col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - col2 + tab2.col2 * + col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT - 13 + col2 - + col2 * + col2 FROM tab0
----
-1069
-13
-6655

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3234
SELECT - CAST( + col2 AS SIGNED ) + col0 * ( + col1 ) FROM tab0
----
2031
3394
8017

skipif mysql # not compatible
query I rowsort label-3234
SELECT - CAST ( + col2 AS INTEGER ) + col0 * ( + col1 ) FROM tab0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3235
SELECT DISTINCT + col0 + + ( 19 ) DIV col1 AS col1 FROM tab1 AS cor0
----
3
65
81

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT + col0 + + ( 19 ) / col1 AS col1 FROM tab1 AS cor0
----
3
65
81

query I rowsort
SELECT DISTINCT + col1 * + 34 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT ALL col1 * col1 + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT ALL + col1 DIV + col0 - 8 * + col1 FROM tab0 AS cor0
----
-685
-727
-774

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + col1 / + col0 - 8 * + col1 FROM tab0 AS cor0
----
-685
-727
-774

query I rowsort
SELECT - - col1 * + col1 + + 25 AS col0 FROM tab2 AS cor0
----
314
3506
986

query I rowsort
SELECT ALL - - col1 + + cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - - col0 * 3 AS col1 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT col1 + - 94 AS col2 FROM tab1 AS cor0
----
-68
-81
-84

query I rowsort
SELECT ALL cor0.col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col1 * + 45 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT DISTINCT + + col0 * col1 * - col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT ALL - + col1 + + ( col1 + + col2 ) DIV + col1 FROM tab1 AS cor0
----
-23
-4
-5

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - + col1 + + ( col1 + + col2 ) / + col1 FROM tab1 AS cor0
----
-23
-4
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT ALL col1 - 11 FROM tab0
----
75
80
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT DISTINCT + cor1.col1 DIV 3 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
3
4
8

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + cor1.col1 / 3 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
3
4
8

query I rowsort
SELECT ALL - ( 50 ) FROM tab2, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT - col0 + 14 * + col0 * col0 FROM tab0 AS cor0
----
110805
17115
8040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3252
SELECT - + 23 DIV 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT - + 23 / 75 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3253
SELECT - 24 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT - 24 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3254
SELECT ALL - col1 DIV + 2 AS col0 FROM tab2
----
-15
-29
-8

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL - col1 / + 2 AS col0 FROM tab2
----
-15
-29
-8

query I rowsort
SELECT ALL + 44 + + col1 + - col0 FROM tab1 cor0
----
-10
-23
67

query I rowsort
SELECT ALL + - col1 - cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT - col1 * + col2 - col1 * 78 AS col2 FROM tab1 AS cor0
----
-1350
-2262
-3432

query I rowsort
SELECT DISTINCT - + cor0.col0 * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + ( col0 * col2 + - 38 ) FROM tab0
----
-3
7260
754

query I rowsort
SELECT DISTINCT - - col1 * + col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + col2 + + col0 * + col1 + - 77 * - col0 FROM tab2 AS cor0
----
10634
7464
783

query I rowsort
SELECT DISTINCT + + ( col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col0 * + 37 AS col2 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT DISTINCT - ( - ( - col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - ( - ( col1 ) ) - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 * - col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + col2 + 76 FROM tab0 AS cor0
----
109
158
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * - cor0.col0 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

query I rowsort
SELECT + 9 + + col2 AS col0 FROM tab2 AS cor0
----
35
36
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-3271
SELECT DISTINCT + - cor0.col1 DIV - cor0.col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1445
677
730

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT + - cor0.col1 / - cor0.col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1445
677
730

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT ALL cor0.col1 + - col1 DIV + ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
137
34
96

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL cor0.col1 + - col1 / + ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
137
34
96

query I rowsort
SELECT DISTINCT - col2 * - col2 + col1 * + 48 FROM tab2 AS cor0
----
2217
2260
3508

query I rowsort
SELECT ALL cor2.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + ( col1 ) col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 8 - - col2 FROM tab0
----
-7
25
74

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab0
----
-99

query I rowsort
SELECT - tab1.col1 - col1 AS col2 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT - col0 * - ( - 14 ) * col2 AS col0 FROM tab0 AS cor0
----
-102172
-11088
-490

query I rowsort
SELECT ALL - col2 * - col0 + col0 * + 89 + col0 AS col2 FROM tab0 AS cor0
----
15308
2952
3185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT DISTINCT + col1 * col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + col1 * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 20 + col0 * - col1 FROM tab2 AS cor0
----
-1323
-197
-4582

query I rowsort
SELECT + + 56 * + col1 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT - - 82 * col0 * + col2 FROM tab2 AS cor0
----
15498
166296
246164

query I rowsort
SELECT - 29 * + col0 * tab2.col0 + col0 * - col1 AS col1 FROM tab2
----
-1638
-181038
-182332

query I rowsort
SELECT DISTINCT 52 * col1 AS col2 FROM tab0
----
4472
4732
5044

query I rowsort
SELECT - col0 * - cor0.col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - 93 AS col2 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT + col1 * + 64 + col2 FROM tab0
----
5537
5906
6209

query I rowsort
SELECT + ( col0 * - col0 ) + col2 * + tab2.col1 FROM tab2
----
-4550
-5595
788

onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT DISTINCT cor1.col2 DIV + 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT cor1.col2 / + 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0
1

query I rowsort
SELECT DISTINCT cor0.col0 - + col0 AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col0 FROM tab2 cor0
----
83

query I rowsort
SELECT + + 64 * + col1 * col0 AS col0 FROM tab1 AS cor0
----
40960
4992
66560

query I rowsort
SELECT + ( 64 ) FROM tab1 cor0
----
64
64
64

query I rowsort
SELECT ALL - + 23 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col1 * tab2.col1 AS col1 FROM tab2
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 23 col1 FROM tab2 cor0
----
-161
-1794
-1817

query I rowsort
SELECT ALL - col1 - - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 58 + cor0.col2 * col2 FROM tab1 cor0
----
2858
3191
9158

query I rowsort
SELECT + 11 * + col1 AS col1 FROM tab2 cor0
----
187
341
649

query I rowsort
SELECT - cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3305
SELECT - - ( col1 ) DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3305
SELECT - - ( col1 ) / - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - cor1.col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + - col1 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - col0 + - col1 * + ( col0 ) FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT 26 - + col2 * - col0 AS col1 FROM tab2
----
2054
215
3028

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT - col0 - col0 DIV col0 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-3311
SELECT - col0 - col0 / col0 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT + 42 * col1 FROM tab2 AS cor0
----
1302
2478
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col0 * 98 AS col0 FROM tab2
----
686
7644
7742

onlyif mysql # use DIV operator for integer division
query I rowsort label-3315
SELECT col1 DIV ( 58 ) - + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3315
SELECT col1 / ( 58 ) - + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col1 + col2 * + 46 * - col0 FROM tab1 AS cor0
----
-167798
-353267
-7426

query I rowsort
SELECT col0 * - 72 + - ( + col2 ) * + col0 FROM tab2 AS cor0
----
-693
-7644
-8690

query I rowsort
SELECT - 38 * - col1 AS col1 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT + 98 + + 23 * + col1 * cor0.col0 FROM tab1 AS cor0
----
14818
1892
24018

query I rowsort
SELECT - 73 * col1 + col0 FROM tab2 cor0
----
-1162
-2256
-4229

query I rowsort
SELECT - col0 + col0 + 42 FROM tab2
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3322
SELECT DISTINCT - 38 - col2 DIV + 85 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - 38 - col2 / + 85 FROM tab0
----
-38

query I rowsort
SELECT DISTINCT col0 - tab1.col1 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
40

query I rowsort
SELECT ALL - - col2 * + col2 + 9 AS col0 FROM tab1 cor0
----
2925
3258
9225

query I rowsort
SELECT + col0 * col1 + col0 * + col0 AS col2 FROM tab2 cor0
----
10686
266
7584

query I rowsort
SELECT + - col0 * - col1 + - col2 - + col1 AS col0 FROM tab2 AS cor0
----
1288
159
4517

query I rowsort
SELECT DISTINCT - col2 * 54 * 58 FROM tab2 AS cor0
----
-119016
-81432
-84564

query I rowsort
SELECT - col2 + col0 - - col0 AS col2 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT - col0 * 1 + cor0.col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT - col1 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + col0 + + 91 FROM tab0 AS cor0
----
115
126
180

query I rowsort
SELECT + col2 + + cor0.col2 * - 31 - + col1 FROM tab0 AS cor0
----
-1076
-127
-2551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3335
SELECT + col2 * + col1 / CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3335
SELECT + col2 * + col1 / CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 40 - - tab1.col2 AS col1 FROM tab1
----
14
17
56

query I rowsort
SELECT + col0 * - col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL - - col2 * + col1 + - col1 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1275
1643
3009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3339
SELECT ALL + col1 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + col1 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 42 * tab2.col2 AS col2 FROM tab2
----
1092
1134
1596

query I rowsort
SELECT ( + col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - 38 * + 39 AS col1 FROM tab2 AS cor0
----
-1482
-1482
-1482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3343
SELECT - CAST( 84 AS SIGNED ) * tab0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 51002eaedb8c46c2003d6b8e1630bd2e

skipif mysql # not compatible
query I rowsort label-3343
SELECT - CAST ( 84 AS INTEGER ) * tab0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 51002eaedb8c46c2003d6b8e1630bd2e

query I rowsort
SELECT ALL col2 * + 66 FROM tab0
----
2178
5412
66

query I rowsort
SELECT + tab0.col0 * - col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + col2 * 9 - col1 FROM tab0 AS cor0
----
-88
211
647

query I rowsort
SELECT ALL - 31 * + col2 + col0 FROM tab1 AS cor0
----
-1671
-1703
-2896

onlyif mysql # use DIV operator for integer division
query I rowsort label-3348
SELECT ALL - col2 DIV + 84 - - col0 AS col1 FROM tab1 AS cor0
----
3
64
79

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL - col2 / + 84 - - col0 AS col1 FROM tab1 AS cor0
----
3
64
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT DISTINCT CAST( col0 AS SIGNED ) + col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col2 / - col2 AS col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT 78 * col0 * - col2 FROM tab1 AS cor0
----
-12636
-284544
-599040

query I rowsort
SELECT DISTINCT col2 * col1 + col2 + + col0 FROM tab2 cor0
----
1638
763
871

query I rowsort
SELECT DISTINCT - col2 + + col1 + col0 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ALL ( col0 ) + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + 76 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT - - col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + col1 * col2 + cor0.col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT DISTINCT cor0.col2 - col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + col2 * col1 * - col0 FROM tab0
----
-3430
-664207
-68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col1 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - + ( col0 ) + + col0 * col1 AS col2 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT DISTINCT col1 DIV col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT col1 / col2 FROM tab0 cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3362
SELECT ALL - col1 DIV - col0 + - col1 * - col0 FROM tab2 AS cor0
----
1343
221
4602

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - col1 / - col0 + - col1 * - col0 FROM tab2 AS cor0
----
1343
221
4602

query I rowsort
SELECT - col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3365
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / ( - col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT - CAST ( NULL AS REAL ) / ( - col2 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL ( - col0 ) * - col1 + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL tab2.col0 + col0 + tab2.col2 FROM tab2
----
182
196
41

query I rowsort
SELECT 84 FROM tab2, tab0 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT + ( col2 ) + - col1 * + col2 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - + ( col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3371
SELECT ALL 20 * col1 DIV + col1 AS col1 FROM tab1 cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL 20 * col1 / + col1 AS col1 FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT - 5 * col1 AS col0 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT DISTINCT + - cor0.col0 + - cor0.col1 AS col1 FROM tab0 cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col2 * 54 AS col0 FROM tab0
----
1782
4428
54

query I rowsort
SELECT col2 + ( - 87 ) AS col0 FROM tab2
----
-49
-60
-61

query I rowsort
SELECT ALL + + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT tab1.col1 + + tab1.col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT col0 + - 69 AS col1 FROM tab0
----
-34
-45
20

query I rowsort
SELECT - 28 * + tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c79572642404bbb8aa0a6695400bcf4e

query I rowsort
SELECT DISTINCT col1 + + col2 + + 20 AS col1 FROM tab1
----
100
129
87

query I rowsort
SELECT col0 - + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 - - cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8ccec472ba030beef859f936b43eb646

query I rowsort
SELECT DISTINCT + 46 + col0 AS col2 FROM tab0 AS cor0
----
135
70
81

query I rowsort
SELECT ( ( - cor0.col1 ) ) * - col0 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - ( - col1 ) + cor0.col2 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - col1 * + 87 + - col2 * col0 FROM tab2 AS cor0
----
-2886
-4481
-7161

query I rowsort
SELECT ALL - 4 FROM tab1
----
-4
-4
-4

query I rowsort
SELECT - tab0.col1 + 8 AS col2 FROM tab0
----
-78
-83
-89

query I rowsort
SELECT DISTINCT - ( 70 ) AS col0 FROM tab1
----
-70

query I rowsort
SELECT - col0 + 22 AS col2 FROM tab0 AS cor0
----
-13
-2
-67

query I rowsort
SELECT ALL 7 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL 22 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1270
1426
592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL + col1 + 67 FROM tab1 AS cor0
----
77
80
93

query I rowsort
SELECT DISTINCT + col2 * col0 * + col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL cor0.col2 * 21 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT DISTINCT - + col1 * 75 FROM tab1 cor0
----
-1950
-750
-975

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3399
SELECT ALL + - cor0.col0 + CAST( - col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL + - cor0.col0 + CAST ( - col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - 60 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fdbc74e6718388c1106d61c5f6d1f088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * col0 col2 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT - col2 * col1 + 57 AS col2 FROM tab1 AS cor0
----
-1191
-1347
-513

query I rowsort
SELECT ALL - col2 * - col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + + col0 * + col2 + - 67 AS col1 FROM tab2 AS cor0
----
122
1961
2935

query I rowsort
SELECT - - col0 * 56 FROM tab0 AS cor0
----
1344
1960
4984

onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT - - col2 * col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
104
18
8

skipif mysql # not compatible
query I rowsort label-3406
SELECT - - col2 * col2 / + col0 AS col2 FROM tab2 AS cor0
----
104
18
8

query I rowsort
SELECT col2 + col2 * + col2 FROM tab1
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3408
SELECT DISTINCT - cor0.col1 DIV col0 + ( - col0 ) + + col1 col2 FROM tab0 AS cor0
----
1
59
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - cor0.col1 / col0 + ( - col0 ) + + col1 col2 FROM tab0 AS cor0
----
1
59
60

query I rowsort
SELECT + ( + 15 ) FROM tab1
----
15
15
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3410
SELECT - ( cor0.col1 ) - CAST( NULL AS SIGNED ) * col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT - ( cor0.col1 ) - CAST ( NULL AS INTEGER ) * col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 87 + - col2 FROM tab1
----
-9
30
33

query I rowsort
SELECT ALL + 26 AS col1 FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT col2 + + col0 * 54 * - 28 AS col2 FROM tab0
----
-134486
-36255
-52919

query I rowsort
SELECT ALL + col1 + - col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + 1 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col1 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT 48 * - col1 FROM tab0
----
-4128
-4368
-4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT + col1 DIV - 49 + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3418
SELECT + col1 / - 49 + col1 FROM tab0 AS cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + 64 col0 FROM tab2 AS cor0
----
33
47
5

query I rowsort
SELECT DISTINCT col1 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + cor0.col0 * + 48 AS col0 FROM tab1, tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT ALL - 6 FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 8536e0a5afd23e5b21a76aa74de79430

query I rowsort
SELECT - col0 * col0 * col2 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col2 FROM tab2
----
2
2
2

query I rowsort
SELECT ALL - ( 78 ) * col1 AS col2 FROM tab0
----
-6708
-7098
-7566

query I rowsort
SELECT ALL col1 * tab2.col2 * col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ( 59 ) + col2 FROM tab1 AS cor0
----
113
116
155

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3428
SELECT + + cor0.col1 + col0 * - CAST( NULL AS SIGNED ) * 29 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT + + cor0.col1 + col0 * - CAST ( NULL AS INTEGER ) * 29 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT + 56 + col1 * + col0 + cor0.col1 * col0 DIV + 84 AS col0 FROM tab0 AS cor0
----
2144
3491
8251

skipif mysql # not compatible
query I rowsort label-3429
SELECT + 56 + col1 * + col0 + cor0.col1 * col0 / + 84 AS col0 FROM tab0 AS cor0
----
2144
3491
8251

query I rowsort
SELECT 33 AS col2 FROM tab2 cor0
----
33
33
33

query I rowsort
SELECT - 90 + - col2 * 53 FROM tab1 AS cor0
----
-2952
-3111
-5178

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT + - ( col2 ) + ( - col1 * + cor0.col0 ) - CAST( col2 + col0 AS SIGNED ) FROM tab0 AS cor0
----
-2154
-3432
-8352

skipif mysql # not compatible
query I rowsort label-3432
SELECT + - ( col2 ) + ( - col1 * + cor0.col0 ) - CAST ( col2 + col0 AS INTEGER ) FROM tab0 AS cor0
----
-2154
-3432
-8352

query I rowsort
SELECT col2 * col0 - + col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3434
SELECT ALL 1 + ( - tab1.col0 ) * + CAST( col1 AS SIGNED ) FROM tab1
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL 1 + ( - tab1.col0 ) * + CAST ( col1 AS INTEGER ) FROM tab1
----
-1039
-639
-77

query I rowsort
SELECT - ( + col2 ) * + cor0.col0 - + 55 FROM tab2 AS cor0
----
-2083
-244
-3057

onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT + - 42 + col1 DIV cor0.col2 - - col1 AS col0 FROM tab0 AS cor0
----
152
46
50

skipif mysql # not compatible
query I rowsort label-3436
SELECT + - 42 + col1 / cor0.col2 - - col1 AS col0 FROM tab0 AS cor0
----
152
46
50

query I rowsort
SELECT ALL + ( - col0 ) * - 45 AS col2 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT ALL ( + col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + ( + col0 ) + - col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT 16 + col1 FROM tab0
----
102
107
113

query I rowsort
SELECT + tab2.col1 + - col0 * col2 AS col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT - 4 + col2 AS col1 FROM tab2
----
22
23
34

query I rowsort
SELECT - - 4 + col2 FROM tab1 AS cor0
----
100
58
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3444
SELECT ALL + 26 * + cor0.col0 + 17 DIV col1 FROM tab2 AS cor0
----
182
2028
2055

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + 26 * + cor0.col0 + 17 / col1 FROM tab2 AS cor0
----
182
2028
2055

query I rowsort
SELECT + + 1 * col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - 51 + col0 * - 59 AS col0 FROM tab1 AS cor0
----
-228
-3827
-4771

query I rowsort
SELECT ALL - col2 + + 59 * - col1 AS col2 FROM tab2
----
-1041
-1856
-3507

query I rowsort
SELECT - cor0.col2 - - col2 FROM tab0 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e

query I rowsort
SELECT 14 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3451
SELECT ALL - - ( col1 ) + col0 * + CAST( - col2 * cor0.col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-207926
-737267
-8722

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL - - ( col1 ) + col0 * + CAST ( - col2 * cor0.col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 50 col1 FROM tab1 AS cor0
----
114
130
53

query I rowsort
SELECT ALL 45 * col2 AS col2 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT + 7 AS col2 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT - 76 * + 27 + + cor0.col0 FROM tab0 AS cor0
----
-1963
-2017
-2028

query I rowsort
SELECT DISTINCT col2 * col2 * col0 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-3459
SELECT + cor0.col2 DIV - col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3459
SELECT + cor0.col2 / - col0 FROM tab0 cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3460
SELECT - CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT - CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 4 * cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
101
26
73

query I rowsort
SELECT DISTINCT - cor0.col1 * + ( col1 ) * - 93 AS col0 FROM tab0 cor0
----
687828
770133
875037

query I rowsort
SELECT DISTINCT col1 * 81 * col1 FROM tab2
----
23409
281961
77841

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3464
SELECT ALL - CAST( NULL AS SIGNED ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - CAST ( NULL AS INTEGER ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 83 * + 45 AS col2 FROM tab0 AS cor0
----
3735
3735
3735

query I rowsort
SELECT col2 + + 90 FROM tab0 AS cor0
----
123
172
91

query I rowsort
SELECT ALL + ( + cor0.col1 ) + + col0 * - 45 FROM tab0 AS cor0
----
-1478
-3914
-994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3469
SELECT - CAST( NULL AS SIGNED ) / + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT - CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT ALL - + col2 DIV - 1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - + col2 / - 1 FROM tab0 AS cor0
----
1
33
82

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL <> ( cor0.col2 + cor0.col2 )
----

query I rowsort
SELECT ALL + col1 + - ( + col2 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + 28 * col0 + cor0.col2 FROM tab2 AS cor0
----
2210
223
2250

query I rowsort
SELECT 42 FROM tab1, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT - ( 4 ) + - col1 * col0 FROM tab0 AS cor0
----
-2068
-3399
-8103

query I rowsort
SELECT 15 * 86 FROM tab0
----
1290
1290
1290

query I rowsort
SELECT ( col0 * + col1 ) FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT ALL + + col2 * + col2 + + col1 DIV ( col1 ) AS col2 FROM tab1 AS cor0
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + + col2 * + col2 + + col1 / ( col1 ) AS col2 FROM tab1 AS cor0
----
2917
3250
9217

query I rowsort
SELECT ALL 16 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

query I rowsort
SELECT ALL col2 * - cor0.col1 - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col0 + - col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - + 34 * + col2 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT - 3 * 56 * + col0 + - col1 * + col2 * - col1 FROM tab0 AS cor0
----
240036
3529
664090

query I rowsort
SELECT 44 * + col0 * - 90 + - col2 FROM tab0 AS cor0
----
-138601
-352522
-95073

query I rowsort
SELECT - col1 + col1 * 4 AS col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT ALL col2 + cor0.col0 * + 13 * cor0.col1 AS col1 FROM tab0 AS cor0
----
105369
26865
44136

query I rowsort
SELECT DISTINCT + col0 * + col0 + 21 + col2 * cor0.col1 FROM tab1 AS cor0
----
1434
4687
7669

query I rowsort
SELECT + col0 * col2 + + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - 49 FROM tab1, tab2, tab2 cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT ALL col1 DIV + col1 + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-288
-3480
-960

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL col1 / + col1 + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-288
-3480
-960

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) + - col0 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT + col0 * - 29 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-196
-2184
-2212

query I rowsort
SELECT DISTINCT - + col2 * + ( - col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - cor0.col1 + + ( col2 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + col1 * + col0 + + ( + col0 ) * + col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT ALL + col2 * 11 * col1 AS col1 FROM tab2 AS cor0
----
16874
7106
9207

query I rowsort
SELECT - col2 - ( col2 ) FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT 51 * - col0 * - tab1.col2 AS col0 FROM tab1
----
186048
391680
8262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3500
SELECT + ( tab1.col2 ) - - ( col0 ) * + col1 * - CAST( - 68 AS SIGNED ) AS col1 FROM tab1
----
43577
5358
70816

skipif mysql # not compatible
query I rowsort label-3500
SELECT + ( tab1.col2 ) - - ( col0 ) * + col1 * - CAST ( - 68 AS INTEGER ) AS col1 FROM tab1
----
43577
5358
70816

query I rowsort
SELECT - col1 * + ( col0 ) * - col0 - 59 AS col1 FROM tab1 cor0
----
175
40901
83141

query I rowsort
SELECT - - col1 + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3503
SELECT + col1 DIV ( col1 ) - - col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3503
SELECT + col1 / ( col1 ) - - col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT DISTINCT + col2 * 29 + cor0.col0 AS col0 FROM tab0 AS cor0
----
2467
64
981

query I rowsort
SELECT DISTINCT col2 - + col2 * col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - col1 + - ( - tab2.col1 ) FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3508
SELECT DISTINCT col1 DIV 56 + - col0 * col1 FROM tab2 cor0
----
-1343
-217
-4601

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT col1 / 56 + - col0 * col1 FROM tab2 cor0
----
-1343
-217
-4601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3509
SELECT - col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT - col0 + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + col1 + + 20 FROM tab1 AS cor0
----
1060
660
98

query I rowsort
SELECT DISTINCT + col2 + - 27 * - cor0.col0 FROM tab0 AS cor0
----
2485
681
946

query I rowsort
SELECT DISTINCT - ( - col2 ) * tab1.col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col1 * - col2 AS col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3514
SELECT - col0 * col2 DIV tab2.col1 FROM tab2
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-3514
SELECT - col0 * col2 / tab2.col1 FROM tab2
----
-176
-34
-6

query I rowsort
SELECT + - cor0.col2 + - col0 + col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + + col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + col1 + + col0 + - col2 AS col2 FROM tab2 AS cor0
----
11
111
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col1 FROM tab1 cor0
----
121
176
57

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT ( - 43 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 * col1 + col2 ) col0 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT - 31 AS col2 FROM tab1
----
-31
-31
-31

query I rowsort
SELECT 71 * - col0 FROM tab0
----
-1704
-2485
-6319

query I rowsort
SELECT - 62 * col1 AS col2 FROM tab1
----
-1612
-620
-806

skipif mysql # not compatible
query I rowsort
SELECT - col1 + - CAST ( col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT 51 - + 24 * + cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b39ab108025e2716140d0a851a1ec71

query I rowsort
SELECT - col0 + col1 * col1 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT - - col1 + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + + col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - - cor0.col1 * - 17 FROM tab0 AS cor0
----
-1462
-1547
-1649

query I rowsort
SELECT - 38 * + col0 FROM tab0
----
-1330
-3382
-912

query I rowsort
SELECT + 9 * ( - cor0.col2 * - ( cor0.col0 ) ) FROM tab1 AS cor0
----
1458
32832
69120

query I rowsort
SELECT DISTINCT - + col1 + + 19 * col1 * - col2 AS col0 FROM tab0 AS cor0
----
-141869
-1940
-54008

query I rowsort
SELECT ALL + col2 + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 54 AS col0 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ALL - 61 AS col0 FROM tab0 cor0
----
-61
-61
-61

query I rowsort
SELECT - - 42 * col2 AS col2 FROM tab1 AS cor0
----
2268
2394
4032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 88 ) + - col0 * - col0 col0 FROM tab0 AS cor0
----
1313
664
8009

onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT + + col0 + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3540
SELECT + + col0 + col0 / col0 AS col1 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3541
SELECT col1 - - col0 * CAST( + 85 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2126
3072
7656

skipif mysql # not compatible
query I rowsort label-3541
SELECT col1 - - col0 * CAST ( + 85 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2126
3072
7656

query I rowsort
SELECT col0 + - col1 - - col0 * + 18 AS col2 FROM tab0 AS cor0
----
1600
370
568

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3543
SELECT - col0 + cor0.col2 / - CAST( NULL AS SIGNED ) + 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT - col0 + cor0.col2 / - CAST ( NULL AS INTEGER ) + 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 61 + col0 FROM tab2 AS cor0
----
-54
17
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT ALL + 96 * + col1 + col1 DIV 18 AS col1 FROM tab1 AS cor0
----
1248
2497
960

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + 96 * + col1 + col1 / 18 AS col1 FROM tab1 AS cor0
----
1248
2497
960

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL col1 * cor0.col0 + - 76 FROM tab2 AS cor0
----
1267
141
4526

query I rowsort
SELECT DISTINCT - col0 + + col2 + + col0 AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT 71 + - col1 FROM tab1 cor0
----
45
58
61

query I rowsort
SELECT - col0 * + col1 - - col2 * - col0 * + col2 FROM tab0 AS cor0
----
-28200
-3430
-606535

query I rowsort
SELECT + + ( col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT ALL + col2 DIV - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + col2 / - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT - col0 * + 66 + + col1 - - cor0.col0 FROM tab2 AS cor0
----
-424
-5011
-5118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3554
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3554
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3555
SELECT DISTINCT col2 * CAST( 21 AS SIGNED ) FROM tab0 AS cor0
----
1722
21
693

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT col2 * CAST ( 21 AS INTEGER ) FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT + - col1 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT - col1 + - ( ( cor0.col0 ) ) AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - col2 + + ( col1 ) FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT col0 * col2 * col0 + col0 AS col0 FROM tab0 cor0
----
1260
19032
649611

onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT DISTINCT col2 DIV ( - col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT col2 / ( - col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
-87
-91
-97

query I rowsort
SELECT - 70 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 19428774257f9b3674a9f22e4244e731

query I rowsort
SELECT ALL - col0 - - col1 * + col2 FROM tab0
----
2814
62
7373

query I rowsort
SELECT + col1 * + 61 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT DISTINCT ( + col1 ) * col0 + 91 + - col2 * - col2 FROM tab2 AS cor0
----
1037
2878
5369

query I rowsort
SELECT + + col2 + + 98 * - col1 AS col2 FROM tab1 AS cor0
----
-1178
-2494
-923

query I rowsort
SELECT + 73 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
3
64
80

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( cor0.col2 AS REAL ) AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT - 85 FROM tab1, tab0 AS cor0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL col1 * 36 AS col2 FROM tab2
----
1116
2124
612

query I rowsort
SELECT + 48 + - 16 FROM tab1
----
32
32
32

query I rowsort
SELECT ALL - col0 - col0 AS col0 FROM tab1 cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3575
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) * - col0 * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) * - col0 * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT ALL col2 + col0 DIV col0 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL col2 + col0 / col0 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT + + col1 * ( + 19 ) AS col0 FROM tab1 cor0
----
190
247
494

query I rowsort
SELECT DISTINCT col1 + - col0 * ( col2 ) AS col2 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - tab2.col0 * - tab2.col1 col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL + col1 * - 58 FROM tab2
----
-1798
-3422
-986

query I rowsort
SELECT 54 * tab1.col2 FROM tab1, tab0 cor0
----
9 values hashing to 08ffc5e1d45702513f859faaccb573d3

query I rowsort
SELECT DISTINCT + col2 + - 4 FROM tab1 AS cor0
----
50
53
92

query I rowsort
SELECT ALL - - col1 * + ( col2 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col0 + - col0 * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT ( + tab0.col2 ) + + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a451dbe509e87d1600234f39388c7bd3

query I rowsort
SELECT DISTINCT 39 * + col1 FROM tab0 AS cor0
----
3354
3549
3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col0 FROM tab2, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - - col1 * 96 + - col0 + + 89 FROM tab1 AS cor0
----
1257
2582
985

query I rowsort
SELECT 95 * col0 * - col1 AS col1 FROM tab0
----
-196080
-322525
-769405

onlyif mysql # use DIV operator for integer division
query I rowsort label-3590
SELECT + col1 DIV - tab0.col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3590
SELECT + col1 / - tab0.col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL + col2 - - col2 * tab0.col0 * + 81 AS col0 FROM tab0
----
2836
591220
64185

query I rowsort
SELECT + ( col2 ) * + 80 FROM tab1
----
4320
4560
7680

query I rowsort
SELECT + cor0.col0 + cor0.col0 * - cor0.col2 * 70 FROM tab2 AS cor0
----
-13223
-141882
-210061

query I rowsort
SELECT - tab1.col0 * col2 - ( col0 ) AS col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + 52 + - col2 FROM tab2 AS cor0
----
14
25
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + 30 + 87 col2 FROM tab0 AS cor0
----
-2721
-7345
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-3598
SELECT DISTINCT 41 * col2 DIV cor0.col0 FROM tab2 AS cor0
----
13
158
19

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT 41 * col2 / cor0.col0 FROM tab2 AS cor0
----
13
158
19

query I rowsort
SELECT col0 + col1 * 64 FROM tab1 AS cor0
----
1667
704
912

query I rowsort
SELECT - col0 + + col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
4089
60
6416

query I rowsort
SELECT ALL + 47 * col2 FROM tab0 AS cor0
----
1551
3854
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-3602
SELECT 0 + col0 DIV - col1 + 84 AS col1 FROM tab0 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-3602
SELECT 0 + col0 / - col1 + 84 AS col1 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3603
SELECT ALL + tab0.col2 * + col2 + + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + tab0.col2 * + col2 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT ALL - 83 + - col1 * col0 AS col0 FROM tab1
----
-1123
-161
-723

query I rowsort
SELECT ALL - tab0.col2 + 88 * 90 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2861ebf9f09a11512d0cc7a5e15f7a0e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + tab2.col2 + - ( col2 ) col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - + col1 + col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT cor0.col2 - - col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + cor0.col1 * + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT ALL - col2 * col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col2 * 85 FROM tab0
----
2805
6970
85

query I rowsort
SELECT ALL + + cor0.col0 + + 34 * + 45 FROM tab1 AS cor0
----
1533
1594
1610

query I rowsort
SELECT + + col1 + - cor0.col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col2 * 16 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT + col0 + col0 * - col2 * col2 - ( col0 ) FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT tab0.col2 * + col2 + 50 + - tab0.col0 AS col0 FROM tab0
----
1115
16
6685

query I rowsort
SELECT DISTINCT + 56 + + col0 + + 33 AS col2 FROM tab1
----
153
169
92

query I rowsort
SELECT DISTINCT + col0 * - col2 + col2 + - col1 * - col1 AS col2 FROM tab2
----
-2675
1479
799

onlyif mysql # use DIV operator for integer division
query I rowsort label-3620
SELECT ALL - - col1 DIV - col0 col1 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - - col1 / - col0 col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + + col0 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3622
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col1 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col1 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3623
SELECT + col2 DIV + 94 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT + col2 / + 94 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3624
SELECT DISTINCT + - 61 DIV - 30 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT + - 61 / - 30 FROM tab1 AS cor0
----
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT DISTINCT 44 DIV + col0 + + cor0.col1 col2 FROM tab2 AS cor0
----
17
37
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT 44 / + col0 + + cor0.col1 col2 FROM tab2 AS cor0
----
17
37
59

query I rowsort
SELECT DISTINCT - 38 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
-38

query I rowsort
SELECT DISTINCT col2 + + 74 * col1 + col0 FROM tab0 AS cor0
----
6421
6905
7214

query I rowsort
SELECT ALL - cor0.col0 * + ( col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3629
SELECT ALL + + ( col1 ) DIV + col0 + 75 AS col0 FROM tab2 AS cor0
----
75
75
79

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + + ( col1 ) / + col0 + 75 AS col0 FROM tab2 AS cor0
----
75
75
79

query I rowsort
SELECT 84 * - col1 AS col0 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT ( col2 ) + - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT DISTINCT + col2 * 70 - cor0.col0 DIV 51 AS col2 FROM tab1 AS cor0
----
3780
3989
6719

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + col2 * 70 - cor0.col0 / 51 AS col2 FROM tab1 AS cor0
----
3780
3989
6719

query I rowsort
SELECT DISTINCT ( col2 ) - col2 * col0 * - col1 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT + 48 + col0 * col2 AS col0 FROM tab1 AS cor0
----
210
3696
7728

query I rowsort
SELECT - col1 + col2 * - col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL - 87 + - 13 * col0 * - ( col0 + col2 ) FROM tab2 AS cor0
----
105369
120072
3007

query I rowsort
SELECT DISTINCT cor0.col2 - - col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT 30 FROM tab1 AS cor0
----
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT ALL - CAST( - 89 AS SIGNED ) DIV cor0.col0 + col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL - CAST ( - 89 AS INTEGER ) / cor0.col0 + col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT ALL - ( col0 ) * col0 + + ( col2 * col0 ) FROM tab2 AS cor0
----
-3239
-4056
140

query I rowsort
SELECT - cor0.col1 * + col0 + + col0 - + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - 69 * - col0 + col1 + ( + col0 ) * + ( - col1 * + col2 ) FROM tab2 AS cor0
----
-114211
-45566
-5345

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23

query I rowsort
SELECT ALL + col1 * - col2 + 20 FROM tab0 AS cor0
----
-2818
-7442
-77

skipif mysql # not compatible
query I rowsort
SELECT - col2 * col0 + - CAST ( - col1 AS REAL ) * - col0 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT + + 83 - + col2 AS col2 FROM tab2 AS cor0
----
45
56
57

query I rowsort
SELECT col2 * cor0.col1 + ( + col0 * col1 ) AS col2 FROM tab0 AS cor0
----
15561
3492
4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3648
SELECT + - CAST( + 56 AS SIGNED ) * - col0 + - 54 * - col2 FROM tab1 AS cor0
----
3084
6662
9664

skipif mysql # not compatible
query I rowsort label-3648
SELECT + - CAST ( + 56 AS INTEGER ) * - col0 + - 54 * - col2 FROM tab1 AS cor0
----
3084
6662
9664

query I rowsort
SELECT + - cor0.col2 + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT col0 + + tab1.col1 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3651
SELECT - col2 DIV tab2.col0 AS col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3651
SELECT - col2 / tab2.col0 AS col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT ( col2 ) * col1 * 50 FROM tab1 AS cor0
----
28500
62400
70200

query I rowsort
SELECT ( + cor0.col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - 86 * + col1 - col0 AS col0 FROM tab1 AS cor0
----
-1198
-2239
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 19 * col2 col2 FROM tab1 cor0
----
175104
55404
61731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * - tab1.col2 * 97 + col0 col2 FROM tab1
----
-282849
-315089
-893872

query I rowsort
SELECT + col0 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3658
SELECT + + CAST( NULL AS SIGNED ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT + + CAST ( NULL AS INTEGER ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + + cor0.col2 * col0 * ( col1 ) + col1 * + 55 FROM tab0 AS cor0
----
669205
72875
8731

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col0 + + cor0.col2 + - 64 FROM tab2, tab1 AS cor0
----
9 values hashing to 46f88b5a8bd92ee3e3c936c152eeb7b1

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 * col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT + col0 - col2 * + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - col2 + - col1 * col0 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3664
SELECT cor0.col1 * 96 * col1 + + 0 DIV col1 FROM tab1 AS cor0
----
16224
64896
9600

skipif mysql # not compatible
query I rowsort label-3664
SELECT cor0.col1 * 96 * col1 + + 0 / col1 FROM tab1 AS cor0
----
16224
64896
9600

query I rowsort
SELECT ALL - 27 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775

query I rowsort
SELECT 20 * + col2 AS col0 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT ALL + - 56 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + col1 + col1 * ( + ( + col2 ) ) FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT ALL + - col0 + col2 + ( - col2 ) DIV - col1 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + - col0 + col2 + ( - col2 ) / - col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + - col2 + - col2 + - col0 FROM tab1 AS cor0
----
-111
-178
-272

query I rowsort
SELECT DISTINCT - + 87 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT + + 73 * - cor0.col0 FROM tab1 AS cor0
----
-219
-4672
-5840

query I rowsort
SELECT DISTINCT - col2 + - col1 * ( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT col2 * col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - + col0 + 32 FROM tab1 AS cor0
----
-32
-48
29

query I rowsort
SELECT + col1 * - 99 FROM tab0 AS cor0
----
-8514
-9009
-9603

query I rowsort
SELECT ALL + 10 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL - + col2 * + 94 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT tab0.col0 * ( - 42 ) - col1 AS col1 FROM tab0
----
-1094
-1567
-3829

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab2, tab1 AS cor0
----
63

query I rowsort
SELECT - col1 * + 26 AS col1 FROM tab0 AS cor0
----
-2236
-2366
-2522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT + + col1 DIV - 84 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3682
SELECT + + col1 / - 84 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3683
SELECT - - CAST( + col1 AS SIGNED ) * + col2 FROM tab2 cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3683
SELECT - - CAST ( + col1 AS INTEGER ) * + col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 * ( col0 ) * ( col1 + col0 ) AS col2 FROM tab1 AS cor0
----
261
303104
595200

query I rowsort
SELECT ALL 95 * 60 AS col2 FROM tab2 AS cor0
----
5700
5700
5700

query I rowsort
SELECT + ( + ( col1 ) ) + ( 65 ) FROM tab1 AS cor0
----
75
78
91

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 7ccb6e2515d95809a8c30b73a5cf5f46

query I rowsort
SELECT DISTINCT + 63 * 68 + cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
4285
4317
4366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 48 ) col1 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT + col1 * col2 + col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab1, tab2 AS cor0
----
-32

query I rowsort
SELECT col2 * - 84 + col0 FROM tab2
----
-2106
-2261
-3113

query I rowsort
SELECT + 6 + - col1 FROM tab2 AS cor0
----
-11
-25
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col2 * - ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col2 * - col0 * - 54 + col1 FROM tab2 AS cor0
----
10237
109571
162125

query I rowsort
SELECT ALL - - col2 * + col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL 94 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col2 FROM tab2
----
25
25
25

query I rowsort
SELECT ALL col1 * + 55 AS col0 FROM tab0 AS cor0
----
4730
5005
5335

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3701
SELECT CAST( NULL AS DECIMAL ) * - 64 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT CAST ( NULL AS REAL ) * - 64 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col0 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3703
SELECT DISTINCT - - 83 DIV - 94 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - - 83 / - 94 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 93 * + col1 - col0 FROM tab0 AS cor0
----
-8022
-8552
-9056

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT DISTINCT cor0.col2 + 38 DIV col0 col2 FROM tab2 AS cor0
----
26
32
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT cor0.col2 + 38 / col0 col2 FROM tab2 AS cor0
----
26
32
38

query I rowsort
SELECT - ( + col1 ) + cor0.col2 * col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + 76 * col1 + - col2 * col1 FROM tab0 AS cor0
----
-546
3698
7275

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3708
SELECT DISTINCT + - CAST( 17 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
-1088
-1360
-51

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT + - CAST ( 17 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
-1088
-1360
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3709
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 64 + col2 FROM tab1 AS cor0
----
-10
-7
32

query I rowsort
SELECT - ( col0 ) * + cor0.col2 * + 36 AS col0 FROM tab1 AS cor0
----
-131328
-276480
-5832

query I rowsort
SELECT DISTINCT - 25 + + cor0.col0 FROM tab1 AS cor0
----
-22
39
55

query I rowsort
SELECT ALL - 26 * - col2 AS col1 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT + + 76 + col2 AS col0 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT ALL + col1 + col1 * - ( 34 + cor0.col2 ) * col2 AS col2 FROM tab2 AS cor0
----
-46495
-51026
-91981

query I rowsort
SELECT DISTINCT - 1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3718
SELECT cor0.col2 * CAST( - 80 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29ef2a61c78243ed711c9f440afaf87f

skipif mysql # not compatible
query I rowsort label-3718
SELECT cor0.col2 * CAST ( - 80 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29ef2a61c78243ed711c9f440afaf87f

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT ALL + col2 DIV + col1 + - 14 AS col1 FROM tab2 AS cor0
----
-12
-14
-14

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL + col2 / + col1 + - 14 AS col1 FROM tab2 AS cor0
----
-12
-14
-14

query I rowsort
SELECT col1 * ( - col2 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col2 * 5 + col0 * col1 + + col2 FROM tab2 AS cor0
----
109
1191
4498

query I rowsort
SELECT + col2 * - 64 + cor0.col0 FROM tab1 AS cor0
----
-3453
-3584
-6064

onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT DISTINCT + col2 + ( cor0.col2 + col0 ) DIV 77 AS col2 FROM tab1 AS cor0
----
54
58
98

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT + col2 + ( cor0.col2 + col0 ) / 77 AS col2 FROM tab1 AS cor0
----
54
58
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 53 col1 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT ALL col0 + + col0 + col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT - col1 - - tab0.col2 * tab0.col1 FROM tab0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 col0 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - 6 * + col0 + - col2 + 57 * col2 FROM tab2 AS cor0
----
1470
1654
988

query I rowsort
SELECT - + 84 * 26 + col0 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
-2175
1912
4216

query I rowsort
SELECT ALL - + 26 AS col1 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - ( + 32 ) * col2 - + col0 * - ( col1 + - col0 ) AS col2 FROM tab1 AS cor0
----
-1659
-5280
-8432

query I rowsort
SELECT DISTINCT - 98 + col2 * - col0 FROM tab0 AS cor0
----
-133
-7396
-890

query I rowsort
SELECT DISTINCT - col2 + - 29 * 78 - + col2 AS col0 FROM tab1
----
-2370
-2376
-2454

query I rowsort
SELECT col0 + ( + col2 ) * col0 - + 38 FROM tab0
----
32
7349
778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3735
SELECT col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT ALL - 66 + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL - 66 + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - 51 AS col2 FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT ALL + col0 + col0 DIV + col1 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + col0 + col0 / + col1 AS col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 + + tab0.col2 col1 FROM tab0
----
-7
25
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3741
SELECT CAST( 65 AS SIGNED ) FROM tab0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-3741
SELECT CAST ( 65 AS INTEGER ) FROM tab0
----
65
65
65

query I rowsort
SELECT ALL col2 + col0 * col2 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL - ( col2 ) + + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 28 + col1 FROM tab0
----
114
119
125

query I rowsort
SELECT - - ( col0 ) + + col2 * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + ( col0 ) AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL - col2 * col2 + + col2 * - col1 FROM tab2 cor0
----
-1566
-2090
-2210

query I rowsort
SELECT + - tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col2 * cor0.col0 + - col0 * col0 * col1 FROM tab2 AS cor0
----
-103095
-1330
-356928

onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT DISTINCT col0 DIV - col0 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT col0 / - col0 AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL - col2 + col0 * + 19 FROM tab2 cor0
----
106
1456
1463

query I rowsort
SELECT DISTINCT cor0.col0 + col2 * - col1 * col0 AS col2 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT + 13 * - col1 FROM tab0 cor0
----
-1118
-1183
-1261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * - ( - 4 ) col0 FROM tab2
----
139
163
169

query I rowsort
SELECT ALL + ( col2 ) * - ( col1 * - col0 ) AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - col1 + + 90 * - 74 FROM tab1 AS cor0
----
-6670
-6673
-6686

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT + col2 DIV ( + 99 ) col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3759
SELECT + col2 / ( + 99 ) col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + 65 * col2 FROM tab2 AS cor0
----
1749
1786
2487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col0 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT DISTINCT col2 + 99 DIV - col0 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1153
-1383
-514

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT col2 + 99 / - col0 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1153
-1383
-514

query I rowsort
SELECT DISTINCT - + col1 - 17 FROM tab0 AS cor0
----
-103
-108
-114

query I rowsort
SELECT ALL - col2 * + 29 * col2 FROM tab1 AS cor0
----
-267264
-84564
-94221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3765
SELECT ALL col1 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL col1 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 * + 55 * ( + col1 ) FROM tab1 AS cor0
----
37180
5500
9295

query I rowsort
SELECT ALL - + col2 + col1 AS col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col1 + - 44 - - 38 * + col2 AS col1 FROM tab0 AS cor0
----
1296
3163
91

query I rowsort
SELECT DISTINCT col0 + + ( col0 ) * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT col2 * - col0 * col1 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT DISTINCT - - cor0.col0 + - col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - - cor0.col0 + - col0 / col2 AS col0 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT col2 * ( col1 ) AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT cor0.col2 * ( - col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT ALL + col1 * - ( - col0 ) + col2 DIV - col0 col2 FROM tab2 AS cor0
----
1343
214
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL + col1 * - ( - col0 ) + col2 / - col0 col2 FROM tab2 AS cor0
----
1343
214
4602

query I rowsort
SELECT - + col0 * col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + - col2 * - 25 + ( - col0 + col0 ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT DISTINCT + col2 * tab2.col2 * + col2 + ( + col1 * + col1 ) FROM tab2
----
20644
21057
55161

query I rowsort
SELECT - col1 * + col0 - col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1280
-156
-2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-3779
SELECT col0 + + col2 + 74 DIV col0 AS col0 FROM tab0 cor0
----
171
38
60

skipif mysql # not compatible
query I rowsort label-3779
SELECT col0 + + col2 + 74 / col0 AS col0 FROM tab0 cor0
----
171
38
60

query I rowsort
SELECT cor0.col1 + - ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3783
SELECT CAST( - col2 AS SIGNED ) + + cor0.col0 FROM tab2 cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-3783
SELECT CAST ( - col2 AS INTEGER ) + + cor0.col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT 19 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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 DISTINCT - 13 * - col0 * col2 FROM tab1 AS cor0
----
2106
47424
99840

query I rowsort
SELECT + ( - 70 ) AS col1 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3789
SELECT DISTINCT - - cor0.col0 + ( + cor0.col0 + + col0 ) DIV - col2 AS col0 FROM tab0 AS cor0
----
-35
23
87

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - - cor0.col0 + ( + cor0.col0 + + col0 ) / - col2 AS col0 FROM tab0 AS cor0
----
-35
23
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3790
SELECT DISTINCT + + col2 / col0 - col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + + col2 / col0 - col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + tab1.col2 * 11 FROM tab1
----
1056
594
627

query I rowsort
SELECT 94 * col0 AS col2 FROM tab0
----
2256
3290
8366

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3794
SELECT DISTINCT + + col1 + - col2 DIV col0 AS col0 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + + col1 + - col2 / col0 AS col0 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT - + 7 * col0 AS col1 FROM tab2 cor0
----
-49
-546
-553

query I rowsort
SELECT - 88 AS col1 FROM tab2
----
-88
-88
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3797
SELECT - col0 - col2 * CAST( + col2 AS SIGNED ) * - col0 AS col0 FROM tab0
----
0
26112
598347

skipif mysql # not compatible
query I rowsort label-3797
SELECT - col0 - col2 * CAST ( + col2 AS INTEGER ) * - col0 AS col0 FROM tab0
----
0
26112
598347

query I rowsort
SELECT + col1 + - col1 - col0 AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT cor0.col0 + 19 * col0 + + col1 * + 65 * col2 AS col1 FROM tab1 AS cor0
----
38330
82720
91320

query I rowsort
SELECT + 92 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
170
171
99

query I rowsort
SELECT 52 * - cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 60346347074ba1da9159ea5d643a1512

query I rowsort
SELECT col1 + 84 AS col2 FROM tab0 AS cor0
----
170
175
181

query I rowsort
SELECT - ( 47 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3804
SELECT ALL + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col0 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - col1 - ( col0 * + col2 ) AS col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab2, tab0 cor0
----
70

query I rowsort
SELECT DISTINCT col1 + - ( + cor0.col1 ) AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + col2 + 81 * + ( + col1 ) FROM tab1 AS cor0
----
1149
2160
867

onlyif mysql # use DIV operator for integer division
query I rowsort label-3810
SELECT + + col1 + - col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-3810
SELECT + + col1 + - col1 / - col2 AS col0 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT ALL + + col0 + - col2 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL + 59 * + col1 AS col1 FROM tab2 AS cor0
----
1003
1829
3481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 * - 6 col2 FROM tab0 AS cor0
----
354
354
354

query I rowsort
SELECT - - col0 + 88 * - col0 AS col1 FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT ALL col0 - + cor0.col2 * col1 FROM tab2 cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-3816
SELECT + - 29 DIV + col0 + col2 FROM tab1 AS cor0
----
45
57
96

skipif mysql # not compatible
query I rowsort label-3816
SELECT + - 29 / + col0 + col2 FROM tab1 AS cor0
----
45
57
96

query I rowsort
SELECT ALL - col0 * + cor0.col0 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT + col2 + + ( + col1 ) + col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT + tab1.col1 * col0 AS col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 81 col1 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT - - 51 * col2 + col2 + - col1 AS col1 FROM tab2 AS cor0
----
1293
1373
1959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col0 * cor0.col1 col0 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - + 32 col0 FROM tab1 AS cor0
----
-29
32
48

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query I rowsort
SELECT + 18 + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 32064469d96c313d1022cfd85b0c8b7c

query I rowsort
SELECT ALL + + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

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 + + ( cor0.col2 ) - col0 * ( 40 + - col1 * + 80 ) AS col2 FROM tab1 AS cor0
----
48697
6174
80096

onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT + col1 * col2 DIV ( 76 ) FROM tab2 AS cor0
----
11
20
8

skipif mysql # not compatible
query I rowsort label-3829
SELECT + col1 * col2 / ( 76 ) FROM tab2 AS cor0
----
11
20
8

query I rowsort
SELECT 38 - 22 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT 28 * col0 * + ( col2 ) + + tab0.col2 AS col0 FROM tab0
----
204426
22209
981

query I rowsort
SELECT ALL - 84 * + col0 AS col2 FROM tab0 AS cor0
----
-2016
-2940
-7476

query I rowsort
SELECT ALL - 26 - - cor2.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 3dc6e41d076432393d5301c3841507ff

query I rowsort
SELECT DISTINCT + 86 * + col1 FROM tab1 AS cor0
----
1118
2236
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 99 ) col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT 31 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # use DIV operator for integer division
query I rowsort label-3837
SELECT DISTINCT - + col1 * col0 + col0 DIV col0 AS col1 FROM tab2 cor0
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT - + col1 * col0 + col0 / col0 AS col1 FROM tab2 cor0
----
-1342
-216
-4601

query I rowsort
SELECT ALL - - col2 + - 2 FROM tab1 cor0
----
52
55
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3839
SELECT ALL - col1 * - cor0.col2 + + col1 * + col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2808
-35910
-98592

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL - col1 * - cor0.col2 + + col1 * + col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2808
-35910
-98592

query I rowsort
SELECT ALL + col2 * - 9 FROM tab1 AS cor0
----
-486
-513
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3841
SELECT DISTINCT - cor0.col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT - cor0.col0 / + col1 AS col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT DISTINCT 71 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3843
SELECT ALL col0 * - CAST( 59 AS SIGNED ) + - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-12713
-2162
-4254

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL col0 * - CAST ( 59 AS INTEGER ) + - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-12713
-2162
-4254

onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT - col1 DIV - 54 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3844
SELECT - col1 / - 54 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - cor0.col1 + col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + - col0 + + col0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * + ( + col0 + col2 ) AS col2 FROM tab0 AS cor0
----
15561
3492
4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3848
SELECT ALL - col2 + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - col2 + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3849
SELECT ALL tab1.col1 DIV 83 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL tab1.col1 / 83 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT cor0.col1 * ( + 7 ) FROM tab2 AS cor0
----
119
217
413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col2 * + col1 col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + - 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 ( 43 ) col0 FROM tab2, tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab0, tab0 AS cor0
----
27

query I rowsort
SELECT - 30 * + col0 AS col2 FROM tab2 AS cor0
----
-210
-2340
-2370

query I rowsort
SELECT - tab1.col1 + + cor0.col2 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 721a50c429bcec3b993291890e2e98be

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3857
SELECT - CAST( - 18 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif mysql # not compatible
query I rowsort label-3857
SELECT - CAST ( - 18 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT col1 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + tab2.col0 * 25 + + col0 FROM tab2
----
182
2028
2054

query I rowsort
SELECT col1 * ( tab0.col1 ) + - tab0.col0 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT ALL + - 44 * + col0 AS col0 FROM tab0 AS cor0
----
-1056
-1540
-3916

query I rowsort
SELECT DISTINCT + + col0 + col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT + + col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL tab1.col1 + - 20 + col1 FROM tab1
----
0
32
6

query I rowsort
SELECT - col1 * + col2 * col0 + + col2 FROM tab2
----
-119626
-50996
-5832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3866
SELECT + CAST( col0 AS SIGNED ) + - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3866
SELECT + CAST ( col0 AS INTEGER ) + - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + col2 + - ( col1 + - col0 ) * - 42 FROM tab2 cor0
----
1197
1230
398

onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT DISTINCT + - cor0.col0 DIV - col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT + - cor0.col0 / - col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL 34 * col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
1890
1995
3360

query I rowsort
SELECT + - 38 AS col0 FROM tab0 cor0
----
-38
-38
-38

query I rowsort
SELECT ALL col0 * cor0.col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT DISTINCT + - col2 DIV + col1 FROM tab2 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + - col2 / + col1 FROM tab2 cor0
----
-2
0

query I rowsort
SELECT ALL - - col1 * - col0 + 57 FROM tab2 AS cor0
----
-1286
-160
-4545

query I rowsort
SELECT - 28 * - cor0.col0 + 26 FROM tab1 cor0
----
110
1818
2266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * cor0.col1 + 55 - - col1 col1 FROM tab2 cor0
----
1047
3595
361

query I rowsort
SELECT ALL + 52 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4044
-6348
43

query I rowsort
SELECT - col2 * col1 * + tab2.col2 AS col0 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3878
SELECT - col0 * - col0 + col0 DIV col2 + col2 * col2 AS col2 FROM tab1 AS cor0
----
15616
2925
7346

skipif mysql # not compatible
query I rowsort label-3878
SELECT - col0 * - col0 + col0 / col2 + col2 * col2 AS col2 FROM tab1 AS cor0
----
15616
2925
7346

onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT - + col0 DIV - col0 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3879
SELECT - + col0 / - col0 AS col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3880
SELECT - cor0.col0 DIV - col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3880
SELECT - cor0.col0 / - col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT col1 DIV + col1 + col2 AS col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3881
SELECT col1 / + col1 + col2 AS col2 FROM tab1
----
55
58
97

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col1 * col0 + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col2 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT ALL + cor0.col1 + + cor0.col1 DIV - col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + cor0.col1 + + cor0.col1 / - col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT col1 * + col1 + col1 FROM tab2 AS cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col1 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3888
SELECT ALL - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col0 - - col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + - cor0.col2 * + col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT + 78 + col2 AS col2 FROM tab0 AS cor0
----
111
160
79

query I rowsort
SELECT - - col1 * - col1 + + col0 AS col1 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT + 96 * - tab1.col1 AS col1 FROM tab1
----
-1248
-2496
-960

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NULL = ( col1 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT IN ( + tab0.col0 )
----

query I rowsort
SELECT ALL tab0.col1 - + col2 FROM tab0
----
53
9
96

query I rowsort
SELECT col2 * col0 * col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT col2 * - tab1.col0 * - col1 - + tab1.col1 * tab1.col0 AS col1 FROM tab1
----
35840
4134
98800

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = ( - col1 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE ( + tab0.col1 ) > NULL
----

query I rowsort
SELECT ALL - col2 * col0 - - col2 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3902
SELECT - col0 DIV col1 - tab1.col2 * col2 FROM tab1
----
-2916
-3255
-9222

skipif mysql # not compatible
query I rowsort label-3902
SELECT - col0 / col1 - tab1.col2 * col2 FROM tab1
----
-2916
-3255
-9222

query I rowsort
SELECT ALL + col0 - + tab2.col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 * col0 AS col1 FROM tab1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT col0 + + col2 + + tab1.col2 FROM tab1 WHERE ( tab1.col2 ) IN ( - col0 - - col0 )
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT col1 DIV - col1 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3908
SELECT col1 / - col1 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( + tab1.col2 )
----

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col1 FROM tab2
----
55
58
85

query I rowsort
SELECT col2 * col0 * col1 - col0 FROM tab2
----
119574
50955
5852

onlyif mysql # use DIV operator for integer division
query I rowsort label-3913
SELECT - col2 * col1 + - col1 DIV col1 AS col1 FROM tab2
----
-1535
-647
-838

skipif mysql # not compatible
query I rowsort label-3913
SELECT - col2 * col1 + - col1 / col1 AS col1 FROM tab2
----
-1535
-647
-838

query I rowsort
SELECT ALL col1 - - col2 * - col1 FROM tab0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + col0 col1 FROM tab2
----
104
117
34

query I rowsort
SELECT - tab1.col2 + tab1.col1 * + col2 AS col2 FROM tab1
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE NOT - col0 / col2 + col1 > ( NULL )
----

query I rowsort
SELECT ALL col2 - + col1 * col1 FROM tab0
----
-7363
-8199
-9408

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + col1 * col2 * - col2 = NULL
----

query I rowsort
SELECT - col2 * tab1.col0 * col0 - col0 FROM tab1
----
-233536
-489
-614480

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= ( + col2 )
----

query I rowsort
SELECT ALL + col2 + col1 + col2 AS col0 FROM tab0
----
152
255
99

query I rowsort
SELECT ALL col2 * col2 * - col0 + - col1 * col0 AS col2 FROM tab0
----
-28200
-3430
-606535

query I rowsort
SELECT col0 * - col1 AS col2 FROM tab1 WHERE ( - col2 + col2 * + col0 ) NOT IN ( col2 )
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL tab2.col0 + + tab2.col0 * + tab2.col0 - - col1 AS col0 FROM tab2
----
6221
6337
87

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - col2 = ( NULL )
----

query I rowsort
SELECT col0 * + col1 + + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT col1 * - col2 + col1 * - col2 AS col2 FROM tab2
----
-1292
-1674
-3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT + tab1.col2 DIV - col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3931
SELECT + tab1.col2 / - col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT col2 * - col2 * - col0 - col1 FROM tab1 AS cor0
----
207926
737267
8722

query I rowsort
SELECT col0 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + col0 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + + col1 + - col0 * - ( - col0 ) + col2 AS col1 FROM tab1 AS cor0
----
-4029
-6291
71

query I rowsort
SELECT 12 + col1 FROM tab0 AS cor0
----
103
109
98

query I rowsort
SELECT ALL + 63 - col1 * 94 FROM tab2 AS cor0
----
-1535
-2851
-5483

query I rowsort
SELECT + 60 * col2 FROM tab0 AS cor0
----
1980
4920
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT ALL - 1 DIV - col1 + 73 * ( - col1 ) AS col1 FROM tab0 cor0
----
-6278
-6643
-7081

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - 1 / - col1 + 73 * ( - col1 ) AS col1 FROM tab0 cor0
----
-6278
-6643
-7081

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 - ( - col0 ) AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + 19 * col2 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT DISTINCT - ( + col1 ) - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 14 * + col0 FROM tab0 cor0
----
1246
336
490

query I rowsort
SELECT ALL + col0 + - col2 * - 1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - 61 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
101
3587
7619

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3948
SELECT DISTINCT ( - cor0.col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT ( - cor0.col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * col0 - - col2 * + col1 AS col2 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT + - 10 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-260
-270
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( - col1 ) ) * col1 col1 FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3952
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3952
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT DISTINCT - + 19 DIV - cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT - + 19 / - cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 4 + col2 * col0 AS col2 FROM tab1 AS cor0
----
166
3652
7684

query I rowsort
SELECT ALL - + 34 AS col1 FROM tab2 cor0
----
-34
-34
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT DISTINCT + col0 * col2 + - 75 + - 76 DIV - col2 FROM tab0 AS cor0
----
36
719
7223

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT + col0 * col2 + - 75 + - 76 / - col2 FROM tab0 AS cor0
----
36
719
7223

query I rowsort
SELECT DISTINCT 73 + col2 FROM tab1 AS cor0
----
127
130
169

skipif mysql # not compatible
query I rowsort
SELECT + - col0 * CAST ( - col1 AS REAL ) + col1 + ( + col1 ) FROM tab2 AS cor0
----
1377
279
4720

skipif mysql # not compatible
query I rowsort
SELECT - col1 / ( 9 ) + col2 * CAST ( - 88 AS REAL ) AS col2 FROM tab0 AS cor0
----
-2913
-7226
-98

query I rowsort
SELECT + 66 FROM tab2, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL - col1 * + ( + col2 ) AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT + 85 + 88 * + col2 * - 40 FROM tab0 AS cor0
----
-116075
-288555
-3435

query I rowsort
SELECT ALL 24 + - cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1510
-622
-813

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab2
----
-37

query I rowsort
SELECT + 55 * col0 * + col2 + + tab1.col2 * - col0 AS col2 FROM tab1
----
196992
414720
8748

query I rowsort
SELECT - ( + col0 ) + col0 * - ( col2 ) AS col1 FROM tab2
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3970
SELECT - CAST( + col2 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3970
SELECT - CAST ( + col2 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

onlyif mysql # use DIV operator for integer division
query I rowsort label-3972
SELECT ALL + - 7 + - col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-6
-7
28

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + - 7 + - col0 / - col2 AS col2 FROM tab0 AS cor0
----
-6
-7
28

query I rowsort
SELECT ALL - ( + 26 ) * + col0 FROM tab0 AS cor0
----
-2314
-624
-910

onlyif mysql # use DIV operator for integer division
query I rowsort label-3974
SELECT DISTINCT - - cor0.col0 + cor0.col0 DIV - cor0.col1 FROM tab2 cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - - cor0.col0 + cor0.col0 / - cor0.col1 FROM tab2 cor0
----
7
75
77

query I rowsort
SELECT + + ( + 52 ) * col1 * 53 AS col2 FROM tab1 AS cor0
----
27560
35828
71656

query I rowsort
SELECT DISTINCT - cor0.col1 * - 4 - cor0.col0 * + ( + cor0.col0 * + col0 ) AS col2 FROM tab0 AS cor0
----
-13480
-42487
-704605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * col2 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - 11 + ( cor0.col2 ) * - ( + 77 ) AS col0 FROM tab1 AS cor0
----
-4169
-4400
-7403

query I rowsort
SELECT ALL + + 42 + + 92 * + col2 AS col1 FROM tab2 AS cor0
----
2434
2526
3538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col1 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT - col0 * - 28 FROM tab1 cor0
----
1792
2240
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3982
SELECT - - CAST( NULL AS DECIMAL ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT - - 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 ALL + cor0.col2 * col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + 84 * - 28 FROM tab1 AS cor0
----
-2352
-2352
-2352

query I rowsort
SELECT DISTINCT + col0 + - 55 FROM tab2 AS cor0
----
-48
23
24

query I rowsort
SELECT + col0 + + col2 * - cor0.col0 AS col1 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT + 27 * + col2 AS col1 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT + 49 + - col0 * + ( col0 + + col1 ) AS col0 FROM tab2 AS cor0
----
-10637
-217
-7535

query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab2 cor0, tab1 AS cor1
----
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3990
SELECT 10 + col2 DIV col1 AS col1 FROM tab0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-3990
SELECT 10 + col2 / col1 AS col1 FROM tab0
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-3991
SELECT DISTINCT col0 * + cor0.col1 + + col2 * cor0.col1 DIV - col1 col2 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT col0 * + cor0.col1 + + col2 * cor0.col1 / - col1 col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + + col2 * 41 + 9 AS col2 FROM tab1 AS cor0
----
2223
2346
3945

query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + col2 * cor0.col0 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-61
7289
739

query I rowsort
SELECT + col0 + + ( col1 ) + col0 AS col1 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT ALL + tab1.col1 + - col2 * - col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT ( + ( col2 ) ) * col0 + col1 * col0 FROM tab1 AS cor0
----
240
4288
8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 - col2 col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 84 + - 62 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT + + 53 + - col1 * col1 AS col2 FROM tab2 cor0
----
-236
-3428
-908

query I rowsort
SELECT + col1 + - 61 + col0 FROM tab2
----
-23
35
76

query I rowsort
SELECT DISTINCT col2 + - col1 * col1 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT ALL + tab1.col1 + col2 + 3 * - col2 AS col1 FROM tab1
----
-104
-179
-82

query I rowsort
SELECT ALL 23 + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 75f4e5519ac10737d00aae9a6c4534d1

query I rowsort
SELECT col0 + - 40 * col2 AS col2 FROM tab1 cor0
----
-2157
-2216
-3760

query I rowsort
SELECT DISTINCT + + col0 + + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col2 + + 16 * - col2 FROM tab0 AS cor0
----
-1230
-15
-495

query I rowsort
SELECT - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT 17 FROM tab0, tab1 AS cor0
----
17

query I rowsort
SELECT - 7 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT - cor0.col1 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT col2 + + 63 * - 13 FROM tab1 AS cor0
----
-723
-762
-765

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT + col2 DIV + cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4013
SELECT + col2 / + cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4014
SELECT ALL - tab2.col0 DIV tab2.col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL - tab2.col0 / tab2.col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 29 * tab0.col2 AS col2 FROM tab0
----
-2378
-29
-957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab0.col0 + - tab0.col1 col0 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL - + 30 + col0 FROM tab2 AS cor0
----
-23
48
49

query I rowsort
SELECT ALL cor0.col1 + - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 0bd022e691ee49f12c598975818ed537

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4019
SELECT DISTINCT CAST( - col0 AS SIGNED ) * col0 AS col2 FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * col0 AS col2 FROM tab1
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4020
SELECT - + col1 * col2 - cor0.col2 DIV col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4020
SELECT - + col1 * col2 - cor0.col2 / col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4021
SELECT + col2 DIV + col2 + + cor0.col0 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4021
SELECT + col2 / + col2 + + cor0.col0 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT + - col1 * - col2 + + col0 + - col1 FROM tab1 AS cor0
----
1315
1381
624

query I rowsort
SELECT - cor0.col1 - + col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + col1 + + col2 + + 2 FROM tab2 AS cor0
----
57
60
87

query I rowsort
SELECT ALL tab0.col1 + - 6 FROM tab0
----
80
85
91

query I rowsort
SELECT + 75 AS col0 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT 11 - col1 FROM tab1 AS cor0
----
-15
-2
1

query I rowsort
SELECT + 14 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-3
-45

query I rowsort
SELECT col1 + - col1 + - ( col2 ) AS col0 FROM tab2
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4030
SELECT - col2 + col1 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT - col2 + col1 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col2 ) + + col2 - - col1 AS col0 FROM tab0
----
152
255
99

query I rowsort
SELECT DISTINCT - 79 * + col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4033
SELECT + - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4033
SELECT + - col0 / - col1 AS col0 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ( - cor0.col1 ) * - col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - + col1 + col0 - + col1 FROM tab2 cor0
----
-40
-55
45

query I rowsort
SELECT DISTINCT col2 * col1 + col2 + col1 * 96 AS col0 FROM tab0 cor0
----
11127
16280
9410

query I rowsort
SELECT DISTINCT + - col0 * - ( 67 ) + col2 AS col0 FROM tab2 AS cor0
----
496
5252
5331

query I rowsort
SELECT DISTINCT - col1 * 2 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL + col2 + ( col2 ) AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + + cor0.col1 * - col2 + - 42 + col0 * col0 AS col2 FROM tab2 AS cor0
----
-830
4508
5553

query I rowsort
SELECT DISTINCT + + cor0.col0 * 43 FROM tab2 AS cor0
----
301
3354
3397

onlyif mysql # use DIV operator for integer division
query I rowsort label-4043
SELECT ALL + col0 DIV 44 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL + col0 / 44 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + - col1 * - ( col2 ) + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL - col1 * 86 AS col2 FROM tab0 AS cor0
----
-7396
-7826
-8342

query I rowsort
SELECT ALL + tab0.col0 * - col2 - - 52 AS col1 FROM tab0
----
-7246
-740
17

query I rowsort
SELECT ALL col1 - + ( - col0 ) * + col1 AS col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL cor0.col2 + col0 * - 96 FROM tab2 AS cor0
----
-645
-7462
-7546

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col1 + - cor0.col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - - ( 23 ) * - col0 AS col2 FROM tab2 cor0
----
-161
-1794
-1817

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4051
SELECT + CAST( + col2 AS SIGNED ) + + cor0.col2 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT + CAST ( + col2 AS INTEGER ) + + cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 84 * + col2 FROM tab1 cor0
----
4536
4788
8064

onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT + CAST( col0 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4053
SELECT + CAST ( col0 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col1 + + col2 + - col0 AS col2 FROM tab0 AS cor0
----
63
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col2 ) col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 94 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-15228
-342912
-721920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 + ( col0 ) + col1 col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + + col1 col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col1 * 82 + + 70 + col0 * col1 FROM tab0 AS cor0
----
11419
15631
9186

query I rowsort
SELECT ALL + - col0 + + 7 FROM tab2 AS cor0
----
-71
-72
0

query I rowsort
SELECT ALL - col0 * + col1 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT ALL - - col1 * col0 + + col2 + col0 AS col1 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT ALL - col1 * 9 FROM tab2 cor0
----
-153
-279
-531

onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT - - col1 DIV + col1 + 4 * - cor0.col2 * + col1 col2 FROM tab0 cor0
----
-11351
-29847
-387

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4066
SELECT - - col1 / + col1 + 4 * - cor0.col2 * + col1 col2 FROM tab0 cor0
----
-11351
-29847
-387

query I rowsort
SELECT DISTINCT + + col2 + 31 AS col1 FROM tab1 cor0
----
127
85
88

query I rowsort
SELECT ALL - col0 * 96 AS col1 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT DISTINCT 71 + col0 AS col1 FROM tab2
----
149
150
78

query I rowsort
SELECT 33 * + col1 AS col2 FROM tab1
----
330
429
858

query I rowsort
SELECT - cor0.col1 + + 67 + col2 AS col1 FROM tab1 AS cor0
----
114
150
95

query I rowsort
SELECT - col1 + 32 FROM tab0 cor0
----
-54
-59
-65

query I rowsort
SELECT ALL + - cor0.col2 * - 18 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT + col0 * + 1 + + 73 AS col2 FROM tab1 AS cor0
----
137
153
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT DISTINCT - + col0 + + col0 DIV ( col0 + ( col2 ) ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - + col0 + + col0 / ( col0 + ( col2 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ( - cor0.col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + 17 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
17

query I rowsort
SELECT - cor0.col0 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT - 72 * - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6ea840cdf2b42247db0ed404945b7aa1

query I rowsort
SELECT col1 * + col1 - 93 AS col2 FROM tab0 AS cor0
----
7303
8188
9316

onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT ALL + col1 + col1 DIV - cor0.col2 + + col0 * col2 FROM tab0 AS cor0
----
35
7388
876

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL + col1 + col1 / - cor0.col2 + + col0 * col2 FROM tab0 AS cor0
----
35
7388
876

query I rowsort
SELECT 64 + + 2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4083
SELECT + - 5 - - col0 DIV col1 FROM tab0 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-4083
SELECT + - 5 - - col0 / col1 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL + + 14 + col0 * - ( col0 + - col2 ) FROM tab2 AS cor0
----
-3225
-4042
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 * col2 - + col1 col2 FROM tab1 AS cor0
----
-295
-296
-493

query I rowsort
SELECT ALL - col0 - + col1 * col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT ALL 9 + col0 AS col0 FROM tab2
----
16
87
88

query I rowsort
SELECT DISTINCT - - 3 FROM tab1, tab2, tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - 21 FROM tab2, tab0, tab2 AS cor0
----
-21

query I rowsort
SELECT ALL 68 + + col1 FROM tab0
----
154
159
165

query I rowsort
SELECT ALL 91 * col0 + 70 AS col1 FROM tab2
----
707
7168
7259

query I rowsort
SELECT + col2 - + col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT col1 + col2 + + col2 FROM tab2 cor0
----
111
85
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4095
SELECT DISTINCT - - col1 * col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT - - col1 * col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col0 - + col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4097
SELECT ALL - cor0.col2 DIV - col1 - - col1 AS col2 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL - cor0.col2 / - col1 - - col1 AS col2 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT ALL - 67 + - col1 FROM tab0
----
-153
-158
-164

onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT - - col2 * + col1 DIV col1 + 93 AS col1 FROM tab0 cor0
----
126
175
94

skipif mysql # not compatible
query I rowsort label-4099
SELECT - - col2 * + col1 / col1 + 93 AS col1 FROM tab0 cor0
----
126
175
94

query I rowsort
SELECT - ( - col2 ) * - 94 AS col2 FROM tab2
----
-2444
-2538
-3572

query I rowsort
SELECT + col0 + - col0 + 82 * - col0 AS col1 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT - col1 + + col0 * col0 + + col0 FROM tab2 AS cor0
----
25
6103
6303

query I rowsort
SELECT + col1 * ( col2 ) AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + 25 + + 66 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 8a48d0ac75792561e233f0311a8872fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 * - 21 col2 FROM tab1
----
161280
3402
76608

query I rowsort
SELECT cor0.col1 * col0 + - 69 * col2 AS col0 FROM tab2 AS cor0
----
-1279
-1646
2808

query I rowsort
SELECT col2 + + cor0.col1 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - col0 * col1 + 76 * - col1 AS col1 FROM tab2 AS cor0
----
-2573
-2635
-9086

query I rowsort
SELECT DISTINCT + col2 + col0 - cor0.col1 FROM tab1 AS cor0
----
111
163
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT - col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT - col2 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * + col2 * col1 - - col2 FROM tab0 cor0
----
-611802
-93621
-96

query I rowsort
SELECT ALL - ( - 71 ) AS col1 FROM tab1
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * 22 col0 FROM tab2 AS cor0
----
1980
1980
1980

query I rowsort
SELECT ALL + 31 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT DISTINCT col2 DIV + 23 AS col1 FROM tab1
----
2
4

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT col2 / + 23 AS col1 FROM tab1
----
2
4

query I rowsort
SELECT DISTINCT - 43 FROM tab2
----
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4117
SELECT ALL CAST( 9 AS SIGNED ) * - col2 FROM tab0
----
-297
-738
-9

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL CAST ( 9 AS INTEGER ) * - col2 FROM tab0
----
-297
-738
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4118
SELECT ALL CAST( - col0 AS SIGNED ) * col2 FROM tab1 cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL CAST ( - col0 AS INTEGER ) * col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4119
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT DISTINCT + + ( cor0.col1 ) + + col0 DIV ( col1 ) FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT + + ( cor0.col1 ) + + col0 / ( col1 ) FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4122
SELECT 29 * cor0.col1 DIV + col0 FROM tab1 AS cor0
----
251
4
4

skipif mysql # not compatible
query I rowsort label-4122
SELECT 29 * cor0.col1 / + col0 FROM tab1 AS cor0
----
251
4
4

query I rowsort
SELECT - 1 * col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col2 * col1 + - ( 18 ) * col1 + + col1 * + col0 * col2 FROM tab1 AS cor0
----
100854
36870
5148

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * 93 AS col0 FROM tab2 AS cor0
----
-678
-7280
-7385

onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT ALL + 26 DIV + col1 AS col1 FROM tab1 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL + 26 / + col1 AS col1 FROM tab1 cor0
----
1
2
2

query I rowsort
SELECT ALL - - col0 + - col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - 26 * col1 FROM tab0 AS cor0
----
-2236
-2366
-2522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4129
SELECT CAST( NULL AS SIGNED ) + - 5 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT CAST ( NULL AS INTEGER ) + - 5 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab0.col0 * col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) FROM tab2, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - 61 - 5 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT 33 * col0 * - col0 + - col2 * col1 * col2 AS col1 FROM tab2 cor0
----
-230501
-240656
-24216

query I rowsort
SELECT - 97 + - col2 FROM tab1 AS cor0
----
-151
-154
-193

query I rowsort
SELECT + col1 * cor0.col2 - + cor0.col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL 3 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4137
SELECT - col1 + + CAST( NULL AS SIGNED ) + + col1 * + col2 * - tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT - col1 + + CAST ( NULL AS INTEGER ) + + col1 * + col2 * - tab2.col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT tab2.col1 * + tab2.col2 * - col2 + col1 AS col1 FROM tab2
----
-22568
-24531
-39825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT + col2 DIV 39 col2 FROM tab1
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4140
SELECT + col2 / 39 col2 FROM tab1
----
1
1
2

query I rowsort
SELECT col1 * 16 AS col0 FROM tab0
----
1376
1456
1552

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT DISTINCT tab1.col1 DIV ( col0 + - 48 * - 76 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT tab1.col1 / ( col0 + - 48 * - 76 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 * - col2 * 26 AS col0 FROM tab1 AS cor0
----
-14820
-32448
-36504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 * col0 col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT 86 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT ALL - 0 * - 62 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT col2 DIV 68 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT col2 / 68 FROM tab0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4148
SELECT - CAST( + col1 AS SIGNED ) - col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT - CAST ( + col1 AS INTEGER ) - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) * tab0.col2 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT - ( - col0 ) * + col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 47 * col2 * + col1 FROM tab1
----
26790
58656
65988

onlyif mysql # use DIV operator for integer division
query I rowsort label-4152
SELECT + 95 + + tab1.col2 DIV 14 FROM tab1
----
101
98
99

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 95 + + tab1.col2 / 14 FROM tab1
----
101
98
99

query I rowsort
SELECT + 13 + col1 FROM tab2
----
30
44
72

query I rowsort
SELECT - cor0.col2 * + ( cor0.col0 * + col2 ) FROM tab2 AS cor0
----
-114076
-5103
-52728

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f

query I rowsort
SELECT + col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - cor0.col0 * - 45 + + col0 AS col2 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT + + col1 * - 91 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT + - col1 * + 60 FROM tab0 AS cor0
----
-5160
-5460
-5820

query I rowsort
SELECT ALL - tab2.col1 * 83 AS col2 FROM tab2
----
-1411
-2573
-4897

onlyif mysql # use DIV operator for integer division
query I rowsort label-4161
SELECT + col1 + col2 DIV col0 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-4161
SELECT + col1 + col2 / col0 FROM tab1
----
10
14
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4162
SELECT col2 - - CAST( tab1.col1 AS SIGNED ) AS col2 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4162
SELECT col2 - - CAST ( tab1.col1 AS INTEGER ) AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT cor0.col0 + + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - + cor0.col1 * col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - col0 + col0 * + col2 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT + 82 FROM tab1, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT - 86 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT - - cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - col2 + - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + + col0 * 82 FROM tab1 AS cor0
----
246
5248
6560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4171
SELECT DISTINCT + tab0.col2 * CAST( col0 AS SIGNED ) FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT + tab0.col2 * CAST ( col0 AS INTEGER ) FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col0 - + col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - col2 * 30 FROM tab1 AS cor0
----
-1620
-1710
-2880

query I rowsort
SELECT + col0 * + 95 FROM tab2 AS cor0
----
665
7410
7505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 * col1 col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL 85 * - col2 * - cor0.col1 + 83 * col1 AS col2 FROM tab2 AS cor0
----
135287
56321
73718

query I rowsort
SELECT DISTINCT col0 * col2 - - cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT ALL - col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - col2 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + col0 col2 FROM tab0
----
139
74
85

query I rowsort
SELECT cor0.col2 + col0 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT col2 * - col2 + 9 * 46 FROM tab1 AS cor0
----
-2502
-2835
-8802

query I rowsort
SELECT DISTINCT + ( - col0 ) * ( 55 ) + col1 FROM tab2
----
-354
-4231
-4328

onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT - + col0 DIV + col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT - + col0 / + col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT - col2 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - cor0.col1 + + cor0.col0 * - col2 * col1 FROM tab1 AS cor0
----
-36490
-4238
-99853

query I rowsort
SELECT ALL + + col2 + + col1 * + 78 FROM tab0 AS cor0
----
6741
7180
7567

query I rowsort
SELECT + col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT cor0.col0 DIV col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4188
SELECT cor0.col0 / col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL - cor0.col0 * + 20 FROM tab1 AS cor0
----
-1280
-1600
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4190
SELECT - col1 + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-4190
SELECT - col1 + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col2 + - col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * col0 * tab0.col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - col0 + + col1 * + col1 FROM tab1
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4194
SELECT ALL col0 + + col1 + col2 DIV ( - col0 * - col0 ) FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL col0 + + col1 + col2 / ( - col0 * - col0 ) FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT col1 * - col0 + - col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT ALL + ( col2 ) + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * - 95 * - 78 FROM tab2 AS cor0
----
51870
577980
585390

query I rowsort
SELECT - 84 * - col1 + col1 + ( col2 ) AS col1 FROM tab2 cor0
----
1483
2662
5041

query I rowsort
SELECT ALL - 73 + - tab2.col2 + ( col2 ) * col0 FROM tab2
----
1929
2891
89

query I rowsort
SELECT ALL + 14 * + col0 + 4 AS col0 FROM tab2 AS cor0
----
102
1096
1110

query I rowsort
SELECT DISTINCT + col1 * + 35 AS col1 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT + col2 + - 77 + col1 * col2 FROM tab2 AS cor0
----
1483
607
787

query I rowsort
SELECT DISTINCT col0 + 85 * col1 AS col0 FROM tab0 AS cor0
----
7334
7824
8280

skipif mysql # not compatible
query I rowsort
SELECT col2 * + 80 + - col1 * - col0 * + CAST ( 0 * col1 + + col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
3475
670678
70752

query I rowsort
SELECT ALL col0 * 37 - - 7 * + col1 AS col1 FROM tab1 AS cor0
----
2438
293
3051

onlyif mysql # use DIV operator for integer division
query I rowsort label-4206
SELECT + col1 * + CAST( col0 AS SIGNED ) + - col0 * - col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-4206
SELECT + col1 * + CAST ( col0 AS INTEGER ) + - col0 * - col2 / - col2 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + col2 + 73 AS col0 FROM tab1 AS cor0
----
127
130
169

query I rowsort
SELECT DISTINCT col0 + 84 * + col1 FROM tab2 AS cor0
----
1507
2611
5034

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4209
SELECT col2 * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-4209
SELECT col2 * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + col1 + 7 FROM tab1 AS cor0
----
17
20
33

query I rowsort
SELECT DISTINCT + ( col0 ) + + 75 * - col2 FROM tab2
----
-1872
-2018
-2771

query I rowsort
SELECT DISTINCT + col1 + + col2 * - col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col1 - - ( 46 ) AS col2 FROM tab0 cor0
----
132
137
143

query I rowsort
SELECT ALL + col2 * col0 - col0 * - col2 FROM tab1
----
15360
324
7296

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * tab1.col1 - + col0 AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT DISTINCT col1 - - col2 FROM tab0 WHERE ( - col0 * + col0 ) = col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 / + col1 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab0.col2 col1 FROM tab0
----
164
2
66

query III rowsort
SELECT * FROM tab1 WHERE ( + tab1.col1 ) NOT BETWEEN col1 AND - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col0 col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL col2 + col2 + col2 * - col2 FROM tab1
----
-2808
-3135
-9024

query I rowsort
SELECT DISTINCT + col2 + col2 + + col2 AS col2 FROM tab0
----
246
3
99

query I rowsort
SELECT + col2 + - col1 + + col2 * col2 FROM tab2 cor0
----
1465
643
725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col2 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL col2 + + tab1.col1 * col1 FROM tab1
----
157
265
730

query I rowsort
SELECT DISTINCT - col1 + col1 * - col0 FROM tab2 WHERE NOT NULL IN ( col1 * col2 )
----

query I rowsort
SELECT col0 / col0 + - col0 * + col2 AS col0 FROM tab0 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT ALL - tab1.col2 + - col2 AS col2 FROM tab1
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT + col1 DIV + col0 + col1 * + col1 AS col2 FROM tab0
----
7399
8282
9411

skipif mysql # not compatible
query I rowsort label-4230
SELECT + col1 / + col0 + col1 * + col1 AS col2 FROM tab0
----
7399
8282
9411

query I rowsort
SELECT DISTINCT + col0 * + col0 * + col0 + + 31 FROM tab1 AS cor0
----
262175
512031
58

query I rowsort
SELECT - 52 + ( - col2 ) AS col0 FROM tab1
----
-106
-109
-148

onlyif mysql # use DIV operator for integer division
query I rowsort label-4233
SELECT col2 + + tab0.col2 DIV col0 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-4233
SELECT col2 + + tab0.col2 / col0 FROM tab0
----
1
34
82

query I rowsort
SELECT col0 + 69 AS col2 FROM tab2
----
147
148
76

query I rowsort
SELECT DISTINCT - col0 + col0 * 16 AS col2 FROM tab0
----
1335
360
525

query I rowsort
SELECT + 68 + col0 + - ( - col2 ) * col0 AS col2 FROM tab2
----
2174
264
3149

query I rowsort
SELECT col1 + col0 - ( col1 ) * 47 AS col1 FROM tab0 AS cor0
----
-3932
-4097
-4427

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4238
SELECT DISTINCT - col0 + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT - col0 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 20 AS col1 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT + 79 * - col2 AS col1 FROM tab1 cor0
----
-4266
-4503
-7584

query I rowsort
SELECT DISTINCT + 84 FROM tab2, tab0 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col1 col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + col1 + 96 AS col0 FROM tab0
----
182
187
193

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT 46 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4246
SELECT ALL - 44 * cor0.col2 DIV + 40 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 615857320d97ebc6c18737cdc389f321

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - 44 * cor0.col2 / + 40 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 615857320d97ebc6c18737cdc389f321

query I rowsort
SELECT ALL 19 AS col2 FROM tab1
----
19
19
19

query I rowsort
SELECT DISTINCT tab2.col2 + cor0.col0 FROM tab2, tab0 AS cor0
----
115
116
127
50
51
61
62
73

query I rowsort
SELECT ALL ( - col0 * + col2 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + 21 * col2 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT ALL - + cor0.col0 + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * 55 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT DISTINCT + - col0 + - cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT + ( - cor0.col1 ) + - col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT - CAST( - 97 AS SIGNED ) FROM tab1 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-4255
SELECT - CAST ( - 97 AS INTEGER ) FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT - col1 + - tab0.col1 AS col0 FROM tab0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT + tab0.col1 DIV col2 - - col1 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-4257
SELECT + tab0.col1 / col2 - - col1 FROM tab0
----
194
88
92

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 AS col2 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
54
57
96

query I rowsort
SELECT col1 * - 28 + - cor0.col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1404
-806
-920

query I rowsort
SELECT - col0 + - col2 AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT + ( col0 + + tab0.col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + 91 + - tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 594b825b99be306696a2a3afe6ed0fe3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT + + col0 + col0 DIV col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-4264
SELECT + + col0 + col0 / col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT DISTINCT + 75 * col1 AS col0 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT ALL - + 42 * - col2 AS col0 FROM tab2 AS cor0
----
1092
1134
1596

onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT ALL + ( col1 ) DIV col0 AS col1 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + ( col1 ) / col0 AS col1 FROM tab2
----
0
0
4

query I rowsort
SELECT ALL - 32 + 12 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT ALL + col2 + + col0 * cor0.col0 * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL col1 - - col0 * + col2 AS col0 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT - col2 * - col1 + - col1 * col0 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * col2 + col2 - - col1 NOT IN ( + col0 / col2 )
----

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 * col0 * - col1 AS col0 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + tab0.col2 * + tab0.col2 FROM tab0 WHERE NULL BETWEEN col0 * - col2 AND + col0 + + col1 + - col2 * col2
----

query I rowsort
SELECT col0 - col1 FROM tab1 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 col2 FROM tab0
----
171
36
57

query I rowsort
SELECT tab0.col1 + + col0 * + tab0.col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1 WHERE + col1 NOT BETWEEN NULL AND - col0
----
3
64
80

query I rowsort
SELECT ALL - col1 * + tab0.col0 - col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT tab2.col0 * col0 AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( col1 )
----

query I rowsort
SELECT ALL cor0.col2 * col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + col2 * col0 * - col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL + col0 * + col2 - + col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-4284
SELECT - col1 DIV + col0 + - col0 FROM tab1 cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-4284
SELECT - col1 / + col0 + - col0 FROM tab1 cor0
----
-11
-64
-80

query I rowsort
SELECT - - col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL col2 * col0 + cor0.col2 + + col1 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
44665
450
90976

query I rowsort
SELECT - col1 * - col2 * - col0 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT col0 * col1 * col0 + tab1.col0 FROM tab1
----
237
41024
83280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col2 * - col0 col2 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT ALL + col0 * + col0 - col0 * col1 FROM tab2
----
-168
1482
4898

query I rowsort
SELECT DISTINCT col0 * col0 - - col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT + col2 * col1 + col0 + col2 * col2 AS col2 FROM tab1
----
10544
3883
4323

onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT cor0.col1 * + col2 + + col0 DIV col0 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-4293
SELECT cor0.col1 * + col2 + + col0 / col0 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT DISTINCT + col1 * + tab2.col1 + - col1 AS col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT + col0 * + col1 + cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
1280
156
2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT DISTINCT + col0 * col2 + col0 DIV + tab1.col2 AS col0 FROM tab1
----
162
3649
7680

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT + col0 * col2 + col0 / + tab1.col2 AS col0 FROM tab1
----
162
3649
7680

query I rowsort
SELECT + tab1.col2 + col1 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT - tab2.col1 * + col2 * - tab2.col2 AS col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT - + col1 + + col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 + col0 + - col2 FROM tab2 AS cor0
----
-1302
-237
-4550

query I rowsort
SELECT ALL - - col1 - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col2 * col1 + col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT - col1 * - col0 + col1 * col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

skipif mysql # not compatible
query I rowsort label-4303
SELECT - col1 * - col0 + col1 * col0 / - col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col0 * col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT col0 * cor0.col1 + + col2 DIV cor0.col1 FROM tab1 AS cor0
----
1047
645
80

skipif mysql # not compatible
query I rowsort label-4305
SELECT col0 * cor0.col1 + + col2 / cor0.col1 FROM tab1 AS cor0
----
1047
645
80

query I rowsort
SELECT ALL + col0 * + col0 + col1 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4307
SELECT CAST( NULL AS SIGNED ) * 81 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4307
SELECT CAST ( NULL AS INTEGER ) * 81 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + tab0.col1 + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT col1 + + 43 AS col1 FROM tab0
----
129
134
140

query I rowsort
SELECT DISTINCT - col1 * + 2 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT + col2 * 38 * col0 + col1 AS col0 FROM tab0
----
1427
277415
30182

query I rowsort
SELECT + col0 + + ( cor0.col1 ) * col1 AS col1 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-4313
SELECT DISTINCT - 2 + cor0.col1 DIV col2 FROM tab0 AS cor0
----
-1
0
95

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT - 2 + cor0.col1 / col2 FROM tab0 AS cor0
----
-1
0
95

query I rowsort
SELECT DISTINCT - - 10 + col0 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT ALL + ( ( col0 ) ) * + 45 * - 26 AS col1 FROM tab0 cor0
----
-104130
-28080
-40950

query I rowsort
SELECT - + 69 + + col1 AS col0 FROM tab0 cor0
----
17
22
28

query I rowsort
SELECT ALL + 21 * - col1 AS col0 FROM tab2 AS cor0
----
-1239
-357
-651

query I rowsort
SELECT DISTINCT + col0 + + 44 FROM tab0 AS cor0
----
133
68
79

query I rowsort
SELECT ALL - col1 - col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT + col2 * col1 * col0 + col2 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT ALL + ( col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 21 + + ( col2 ) AS col2 FROM tab0 AS cor0
----
103
22
54

query I rowsort
SELECT DISTINCT + col1 + + 44 FROM tab1 cor0
----
54
57
70

query I rowsort
SELECT - + ( 47 ) * + cor0.col2 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT col1 - + cor0.col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - + col2 + 6 FROM tab0 AS cor0
----
-27
-76
5

query I rowsort
SELECT + 83 * 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5680e30ea7c7d1403a256148ec26f2fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col2 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - - 26 * col0 FROM tab2 AS cor0
----
182
2028
2054

query I rowsort
SELECT + + 29 * col2 AS col0 FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT DISTINCT + + col0 + - col1 * + 9 AS col2 FROM tab1 AS cor0
----
-231
-26
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col0 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT 61 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT DISTINCT - col0 + col0 * + 23 * - col1 AS col2 FROM tab2 AS cor0
----
-105924
-30968
-4998

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + - col0 * + CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col1 * - 62 FROM tab2 cor0
----
-1054
-1922
-3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL + - col2 + ( col0 ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - + col1 + ( col1 + cor0.col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT cor0.col0 + - ( ( cor0.col0 ) ) * + col1 * + col0 AS col1 FROM tab0 AS cor0
----
-118790
-49512
-720722

query I rowsort
SELECT DISTINCT - cor0.col0 + - 97 + col1 FROM tab2 AS cor0
----
-116
-159
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT DISTINCT + cor0.col1 * + 54 + col0 DIV col2 FROM tab0 AS cor0
----
4644
4915
5273

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT + cor0.col1 * + 54 + col0 / col2 FROM tab0 AS cor0
----
4644
4915
5273

query I rowsort
SELECT col0 * - 22 + - col0 * - col1 * col1 + col2 FROM tab2 AS cor0
----
21131
269828
6600

query I rowsort
SELECT + + col1 * ( + 86 * col1 ) AS col2 FROM tab1 AS cor0
----
14534
58136
8600

query I rowsort
SELECT - col0 * - col2 * - col1 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - col0 * ( - 56 ) + - col2 * col2 FROM tab1 AS cor0
----
-2748
-4736
335

onlyif mysql # use DIV operator for integer division
query I rowsort label-4351
SELECT - - col1 DIV 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT - - col1 / 93 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 41 AS col1 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4353
SELECT + - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT + - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( cor2.col2 ) FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
26
27
38

query I rowsort
SELECT col1 * - col1 + + ( col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-360
-6820
-8184

onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT ALL - 44 + - col2 * ( - col1 * - cor0.col2 ) + col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-238
-611929
-93700

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL - 44 + - col2 * ( - col1 * - cor0.col2 ) + col1 / - col2 AS col2 FROM tab0 AS cor0
----
-238
-611929
-93700

query I rowsort
SELECT ALL - + 76 * + cor0.col2 + + 38 FROM tab1 AS cor0
----
-4066
-4294
-7258

onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT - + col1 DIV + col2 + ( col2 * cor0.col1 ) col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4358
SELECT - + col1 / + col2 + ( col2 * cor0.col1 ) col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 63 - col0 FROM tab1 AS cor0
----
-127
-143
-66

query I rowsort
SELECT - 67 AS col1 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to b06dbb8370537177bf40dc825f674151

query I rowsort
SELECT DISTINCT col0 * + col1 + tab2.col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT 24 FROM tab2
----
24

query I rowsort
SELECT - 67 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT DISTINCT + - 15 + + col0 * col2 FROM tab0 AS cor0
----
20
7283
777

query I rowsort
SELECT ALL + - cor0.col1 + + col2 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab2.col0 * tab2.col0 col0 FROM tab2
----
-106097
-1519
-358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4367
SELECT - CAST( cor0.col2 AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT - CAST ( cor0.col2 AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 * + cor0.col1 * cor0.col0 AS col2 FROM tab1 cor0
----
234
40960
83200

query I rowsort
SELECT ALL - 89 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4370
SELECT - col2 DIV + col1 - - tab0.col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4370
SELECT - col2 / + col1 - - tab0.col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + 8 * + col2 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT ALL - - col1 + - col2 + - col0 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT DISTINCT - col0 * ( + ( col2 ) ) AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT 39 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT 20 * + 83 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a6d5b2f4fd0e9899dea4d28e9be6acdc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4377
SELECT + col1 * CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT + col1 * CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + cor0.col2 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT - - 75 AS col0 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4380
SELECT col1 DIV - 8 AS col0 FROM tab0 AS cor0
----
-10
-11
-12

skipif mysql # not compatible
query I rowsort label-4380
SELECT col1 / - 8 AS col0 FROM tab0 AS cor0
----
-10
-11
-12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4381
SELECT CAST( NULL AS SIGNED ) / - col1 + + col0 * 95 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT CAST ( NULL AS INTEGER ) / - col1 + + col0 * 95 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - col1 * 61 + col2 * + 77 * - 84 AS col1 FROM tab2 AS cor0
----
-171767
-176527
-246821

query I rowsort
SELECT - - 72 AS col1 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - tab1.col1 * 32 FROM tab1
----
-320
-416
-832

query I rowsort
SELECT DISTINCT + col0 * - col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - cor0.col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - 43 + - col1 FROM tab1 AS cor0
----
-53
-56
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4389
SELECT ALL - CAST( NULL AS SIGNED ) * + ( cor0.col2 ) + - 30 / col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( cor0.col2 ) + - 30 / col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 30 FROM tab2, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT + col1 * + col1 + - col0 AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT + + 48 * 12 AS col2 FROM tab2 AS cor0
----
576

query I rowsort
SELECT ALL - 77 * col1 + col0 AS col0 FROM tab2 cor0
----
-1230
-2380
-4465

query I rowsort
SELECT - cor2.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 4805bcb9c04e49d1f6f82defa880d751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 * col1 + col0 col0 FROM tab1 AS cor0
----
1159
2161
894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col2 FROM tab0 cor0
----
24

query I rowsort
SELECT ALL + + ( col0 ) * + col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT col2 * col0 + cor0.col0 DIV + 66 FROM tab1 AS cor0
----
162
3648
7681

skipif mysql # not compatible
query I rowsort label-4400
SELECT col2 * col0 + cor0.col0 / + 66 FROM tab1 AS cor0
----
162
3648
7681

query I rowsort
SELECT ALL - ( - col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col2 + cor0.col0 * + 1 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col0 * + col0 + ( 66 * cor0.col1 ) FROM tab0 AS cor0
----
13927
6252
7627

query I rowsort
SELECT ALL - 88 * cor0.col0 + col0 * - col0 FROM tab2 AS cor0
----
-12948
-13193
-665

query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 - + cor0.col2 * - col0 AS col0 FROM tab2 cor0
----
165
2047
3064

query I rowsort
SELECT - + col2 + cor0.col2 * + 87 AS col2 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT DISTINCT + + col0 + 89 AS col2 FROM tab0 AS cor0
----
113
124
178

query I rowsort
SELECT ALL + col1 * + col2 - col0 * cor0.col1 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT ALL - - col2 * - ( col0 ) + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - col0 - - 11 * 86 FROM tab2 AS cor0
----
867
868
939

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 + col0 * + col2 col2 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT ALL - 79 FROM tab1
----
-79
-79
-79

query I rowsort
SELECT ALL - 90 AS col0 FROM tab0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + 29 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
29

query I rowsort
SELECT + + cor0.col2 * + 98 - - col0 * - col0 FROM tab0 AS cor0
----
-1127
115
2658

query I rowsort
SELECT + - col2 * - ( col2 ) + + col0 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
71

query I rowsort
SELECT ALL 39 + + col1 FROM tab2 AS cor0
----
56
70
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT + - cor0.col2 DIV - col0 AS col0 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4421
SELECT + - cor0.col2 / - col0 AS col0 FROM tab2 cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT 2 + - col0 DIV 29 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4422
SELECT 2 + - col0 / 29 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT 22 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT - 71 - 12 FROM tab1
----
-83
-83
-83

query I rowsort
SELECT 2 + col0 AS col1 FROM tab1 AS cor0
----
5
66
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4426
SELECT DISTINCT + 61 DIV + col0 AS col2 FROM tab2
----
0
8

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + 61 / + col0 AS col2 FROM tab2
----
0
8

query I rowsort
SELECT + col1 * 86 AS col0 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT - - col0 + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4429
SELECT 49 DIV 74 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-4429
SELECT 49 / 74 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT tab0.col0 + tab0.col1 * col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT + col1 + 91 FROM tab1 AS cor0
----
101
104
117

query I rowsort
SELECT + - ( + cor0.col1 ) + - col0 * col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - + cor0.col2 + + cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + ( tab2.col2 ) FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * 3 col2 FROM tab2, tab1 AS cor0
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4437
SELECT DISTINCT col1 + - CAST( 68 AS SIGNED ) AS col2 FROM tab0
----
18
23
29

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT col1 + - CAST ( 68 AS INTEGER ) AS col2 FROM tab0
----
18
23
29

query I rowsort
SELECT ALL col1 + 39 * + 7 AS col0 FROM tab2
----
290
304
332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 56 * col1 col0 FROM tab1
----
1402
503
632

query I rowsort
SELECT ALL - + 28 AS col0 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 70e92c218433163922867899a16e1269

query I rowsort
SELECT DISTINCT 24 * col1 FROM tab1 AS cor0
----
240
312
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT DISTINCT col0 * + col0 + col1 DIV 81 AS col1 FROM tab0 AS cor0
----
1226
577
7922

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT col0 * + col0 + col1 / 81 AS col1 FROM tab0 AS cor0
----
1226
577
7922

query I rowsort
SELECT + 59 + - 52 * - col1 FROM tab2 AS cor0
----
1671
3127
943

query I rowsort
SELECT + - ( col1 ) * - cor0.col0 + - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + col2 * 75 + - col2 FROM tab0 AS cor0
----
2442
6068
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 4 col1 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL 31 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4448
SELECT DISTINCT + col0 * + col2 * col0 + CAST( 57 AS SIGNED ) * - col0 * col2 AS col2 FROM tab2 cor0
----
-9450
42588
66044

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT + col0 * + col2 * col0 + CAST ( 57 AS INTEGER ) * - col0 * col2 AS col2 FROM tab2 cor0
----
-9450
42588
66044

query I rowsort
SELECT DISTINCT ( + col0 ) * - col1 - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT + 41 + col1 + col0 FROM tab0 AS cor0
----
151
173
221

query I rowsort
SELECT ALL - 94 * col1 + col1 - - 96 * col0 AS col1 FROM tab1 AS cor0
----
-2130
5214
6471

query I rowsort
SELECT DISTINCT - ( - ( col0 ) ) FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * + col0 col1 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT - col1 + 90 FROM tab1 AS cor0
----
64
77
80

query I rowsort
SELECT 86 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT + + col2 DIV + col0 + col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-4456
SELECT + + col2 / + col0 + col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT - col0 * + cor0.col2 * - col0 + + 56 AS col2 FROM tab1 AS cor0
----
233528
542
614456

query I rowsort
SELECT DISTINCT + + 97 * col0 + + col2 FROM tab0 cor0
----
2361
3396
8715

query I rowsort
SELECT DISTINCT - cor0.col0 - col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4460
SELECT CAST( + col1 AS SIGNED ) * + col1 * ( tab1.col0 * - col2 ) AS col0 FROM tab1
----
-109512
-1297920
-364800

skipif mysql # not compatible
query I rowsort label-4460
SELECT CAST ( + col1 AS INTEGER ) * + col1 * ( tab1.col0 * - col2 ) AS col0 FROM tab1
----
-109512
-1297920
-364800

query I rowsort
SELECT - 31 * + cor0.col1 AS col2 FROM tab1 cor0
----
-310
-403
-806

query I rowsort
SELECT ( col1 ) * 83 + + cor0.col2 FROM tab2 AS cor0
----
1449
2600
4923

query I rowsort
SELECT + 50 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT - col2 + - col0 * cor0.col0 AS col1 FROM tab1 cor0
----
-4153
-63
-6496

query I rowsort
SELECT + col2 * + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4466
SELECT + + col0 * col1 DIV - col0 + col2 FROM tab1 cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-4466
SELECT + + col0 * col1 / - col0 + col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + + 55 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
111
3463
4304

query I rowsort
SELECT + 58 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT col2 DIV col2 - ( col1 ) FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4469
SELECT col2 / col2 - ( col1 ) FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4471
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) * 46 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) * 46 AS col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4472
SELECT DISTINCT cor0.col2 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT cor0.col2 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - 91 + + col1 * col0 * - col0 FROM tab0 AS cor0
----
-118951
-49651
-720991

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT ALL - + col2 + CAST( col0 AS SIGNED ) * - col0 * + col1 AS col1 FROM tab1 cor0
----
-288
-41017
-83296

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL - + col2 + CAST ( col0 AS INTEGER ) * - col0 * + col1 AS col1 FROM tab1 cor0
----
-288
-41017
-83296

onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT + col1 * col2 - - col1 DIV cor0.col1 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-4475
SELECT + col1 * col2 - - col1 / cor0.col1 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT ALL - + col0 + - col1 * col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT - col1 * + 92 * 5 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
-11986
-4610
-5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 * col0 col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - 41 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
-41

query I rowsort
SELECT col1 + + col0 * col0 * - 71 FROM tab1 AS cor0
----
-290806
-454387
-613

query I rowsort
SELECT + col2 + 65 AS col1 FROM tab0
----
147
66
98

query I rowsort
SELECT ALL col0 + 17 AS col0 FROM tab0
----
106
41
52

query I rowsort
SELECT - col0 + + col0 - - col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4484
SELECT col2 + CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-4484
SELECT col2 + CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - - col2 + ( + 27 ) * + col0 FROM tab2 AS cor0
----
2132
216
2171

onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT DISTINCT col1 DIV + col2 + + 62 * cor0.col0 col0 FROM tab1 AS cor0
----
186
3968
4960

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT col1 / + col2 + + 62 * cor0.col0 col0 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT col2 * + 10 + ( col2 ) * + ( cor0.col0 + + cor0.col2 ) FROM tab2 AS cor0
----
1188
2964
4826

query I rowsort
SELECT col2 + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col0 * - cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - col1 * ( - col2 ) + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - col2 + + 41 FROM tab2 cor0
----
14
15
3

query I rowsort
SELECT DISTINCT cor0.col2 + - 53 FROM tab2 AS cor0
----
-15
-26
-27

query I rowsort
SELECT ALL 86 AS col0 FROM tab2
----
86
86
86

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) * cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col0 + col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT tab0.col2 * - 89 + + ( col2 ) AS col2 FROM tab0
----
-2904
-7216
-88

query I rowsort
SELECT tab1.col1 + - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2f34f153e38ad874743e7617b78b56b7

query I rowsort
SELECT 27 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT DISTINCT - col1 - col1 DIV - col1 FROM tab2 cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - col1 - col1 / - col1 FROM tab2 cor0
----
-16
-30
-58

query I rowsort
SELECT - + col0 + cor0.col0 * ( + col1 ) * + col1 FROM tab1 AS cor0
----
13440
2025
6336

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab1
----
49

query I rowsort
SELECT 0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - tab2.col0 AS col2 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4505
SELECT - ( col2 * col2 ) + col0 DIV col0 + + ( + col1 ) AS col2 FROM tab1
----
-2889
-3238
-9202

skipif mysql # not compatible
query I rowsort label-4505
SELECT - ( col2 * col2 ) + col0 / col0 + + ( + col1 ) AS col2 FROM tab1
----
-2889
-3238
-9202

query I rowsort
SELECT ALL 43 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT 20 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT 20 / - col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT + 70 * - tab0.col0 AS col2 FROM tab0
----
-1680
-2450
-6230

query I rowsort
SELECT DISTINCT 46 - tab1.col1 * - col0 * col1 AS col2 FROM tab1
----
13566
2074
6446

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT col1 * + cor0.col1 + + col1 DIV - 31 col2 FROM tab1 cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4510
SELECT col1 * + cor0.col1 + + col1 / - 31 col2 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT ALL cor0.col1 DIV col1 + 16 * - cor0.col1 * + col1 FROM tab2 AS cor0
----
-15375
-4623
-55695

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL cor0.col1 / col1 + 16 * - cor0.col1 * + col1 FROM tab2 AS cor0
----
-15375
-4623
-55695

query I rowsort
SELECT DISTINCT - 2 * + 67 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-134

query I rowsort
SELECT ALL 16 + - col1 * 34 FROM tab1 AS cor0
----
-324
-426
-868

query I rowsort
SELECT ALL + col2 - - col2 AS col1 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * + ( col2 ) col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - + col1 - - col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT DISTINCT 82 * - col1 DIV - col1 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT 82 * - col1 / - col1 FROM tab0 AS cor0
----
82

query I rowsort
SELECT - 20 + col0 FROM tab0
----
15
4
69

query I rowsort
SELECT + 96 AS col2 FROM tab1 cor0
----
96
96
96

query I rowsort
SELECT + col2 * 35 + col1 FROM tab1 AS cor0
----
1916
2005
3373

query I rowsort
SELECT ALL col0 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4522
SELECT - + col2 / - CAST( NULL AS SIGNED ) + col0 / + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT - + col2 / - CAST ( NULL AS INTEGER ) + col0 / + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4523
SELECT - cor0.col0 * + CAST( NULL AS SIGNED ) - col1 * col1 * 74 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT - cor0.col0 * + CAST ( NULL AS INTEGER ) - col1 * col1 * 74 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - 86 * - cor0.col1 * + col0 + ( + col1 ) FROM tab0 AS cor0
----
177614
292102
696694

query I rowsort
SELECT DISTINCT + + col1 * col0 + + col2 * col1 * 61 FROM tab0 AS cor0
----
175182
463281
9312

query I rowsort
SELECT - cor0.col0 * 77 + col0 FROM tab2 AS cor0
----
-532
-5928
-6004

query I rowsort
SELECT DISTINCT + cor0.col0 + - ( + cor0.col0 + + cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + ( - tab2.col1 ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL + - col2 + + col1 * - 46 AS col1 FROM tab2 AS cor0
----
-1453
-2740
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-4530
SELECT col2 + ( + col1 ) * col2 DIV + 74 AS col1 FROM tab1 AS cor0
----
112
64
72

skipif mysql # not compatible
query I rowsort label-4530
SELECT col2 + ( + col1 ) * col2 / + 74 AS col1 FROM tab1 AS cor0
----
112
64
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4531
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT col2 + + col0 DIV - col2 FROM tab0 cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-4532
SELECT col2 + + col0 / - col2 FROM tab0 cor0
----
-34
33
81

query I rowsort
SELECT DISTINCT 18 * - cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
-468
-486
-684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4534
SELECT - CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4534
SELECT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - 82 * - 57 FROM tab0 AS cor0
----
4674
4674
4674

query I rowsort
SELECT ALL - 37 + col2 AS col1 FROM tab2 AS cor0
----
-10
-11
1

query I rowsort
SELECT + - 90 * + col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT DISTINCT - - 68 FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT + 68 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
457232
68
74052

query I rowsort
SELECT DISTINCT - 22 FROM tab2 cor0
----
-22

query I rowsort
SELECT - + 23 AS col2 FROM tab0 cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + - ( col2 ) * 95 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT 52 * - col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT ALL - 4 * - col1 + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT DISTINCT + col1 * + col1 * - col0 AS col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + 89 * - col2 AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-4548
SELECT ALL - - ( + col2 ) DIV ( col0 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - - ( + col2 ) / ( col0 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + 58 * col1 AS col0 FROM tab1 AS cor0
----
1508
580
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 * col0 * col1 col0 FROM tab0 AS cor0
----
152736
251230
599326

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4552
SELECT DISTINCT + 80 DIV col0 FROM tab1 AS cor0
----
1
26

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT + 80 / col0 FROM tab1 AS cor0
----
1
26

query I rowsort
SELECT + + 31 * col1 FROM tab0 cor0
----
2666
2821
3007

query I rowsort
SELECT ALL 4 * + col0 FROM tab1
----
12
256
320

query I rowsort
SELECT ALL - - col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col1 * - col0 + + 77 AS col0 FROM tab0 cor0
----
-1987
-3318
-8022

query I rowsort
SELECT DISTINCT col1 * ( - tab2.col2 ) AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col0 + col1 * - col1 AS col2 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT - - col0 * - ( + col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + 43 col2 FROM tab2 AS cor0
----
-16
12
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4561
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 87 col2 FROM tab0 AS cor0
----
2088
3045
7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * cor0.col0 col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT + 77 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT + 77 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + + 66 AS col2 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT - col0 * + 9 FROM tab1 AS cor0
----
-27
-576
-720

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - col1 AS REAL ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - 45 * col0 AS col1 FROM tab0 AS cor0
----
-1080
-1575
-4005

onlyif mysql # use DIV operator for integer division
query I rowsort label-4571
SELECT DISTINCT + col2 DIV + 58 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT + col2 / + 58 FROM tab0
----
0
1

query I rowsort
SELECT + tab0.col2 + + col2 AS col0 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL 48 * col1 + + 11 AS col2 FROM tab2 AS cor0
----
1499
2843
827

query I rowsort
SELECT + cor0.col2 * - col2 + + col0 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - col0 * + col2 * - ( + 49 ) + col1 FROM tab2 AS cor0
----
147115
9292
99431

query I rowsort
SELECT + col2 * cor0.col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col2 + + col2 * col1 * col0 FROM tab2 AS cor0
----
119626
50996
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT DISTINCT + col1 DIV + col2 + + col0 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT + col1 / + col2 + + col0 FROM tab0 AS cor0
----
132
26
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4579
SELECT - - ( col0 ) * - CAST( NULL AS DECIMAL ) + - col2 / col1 - - ( col0 + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT - - ( col0 ) * - CAST ( NULL AS REAL ) + - col2 / col1 - - ( col0 + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT ALL - col2 + col0 DIV + 76 AS col0 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL - col2 + col0 / + 76 AS col0 FROM tab0 AS cor0
----
-1
-33
-81

query I rowsort
SELECT ALL col1 + col0 - col2 AS col2 FROM tab2
----
11
111
58

query I rowsort
SELECT - 76 + col0 AS col2 FROM tab1
----
-12
-73
4

query I rowsort
SELECT ALL + col0 - + tab0.col1 AS col0 FROM tab0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab1, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL 89 - col1 * - col2 FROM tab0 AS cor0
----
186
2927
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - + col0 * col0 - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT 17 DIV col0 - col1 FROM tab1 AS cor0
----
-10
-13
-21

skipif mysql # not compatible
query I rowsort label-4589
SELECT 17 / col0 - col1 FROM tab1 AS cor0
----
-10
-13
-21

query I rowsort
SELECT + ( 70 ) * + tab1.col0 FROM tab1
----
210
4480
5600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 + + col0 col0 FROM tab0
----
130
65
76

query I rowsort
SELECT ALL 45 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4593
SELECT - col2 * col2 + CAST( 62 AS SIGNED ) * - col1 * 52 + + ( - tab2.col2 ) * tab2.col2 AS col1 FROM tab2
----
-101402
-191568
-57696

skipif mysql # not compatible
query I rowsort label-4593
SELECT - col2 * col2 + CAST ( 62 AS INTEGER ) * - col1 * 52 + + ( - tab2.col2 ) * tab2.col2 AS col1 FROM tab2
----
-101402
-191568
-57696

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + col1 + - col1 + + 35 FROM tab2 cor0
----
35

query I rowsort
SELECT + col1 + - ( col1 + - cor0.col1 * col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + col1 * - ( + col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - col1 * + col2 + 7 + 78 AS col2 FROM tab1
----
-1163
-1319
-485

query I rowsort
SELECT + cor0.col2 * col1 + col0 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4600
SELECT col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - ( + col0 * col0 ) FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT 15 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT ALL ( + col1 + col0 ) AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL tab1.col0 + - col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT + col0 * col1 + - 70 FROM tab0 AS cor0
----
1994
3325
8029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + + col1 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + col0 * - 98 + 43 AS col1 FROM tab0 AS cor0
----
-2309
-3387
-8679

query I rowsort
SELECT - cor0.col2 + 50 AS col2 FROM tab1 AS cor0
----
-4
-46
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4610
SELECT DISTINCT - + ( + 70 ) + + col0 DIV col2 FROM tab0 cor0
----
-35
-69
-70

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - + ( + 70 ) + + col0 / col2 FROM tab0 cor0
----
-35
-69
-70

query I rowsort
SELECT ALL - col2 * 81 - col0 FROM tab0 cor0
----
-116
-2697
-6731

query I rowsort
SELECT + col1 + 64 FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT ALL - ( col0 ) - col0 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4615
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 41 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT 37 * col1 DIV col0 AS col0 FROM tab1
----
320
5
6

skipif mysql # not compatible
query I rowsort label-4617
SELECT 37 * col1 / col0 AS col0 FROM tab1
----
320
5
6

query I rowsort
SELECT ALL col1 * - cor0.col0 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ( 68 ) FROM tab1
----
68
68
68

query I rowsort
SELECT + 76 * ( col0 ) + col2 + col0 AS col1 FROM tab0 AS cor0
----
1881
2696
6935

query I rowsort
SELECT - ( col0 ) + - col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + col2 + tab0.col2 - - col0 FROM tab0
----
253
37
90

query I rowsort
SELECT - 94 + + col2 FROM tab2 AS cor0
----
-56
-67
-68

query I rowsort
SELECT DISTINCT + + col2 * 19 FROM tab2 AS cor0
----
494
513
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT ALL - col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - col0 / - col2 AS col0 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4626
SELECT + + CAST( 64 AS SIGNED ) FROM tab1 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-4626
SELECT + + CAST ( 64 AS INTEGER ) FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT ( - 19 ) + + col0 + 33 * - col0 FROM tab2 cor0
----
-243
-2515
-2547

query I rowsort
SELECT + col1 - 62 AS col2 FROM tab0 AS cor0
----
24
29
35

query I rowsort
SELECT - 21 * + col1 AS col1 FROM tab0 AS cor0
----
-1806
-1911
-2037

query I rowsort
SELECT DISTINCT - 48 + - col2 * + 12 FROM tab2 cor0
----
-360
-372
-504

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4631
SELECT ALL col1 + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL col1 + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 27 + - col1 * + 58 FROM tab2 AS cor0
----
-1013
-1825
-3449

query I rowsort
SELECT ALL + + 30 * - col0 AS col0 FROM tab2 AS cor0
----
-210
-2340
-2370

query I rowsort
SELECT ALL col2 - 7 AS col1 FROM tab0
----
-6
26
75

query I rowsort
SELECT 37 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT 42 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

query I rowsort
SELECT - col2 * + tab2.col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL col0 + + 23 FROM tab0 AS cor0
----
112
47
58

query I rowsort
SELECT col2 + 44 AS col0 FROM tab0 AS cor0
----
126
45
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4640
SELECT ALL col1 * - ( col0 ) DIV tab1.col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL col1 * - ( col0 ) / tab1.col0 FROM tab1
----
-10
-13
-26

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0, tab1 cor1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query I rowsort
SELECT + + col0 + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4644
SELECT CAST( NULL AS SIGNED ) + 69 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4644
SELECT CAST ( NULL AS INTEGER ) + 69 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - - 48 * cor0.col0 + + col1 FROM tab2 AS cor0
----
367
3803
3809

query I rowsort
SELECT DISTINCT + col2 + col1 + col2 AS col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT col0 + + 27 * + tab1.col2 * + col1 AS col2 FROM tab1
----
15454
33776
37911

query I rowsort
SELECT + 69 + tab1.col2 AS col2 FROM tab1
----
123
126
165

onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT - ( - col1 ) * tab1.col2 + tab1.col1 DIV + 49 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4650
SELECT - ( - col1 ) * tab1.col2 + tab1.col1 / + 49 FROM tab1
----
1248
1404
570

query I rowsort
SELECT 9 + 35 FROM tab2
----
44
44
44

query I rowsort
SELECT DISTINCT + 82 + cor0.col0 FROM tab0, tab0 AS cor0
----
106
117
171

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4654
SELECT ALL col1 DIV 44 + + col1 * ( col0 + - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-1326
-208
70

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL col1 / 44 + + col1 * ( col0 + - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * + col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT 34 FROM tab0 AS cor0
----
34

query I rowsort
SELECT ALL col2 * + col0 + 79 AS col0 FROM tab1
----
241
3727
7759

query I rowsort
SELECT ALL + 90 + col0 + 42 AS col0 FROM tab0
----
156
167
221

query I rowsort
SELECT - col0 + + col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + - col1 col0 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + + 25 + + col0 + col0 FROM tab1 AS cor0
----
153
185
31

query I rowsort
SELECT ALL - - cor0.col1 + - 53 FROM tab1 AS cor0
----
-27
-40
-43

query I rowsort
SELECT + + col1 * ( col1 + col0 * - col0 ) AS col2 FROM tab1 cor0
----
-40860
-83031
442

onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT DISTINCT col1 DIV + 11 FROM tab0 AS cor0
----
7
8

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT col1 / + 11 FROM tab0 AS cor0
----
7
8

query I rowsort
SELECT DISTINCT + - col2 + + 92 FROM tab1 AS cor0
----
-4
35
38

query I rowsort
SELECT + col2 * 23 * col0 AS col0 FROM tab0 AS cor0
----
167854
18216
805

query I rowsort
SELECT DISTINCT + col0 * - 70 FROM tab1 AS cor0
----
-210
-4480
-5600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT ALL col2 DIV + col1 - col0 * - col2 * 46 AS col1 FROM tab0 cor0
----
1610
335708
36432

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL col2 / + col1 - col0 * - col2 * 46 AS col1 FROM tab0 cor0
----
1610
335708
36432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 54 FROM tab1
----
-54

query I rowsort
SELECT DISTINCT 25 FROM tab0, tab2 cor0, tab0 AS cor1
----
25

query I rowsort
SELECT + + cor0.col0 * - ( - cor0.col0 ) FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4673
SELECT ALL col2 DIV + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL col2 / + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT - col1 + + col0 * - col1 + - col2 FROM tab1 AS cor0
----
-1149
-158
-707

query I rowsort
SELECT ALL + - col2 + ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT - col1 + 9 FROM tab0 AS cor0
----
-77
-82
-88

query I rowsort
SELECT DISTINCT cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - ( col2 ) + - 57 AS col2 FROM tab1
----
-111
-114
-153

query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-526
-848
30

query I rowsort
SELECT ALL - 4 * - col1 + - col2 * col0 * col2 AS col0 FROM tab1 AS cor0
----
-207896
-737228
-8644

query I rowsort
SELECT - - col2 + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col0 + col1 + 8 FROM tab1 AS cor0
----
101
37
82

query I rowsort
SELECT DISTINCT + col0 - 66 * col1 AS col1 FROM tab0 AS cor0
----
-5652
-5917
-6367

query I rowsort
SELECT + + col0 + - 60 FROM tab0 AS cor0
----
-25
-36
29

query I rowsort
SELECT ALL cor0.col2 * - col0 - - 52 AS col1 FROM tab0 AS cor0
----
-7246
-740
17

query I rowsort
SELECT DISTINCT + 87 * - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
-1131
-2262
-870

query I rowsort
SELECT ( + tab1.col2 ) * - col1 + ( + col1 ) * - col0 AS col2 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT 83 AS col2 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4689
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col2 + - 7 AS col2 FROM tab2 AS cor0
----
19
20
31

query I rowsort
SELECT DISTINCT + ( - 92 ) FROM tab1 AS cor0
----
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4692
SELECT col1 DIV ( - col1 ) FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4692
SELECT col1 / ( - col1 ) FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 42 + col2 col0 FROM tab1 AS cor0
----
12
15
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4695
SELECT DISTINCT - ( col2 ) + CAST( NULL AS DECIMAL ) / col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT - ( col2 ) + CAST ( NULL AS REAL ) / col2 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * col2 - + 99 FROM tab2 AS cor0
----
1929
2903
90

query I rowsort
SELECT - col0 * - col1 * 93 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
124882
20150
427927

query I rowsort
SELECT ALL + - 16 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-116
-185
-692

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4700
SELECT - col1 * col1 - + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT - col1 * col1 - + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 36 FROM tab1
----
100
116
39

query I rowsort
SELECT - - 10 * - col0 FROM tab1 AS cor0
----
-30
-640
-800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT 98 * - col2 FROM tab1
----
-5292
-5586
-9408

query I rowsort
SELECT - col0 * col1 * col2 - + col1 AS col0 FROM tab2 AS cor0
----
-119711
-51051
-5890

query I rowsort
SELECT + col2 + - ( - col0 ) * + col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col1 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col0 col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT - col2 + cor0.col0 AS col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT col0 + - ( + 82 + + cor0.col0 ) FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT + - col2 + col2 * 69 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT ALL col2 * - tab1.col1 * - col2 AS col0 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL - 62 AS col2 FROM tab1
----
-62
-62
-62

query I rowsort
SELECT + ( 51 ) * + col0 + + col0 AS col1 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT + ( + col2 ) + - col1 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - + ( - 50 ) * col2 FROM tab2 AS cor0
----
1300
1350
1900

query I rowsort
SELECT + - 34 * - col1 + + col0 + col0 AS col0 FROM tab0 AS cor0
----
2972
3272
3368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( - col1 ) col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL 4 - - tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3060ba25a046d89236334c8d0e92a6af

query I rowsort
SELECT ALL tab0.col1 * - 54 AS col2 FROM tab0
----
-4644
-4914
-5238

query I rowsort
SELECT ALL tab0.col1 * tab0.col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT ALL 77 DIV 42 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL 77 / 42 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - 13 + col1 FROM tab1 AS cor0
----
-3
0
13

query I rowsort
SELECT - + 64 * 67 FROM tab0 cor0
----
-4288
-4288
-4288

query I rowsort
SELECT cor0.col0 * - col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 51 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT + + cor0.col0 * - ( - cor0.col2 ) + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT 48 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT DISTINCT - col0 * 41 AS col0 FROM tab2
----
-287
-3198
-3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT + + 52 - col2 DIV cor0.col0 col0 FROM tab0 AS cor0
----
51
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4730
SELECT + + 52 - col2 / cor0.col0 col0 FROM tab0 AS cor0
----
51
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + + cor0.col2 * col2 - col0 col0 FROM tab2 cor0
----
-4004
22
505

query I rowsort
SELECT - 92 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2208
-3220
-8188

query I rowsort
SELECT + tab1.col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab2, tab0 AS cor1
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - col2 col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + col1 + col0 * - col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - ( col1 ) * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT DISTINCT + col0 DIV 53 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + col0 / 53 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab2 cor0
----
27

query I rowsort
SELECT ( 88 ) * col0 AS col2 FROM tab1 AS cor0
----
264
5632
7040

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - col1 - col2 AS col2 FROM tab0 cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 47 AS REAL ) * - col1 * + col1 FROM tab0 AS cor0
----
347612
389207
442223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( col0 ) * ( + ( + col2 ) ) - cor0.col1 col0 FROM tab2 AS cor0
----
119593
51017
5828

query I rowsort
SELECT + - ( - 4 ) * col2 * - col2 FROM tab2 cor0
----
-2704
-2916
-5776

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col0 + + col1 * col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT col2 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col1 FROM tab0 cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 + - ( ( - tab0.col2 ) + - col1 ) col0 FROM tab0
----
119
173
98

query I rowsort
SELECT - 25 + - col0 * + col1 FROM tab1
----
-103
-1065
-665

query I rowsort
SELECT - col1 * + col0 * + col2 FROM tab0 cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4754
SELECT col2 + + col1 * CAST( NULL AS SIGNED ) * + 7 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT col2 + + col1 * CAST ( NULL AS INTEGER ) * + 7 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col1 * 96 FROM tab1 AS cor0
----
-119808
-134784
-54720

query I rowsort
SELECT + - 83 + col1 * 58 FROM tab1 AS cor0
----
1425
497
671

query I rowsort
SELECT ALL 60 * col2 AS col1 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT + - col0 + + col0 * col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - - col2 * - col2 * 13 AS col0 FROM tab0 AS cor0
----
-13
-14157
-87412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 + + col2 col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + + col1 + col0 * - col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT col2 * cor0.col0 * - 18 AS col2 FROM tab2 AS cor0
----
-3402
-36504
-54036

query I rowsort
SELECT - col2 * + ( + col2 ) AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + 19 * - col1 AS col1 FROM tab2
----
-1121
-323
-589

query I rowsort
SELECT + + col0 + col2 * 13 AS col0 FROM tab0 AS cor0
----
1155
453
48

query I rowsort
SELECT ALL - 52 * col0 FROM tab2
----
-364
-4056
-4108

query I rowsort
SELECT cor0.col0 + + ( cor0.col2 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b

query I rowsort
SELECT col2 + 26 FROM tab1 AS cor0
----
122
80
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 15 * col1 * + col0 col2 FROM tab0 AS cor0
----
-121403
-30927
-50924

onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT - + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4771
SELECT - + col0 / - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - + col2 + - col2 + col1 AS col1 FROM tab0 cor0
----
-73
20
95

query I rowsort
SELECT ALL + - col0 + + col1 * - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + cor0.col0 * 25 AS col2 FROM tab0 AS cor0
----
2225
600
875

query I rowsort
SELECT ALL + + col1 + + ( - col0 * - col2 + + 3 ) FROM tab0 AS cor0
----
135
7392
881

query I rowsort
SELECT ALL + - col2 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL cor0.col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT col1 * 98 AS col0 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT tab0.col0 + col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT tab1.col0 * - col2 + + 97 AS col1 FROM tab1
----
-3551
-65
-7583

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * - col0 + cor0.col2 + - col2 * CAST ( col0 AS REAL ) * + col2 FROM tab0 AS cor0
----
-1259
-26679
-606275

query I rowsort
SELECT DISTINCT - col0 * ( cor0.col2 ) + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL 15 + - cor1.col1 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to bc10fc6f2a23d2c2121ac1ef5ec58bfe

query I rowsort
SELECT ALL + 14 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT + ( col1 ) * + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL tab0.col1 * + ( 5 ) AS col1 FROM tab0
----
430
455
485

query I rowsort
SELECT 66 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4789
SELECT + col0 DIV - col0 + col0 * col2 FROM tab1
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-4789
SELECT + col0 / - col0 + col0 * col2 FROM tab1
----
161
3647
7679

query I rowsort
SELECT ALL col1 * - col0 + - 78 * col1 + - col0 FROM tab2 AS cor0
----
-2642
-2748
-9282

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + col1 * col1 + + 50 * 12 - - col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
1778
2232
8683

query I rowsort
SELECT DISTINCT 37 + + col1 AS col1 FROM tab1 cor0
----
47
50
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT + - 63 DIV - col2 + 2 AS col2 FROM tab0 cor0
----
2
3
65

skipif mysql # not compatible
query I rowsort label-4794
SELECT + - 63 / - col2 + 2 AS col2 FROM tab0 cor0
----
2
3
65

query I rowsort
SELECT DISTINCT - + col2 + + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL col2 + + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT - - col2 * - col1 + 94 DIV - 93 FROM tab2 AS cor0
----
-1535
-647
-838

skipif mysql # not compatible
query I rowsort label-4797
SELECT - - col2 * - col1 + 94 / - 93 FROM tab2 AS cor0
----
-1535
-647
-838

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL + ( - col1 ) + col0 + - ( col2 ) * + 97 FROM tab0
----
-159
-3263
-7956

onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT DISTINCT - 99 + col1 * 84 DIV col0 + - col2 FROM tab0
----
-96
132
169

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - 99 + col1 * 84 / col0 + - col2 FROM tab0
----
-96
132
169

query I rowsort
SELECT + + 39 * + col0 - 57 AS col2 FROM tab1 AS cor0
----
2439
3063
60

query I rowsort
SELECT DISTINCT col0 - + col0 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT + 13 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67

query I rowsort
SELECT ALL + ( col1 ) + tab0.col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 91 * + col1 AS col0 FROM tab2 AS cor0
----
1547
2821
5369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 11 ) col0 FROM tab1 cor0
----
-11
-11
-11

query I rowsort
SELECT 6 * col1 FROM tab1
----
156
60
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 * - tab0.col2 * col2 col2 FROM tab0
----
-215168
-32
-34848

onlyif mysql # use DIV operator for integer division
query I rowsort label-4811
SELECT ALL - col2 DIV - col0 + + col1 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - col2 / - col0 + + col1 FROM tab0
----
87
91
97

query I rowsort
SELECT ALL - col0 * 80 AS col1 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT - 60 + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1403
-277
-4662

query I rowsort
SELECT ALL + - col0 + - 54 AS col1 FROM tab2 AS cor0
----
-132
-133
-61

query I rowsort
SELECT + 3 + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ca1aad34ef894de7ffe30a95f0eabb52

query I rowsort
SELECT ALL - col1 + + col2 * col2 * - col1 FROM tab1 AS cor0
----
-119821
-32500
-75842

query I rowsort
SELECT col1 * + col0 + 10 FROM tab1
----
1050
650
88

query I rowsort
SELECT ( - col2 ) + + col0 FROM tab0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4819
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4819
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT col1 * + col1 + col2 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
101
170
677

skipif mysql # not compatible
query I rowsort label-4820
SELECT col1 * + col1 + col2 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
101
170
677

query I rowsort
SELECT DISTINCT + - col0 - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT 36 * - col1 + - 87 AS col1 FROM tab1 AS cor0
----
-1023
-447
-555

query I rowsort
SELECT - col2 * tab2.col0 + + ( 36 * col0 ) FROM tab2
----
-158
63
780

query I rowsort
SELECT col1 + - col2 * - 71 AS col2 FROM tab1
----
3860
4057
6829

query I rowsort
SELECT - cor0.col1 + cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + - col0 * - col0 + + 52 FROM tab2 AS cor0
----
101
6136
6293

onlyif mysql # use DIV operator for integer division
query I rowsort label-4827
SELECT ALL - cor0.col1 + 46 DIV 38 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1260
-1429
-579

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - cor0.col1 + 46 / 38 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1260
-1429
-579

query I rowsort
SELECT ALL - col2 - ( col2 ) AS col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4829
SELECT DISTINCT cor0.col2 DIV - col0 + 63 + col1 AS col1 FROM tab1 AS cor0
----
71
73
75

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT cor0.col2 / - col0 + 63 + col1 AS col1 FROM tab1 AS cor0
----
71
73
75

query I rowsort
SELECT col2 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + + col1 + + ( - 48 ) * + col2 FROM tab1 AS cor0
----
-2566
-2726
-4595

query I rowsort
SELECT DISTINCT + col0 * ( col0 ) + - col0 * col2 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT ALL + col1 + col0 * + ( - col2 ) FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL - tab1.col2 * + 80 AS col0 FROM tab1
----
-4320
-4560
-7680

query I rowsort
SELECT - col2 + col2 * col1 * col2 AS col1 FROM tab2 cor0
----
22572
24510
39858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * col2 col2 FROM tab0 cor0
----
2442
6068
74

query I rowsort
SELECT ALL + col1 + + col2 + col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-9

query I rowsort
SELECT + + 54 AS col2 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + - col0 * 93 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT DISTINCT + + 34 * col2 * - col1 FROM tab0 AS cor0
----
-253708
-3298
-96492

query I rowsort
SELECT ALL 82 AS col2 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT - 57 + col2 FROM tab2 AS cor0
----
-19
-30
-31

query I rowsort
SELECT ALL + 62 * + cor0.col0 + - ( - ( + col1 ) ) FROM tab1 AS cor0
----
212
3978
4973

query I rowsort
SELECT DISTINCT - col0 + + col1 * 62 AS col2 FROM tab2 AS cor0
----
1915
3580
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 + + cor0.col0 col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col0 * col1 + ( col0 ) FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + ( - ( tab2.col0 ) + 93 ) AS col2 FROM tab2
----
14
15
86

query I rowsort
SELECT + 42 * col1 AS col1 FROM tab1
----
1092
420
546

query I rowsort
SELECT col2 * - col1 * + cor0.col2 - + col1 * col1 FROM tab2 AS cor0
----
-23560
-24837
-43365

query I rowsort
SELECT - 55 + + col1 AS col2 FROM tab0
----
31
36
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * 74 FROM tab2
----
1258
2294
4366

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4855
SELECT ALL - - CAST( NULL AS SIGNED ) / 64 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - - CAST ( NULL AS INTEGER ) / 64 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 * col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT ALL - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT DISTINCT + col2 + col2 DIV - 77 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT + col2 + col2 / - 77 FROM tab0 AS cor0
----
1
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT ALL col0 DIV col0 + 92 + col0 * col2 FROM tab1 AS cor0
----
255
3741
7773

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL col0 / col0 + 92 + col0 * col2 FROM tab1 AS cor0
----
255
3741
7773

query I rowsort
SELECT ALL col2 * - col1 + - 67 AS col1 FROM tab2 cor0
----
-1601
-713
-904

query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 + col2 * - 14 FROM tab0 AS cor0
----
-1057
-376
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col2 FROM tab2 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( tab1.col0 ) col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL 61 * + col0 * + col1 + col0 * col0 * col1 FROM tab1
----
146640
4992
80000

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT + col0 + col2 DIV - ( tab0.col1 * - col1 ) FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4867
SELECT + col0 + col2 / - ( tab0.col1 * - col1 ) FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 * + col0 col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL - col0 * + cor0.col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT 75 + + col0 AS col2 FROM tab0 AS cor0
----
110
164
99

query I rowsort
SELECT DISTINCT + col0 - tab1.col2 AS col2 FROM tab1
----
-16
-51
7

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT - col0 + cor0.col1 * 97 AS col1 FROM tab0 AS cor0
----
8318
8738
9374

query I rowsort
SELECT col0 * + col0 + + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + - cor0.col1 * + 48 + - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-1522
-2936
-933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 3 * col2 + + col1 * - col0 col0 FROM tab1 AS cor0
----
-469
-752
84

query I rowsort
SELECT + col0 + + 1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL - col2 * col0 + - col1 AS col0 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT cor0.col0 * + col2 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT cor0.col0 - + cor0.col0 FROM tab2, tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * + col0 + - col2 * - col2 FROM tab1 cor0
----
15616
2925
7345

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4883
SELECT CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col1 ) col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL 72 * + 27 AS col2 FROM tab1 AS cor0
----
1944
1944
1944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4886
SELECT - 0 * col0 + - col0 DIV + 88 + col2 col1 FROM tab0 AS cor0
----
1
33
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4886
SELECT - 0 * col0 + - col0 / + 88 + col2 col1 FROM tab0 AS cor0
----
1
33
81

query I rowsort
SELECT ( col2 ) * + col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL 37 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - 73 + col2 * - col0 * - tab0.col2 AS col0 FROM tab0
----
-38
26063
598363

query I rowsort
SELECT DISTINCT + 41 AS col1 FROM tab2 cor0
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-4891
SELECT col1 + 30 DIV col1 FROM tab2 AS cor0
----
18
31
59

skipif mysql # not compatible
query I rowsort label-4891
SELECT col1 + 30 / col1 FROM tab2 AS cor0
----
18
31
59

query I rowsort
SELECT - 64 - - cor0.col2 * - col1 AS col1 FROM tab1 cor0
----
-1312
-1468
-634

query I rowsort
SELECT ALL + 13 AS col0 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + 39 col2 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT DISTINCT + 1 * - col0 + - col2 + 31 FROM tab0 AS cor0
----
-140
-26
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col2 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT - col0 * ( col2 ) + 56 + col1 AS col0 FROM tab0 AS cor0
----
-650
-7151
118

query I rowsort
SELECT + col1 + - col0 * - col2 - - ( + col0 ) FROM tab2 AS cor0
----
2165
227
3098

query I rowsort
SELECT ALL + + ( + cor0.col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT DISTINCT + 88 DIV + cor0.col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + 88 / + cor0.col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT + - 38 * col0 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT 67 * - col1 AS col1 FROM tab1 AS cor0
----
-1742
-670
-871

query I rowsort
SELECT - - col2 * + col2 + col2 FROM tab1 cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4905
SELECT ALL col1 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL col1 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL - 92 * col1 + col1 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT ALL tab1.col0 + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col2 + + col0 + + col1 * + 9 AS col1 FROM tab2 AS cor0
----
270
313
635

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4910
SELECT ALL col0 * + CAST( col2 * col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1225
19008
649522

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL col0 * + CAST ( col2 * col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL + col1 + - ( + col2 ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col0 * 91 + col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT DISTINCT + - col1 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT + cor0.col1 DIV col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4914
SELECT + cor0.col1 / col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - - ( + 53 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
53

query I rowsort
SELECT ALL + + cor0.col2 * col1 + + 77 * + col2 FROM tab0 AS cor0
----
13776
174
5379

query I rowsort
SELECT DISTINCT col1 + - 80 FROM tab2 AS cor0
----
-21
-49
-63

query I rowsort
SELECT - col1 - ( col1 ) AS col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT ALL tab1.col0 * + col1 - col2 AS col1 FROM tab1
----
24
583
944

query I rowsort
SELECT - col1 + - 17 + col1 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT col1 + + 61 AS col1 FROM tab0
----
147
152
158

query I rowsort
SELECT ALL - col1 - tab0.col2 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT DISTINCT col0 + col0 - 84 DIV col2 FROM tab1
----
127
160
5

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT col0 + col0 - 84 / col2 FROM tab1
----
127
160
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4924
SELECT - + col2 + ( col2 ) * CAST( NULL AS SIGNED ) - - ( col2 ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT - + col2 + ( col2 ) * CAST ( NULL AS INTEGER ) - - ( col2 ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 48 FROM tab2 cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + + col0 col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL 10 * + ( + col1 ) FROM tab1 AS cor0
----
100
130
260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4928
SELECT ALL tab2.col2 * + col0 * + ( col1 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL tab2.col2 * + col0 * + ( col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - tab2.col0 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT DISTINCT + col0 DIV + tab1.col0 - - col1 * - tab1.col2 AS col2 FROM tab1
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT + col0 / + tab1.col0 - - col1 * - tab1.col2 AS col2 FROM tab1
----
-1247
-1403
-569

query I rowsort
SELECT col2 + col2 * 81 * - col0 AS col0 FROM tab1
----
-13068
-295431
-621984

query I rowsort
SELECT + 48 * + col2 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT cor0.col2 * + cor0.col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT col2 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT - ( - col1 ) * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 * - col2 + + ( col2 * + col0 + - 46 * col2 ) FROM tab1 AS cor0
----
-918
1596
4512

query I rowsort
SELECT - - 19 AS col2 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT - 79 * col2 AS col2 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT - col1 * + col1 * + 90 FROM tab1 AS cor0
----
-15210
-60840
-9000

query I rowsort
SELECT DISTINCT + col1 * + col1 * + col1 AS col0 FROM tab0
----
636056
753571
912673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4941
SELECT DISTINCT - 18 * col1 * + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - 18 * col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4942
SELECT + CAST( 86 AS SIGNED ) DIV col0 col1 FROM tab2 AS cor0
----
1
1
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4942
SELECT + CAST ( 86 AS INTEGER ) / col0 col1 FROM tab2 AS cor0
----
1
1
12

query I rowsort
SELECT DISTINCT + + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + - col2 * - 60 AS col2 FROM tab1 cor0
----
3240
3420
5760

query I rowsort
SELECT - 45 + 50 * cor0.col2 FROM tab1 AS cor0
----
2655
2805
4755

query I rowsort
SELECT DISTINCT + 63 * cor0.col0 - tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a9ef0270d80b171a46a831a9e5607d7d

query I rowsort
SELECT ALL tab0.col0 + - col0 * + 52 FROM tab0
----
-1224
-1785
-4539

query I rowsort
SELECT DISTINCT - col2 + + 55 * - col2 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT + 67 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - col0 * col1 + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT 22 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab0
----
-75

query I rowsort
SELECT ALL col0 * cor0.col1 * 72 AS col0 FROM tab1 cor0
----
46080
5616
74880

query I rowsort
SELECT ALL + 18 FROM tab0, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col1 FROM tab2
----
62

query I rowsort
SELECT + ( - col1 ) * - 71 FROM tab1 AS cor0
----
1846
710
923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT - cor0.col0 DIV - cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4957
SELECT - cor0.col0 / - cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + 23 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT ( col1 * - col2 ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + ( 53 ) FROM tab0
----
53
53
53

query I rowsort
SELECT - 59 * - tab1.col0 AS col1 FROM tab1
----
177
3776
4720

query I rowsort
SELECT - 2 + col0 AS col2 FROM tab1
----
1
62
78

query I rowsort
SELECT ALL + - 11 + cor0.col1 AS col2 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 331d23ff65e00a449fa8af55400dfdd0

query I rowsort
SELECT + - 21 * col0 + - col1 FROM tab0 AS cor0
----
-1960
-590
-832

query I rowsort
SELECT DISTINCT - 38 * 76 FROM tab1, tab0 AS cor0
----
-2888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4966
SELECT col0 + col2 * - CAST( 74 * col1 AS SIGNED ) AS col1 FROM tab1
----
-103893
-42116
-92272

skipif mysql # not compatible
query I rowsort label-4966
SELECT col0 + col2 * - CAST ( 74 * col1 AS INTEGER ) AS col1 FROM tab1
----
-103893
-42116
-92272

query I rowsort
SELECT ALL + col2 + - col2 * 34 * col1 FROM tab0
----
-253626
-3297
-96459

query I rowsort
SELECT 86 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT DISTINCT 79 DIV - cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT 79 / - cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-1
-2
-4

query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT col0 DIV 35 AS col0 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4971
SELECT col0 / 35 AS col0 FROM tab1
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT col1 DIV tab0.col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4972
SELECT col1 / tab0.col0 AS col0 FROM tab0
----
1
2
3

query I rowsort
SELECT 41 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT col0 * + col0 - col2 AS col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT col1 * ( - col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 11 * col2 AS col1 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT + col1 + + 15 AS col0 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT + + col1 - 74 FROM tab2 AS cor0
----
-15
-43
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4979
SELECT ALL CAST( NULL AS SIGNED ) + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + col1 + ( + col2 ) * + col2 AS col0 FROM tab0
----
14823
3153
3396

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 FROM tab2
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4982
SELECT + col1 * col0 + + col0 * CAST( + cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
16020
2640
4620

skipif mysql # not compatible
query I rowsort label-4982
SELECT + col1 * col0 + + col0 * CAST ( + cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT - 58 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-1019
-347
-3539

query I rowsort
SELECT ALL - col1 * - 16 FROM tab1 AS cor0
----
160
208
416

onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT - + cor0.col2 + col1 DIV col0 AS col0 FROM tab0 cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-4985
SELECT - + cor0.col2 + col1 / col0 AS col0 FROM tab0 cor0
----
-30
-81
1

query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab2, tab1 cor0, tab2 cor1, tab2 AS cor2
----
26
27
38

query I rowsort
SELECT DISTINCT + + col2 + + 87 FROM tab0 AS cor0
----
120
169
88

query I rowsort
SELECT ALL col0 + col1 * 9 * - tab1.col2 FROM tab1
----
-11152
-12633
-5066

query I rowsort
SELECT col1 * + col0 + col2 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-4990
SELECT ALL - col1 DIV + ( + ( col2 ) * cor0.col2 + + ( col2 ) ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL - col1 / + ( + ( col2 ) * cor0.col2 + + ( col2 ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 + cor0.col1 FROM tab2 cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( cor0.col0 ) * + col2 * col1 + - ( cor0.col0 ) col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - col2 * - col2 * + col0 FROM tab1 AS cor0
----
207936
737280
8748

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + + col1 * col1 + col1 + + col1 FROM tab0 AS cor0
----
7568
8463
9603

query I rowsort
SELECT + col2 * 29 + 15 - col0 FROM tab2 AS cor0
----
1038
691
791

query I rowsort
SELECT DISTINCT - - col0 + - 7 AS col1 FROM tab1 AS cor0
----
-4
57
73

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT + + 99 * - 56 FROM tab1 AS cor0
----
-5544
-5544
-5544

query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - cor0.col0 + + 55 FROM tab0 AS cor0
----
-34
20
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT ALL col0 + + col1 DIV col0 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
200
2106
3081

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL col0 + + col1 / col0 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
200
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5003
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 - + col0 * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 - + col0 * + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5004
SELECT ALL - 45 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - 45 / col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + 15 * + col1 FROM tab2 AS cor0
----
272
496
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 22 col2 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 * col2 + 97 FROM tab0 AS cor0
----
244165
679139
9506

query I rowsort
SELECT ALL + 46 + + 71 FROM tab1 cor0
----
117
117
117

query I rowsort
SELECT ALL tab1.col0 + 62 * col2 + tab1.col0 FROM tab1
----
3354
3662
6112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT ALL tab1.col0 DIV + col2 + col1 * - col1 AS col1 FROM tab1
----
-169
-676
-99

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL tab1.col0 / + col2 + col1 * - col1 AS col1 FROM tab1
----
-169
-676
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - col2 * col2 + 70 FROM tab2
----
-1374
-606
-659

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT ALL - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL - col1 / col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 58 * cor0.col0 * col0 FROM tab1 AS cor0
----
237568
371200
522

query I rowsort
SELECT ALL + col2 * - col1 + ( + col1 + + col2 ) * - ( - col2 + col1 ) AS col0 FROM tab1 AS cor0
----
2579
7799
836

query I rowsort
SELECT 92 * col1 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 * cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT DISTINCT ( - col1 ) * ( col2 + col2 ) FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT col0 + cor0.col0 - - col1 AS col0 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT DISTINCT - ( + col1 ) * 8 AS col0 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT - col0 + + cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col0 * col0 * + col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT col1 * col0 + - col2 AS col0 FROM tab1 AS cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab1, tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) FROM tab0
----
1
33
82

query I rowsort
SELECT - 67 + col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
3581
7613
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT - col2 * - col1 - - col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-5029
SELECT - col2 * - col1 - - col0 / + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
571

query I rowsort
SELECT DISTINCT tab1.col0 - - col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + tab2.col0 * - col0 - 26 FROM tab2
----
-6110
-6267
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 + + col0 col2 FROM tab0
----
13
24
78

query I rowsort
SELECT DISTINCT 1 * + tab1.col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ( col1 * 39 ) FROM tab0
----
3354
3549
3783

query I rowsort
SELECT - - 7 * tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 3b75e0bd85f40756fc4d3aea79adb269

onlyif mysql # use DIV operator for integer division
query I rowsort label-5036
SELECT tab1.col1 * tab1.col0 DIV 2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 5807a0cb3d1acf599b07611a4c1ddd6e

skipif mysql # not compatible
query I rowsort label-5036
SELECT tab1.col1 * tab1.col0 / 2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 5807a0cb3d1acf599b07611a4c1ddd6e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5037
SELECT + col0 + + tab0.col2 DIV - 97 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5037
SELECT + col0 + + tab0.col2 / - 97 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab2
----
65

query I rowsort
SELECT - 80 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5040
SELECT ALL + col0 + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + tab0.col1 + - 54 + 4 FROM tab0
----
36
41
47

query I rowsort
SELECT col1 * + col0 + - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - - cor0.col1 - 83 AS col2 FROM tab2 AS cor0
----
-24
-52
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5044
SELECT col2 * + CAST( + col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-5044
SELECT col2 * + CAST ( + col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT + col0 * col0 + col0 * + col1 - + 17 DIV - 33 FROM tab1 AS cor0
----
4736
7440
87

skipif mysql # not compatible
query I rowsort label-5045
SELECT + col0 * col0 + col0 * + col1 - + 17 / - 33 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT ALL col2 + 24 FROM tab0 AS cor0
----
106
25
57

query I rowsort
SELECT DISTINCT - col0 + + col2 * + 83 FROM tab1 AS cor0
----
4479
4667
7888

query I rowsort
SELECT ALL col1 * cor0.col0 + - col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5049
SELECT + col0 - CAST( col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5049
SELECT + col0 - CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col0 + + 4 FROM tab1 AS cor0
----
-60
-76
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT ALL - cor0.col0 DIV 87 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - cor0.col0 / 87 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - ( 81 ) FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT col2 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT - 11 DIV 15 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT - 11 / 15 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 4 * col2 + + col0 FROM tab0 AS cor0
----
156
39
417

query I rowsort
SELECT DISTINCT 22 - - col0 * col0 AS col1 FROM tab2 AS cor0
----
6106
6263
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5058
SELECT ALL - - CAST( NULL AS SIGNED ) * - ( col2 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL - - CAST ( NULL AS INTEGER ) * - ( col2 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5059
SELECT - - 60 DIV col1 + col0 * col1 FROM tab2 AS cor0
----
1346
218
4603

skipif mysql # not compatible
query I rowsort label-5059
SELECT - - 60 / col1 + col0 * col1 FROM tab2 AS cor0
----
1346
218
4603

query I rowsort
SELECT DISTINCT 16 + ( + col2 ) * + ( ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-1428
-660
-713

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
35

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL + cor0.col0 + + col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL + ( - col0 ) * ( 26 ) + + col0 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT + tab2.col0 * + tab2.col2 + + col1 * col2 FROM tab2
----
1026
3562
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT DISTINCT - + col2 + - col2 * col0 DIV col0 col0 FROM tab2 AS cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - + col2 + - col2 * col0 / col0 col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL 67 + col0 - 49 * col1 AS col1 FROM tab2 AS cor0
----
-1445
-2746
-687

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 * + col0 AS col0 FROM tab2
----
6887
7618
886

query I rowsort
SELECT + col0 * - col2 + tab1.col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT ALL col0 - col2 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT tab1.col2 + - col1 * - col1 * col0 AS col2 FROM tab1
----
13616
2082
6457

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col1 + col1 <> ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5073
SELECT tab1.col0 DIV - col1 + col1 + + col2 FROM tab1
----
103
61
80

skipif mysql # not compatible
query I rowsort label-5073
SELECT tab1.col0 / - col1 + col1 + + col2 FROM tab1
----
103
61
80

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 - - col0 * col2 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT + tab0.col2 + + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL + tab1.col0 + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT 43 * + col2 + col2 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT + col1 FROM tab2 WHERE ( NULL ) NOT IN ( col2 * col0 + tab2.col2 )
----

query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1 WHERE ( col1 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 + col2 AND ( - col0 )
----

query I rowsort
SELECT + col2 * tab1.col0 + - col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT DISTINCT 11 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
11

query I rowsort
SELECT col1 - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 + col1 + col0 FROM tab1 AS cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + - col0 col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col1 * + col0 * + col2 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col2 + col1 - + col2 col2 FROM tab1 AS cor0
----
134
3601
7597

query I rowsort
SELECT DISTINCT + col0 * col2 * tab1.col1 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + col2 * + col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col0 * col1 + tab0.col2 * - tab0.col0 * col2 AS col1 FROM tab0
----
-28200
-3430
-606535

onlyif mysql # use DIV operator for integer division
query I rowsort label-5092
SELECT DISTINCT - col1 - + tab2.col2 DIV + col1 AS col0 FROM tab2
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT - col1 - + tab2.col2 / + col1 AS col0 FROM tab2
----
-19
-31
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + col0 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT + col1 + tab2.col1 + - tab2.col1 FROM tab2
----
17
31
59

query I rowsort
SELECT + col0 + + tab2.col1 * + col2 + - col2 AS col2 FROM tab2
----
1586
687
817

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 + + col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + col2 + col2 AS col0 FROM tab2
----
1482
702
756

query I rowsort
SELECT col0 * + col2 * + col1 + col0 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT ALL - col0 * col1 * - col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT NULL IN ( - col0 - col2 )
----

query I rowsort
SELECT DISTINCT + col0 - tab2.col1 AS col2 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5103
SELECT + col1 DIV col2 - - col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5103
SELECT + col1 / col2 - - col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5104
SELECT col0 DIV col0 - + col0 * + col2 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-5104
SELECT col0 / col0 - + col0 * + col2 FROM tab0
----
-34
-7297
-791

query I rowsort
SELECT DISTINCT + col2 * col2 * col0 FROM tab2
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * + col0 col1 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT - 5 * + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d1b2df16c908d430b9f1da407baeec26

query I rowsort
SELECT - + cor0.col1 * col0 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5109
SELECT CAST( NULL AS SIGNED ) * - col2 + + col0 - 41 * col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT CAST ( NULL AS INTEGER ) * - col2 + + col0 - 41 * col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5110
SELECT + + ( + col1 ) + cor0.col2 DIV - 94 + + col0 FROM tab1 AS cor0
----
29
74
92

skipif mysql # not compatible
query I rowsort label-5110
SELECT + + ( + col1 ) + cor0.col2 / - 94 + + col0 FROM tab1 AS cor0
----
29
74
92

query I rowsort
SELECT 85 + - 66 * cor0.col2 FROM tab0 AS cor0
----
-2093
-5327
19

query I rowsort
SELECT DISTINCT col1 + - col1 * - 79 FROM tab2
----
1360
2480
4720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5113
SELECT - CAST( - ( - col0 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5113
SELECT - CAST ( - ( - col0 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT DISTINCT - col1 + col2 DIV col2 AS col1 FROM tab0 cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT - col1 + col2 / col2 AS col1 FROM tab0 cor0
----
-85
-90
-96

query I rowsort
SELECT ALL ( col0 ) * tab2.col1 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5116
SELECT DISTINCT 12 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT 12 / col1 FROM tab2
----
0

query I rowsort
SELECT - 60 * - col1 FROM tab1
----
1560
600
780

query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + ( col2 * col1 ) FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5120
SELECT DISTINCT CAST( col2 AS SIGNED ) * col1 - col2 * - col2 col1 FROM tab0
----
14186
3927
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col1 - col2 * - col2 col1 FROM tab0
----
14186
3927
98

query I rowsort
SELECT ALL + tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL + 8 + - col2 + - col0 AS col1 FROM tab1
----
-113
-168
-49

query I rowsort
SELECT ALL + col2 + col1 * + col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT + 42 * + col0 - + col2 AS col1 FROM tab0
----
1469
3656
975

onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT ( - col2 ) * col2 DIV + col0 + + col2 AS col0 FROM tab2
----
-77
18
20

skipif mysql # not compatible
query I rowsort label-5125
SELECT ( - col2 ) * col2 / + col0 + + col2 AS col0 FROM tab2
----
-77
18
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT - CAST( + 80 AS SIGNED ) DIV - col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5126
SELECT - CAST ( + 80 AS INTEGER ) / - col0 FROM tab0
----
0
2
3

query I rowsort
SELECT ( col0 ) * - col1 - + col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT - - ( - col1 ) * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col0 + col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT cor0.col0 * 17 AS col2 FROM tab0 AS cor0
----
1513
408
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 * - col1 col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL + cor0.col2 * + col1 + col1 + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-3201
-546
860

query I rowsort
SELECT ALL - col1 * col0 + + col0 * cor0.col1 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 5 col2 FROM tab0 cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - - col1 * col2 + col0 + - col0 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + - 64 AS col2 FROM tab2 AS cor0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * - col2 + col0 col0 FROM tab2 AS cor0
----
114155
5110
52806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col0 FROM tab1 AS cor0
----
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5139
SELECT ALL ( col1 ) DIV - col0 + col0 * + col2 AS col2 FROM tab2 cor0
----
185
2028
3002

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL ( col1 ) / - col0 + col0 * + col2 AS col2 FROM tab2 cor0
----
185
2028
3002

query I rowsort
SELECT + 84 AS col2 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT ALL - col0 - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + col0 * 45 * - col0 AS col2 FROM tab2
----
-2205
-273780
-280845

query I rowsort
SELECT 65 * + col1 - col1 * col0 AS col0 FROM tab1
----
-195
10
1612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5144
SELECT CAST( col0 AS SIGNED ) - + tab2.col1 * col2 AS col2 FROM tab2
----
-1456
-567
-830

skipif mysql # not compatible
query I rowsort label-5144
SELECT CAST ( col0 AS INTEGER ) - + tab2.col1 * col2 AS col2 FROM tab2
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5145
SELECT ALL - CAST( NULL AS SIGNED ) - tab0.col1 / - col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL - CAST ( NULL AS INTEGER ) - tab0.col1 / - col1 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col0 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col0 * - 40 AS col1 FROM tab0
----
-1400
-3560
-960

query I rowsort
SELECT col2 * - ( + ( col0 ) ) AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + + cor0.col2 * + cor0.col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT col2 + col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT col0 * + 95 AS col0 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT ALL col1 * 77 + col0 * col0 AS col2 FROM tab2 AS cor0
----
10627
2436
7550

query I rowsort
SELECT - - col2 + 64 * + col2 AS col0 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT DISTINCT - col2 * col0 * - 94 AS col1 FROM tab2
----
17766
190632
282188

query I rowsort
SELECT + - col2 * + 91 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT ALL - col0 * col0 + col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL col1 + + cor0.col0 * 80 FROM tab0 AS cor0
----
2006
2897
7211

query I rowsort
SELECT DISTINCT + - col0 + 1 * col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - 44 * col1 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT + - col2 + cor0.col1 * col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5163
SELECT + cor0.col0 + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5163
SELECT + cor0.col0 + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT ALL + + cor0.col2 + + col1 DIV col0 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + + cor0.col2 + + col1 / col0 FROM tab0 AS cor0
----
3
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT + col0 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT + col0 / col1 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT ALL - col0 DIV col2 AS col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - col0 / col2 AS col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT - tab1.col1 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT - col2 - + col0 DIV col0 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5168
SELECT - col2 - + col0 / col0 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ALL + col1 * - col0 + col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL col1 + + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 * + col1 * col0 col2 FROM tab1
----
-36416
-4209
-99760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5173
SELECT DISTINCT col1 DIV col2 + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT col1 / col2 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - ( col0 ) * + col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - + col0 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + - col2 + col2 - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col2 * col1 * - col1 + + col0 FROM tab2
----
-10903
-25940
-90428

query I rowsort
SELECT ALL - + col1 * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - col0 + - 88 AS col2 FROM tab1 AS cor0
----
-24
-8
-85

query I rowsort
SELECT + - col2 * - col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT + tab2.col0 DIV col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5181
SELECT + tab2.col0 / col1 FROM tab2
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5182
SELECT + - col0 * CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT + - col0 * CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - col0 * col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT col2 * col1 + col1 - + col0 FROM tab2 AS cor0
----
1515
584
861

query I rowsort
SELECT DISTINCT 74 + tab2.col2 AS col1 FROM tab2
----
100
101
112

query I rowsort
SELECT - cor1.col0 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT tab0.col0 * + col0 + tab0.col2 * - col0 FROM tab0
----
-216
1190
623

onlyif mysql # use DIV operator for integer division
query I rowsort label-5188
SELECT ALL col1 * + col0 DIV + ( + col0 ) + col2 * 9 AS col0 FROM tab1
----
512
523
877

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL col1 * + col0 / + ( + col0 ) + col2 * 9 AS col0 FROM tab1
----
512
523
877

onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT + col2 DIV + col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5189
SELECT + col2 / + col0 AS col2 FROM tab1
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5190
SELECT DISTINCT - col1 * CAST( + 78 AS SIGNED ) FROM tab0
----
-6708
-7098
-7566

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT - col1 * CAST ( + 78 AS INTEGER ) FROM tab0
----
-6708
-7098
-7566

query I rowsort
SELECT - + col0 + + 1 * col2 AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + cor0.col1 + col2 * col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - 85 * + cor0.col0 FROM tab2 AS cor0
----
-595
-6630
-6715

query I rowsort
SELECT - ( col0 ) * + cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 9 * - col0 FROM tab1 AS cor0
----
-27
-576
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ( 75 ) * + col0 FROM tab0 AS cor0
----
1800
2625
6675

query I rowsort
SELECT DISTINCT - - 19 AS col1 FROM tab0 AS cor0
----
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5199
SELECT - CAST( + 76 AS SIGNED ) AS col2 FROM tab0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-5199
SELECT - CAST ( + 76 AS INTEGER ) AS col2 FROM tab0
----
-76
-76
-76

query I rowsort
SELECT 87 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + col0 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - 93 * - col1 + 89 FROM tab1 AS cor0
----
1019
1298
2507

query I rowsort
SELECT - col2 * col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + + 47 * - col2 AS col1 FROM tab1 AS cor0
----
-2538
-2679
-4512

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + 16 * - col1 * - col0 AS col1 FROM tab0 AS cor0
----
129584
33024
54320

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to c8e4a9d810c83d17322e338b2adc95b6

query I rowsort
SELECT 37 * col0 AS col1 FROM tab1 cor0
----
111
2368
2960

query I rowsort
SELECT - + col2 * + 4 + col1 * col2 AS col2 FROM tab0 AS cor0
----
2706
7134
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT + col1 * + cor0.col1 - - cor0.col2 DIV col1 col2 FROM tab2 AS cor0
----
291
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5210
SELECT + col1 * + cor0.col1 - - cor0.col2 / col1 col2 FROM tab2 AS cor0
----
291
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5211
SELECT DISTINCT - col2 + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT - col2 + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * col1 * col0 - + col1 AS col2 FROM tab2 AS cor0
----
-106114
-1550
-359015

query I rowsort
SELECT DISTINCT - 71 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-71

query I rowsort
SELECT - - col2 + - 3 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
291
292
355

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5215
SELECT ALL - col1 + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - col1 + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT 31 + + 3 * col2 FROM tab1
----
193
202
319

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5218
SELECT - CAST( NULL AS SIGNED ) * 15 + cor0.col2 * 97 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT - CAST ( NULL AS INTEGER ) * 15 + cor0.col2 * 97 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT cor0.col2 * 61 FROM tab2 cor0
----
1586
1647
2318

query I rowsort
SELECT + + col1 + - cor0.col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT cor0.col0 + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + col0 * col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT DISTINCT col1 * col2 - 34 * - 30 FROM tab2 AS cor0
----
1666
1857
2554

query I rowsort
SELECT + ( col1 ) + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL - col1 + col1 * col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * col2 * + 55 + col1 - - col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
11431
409762
51042

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col2 FROM tab0, tab2, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col0 * - col2 - col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT - ( 10 ) FROM tab0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT - 36 FROM tab0 cor0
----
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT + - col2 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5232
SELECT + - col2 / + col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL - - 18 AS col0 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT ALL - - 76 + - cor2.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2, tab1
----
729 values hashing to fe6401abfb8dd21766f93fc0411697e3

query I rowsort
SELECT DISTINCT - col1 + col0 * + col1 AS col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT ALL 35 FROM tab2, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * col2 col2 FROM tab1
----
4968
5244
8832

query I rowsort
SELECT col2 + col1 * col1 * - 6 AS col0 FROM tab2
----
-1696
-20860
-5739

query I rowsort
SELECT ( - 38 ) * col1 AS col0 FROM tab1
----
-380
-494
-988

query I rowsort
SELECT cor0.col2 * cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT DISTINCT col1 + - 21 + - col0 AS col0 FROM tab2
----
-40
-83
3

query I rowsort
SELECT DISTINCT - col2 + col1 + col2 AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5243
SELECT + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5243
SELECT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 14 * - 28 FROM tab0 AS cor0
----
-392

query I rowsort
SELECT ALL + col0 + - cor0.col2 * col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5246
SELECT DISTINCT col1 DIV 99 + - col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT col1 / 99 + - col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL ( + 87 ) * col0 FROM tab1 AS cor0
----
261
5568
6960

query I rowsort
SELECT DISTINCT + col0 * 15 + col1 AS col1 FROM tab1 AS cor0
----
1213
71
970

query I rowsort
SELECT - 20 * + col0 - + ( + col1 + col1 * col2 ) AS col2 FROM tab1
----
-1490
-1860
-2861

query I rowsort
SELECT 21 + col0 FROM tab1
----
101
24
85

query I rowsort
SELECT ALL tab2.col1 + + tab2.col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT + ( tab0.col2 ) * col0 + - 69 FROM tab0
----
-34
7229
723

query I rowsort
SELECT + col2 + + col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT 42 + col1 AS col1 FROM tab0
----
128
133
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + 25 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 541a35e17cf52bffd955be6ba6319bc4

query I rowsort
SELECT 87 - tab1.col2 AS col2 FROM tab1
----
-9
30
33

query I rowsort
SELECT DISTINCT 78 * col0 + 55 AS col1 FROM tab2
----
601
6139
6217

query I rowsort
SELECT - ( + col0 ) * col2 * - ( - col0 * + ( + col1 ) ) + + col1 + ( + col2 ) FROM tab0 cor0
----
-118727
-1634569
-59106329

onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL + 49 + + col1 DIV - col1 FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + 49 + + col1 / - col1 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + 16 + - tab2.col0 * + col1 AS col1 FROM tab2
----
-1327
-201
-4586

query I rowsort
SELECT 37 + col2 AS col1 FROM tab0 AS cor0
----
119
38
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5262
SELECT CAST( 94 AS SIGNED ) col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5262
SELECT CAST ( 94 AS INTEGER ) col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT + - ( + col2 ) + - 64 FROM tab1 AS cor0
----
-118
-121
-160

query I rowsort
SELECT + col1 * - 72 AS col2 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT ALL col1 * col1 + 38 AS col1 FROM tab1 AS cor0
----
138
207
714

query I rowsort
SELECT DISTINCT - col2 * ( 15 ) + + col1 FROM tab0 cor0
----
-1139
-409
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5267
SELECT ALL - col0 + CAST( 88 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
24
8
85

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL - col0 + CAST ( 88 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
24
8
85

query I rowsort
SELECT DISTINCT - - col0 + + col1 * - col1 * - cor0.col2 FROM tab1 AS cor0
----
16304
36507
5764

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT - cor0.col2 + col2 DIV + col1 AS col2 FROM tab1 cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-5269
SELECT - cor0.col2 + col2 / + col1 AS col2 FROM tab1 cor0
----
-52
-52
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT DISTINCT col1 DIV - col1 AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT col1 / - col1 AS col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT + - col1 + 91 AS col0 FROM tab0 AS cor0
----
-6
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( 90 ) - cor0.col2 col2 FROM tab1 AS cor0
----
-1266
-2394
-957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5273
SELECT CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5273
SELECT CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 40 * - col2 + col2 * col2 col0 FROM tab0 cor0
----
-1399
-285196
-30591

query I rowsort
SELECT ALL + + cor0.col1 - ( col0 ) FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT ALL - + col1 DIV - 64 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - + col1 / - 64 col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 * + cor0.col2 + + 32 AS col2 FROM tab2 AS cor0
----
-1502
-614
-805

query I rowsort
SELECT 31 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col1 * + col2 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col2 * + ( + col0 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5282
SELECT + col0 + + 54 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
26
36
89

skipif mysql # not compatible
query I rowsort label-5282
SELECT + col0 + + 54 / cor0.col0 AS col1 FROM tab0 AS cor0
----
26
36
89

query I rowsort
SELECT 12 + - col1 FROM tab0 AS cor0
----
-74
-79
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5284
SELECT CAST( + 36 AS SIGNED ) * - col0 FROM tab2 cor0
----
-252
-2808
-2844

skipif mysql # not compatible
query I rowsort label-5284
SELECT CAST ( + 36 AS INTEGER ) * - col0 FROM tab2 cor0
----
-252
-2808
-2844

query I rowsort
SELECT ALL + col0 * - 95 FROM tab0 AS cor0
----
-2280
-3325
-8455

query I rowsort
SELECT DISTINCT 43 + col1 + col0 AS col2 FROM tab1 cor0
----
117
136
72

query I rowsort
SELECT ALL col0 * 7 FROM tab0
----
168
245
623

query I rowsort
SELECT tab2.col2 * - tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT ALL - ( tab2.col1 ) DIV cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to b415b528c8fb4a680bc7f8e3f360b241

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - ( tab2.col1 ) / cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to b415b528c8fb4a680bc7f8e3f360b241

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL - + 11 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - + 63 + col2 FROM tab2 AS cor0
----
-25
-36
-37

query I rowsort
SELECT ALL - col0 + col0 * 20 FROM tab0 cor0
----
1691
456
665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT - 58 * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT - 58 * 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-5295
SELECT - 94 DIV 87 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5295
SELECT - 94 / 87 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL + col1 - - col1 * - col1 * + 8 AS col2 FROM tab1
----
-1339
-5382
-790

onlyif mysql # use DIV operator for integer division
query I rowsort label-5297
SELECT - col2 * col1 DIV + col1 AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5297
SELECT - col2 * col1 / + col1 AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + - col1 + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - + 76 + + cor0.col1 - col0 * - 2 AS col1 FROM tab1 AS cor0
----
-44
62
97

query I rowsort
SELECT ALL + 45 + - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-22
-35
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * tab1.col1 col2 FROM tab1
----
190
247
494

query I rowsort
SELECT + col0 + col2 * + col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col1 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT 24 * 35 FROM tab1 AS cor0
----
840
840
840

query I rowsort
SELECT + col0 + ( + col0 ) * col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + 88 + col2 + + col2 * - col2 * 64 FROM tab0 AS cor0
----
-430166
-69575
25

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749

query I rowsort
SELECT + ( col2 ) * col0 * ( col2 ) FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab0
----
-60

query I rowsort
SELECT - col1 * - tab2.col0 + + col1 * tab2.col0 AS col2 FROM tab2
----
2686
434
9204

query I rowsort
SELECT col2 * - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - col1 + 28 * - 42 FROM tab0 cor0
----
-1262
-1267
-1273

query I rowsort
SELECT - 98 FROM tab2, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL + col1 * 3 FROM tab1 cor0
----
30
39
78

query I rowsort
SELECT ALL col0 + - ( + col1 * col2 ) AS col0 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL ( - col0 ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 49 FROM tab2, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT col0 + + 40 AS col2 FROM tab0 AS cor0
----
129
64
75

query I rowsort
SELECT col2 * col2 + tab2.col2 * col2 FROM tab2
----
1352
1458
2888

query I rowsort
SELECT - 18 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5322
SELECT + CAST( NULL AS SIGNED ) * + 72 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT + CAST ( NULL AS INTEGER ) * + 72 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + 51 + - cor0.col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2657
3594
4912

query I rowsort
SELECT ALL - col2 + - 26 AS col2 FROM tab1 AS cor0
----
-122
-80
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5325
SELECT DISTINCT - + CAST( 95 AS SIGNED ) * + col1 + + ( + 59 * col2 ) AS col1 FROM tab0 AS cor0
----
-3807
-6223
-9156

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT - + CAST ( 95 AS INTEGER ) * + col1 + + ( + 59 * col2 ) AS col1 FROM tab0 AS cor0
----
-3807
-6223
-9156

query I rowsort
SELECT ALL 59 FROM tab2, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL cor0.col1 - 6 * + 76 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 198fba9ec501889250ef3e50e0d84a19

query I rowsort
SELECT + 14 * - col0 * col2 FROM tab1
----
-107520
-2268
-51072

query I rowsort
SELECT + - col2 + - col1 + col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - + 97 FROM tab0, tab2 cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT 44 + cor0.col0 FROM tab2 AS cor0
----
122
123
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5333
SELECT col1 DIV - col2 + - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-5333
SELECT col1 / - col2 + - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + 60 + - col1 AS col2 FROM tab2 AS cor0
----
1
29
43

query I rowsort
SELECT - - col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col0 * + col2 * col2 - col0 * + col1 * + col0 AS col0 FROM tab1 AS cor0
----
166976
654080
8514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 75 col0 FROM tab2 AS cor0
----
-1275
-2325
-4425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5338
SELECT + - col0 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT + - col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 79 * + col1 AS col1 FROM tab2
----
1343
2449
4661

query I rowsort
SELECT tab1.col1 * 27 FROM tab1, tab0 AS cor0
----
9 values hashing to 098e9cb5f58dfd24b8b1b40ed212b109

query I rowsort
SELECT ALL + col2 + - ( ( + col1 ) + + 46 ) FROM tab2 AS cor0
----
-25
-50
-79

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT - col2 + - 34 AS col2 FROM tab2 AS cor0
----
-60
-61
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5344
SELECT ALL ( - col2 ) * - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL ( - col2 ) * - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - col1 * + col1 * 3 FROM tab1 AS cor0
----
2028
300
507

query I rowsort
SELECT - - ( col0 ) * - ( - col0 ) FROM tab2 cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - + 91 + col1 * col0 AS col0 FROM tab0 AS cor0
----
1973
3304
8008

query I rowsort
SELECT ALL + col2 * + tab1.col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT 35 * tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
1890
1995
3360

query I rowsort
SELECT ALL 26 + col1 * col2 AS col0 FROM tab1 cor0
----
1274
1430
596

query I rowsort
SELECT DISTINCT 37 * - col1 AS col0 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT - 12 + 18 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5354
SELECT ALL + CAST( col1 AS SIGNED ) + col2 * - ( 74 ) FROM tab0 AS cor0
----
-2356
-5977
23

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + CAST ( col1 AS INTEGER ) + col2 * - ( 74 ) FROM tab0 AS cor0
----
-2356
-5977
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * cor0.col0 col1 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5356
SELECT - col1 * CAST( ( + col2 ) AS SIGNED ) AS col2 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5356
SELECT - col1 * CAST ( ( + col2 ) AS INTEGER ) AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT tab0.col2 * col2 * + ( col2 ) FROM tab0
----
1
35937
551368

query I rowsort
SELECT ALL 39 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT - cor0.col0 * - cor0.col0 + col1 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT col2 + ( + tab1.col1 ) + + col2 AS col0 FROM tab1
----
124
134
205

query I rowsort
SELECT ALL - tab1.col2 - 81 * 97 FROM tab1
----
-7911
-7914
-7953

query I rowsort
SELECT DISTINCT - 68 * 49 FROM tab2, tab2 AS cor0
----
-3332

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5363
SELECT ALL CAST( NULL AS SIGNED ) + col2 + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL CAST ( NULL AS INTEGER ) + col2 + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT ( ( - col1 ) ) + - ( 2 ) + + col0 AS col1 FROM tab1
----
-25
52
65

query I rowsort
SELECT - - 60 * 50 AS col1 FROM tab0 AS cor0
----
3000
3000
3000

query I rowsort
SELECT ALL - 12 * - col1 FROM tab0 cor0
----
1032
1092
1164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5368
SELECT - CAST( NULL AS DECIMAL ) * - cor0.col0 + col0 / - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT - CAST ( NULL AS REAL ) * - cor0.col0 + col0 / - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 13 + + 64 AS col0 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT 65 * col2 + - col2 FROM tab0 AS cor0
----
2112
5248
64

query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT ( 83 ) FROM tab1 AS cor0
----
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5373
SELECT DISTINCT CAST( + col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col0 * 50 AS col0 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT cor0.col0 + + 42 AS col2 FROM tab2 AS cor0
----
120
121
49

query I rowsort
SELECT ALL - + 7 * + 50 * col1 + - 50 * + col2 FROM tab0 AS cor0
----
-31750
-34000
-35950

query I rowsort
SELECT ( - col2 ) * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT ( - col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col2 * cor0.col2 * - col1 AS col1 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL 80 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
144
160
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT ALL + col2 DIV col0 + + tab0.col2 AS col1 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + col2 / col0 + + tab0.col2 AS col1 FROM tab0
----
1
34
82

query I rowsort
SELECT ALL + 17 + - col1 FROM tab2
----
-14
-42
0

query I rowsort
SELECT + col0 + col0 * - col2 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - tab1.col0 * - col2 * col2 + 66 AS col2 FROM tab1
----
208002
737346
8814

query I rowsort
SELECT ALL 82 + - col2 * - col2 * - col1 AS col1 FROM tab2
----
-22517
-24466
-39802

query I rowsort
SELECT 71 FROM tab2, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - col1 * - 27 FROM tab0 AS cor0
----
2322
2457
2619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col0 FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT - cor0.col0 * col2 + 97 * - col1 FROM tab1 AS cor0
----
-2684
-4618
-8941

query I rowsort
SELECT DISTINCT 37 + col2 FROM tab0 AS cor0
----
119
38
70

query I rowsort
SELECT + col0 * col0 + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - col0 + + col0 * + 11 FROM tab1 AS cor0
----
30
640
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT DISTINCT + + 52 DIV col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT + + 52 / col1 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT + 94 + - col0 AS col0 FROM tab2 cor0
----
15
16
87

query I rowsort
SELECT - - 49 * + col2 AS col1 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT DISTINCT + ( + tab1.col1 ) + col2 FROM tab1
----
109
67
80

query I rowsort
SELECT - - col1 * col1 + ( - 43 ) AS col1 FROM tab0 AS cor0
----
7353
8238
9366

query I rowsort
SELECT + - cor0.col2 * 82 FROM tab1 AS cor0
----
-4428
-4674
-7872

onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT ALL - col0 DIV + 69 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - col0 / + 69 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT ALL - + col2 + - 23 FROM tab2 AS cor0
----
-49
-50
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col1 + col1 * + cor0.col0 + + col1 col2 FROM tab0 AS cor0
----
-5246
-5917
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5402
SELECT DISTINCT + + cor0.col2 * col0 DIV 1 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + + cor0.col2 * col0 / 1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + col0 * ( col1 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 * ( - ( + col2 ) ) + 60 AS col1 FROM tab2 AS cor0
----
-1384
-616
-669

onlyif mysql # use DIV operator for integer division
query I rowsort label-5405
SELECT 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-5405
SELECT col0 / col0 col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5406
SELECT ALL - col2 * - CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - col2 * - CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT col2 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 49 - - col1 FROM tab0 AS cor0
----
37
42
48

query I rowsort
SELECT + col1 * 68 - col2 AS col0 FROM tab2 AS cor0
----
1118
2081
3986

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + col2 + 65 * col1 + + ( col1 + col1 ) FROM tab2 AS cor0
----
1177
2104
3979

query I rowsort
SELECT DISTINCT + - col0 - cor0.col2 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL cor0.col1 * - 26 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e91e7cc659dc8af061ec8eafb33dfa4c

query I rowsort
SELECT + cor0.col1 - 90 AS col2 FROM tab2 cor0
----
-31
-59
-73

query I rowsort
SELECT ALL + 18 * + col2 + + cor0.col1 AS col0 FROM tab1 cor0
----
1036
1741
998

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 - CAST ( - 14 AS REAL ) * - tab2.col2 * 1 FROM tab2
----
-305
-347
-515

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 cor1, tab1 AS cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

query I rowsort
SELECT DISTINCT ( + 54 ) AS col0 FROM tab2, tab1 AS cor0
----
54

query I rowsort
SELECT + col0 + col1 * - col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + col0 + + col2 * col1 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE ( NULL ) > col2
----

query I rowsort
SELECT + col0 + col1 * + col2 * tab0.col0 AS col0 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT + col0 + col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 / - cor0.col2 + cor0.col1 )
----

query I rowsort
SELECT + col2 + col2 * + col2 FROM tab1
----
2970
3306
9312

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * + col0 + col0 * + col2 + + col2 * col1 ) BETWEEN col2 / col1 - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 * + col0 - + col2 )
----

query I rowsort
SELECT col0 + col1 + tab0.col1 AS col0 FROM tab0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT col1 + col1 + tab0.col2 DIV tab0.col0 FROM tab0
----
173
182
194

skipif mysql # not compatible
query I rowsort label-5429
SELECT col1 + col1 + tab0.col2 / tab0.col0 FROM tab0
----
173
182
194

query I rowsort
SELECT ALL col1 * + col0 * - col0 + tab2.col0 FROM tab2
----
-106018
-1512
-358878

onlyif mysql # use DIV operator for integer division
query I rowsort label-5431
SELECT - tab0.col2 DIV - col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5431
SELECT - tab0.col2 / - col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL col0 + + col0 * col1 FROM tab1 WHERE NOT NULL > col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + tab0.col0 )
----

query I rowsort
SELECT DISTINCT - tab2.col0 + + tab2.col2 * col2 * col0 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - tab1.col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 - + tab1.col1 * tab1.col2 col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT - col1 + col0 * col2 AS col0 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL - col1 * col2 + + col0 * - col1 FROM tab0
----
-15561
-3492
-4902

query I rowsort
SELECT - tab1.col0 + - col2 FROM tab1
----
-121
-176
-57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT tab0.col2 * tab0.col2 FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5442
SELECT ALL col1 DIV col1 + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL col1 / col1 + col2 FROM tab0
----
2
34
83

query I rowsort
SELECT ALL - col0 * - col1 AS col2 FROM tab2 WHERE NOT ( col0 ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * col0 col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT col1 * + col1 + cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT ALL + col2 * + col1 - + col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - col2 * col1 + + col2 * col0 AS col0 FROM tab0 cor0
----
-164
-2046
-62

query I rowsort
SELECT + cor0.col0 + - col1 * col1 * col1 FROM tab0 AS cor0
----
-636032
-753482
-912638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + col2 col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - col2 + col2 * col2 FROM tab0 cor0
----
0
1056
6642

query I rowsort
SELECT - tab0.col2 * + col0 FROM tab0 WHERE NOT ( col1 + col0 ) IN ( + col1 + col0 )
----

query I rowsort
SELECT ALL - tab0.col1 * tab0.col1 AS col2 FROM tab0
----
-7396
-8281
-9409

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 * - col2 AND ( - col0 )
----

query I rowsort
SELECT + tab1.col1 * tab1.col2 + + tab1.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 796071b3675899bc26a382963b16f173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col0 * col1 col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT col2 * 48 + col1 AS col1 FROM tab2 cor0
----
1307
1327
1841

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - + col1 * + 29 FROM tab2 AS cor0
----
-1711
-493
-899

onlyif mysql # use DIV operator for integer division
query I rowsort label-5459
SELECT col2 + - ( - cor0.col1 ) DIV + cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5459
SELECT col2 + - ( - cor0.col1 ) / + cor0.col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT + cor0.col0 DIV + 86 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5460
SELECT + cor0.col0 / + 86 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + col2 + - 65 FROM tab0 AS cor0
----
-32
-64
17

query I rowsort
SELECT DISTINCT + - col2 + + col2 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * - 57 FROM tab0 AS cor0
----
1368
1995
5073

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5464
SELECT - col2 * CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT - col2 * CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * + col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT + + col1 * ( col0 ) + - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT col2 * + col0 + ( col1 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-5470
SELECT col2 * + col0 + ( col1 ) / + col1 AS col1 FROM tab0 AS cor0
----
36
7299
793

query I rowsort
SELECT tab2.col1 + - ( col2 ) + - tab2.col2 AS col2 FROM tab2
----
-23
-59
7

query I rowsort
SELECT + col1 + - ( + col2 ) * col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col1 + col0 * - col0 + col1 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT DISTINCT + col2 DIV + col2 + col2 + + col1 FROM tab1
----
110
68
81

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT + col2 / + col2 + col2 + + col1 FROM tab1
----
110
68
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT - col1 DIV + col2 + col1 AS col2 FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-5475
SELECT - col1 / + col2 + col1 AS col2 FROM tab0
----
0
84
90

query I rowsort
SELECT DISTINCT + col1 / col2 AS col1 FROM tab1 WHERE col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + tab1.col1 * + col2 - + col2 FROM tab1
----
36423
4158
99744

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <> - col1
----

query I rowsort
SELECT DISTINCT 69 * + col1 FROM tab2 cor0
----
1173
2139
4071

onlyif mysql # use DIV operator for integer division
query I rowsort label-5480
SELECT DISTINCT - tab0.col1 DIV - col1 + col1 AS col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT - tab0.col1 / - col1 + col1 AS col2 FROM tab0
----
87
92
98

query I rowsort
SELECT - tab1.col2 - - tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - col2 + col0 AS col1 FROM tab2
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 + + col0 * - col1 col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - col1 * + tab1.col1 + col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + col0 + - col1 * + 1 - 97 AS col2 FROM tab1
----
-120
-30
-43

query I rowsort
SELECT ( 49 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5487
SELECT ALL + 67 + - tab2.col1 - CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + 67 + - tab2.col1 - CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + tab0.col2 + - tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 92ef426526338653e88acd4aba639c47

query I rowsort
SELECT DISTINCT col0 - + tab0.col2 AS col2 FROM tab0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5490
SELECT + col0 * col1 - CAST( NULL AS SIGNED ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT + col0 * col1 - CAST ( NULL AS INTEGER ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - col1 ) + ( col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - 58 + col2 FROM tab1 cor0
----
-1
-4
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5493
SELECT + - col1 * - cor0.col2 + 16 DIV + col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-5493
SELECT + - col1 * - cor0.col2 + 16 / + col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5494
SELECT DISTINCT - 72 DIV 89 + cor0.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT - 72 / 89 + cor0.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
7
78
79

query I rowsort
SELECT + col0 * 28 * + col2 FROM tab1
----
102144
215040
4536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + col1 + col2 ) col2 FROM tab0
----
-10234
-15743
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + - col1 + - col2 + - col2 AS col1 FROM tab0 cor0
----
-152
-255
-99

query I rowsort
SELECT + + col0 + - ( - 58 ) AS col0 FROM tab2 AS cor0
----
136
137
65

query I rowsort
SELECT - + col0 * - col0 + + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
4736
7440
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col2 * col2 + col1 * + col2 col1 FROM tab2 AS cor0
----
23436
25194
41418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col1 col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col2 * col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 * cor0.col0 + - col1 col1 FROM tab1 AS cor0
----
-4163
-6509
-89

query I rowsort
SELECT ALL - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT - col1 DIV cor0.col1 + 3 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5507
SELECT - col1 / cor0.col1 + 3 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - - col0 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 42 + - 25 * - col1 AS col1 FROM tab0 AS cor0
----
2192
2317
2467

query I rowsort
SELECT DISTINCT + ( - col1 ) + col2 * col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL 52 * 39 + col1 * col2 FROM tab0 AS cor0
----
2125
4866
9490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5512
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + + col2 * + col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - - ( - cor0.col0 ) - - col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 * + col0 col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT - 95 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7301
8186
9314

onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT - 16 DIV - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5518
SELECT - 16 / - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT tab0.col0 * + 65 AS col0 FROM tab0
----
1560
2275
5785

onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT ALL + 21 DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL + 21 / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - - cor0.col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - tab2.col1 * col0 - ( + col2 ) * + col0 AS col0 FROM tab2
----
-406
-4345
-6630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5523
SELECT - col0 * CAST( NULL AS SIGNED ) + - col0 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT - col0 * CAST ( NULL AS INTEGER ) + - col0 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 - 97 AS col2 FROM tab1 AS cor0
----
3551
65
7583

query I rowsort
SELECT DISTINCT 70 - tab2.col0 * 69 * + col1 FROM tab2
----
-14903
-317468
-92597

query I rowsort
SELECT - col1 * - col0 + col2 + col1 FROM tab1
----
1149
158
707

query I rowsort
SELECT col1 * + col1 * - ( + col0 ) AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT col2 + + col1 * cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
2130
3397
8263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL tab0.col1 * - tab0.col2 + + col2 AS col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT col1 * col1 DIV col1 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5531
SELECT col1 * col1 / col1 AS col0 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5532
SELECT DISTINCT + col0 + col1 DIV col1 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT + col0 + col1 / col1 FROM tab2
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5533
SELECT DISTINCT col2 DIV col0 col2 FROM tab2 cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT col2 / col0 col2 FROM tab2 cor0
----
0
3

query I rowsort
SELECT + col2 + col0 - col2 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col0 * col1 * col0 AS col0 FROM tab2 cor0
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT + cor0.col1 * col2 + col1 + col2 AS col2 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT DISTINCT + col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT + ( col0 ) * + tab0.col1 - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT + col1 * ( + col0 ) AS col0 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5541
SELECT ALL + + CAST( NULL AS SIGNED ) - col0 * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL + + CAST ( NULL AS INTEGER ) - col0 * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - 66 * 85 FROM tab0 AS cor0
----
-5610
-5610
-5610

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + tab0.col0 AS REAL ) * col0 + col2 * - col2 AS col0 FROM tab0
----
-513
1197
1224

query I rowsort
SELECT + 2 + col2 FROM tab1
----
56
59
98

query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab0
----
65

query I rowsort
SELECT DISTINCT + + 54 * - col0 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT ALL cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - 82 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-2110
-271
-3084

query I rowsort
SELECT - ( + col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - + 25 * col0 FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT ALL - cor0.col1 * col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 79 + col2 * - col2 FROM tab2 AS cor0
----
-1365
-597
-650

query I rowsort
SELECT ALL - 84 + col2 FROM tab2 AS cor0
----
-46
-57
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5556
SELECT DISTINCT - cor0.col1 DIV - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - cor0.col1 / - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
0
8

query I rowsort
SELECT + cor0.col0 * col2 + + ( col1 ) AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT 39 * 37 FROM tab1
----
1443
1443
1443

query I rowsort
SELECT 28 * - tab0.col2 AS col1 FROM tab0
----
-2296
-28
-924

query I rowsort
SELECT - col1 * - col0 * + col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - 82 * col0 + - col1 FROM tab1 AS cor0
----
-272
-5258
-6573

query I rowsort
SELECT tab1.col1 * tab1.col2 AS col1 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5563
SELECT - CAST( - col2 AS SIGNED ) * tab1.col1 AS col1 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5563
SELECT - CAST ( - col2 AS INTEGER ) * tab1.col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col0 + + col0 * - ( 85 ) + col1 * - col0 FROM tab0 AS cor0
----
-15753
-4128
-6405

query I rowsort
SELECT DISTINCT - col1 + tab2.col1 + - col2 AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - + col0 * - col1 + 55 * cor0.col0 AS col1 FROM tab1 cor0
----
243
4160
5440

query I rowsort
SELECT ALL + ( cor1.col2 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + - ( - col1 ) + ( + cor0.col2 ) AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - - col1 + cor0.col0 * col0 AS col2 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT - 45 + col0 AS col1 FROM tab0 AS cor0
----
-10
-21
44

query I rowsort
SELECT DISTINCT - col2 - + 86 FROM tab0 cor0
----
-119
-168
-87

query I rowsort
SELECT ALL col2 + 99 * - col0 AS col2 FROM tab0 AS cor0
----
-2343
-3464
-8729

query I rowsort
SELECT - col2 - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + - cor0.col0 * - ( col0 ) * - col0 FROM tab1 cor0
----
-262144
-27
-512000

query I rowsort
SELECT col2 * + col1 * - 57 FROM tab0 AS cor0
----
-161766
-425334
-5529

query I rowsort
SELECT DISTINCT - col1 + + 11 AS col2 FROM tab0 AS cor0
----
-75
-80
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT ALL col0 * col1 DIV + cor0.col0 - col1 * + cor0.col0 FROM tab1 AS cor0
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL col0 * col1 / + cor0.col0 - col1 * + cor0.col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + - col2 * ( + col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - col2 * - col2 + - col1 * + col2 + + cor0.col0 FROM tab1 AS cor0
----
1515
2743
8048

query I rowsort
SELECT 5 * + 53 - col1 AS col2 FROM tab1 AS cor0
----
239
252
255

query I rowsort
SELECT - 48 * + col2 + col0 FROM tab0 AS cor0
----
-13
-1560
-3847

query I rowsort
SELECT + cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + col0 + 73 FROM tab1 AS cor0
----
137
153
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5584
SELECT - ( col0 ) DIV col0 - + col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-5584
SELECT - ( col0 ) / col0 - + col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT DISTINCT + 31 * cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
105245
251069
63984

query I rowsort
SELECT - - col0 * 25 + + col2 * ( cor0.col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
2704
3498
911

query I rowsort
SELECT DISTINCT + 53 * col1 * - col1 FROM tab2 AS cor0
----
-15317
-184493
-50933

query I rowsort
SELECT ALL 63 FROM tab0, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5589
SELECT + - CAST( cor0.col0 AS SIGNED ) + + col0 - - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5589
SELECT + - CAST ( cor0.col0 AS INTEGER ) + + col0 - - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - + ( ( col0 ) ) * - col1 - col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5591
SELECT cor0.col1 + + col1 + col0 DIV + cor0.col1 FROM tab2 AS cor0
----
119
38
62

skipif mysql # not compatible
query I rowsort label-5591
SELECT cor0.col1 + + col1 + col0 / + cor0.col1 FROM tab2 AS cor0
----
119
38
62

query I rowsort
SELECT DISTINCT col0 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL 31 AS col0 FROM tab2 cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col2 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - - 3 AS col2 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - col2 * + cor0.col2 - + ( + col1 ) * col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT ALL - col0 - tab2.col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - col1 * 24 AS col2 FROM tab0 AS cor0
----
-2064
-2184
-2328

onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT + + col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5601
SELECT + + col2 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT 53 * + col1 - - col0 AS col2 FROM tab0
----
4582
4912
5176

query I rowsort
SELECT 71 * - col1 + col2 FROM tab0
----
-6073
-6379
-6886

query I rowsort
SELECT DISTINCT col1 * - col1 - - col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col1 * col1 * col1 AS col0 FROM tab1 cor0
----
17522
2101
943

query I rowsort
SELECT ALL 9 + cor0.col1 * + 40 AS col0 FROM tab1 AS cor0
----
1049
409
529

query I rowsort
SELECT - - ( - col1 ) * + ( col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 27 * col1 FROM tab1 cor0
----
270
351
702

query I rowsort
SELECT ALL - + 35 + - col2 * 11 FROM tab2 AS cor0
----
-321
-332
-453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) + + col1 - + col0 col2 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT + col0 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 * cor0.col2 col2 FROM tab1 AS cor0
----
-4158
-4389
-7392

query I rowsort
SELECT ALL 61 + + col0 FROM tab1
----
125
141
64

query I rowsort
SELECT DISTINCT - col2 + ( 76 ) FROM tab1 cor0
----
-20
19
22

query I rowsort
SELECT col1 * col2 * - cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT col0 + ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 + 58 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT DISTINCT + - col1 * + cor0.col1 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT ALL - 77 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT ALL col1 + ( 53 ) * col2 AS col2 FROM tab2
----
1437
1462
2031

onlyif mysql # use DIV operator for integer division
query I rowsort label-5623
SELECT ALL col2 DIV + 83 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL col2 / + 83 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + 82 AS col2 FROM tab1 AS cor0
----
146
162
85

query I rowsort
SELECT - col1 + 17 FROM tab1 AS cor0
----
-9
4
7

query I rowsort
SELECT ALL + - col0 + + cor0.col1 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5627
SELECT ALL col1 * CAST( NULL AS SIGNED ) + col1 * - 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-5627
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + col1 * - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 * - col2 - col2 AS col1 FROM tab1 AS cor0
----
-119904
-32547
-75870

onlyif mysql # use DIV operator for integer division
query I rowsort label-5629
SELECT DISTINCT + cor0.col2 DIV 20 + + col0 * col0 - - ( - col0 ) * col2 FROM tab0 AS cor0
----
-215
1190
627

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT + cor0.col2 / 20 + + col0 * col0 - - ( - col0 ) * col2 FROM tab0 AS cor0
----
-215
1190
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) * - col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col0 * + col1 * + cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - + 5 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + + 83 * col2 AS col1 FROM tab0 AS cor0
----
2739
6806
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5634
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5634
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + ( + 67 ) AS col2 FROM tab1 AS cor0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * - cor0.col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + - col0 col1 FROM tab2 cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-5638
SELECT DISTINCT - + col0 + + col0 DIV col1 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT - + col0 + + col0 / col1 FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT - - 93 AS col1 FROM tab1 cor0
----
93
93
93

query I rowsort
SELECT ALL col2 * col0 - - col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + 91 * + col1 AS col0 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT ALL 28 * col1 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
-207088
-231868
-263452

query I rowsort
SELECT ALL - - 94 * - col0 + col2 AS col0 FROM tab0 cor0
----
-2223
-3289
-8284

query I rowsort
SELECT - - col1 + cor0.col0 * ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT col0 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL col1 * + 32 FROM tab0
----
2752
2912
3104

query I rowsort
SELECT ALL - 23 * col0 * - col0 AS col1 FROM tab2
----
1127
139932
143543

query I rowsort
SELECT ALL + 33 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to c77cb612b8be68f43e6d45e29e30737a

query I rowsort
SELECT ALL cor0.col0 * col0 AS col1 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT DISTINCT + - col1 * col1 DIV 64 AS col1 FROM tab1 AS cor0
----
-1
-10
-2

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT + - col1 * col1 / 64 AS col1 FROM tab1 AS cor0
----
-1
-10
-2

query I rowsort
SELECT DISTINCT + 97 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
97

query I rowsort
SELECT - 79 + col0 AS col1 FROM tab2
----
-1
-72
0

query I rowsort
SELECT - cor0.col0 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT DISTINCT ( - col1 ) * + col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - 76 + col1 AS col0 FROM tab0
----
10
15
21

query I rowsort
SELECT - col0 + + col1 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1405
-193
-4621

query I rowsort
SELECT ALL + - col2 - - 76 FROM tab0 AS cor0
----
-6
43
75

query I rowsort
SELECT DISTINCT - - col1 * col0 + - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT col1 + + ( tab1.col1 ) FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT 13 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
13

query I rowsort
SELECT ALL - col0 + - tab1.col2 * col1 * - tab1.col1 FROM tab1
----
16144
36501
5636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * col1 col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT - col1 * - col2 + - col0 * col0 FROM tab2
----
-4550
-5595
788

query I rowsort
SELECT ALL + col0 + - 29 FROM tab1
----
-26
35
51

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 FROM tab2, tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + ( col2 * col1 ) + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ( + cor0.col2 ) + - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - col1 * - col0 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - col1 ) * - col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT 24 + + col0 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT DISTINCT + col2 + 12 FROM tab2 AS cor0
----
38
39
50

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) + + cor0.col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + - ( + ( col1 ) ) * + col2 + 79 FROM tab2 AS cor0
----
-1455
-567
-758

skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( + ( - col0 ) AS REAL ) + - col1 - 99 FROM tab0 AS cor0
----
-1421
-761
-8111

query I rowsort
SELECT + col0 * + col1 + 1 - - col1 FROM tab0 AS cor0
----
2151
3493
8191

query I rowsort
SELECT DISTINCT + col2 * + col2 * 67 FROM tab2 AS cor0
----
45292
48843
96748

query I rowsort
SELECT DISTINCT + + col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col0 + - ( col2 ) * + col1 + col1 AS col2 FROM tab0 AS cor0
----
-2728
-7282
35

query I rowsort
SELECT - col2 * - ( - cor0.col0 ) + - col0 - + ( + cor0.col1 ) * + col1 FROM tab1 AS cor0
----
-3812
-7929
-841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
57

query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - - 17 * + col0 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT DISTINCT - col1 * ( + tab2.col2 ) * - col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT tab0.col0 * col2 DIV + col1 FROM tab0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-5684
SELECT tab0.col0 * col2 / + col1 FROM tab0
----
0
80
9

query I rowsort
SELECT - col1 * - 26 FROM tab2
----
1534
442
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab1, tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT ( ( + col2 ) * - col1 ) FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col0 FROM tab1
----
59

query I rowsort
SELECT + 80 * col1 AS col1 FROM tab0
----
6880
7280
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT col1 + + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-5690
SELECT col1 + + col0 / + col2 AS col1 FROM tab1 AS cor0
----
11
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5691
SELECT 42 DIV - col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5691
SELECT 42 / - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col0 * + cor0.col0 AS col0 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT + 78 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
26

skipif mysql # not compatible
query I rowsort label-5693
SELECT + 78 / col0 AS col1 FROM tab1 AS cor0
----
0
1
26

query I rowsort
SELECT ALL + 60 AS col1 FROM tab1
----
60
60
60

query I rowsort
SELECT ALL - tab1.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab2
----
58

query I rowsort
SELECT - tab2.col0 FROM tab2, tab1, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT ALL 40 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT 85 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT - col2 + + cor0.col2 * col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT - + col2 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT + col2 * 74 * - ( + cor0.col1 ) FROM tab0 AS cor0
----
-210012
-552188
-7178

query I rowsort
SELECT + col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - - col1 + - 56 * cor0.col2 FROM tab0 AS cor0
----
-1762
-4501
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5705
SELECT DISTINCT - col0 * ( cor0.col2 ) / - col1 + + ( + col2 * + cor0.col0 + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT - col0 * ( cor0.col2 ) / - col1 + + ( + col2 * + cor0.col0 + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL - cor0.col1 * - 48 FROM tab2 AS cor0
----
1488
2832
816

query I rowsort
SELECT ALL + cor0.col0 * + ( + ( cor0.col1 ) ) + - 88 + col0 FROM tab1 cor0
----
-7
1032
616

query I rowsort
SELECT + col2 * - 87 + - 48 FROM tab2 AS cor0
----
-2310
-2397
-3354

query I rowsort
SELECT - col1 * cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col0 * col0 + col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT ALL + cor0.col1 + 5 AS col2 FROM tab0 AS cor0
----
102
91
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + 37 col0 FROM tab2 AS cor0
----
1147
2183
629

query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
6032
6200
69

query I rowsort
SELECT 18 AS col2 FROM tab0 cor0
----
18
18
18

query I rowsort
SELECT col0 - - col1 * col1 AS col2 FROM tab2
----
3559
368
968

query I rowsort
SELECT DISTINCT + - 7 + 99 AS col1 FROM tab1 AS cor0
----
92

query I rowsort
SELECT cor0.col2 * - 96 + col1 AS col2 FROM tab0 AS cor0
----
-3082
-7781
1

query I rowsort
SELECT + + ( - 86 ) AS col2 FROM tab1 AS cor0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 40 col2 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT + + 72 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
190
4598
5747

query I rowsort
SELECT ( + 76 ) * col0 + + col0 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT + col0 + - 44 FROM tab1 AS cor0
----
-41
20
36

query I rowsort
SELECT DISTINCT - 28 + col2 * - col1 FROM tab0 AS cor0
----
-125
-2866
-7490

query I rowsort
SELECT ALL - - col1 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT ALL - cor0.col0 * + cor0.col0 + ( 3 ) DIV col1 + - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - cor0.col0 * + cor0.col0 + ( 3 ) / col1 + - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT - ( col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - ( + col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ( + 30 ) * col1 AS col1 FROM tab2 cor0
----
1770
510
930

query I rowsort
SELECT DISTINCT col0 * - col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - 39 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5732
SELECT + - CAST( + 79 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-6794
-7189
-7663

skipif mysql # not compatible
query I rowsort label-5732
SELECT + - CAST ( + 79 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-6794
-7189
-7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 18 + - col0 col1 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT 84 AS col2 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT 27 AS col2 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT ALL col2 * 14 FROM tab0
----
1148
14
462

query I rowsort
SELECT ALL tab1.col2 * ( - col0 ) AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + ( col2 ) + col2 * ( + 15 ) AS col1 FROM tab0 cor0
----
1312
16
528

onlyif mysql # use DIV operator for integer division
query I rowsort label-5739
SELECT ALL col1 DIV - col0 AS col1 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL col1 / - col0 AS col1 FROM tab2
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5740
SELECT DISTINCT col0 DIV col1 AS col0 FROM tab1 cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT col0 / col1 AS col0 FROM tab1 cor0
----
0
6

query I rowsort
SELECT ALL ( - ( - cor0.col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col0 + + 93 * col2 * + col2 AS col1 FROM tab0 cor0
----
101301
128
625421

query I rowsort
SELECT ALL - + col0 * + 59 AS col2 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT ( 69 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT + - col0 * + col1 + - 12 AS col0 FROM tab0 AS cor0
----
-2076
-3407
-8111

query I rowsort
SELECT + 50 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5747
SELECT col0 * col1 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT col0 * col1 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col1 + col1 * cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT DISTINCT + + col2 * 15 FROM tab0 AS cor0
----
1230
15
495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 83 * tab1.col0 ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8df6b8f240eba26306fbb0e4a66da901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( + cor0.col0 ) col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d

query I rowsort
SELECT DISTINCT col1 + + 94 FROM tab2 AS cor0
----
111
125
153

query I rowsort
SELECT - col0 * + 97 FROM tab2
----
-679
-7566
-7663

query I rowsort
SELECT - col1 * col2 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT ALL col1 DIV - col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL col1 / - col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT DISTINCT - col1 + - ( col2 ) FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5760
SELECT - cor0.col2 DIV + col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5760
SELECT - cor0.col2 / + col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT DISTINCT - + cor0.col2 * 24 DIV - col2 - 14 AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT - + cor0.col2 * 24 / - col2 - 14 AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8

query I rowsort
SELECT ( col1 ) + col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL + col2 * col1 + + col1 + + col0 FROM tab1 AS cor0
----
1341
1433
644

query I rowsort
SELECT col1 - col1 * + 68 * - col1 FROM tab0 cor0
----
503014
563199
639909

query I rowsort
SELECT ALL col0 * + col0 + + col1 * col1 FROM tab1 AS cor0
----
4196
6569
685

query I rowsort
SELECT DISTINCT 84 * tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
2184
2268
3192

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
13122 values hashing to b09c169b4ba9a51fbc093874d43a1e4a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + 75 col1 FROM tab1 AS cor0
----
2991
3324
9291

query I rowsort
SELECT col1 * - col1 + cor0.col0 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT + - col1 * + col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - 19 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT + - col2 + - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT - col1 + 58 + + 60 * col0 DIV ( col1 ) FROM tab1 AS cor0
----
38
414
432

skipif mysql # not compatible
query I rowsort label-5774
SELECT - col1 + 58 + + 60 * col0 / ( col1 ) FROM tab1 AS cor0
----
38
414
432

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 cor0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

query I rowsort
SELECT - 37 * col1 * + col1 + + col1 + + tab2.col2 AS col1 FROM tab2
----
-10638
-128712
-35499

query I rowsort
SELECT DISTINCT + tab0.col2 FROM tab0, tab1, tab2 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 + col2 col0 FROM tab1
----
137
140
179

query I rowsort
SELECT DISTINCT + 0 + col0 * tab0.col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col0 + - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - + col2 * cor0.col2 - - 40 * 3 FROM tab1 AS cor0
----
-2796
-3129
-9096

query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 56 + - col1 FROM tab0 AS cor0
----
-30
-35
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 - + 16 col0 FROM tab2 AS cor0
----
-1359
-233
-4618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5785
SELECT DISTINCT col0 * col2 + CAST( - col0 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
15360
324
7296

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT col0 * col2 + CAST ( - col0 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT DISTINCT + 30 * - col0 AS col2 FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT 22 + col2 FROM tab2 AS cor0
----
48
49
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5788
SELECT ALL + 29 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL + 29 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
9

query I rowsort
SELECT - cor0.col1 - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + ( - col0 * - cor0.col1 ) col0 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT DISTINCT - col1 + + col0 * tab2.col0 FROM tab2
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-5792
SELECT ALL + ( - 52 ) DIV col0 + col2 col1 FROM tab1
----
37
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL + ( - 52 ) / col0 + col2 col1 FROM tab1
----
37
57
96

query I rowsort
SELECT + col0 * + col0 - + col2 * 85 FROM tab1 AS cor0
----
-1760
-4581
-749

query I rowsort
SELECT + 11 + - col2 FROM tab2 AS cor0
----
-15
-16
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5795
SELECT - 31 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT - 31 / col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ( col0 ) * col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT + tab1.col0 * cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ae10dfda2508149d338269366c35c584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5798
SELECT + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5798
SELECT + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL 2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT + cor0.col2 + col0 * + 17 AS col2 FROM tab0 cor0
----
1595
441
596

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT - col1 DIV ( + col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5801
SELECT - col1 / ( + col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5802
SELECT - - col1 + CAST( NULL AS SIGNED ) * - col2 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT - - col1 + CAST ( NULL AS INTEGER ) * - col2 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - col0 * 24 AS col2 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT ALL 75 * col1 * - 86 FROM tab0
----
-554700
-586950
-625650

query I rowsort
SELECT ALL ( - tab2.col0 ) * ( col0 + - col2 ) FROM tab2
----
-3239
-4056
140

query I rowsort
SELECT + col1 * - col1 * ( col1 ) FROM tab2
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-5807
SELECT ALL + 37 DIV - col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL + 37 / - col1 FROM tab2
----
-1
-2
0

query I rowsort
SELECT + - col1 * col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 73 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT ALL col2 * - ( col0 ) * col1 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * + 88 col1 FROM tab0 AS cor0
----
8096
8096
8096

onlyif mysql # use DIV operator for integer division
query I rowsort label-5812
SELECT + col2 DIV + ( - col1 ) FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5812
SELECT + col2 / + ( - col1 ) FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5813
SELECT col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + 65 * + col2 FROM tab0
----
437060
65
70785

query I rowsort
SELECT DISTINCT ( + 95 ) + + col2 FROM tab0 AS cor0
----
128
177
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * col2 col0 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT ALL - - ( 27 ) + col2 FROM tab1 AS cor0
----
123
81
84

query I rowsort
SELECT DISTINCT col1 + 53 FROM tab0 AS cor0
----
139
144
150

query I rowsort
SELECT - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - col1 + + 5 - - col0 * + col0 AS col1 FROM tab2 AS cor0
----
6148
6263
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5821
SELECT + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 30 * - col1 FROM tab2 AS cor0
----
-1770
-510
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + + col2 * col2 col1 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5824
SELECT - + col2 + - 32 DIV col1 FROM tab1 cor0
----
-55
-60
-98

skipif mysql # not compatible
query I rowsort label-5824
SELECT - + col2 + - 32 / col1 FROM tab1 cor0
----
-55
-60
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 75 col1 FROM tab0
----
110
164
99

query I rowsort
SELECT col0 - 38 FROM tab2
----
-31
40
41

query I rowsort
SELECT ALL - col1 + 24 AS col0 FROM tab2
----
-35
-7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5828
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - tab2.col2 col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col2 - 57 FROM tab1
----
-3
0
39

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1, tab2 cor1
----
3645 values hashing to e3f81e329d34d83e4528a9ef7b933946

query I rowsort
SELECT - col1 * col0 * col0 + col2 AS col2 FROM tab0
----
-118824
-49503
-720729

query I rowsort
SELECT + col1 - - 32 FROM tab2
----
49
63
91

query I rowsort
SELECT - ( 9 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT 35 AS col0 FROM tab1
----
35
35
35

query I rowsort
SELECT - + col2 * - col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT + col0 * ( col2 ) + col2 + + 60 DIV + ( col0 ) AS col2 FROM tab2 AS cor0
----
2054
224
3040

skipif mysql # not compatible
query I rowsort label-5837
SELECT + col0 * ( col2 ) + col2 + + 60 / + ( col0 ) AS col2 FROM tab2 AS cor0
----
2054
224
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 84 col0 FROM tab0 AS cor0
----
7224
7644
8148

onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT - col2 DIV 77 + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
5
6

skipif mysql # not compatible
query I rowsort label-5839
SELECT - col2 / 77 + col0 / + col1 AS col2 FROM tab1 AS cor0
----
0
5
6

query I rowsort
SELECT + ( - col2 + + col0 ) AS col0 FROM tab1
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5841
SELECT ALL - + cor0.col0 * CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - + cor0.col0 * CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 51 AS col0 FROM tab1 AS cor0
----
153
3264
4080

query I rowsort
SELECT ALL - col1 * + col2 + + 86 AS col0 FROM tab0 AS cor0
----
-11
-2752
-7376

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT ALL + 99 - - col0 DIV + col2 col2 FROM tab1 AS cor0
----
100
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL + 99 - - col0 / + col2 col2 FROM tab1 AS cor0
----
100
99
99

query I rowsort
SELECT ALL 74 * + cor0.col0 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT DISTINCT col2 + - col1 + + 56 * + col0 AS col0 FROM tab1 AS cor0
----
196
3631
4563

onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT DISTINCT + cor0.col2 + - col0 DIV + ( - col1 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT + cor0.col2 + - col0 / + ( - col1 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 * col1 + + col0 * 42 FROM tab1 AS cor0
----
204
3328
4400

query I rowsort
SELECT - - 7 AS col2 FROM tab0 cor0
----
7
7
7

query I rowsort
SELECT + col0 * cor0.col1 * 82 FROM tab0 AS cor0
----
169248
278390
664118

onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT ALL 53 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL 53 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 98 * + col2 * - ( col1 ) FROM tab1 AS cor0
----
122304
137592
55860

query I rowsort
SELECT DISTINCT cor0.col1 - - col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT cor0.col2 + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 + 32 + col2 AS col2 FROM tab2
----
117
87
90

query I rowsort
SELECT col2 - + tab1.col2 * - col0 FROM tab1
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5858
SELECT DISTINCT - col0 DIV + col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - col0 / + col0 FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL + 83 AS col0 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT - col2 - + col1 * - col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT + col0 * + 29 * + col2 FROM tab2 AS cor0
----
5481
58812
87058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + ( 82 ) col2 FROM tab1
----
1066
2132
820

query I rowsort
SELECT DISTINCT - col0 * - tab2.col0 AS col2 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT tab2.col0 + col1 DIV col0 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-5864
SELECT tab2.col0 + col1 / col0 FROM tab2
----
11
78
79

query I rowsort
SELECT ALL + + col1 * col2 + col2 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - cor0.col2 ) * col2 col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col1 * 81 * + 43 - + col2 FROM tab2
----
107946
205471
59173

onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT ALL - + 24 * cor0.col2 + col0 + 53 * col1 DIV + col1 FROM tab0 AS cor0
----
-1826
-715
64

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - + 24 * cor0.col2 + col0 + 53 * col1 / + col1 FROM tab0 AS cor0
----
-1826
-715
64

query I rowsort
SELECT cor0.col1 * cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

query I rowsort
SELECT DISTINCT 6 FROM tab1, tab0 cor0, tab0 cor1, tab2 AS cor2
----
6

query I rowsort
SELECT ALL col1 * + col2 * - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-22626
-24586
-39910

query I rowsort
SELECT - 90 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL - 76 * col1 * - col1 + + 66 * - 36 + + col2 FROM tab1 AS cor0
----
10564
49054
5281

onlyif mysql # use DIV operator for integer division
query I rowsort label-5875
SELECT ALL + cor0.col1 DIV cor0.col1 AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + cor0.col1 / cor0.col1 AS col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT - - 18 + + col0 FROM tab0 AS cor0
----
107
42
53

query I rowsort
SELECT + 9 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL col2 - + 36 AS col1 FROM tab0
----
-3
-35
46

query I rowsort
SELECT col2 - 10 * + col2 AS col0 FROM tab1
----
-486
-513
-864

query I rowsort
SELECT ALL - col2 * ( col0 ) + ( - 12 ) FROM tab0
----
-47
-7310
-804

query I rowsort
SELECT DISTINCT col1 + - col2 * col1 + - 77 FROM tab1
----
-1312
-1455
-637

query I rowsort
SELECT - 81 + ( + col1 ) * 64 * + col1 FROM tab1
----
10735
43183
6319

query I rowsort
SELECT + 24 + + col1 + - col1 * 17 FROM tab0 AS cor0
----
-1352
-1432
-1528

query I rowsort
SELECT DISTINCT - - col2 + cor0.col1 + + col0 AS col2 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5885
SELECT ALL + CAST( NULL AS SIGNED ) + 26 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + CAST ( NULL AS INTEGER ) + 26 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 37 + + col0 FROM tab2
----
115
116
44

query I rowsort
SELECT 63 + - tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ca0c5230e2be2956c652f0ed5128397d

query I rowsort
SELECT + + 48 + 59 AS col1 FROM tab1 AS cor0
----
107
107
107

query I rowsort
SELECT col1 * ( col2 ) + - tab2.col2 * - col1 AS col1 FROM tab2
----
1292
1674
3068

query I rowsort
SELECT ALL ( col0 ) + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL ( - col2 * col2 ) + + ( + col1 ) FROM tab2
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5892
SELECT + ( ( - col0 ) ) + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT + ( ( - col0 ) ) + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5893
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab1
----
54
57
96

query I rowsort
SELECT ( - col2 + 53 ) * col1 FROM tab2
----
1593
255
806

query I rowsort
SELECT DISTINCT 60 * + col1 FROM tab1
----
1560
600
780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5896
SELECT col0 + + col1 + CAST( + ( + cor0.col1 ) AS SIGNED ) * col1 AS col0 FROM tab0 cor0
----
7506
8461
9541

skipif mysql # not compatible
query I rowsort label-5896
SELECT col0 + + col1 + CAST ( + ( + cor0.col1 ) AS INTEGER ) * col1 AS col0 FROM tab0 cor0
----
7506
8461
9541

query I rowsort
SELECT 57 * col2 * col0 AS col2 FROM tab2
----
10773
115596
171114

query I rowsort
SELECT + 12 * col0 FROM tab2
----
84
936
948

query I rowsort
SELECT col1 * col1 + 12 AS col1 FROM tab0 cor0
----
7408
8293
9421

query I rowsort
SELECT + ( 0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5901
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 + + col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT 92 * - 33 + col0 AS col0 FROM tab0 AS cor0
----
-2947
-3001
-3012

query I rowsort
SELECT ALL - + col2 * 25 FROM tab2 cor0
----
-650
-675
-950

query I rowsort
SELECT - cor0.col0 - 31 AS col2 FROM tab1 AS cor0
----
-111
-34
-95

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( + ( + cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 * + col0 - + cor0.col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT - 86 + + ( col1 ) FROM tab0 AS cor0
----
0
11
5

query I rowsort
SELECT - 97 * 80 FROM tab2 cor0
----
-7760
-7760
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5911
SELECT + CAST( NULL AS SIGNED ) + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5911
SELECT + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * cor0.col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - + col1 * + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + 84 - - 73 AS col1 FROM tab1 AS cor0
----
157
157
157

query I rowsort
SELECT + 24 * col0 AS col0 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT + + ( 51 ) AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT ALL + col1 + - 80 FROM tab0
----
11
17
6

query I rowsort
SELECT + + 2 * ( + cor0.col2 ) FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - + ( + 29 ) * - col0 AS col1 FROM tab1 AS cor0
----
1856
2320
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5920
SELECT DISTINCT + col0 DIV + 13 FROM tab0 AS cor0
----
1
2
6

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + col0 / + 13 FROM tab0 AS cor0
----
1
2
6

query I rowsort
SELECT ALL + ( 30 ) * - col0 + col1 AS col2 FROM tab0 cor0
----
-2579
-634
-953

query I rowsort
SELECT ALL + + 41 + + col0 FROM tab2 AS cor0
----
119
120
48

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5924
SELECT + + CAST( NULL AS SIGNED ) * 55 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT + + CAST ( NULL AS INTEGER ) * 55 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) + ( - col2 ) FROM tab2
----
-20
41
52

query I rowsort
SELECT + 63 + col1 AS col0 FROM tab2 cor0
----
122
80
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT DISTINCT + 58 + - col0 * col1 DIV 87 FROM tab1
----
47
51
58

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT + 58 + - col0 * col1 / 87 FROM tab1
----
47
51
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5928
SELECT - 85 + col0 DIV + 91 col1 FROM tab2 cor0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5928
SELECT - 85 + col0 / + 91 col1 FROM tab2 cor0
----
-85
-85
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5929
SELECT col2 * col1 * + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5929
SELECT col2 * col1 * + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 88 * + col2 + col1 FROM tab2 AS cor0
----
-2229
-2345
-3327

onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT - + col1 + + 37 * 15 DIV col0 FROM tab1 AS cor0
----
-2
-7
159

skipif mysql # not compatible
query I rowsort label-5931
SELECT - + col1 + + 37 * 15 / col0 FROM tab1 AS cor0
----
-2
-7
159

query I rowsort
SELECT col2 + - col2 * col2 FROM tab2 cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - col2 + - 7 AS col0 FROM tab0 AS cor0
----
-40
-8
-89

query I rowsort
SELECT col1 * col0 + col1 * + col1 FROM tab1 AS cor0
----
1209
740
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5935
SELECT DISTINCT - - col1 + CAST( NULL AS DECIMAL ) / + col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT - - col1 + CAST ( NULL AS REAL ) / + col2 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - cor0.col1 + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - + col2 + - 65 FROM tab2 AS cor0
----
-103
-91
-92

query I rowsort
SELECT DISTINCT - + tab2.col0 AS col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
-7
-78
-79

query I rowsort
SELECT ALL + col1 * 46 - - col0 * col0 FROM tab2 AS cor0
----
1475
7023
8798

query I rowsort
SELECT DISTINCT - col0 * 98 - 36 FROM tab1 cor0
----
-330
-6308
-7876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + - col0 * 10 + + 16 FROM tab2 cor0
----
-54
-764
-774

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-5944
SELECT ALL col0 DIV col1 + - col0 * + col0 + - col1 FROM tab1
----
-35
-4100
-6407

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL col0 / col1 + - col0 * + col0 + - col1 FROM tab1
----
-35
-4100
-6407

query I rowsort
SELECT DISTINCT ( - 41 ) FROM tab1, tab1 AS cor0
----
-41

query I rowsort
SELECT DISTINCT col1 + ( - 84 ) FROM tab1
----
-58
-71
-74

query I rowsort
SELECT ALL - col2 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 - cor0.col2 AS col1 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT + - col0 DIV - col2 + col0 AS col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-5949
SELECT + - col0 / - col2 + col0 AS col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT ALL 96 FROM tab2 cor0
----
96
96
96

query I rowsort
SELECT ALL + ( col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - col1 + + col0 * ( + col0 ) AS col2 FROM tab0
----
1128
490
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT DISTINCT - + col2 + col0 DIV col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - + col2 + col0 / col0 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT col2 + + 48 FROM tab2 AS cor0
----
74
75
86

query I rowsort
SELECT ALL + + ( + cor0.col1 ) * - cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col1 * - 32 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT + 24 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5958
SELECT col2 * - CAST( + 44 AS SIGNED ) AS col2 FROM tab0
----
-1452
-3608
-44

skipif mysql # not compatible
query I rowsort label-5958
SELECT col2 * - CAST ( + 44 AS INTEGER ) AS col2 FROM tab0
----
-1452
-3608
-44

query I rowsort
SELECT ALL - col0 + - 23 FROM tab1
----
-103
-26
-87

query I rowsort
SELECT DISTINCT col1 + 62 AS col0 FROM tab1
----
72
75
88

query I rowsort
SELECT 45 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT tab1.col2 * - ( - col2 ) + + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT + + cor0.col1 + - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL ( col2 ) + cor0.col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - ( col1 ) - - col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5966
SELECT ALL col1 + col2 DIV - 77 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL col1 + col2 / - 77 FROM tab0 AS cor0
----
86
90
97

query I rowsort
SELECT col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - 17 + - col0 FROM tab0 AS cor0
----
-18
-7
-72

query I rowsort
SELECT + + col0 - col1 * 5 FROM tab0 AS cor0
----
-366
-406
-450

query I rowsort
SELECT - 62 - col1 * 90 FROM tab1 cor0
----
-1232
-2402
-962

query I rowsort
SELECT ALL - col2 + col0 * + ( - col1 * cor0.col0 ) FROM tab0 AS cor0
----
-118826
-49569
-720893

query I rowsort
SELECT col2 * + cor0.col1 - 48 * col0 AS col1 FROM tab0 AS cor0
----
-1583
1686
3190

query I rowsort
SELECT ALL + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT DISTINCT - cor0.col1 DIV col0 + + 3 FROM tab1 AS cor0
----
-5
3

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - cor0.col1 / col0 + + 3 FROM tab1 AS cor0
----
-5
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT ALL col0 DIV col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL col0 / col0 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL 22 * ( - col1 ) AS col1 FROM tab2
----
-1298
-374
-682

query I rowsort
SELECT DISTINCT ( 22 ) * - col1 AS col1 FROM tab2
----
-1298
-374
-682

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab0, tab2 cor0
----
-64

query I rowsort
SELECT ALL - col1 * + col2 - col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT 48 + - tab2.col2 AS col0 FROM tab2
----
10
21
22

query I rowsort
SELECT + tab0.col2 FROM tab0, tab2 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - - col0 + + col0 * 61 AS col1 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT + col0 * cor0.col0 + - 90 * - col1 FROM tab1 AS cor0
----
2349
4996
7570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT - + 73 DIV + col1 + - 89 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5984
SELECT - + 73 / + col1 + - 89 / col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + 15 FROM tab1 cor0
----
15
15
15

query I rowsort
SELECT ( - col0 ) + cor0.col2 * col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + ( 59 ) FROM tab1
----
59
59
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5988
SELECT DISTINCT col2 DIV col1 + - col1 FROM tab2
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT col2 / col1 + - col1 FROM tab2
----
-15
-31
-59

query I rowsort
SELECT 58 * - tab1.col1 + col1 * - col2 * - tab1.col0 AS col2 FROM tab1
----
2704
35900
99086

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5990
SELECT - CAST( NULL AS SIGNED ) + col1 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT - CAST ( NULL AS INTEGER ) + col1 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 + col0 + - col2 col0 FROM tab2
----
110
38
99

query I rowsort
SELECT ALL col0 + - 73 * - col2 AS col1 FROM tab0
----
108
2433
6075

query I rowsort
SELECT DISTINCT + 51 + + 17 AS col2 FROM tab2
----
68

query I rowsort
SELECT - col2 + - 47 + col1 * - col2 AS col1 FROM tab1
----
-1391
-1505
-674

query I rowsort
SELECT + cor0.col1 - col0 AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT + - 52 * + col0 + - col1 FROM tab1 AS cor0
----
-182
-3338
-4173

query I rowsort
SELECT ALL - 40 + + col2 AS col0 FROM tab2 AS cor0
----
-13
-14
-2

query I rowsort
SELECT DISTINCT - + col2 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT 93 * col0 + col2 FROM tab1 cor0
----
333
6009
7536

query I rowsort
SELECT ALL ( tab2.col2 * + tab2.col1 ) FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6001
SELECT ALL col2 + - col2 DIV + col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL col2 + - col2 / + col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT 36 FROM tab1, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - col2 * + 77 + + col0 col0 FROM tab1 AS cor0
----
-4152
-4261
-7232

onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT DISTINCT col1 * + col0 + - 33 DIV - 51 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT col1 * + col0 + - 33 / - 51 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - - 60 * - col1 + + col2 + 77 FROM tab0 AS cor0
----
-5050
-5301
-5742

query I rowsort
SELECT - 82 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1882
-2773
-7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 71 * col2 AS col1 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT ALL + 6 * col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + 6 * col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 23 AS col0 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT - - ( col0 ) + - 37 * col1 AS col0 FROM tab0 AS cor0
----
-3158
-3278
-3554

query I rowsort
SELECT 18 * + col1 AS col0 FROM tab2 cor0
----
1062
306
558

query I rowsort
SELECT ALL - col1 + col2 * 4 FROM tab1 AS cor0
----
190
218
371

query I rowsort
SELECT DISTINCT + - col2 + + ( col0 + col2 * - col1 ) FROM tab0 AS cor0
----
-2847
-63
-7455

query I rowsort
SELECT + - col1 + 67 AS col1 FROM tab2 cor0
----
36
50
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT ALL col0 * 38 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
176
50
8

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL col0 * 38 / cor0.col1 AS col2 FROM tab2 AS cor0
----
176
50
8

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6020
SELECT ALL + col1 * + CAST( col2 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL + col1 * + CAST ( col2 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - col1 * col1 - - 70 FROM tab2 AS cor0
----
-219
-3411
-891

query I rowsort
SELECT - cor0.col2 + - 10 AS col1 FROM tab2 AS cor0
----
-36
-37
-48

query I rowsort
SELECT + - col1 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + - col1 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6025
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + - col0 - - 22 AS col2 FROM tab2 AS cor0
----
-56
-57
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT ALL + col2 DIV ( col0 ) + col2 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + col2 / ( col0 ) + col2 FROM tab0 AS cor0
----
1
34
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6029
SELECT DISTINCT col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT col1 / col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * col0 - - col1 * col2 FROM tab1 AS cor0
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT DISTINCT - 58 DIV - col1 - - col0 FROM tab2 AS cor0
----
78
8
82

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT - 58 / - col1 - - col0 FROM tab2 AS cor0
----
78
8
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6032
SELECT DISTINCT col2 + - col1 DIV col0 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT col2 + - col1 / col0 FROM tab0 AS cor0
----
-1
30
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT ALL + col0 * col2 - col2 DIV 84 FROM tab1 AS cor0
----
162
3648
7679

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + col0 * col2 - col2 / 84 FROM tab1 AS cor0
----
162
3648
7679

query I rowsort
SELECT - 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT 60 FROM tab1, tab2 AS cor0
----
60

query I rowsort
SELECT 36 * col2 FROM tab2 AS cor0
----
1368
936
972

query I rowsort
SELECT + col1 - 36 AS col0 FROM tab1 AS cor0
----
-10
-23
-26

query I rowsort
SELECT + 14 - - 8 AS col1 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT + + col0 * cor0.col0 + col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT ALL 8 FROM tab0, tab1 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6041
SELECT CAST( cor0.col2 AS SIGNED ) * col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-6041
SELECT CAST ( cor0.col2 AS INTEGER ) * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT 27 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2403
-648
-945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6043
SELECT + ( + col0 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT + ( + col0 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6044
SELECT - CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT - CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to e3f81e329d34d83e4528a9ef7b933946

query I rowsort
SELECT - col2 * 6 * tab1.col1 FROM tab1
----
-3420
-7488
-8424

query I rowsort
SELECT DISTINCT + tab0.col1 * + col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col2 + - tab1.col2 FROM tab1
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - col1 * 0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6051
SELECT ALL + col0 DIV - 4 AS col0 FROM tab2 AS cor0
----
-1
-19
-19

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + col0 / - 4 AS col0 FROM tab2 AS cor0
----
-1
-19
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT ALL - - cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL - - cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6053
SELECT - + col2 * + col2 * CAST( col2 * col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-35
-49071752
-862488

skipif mysql # not compatible
query I rowsort label-6053
SELECT - + col2 * + col2 * CAST ( col2 * col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-35
-49071752
-862488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 21 * + col1 AS col1 FROM tab1
----
210
273
546

query I rowsort
SELECT 4 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db

query I rowsort
SELECT + col1 + - col2 * 97 FROM tab2 AS cor0
----
-2463
-2588
-3669

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
22

query I rowsort
SELECT - col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6061
SELECT col1 DIV 5 AS col2 FROM tab0
----
17
18
19

skipif mysql # not compatible
query I rowsort label-6061
SELECT col1 / 5 AS col2 FROM tab0
----
17
18
19

query I rowsort
SELECT ALL - tab1.col2 * col2 + + col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT ALL 7 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 78 col2 FROM tab0
----
-2574
-6396
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6065
SELECT - 75 + - col0 * col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-484
-567
-75

skipif mysql # not compatible
query I rowsort label-6065
SELECT - 75 + - col0 * col0 / + cor0.col1 FROM tab1 AS cor0
----
-484
-567
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 * col1 col1 FROM tab0 cor0
----
-2236
-2366
-2522

query I rowsort
SELECT ALL 58 - + 79 FROM tab0
----
-21
-21
-21

query I rowsort
SELECT - 80 * 76 FROM tab0 AS cor0
----
-6080
-6080
-6080

query I rowsort
SELECT + cor0.col1 * - 53 - col1 FROM tab0 AS cor0
----
-4644
-4914
-5238

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 37 * col2 * + ( - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 37 * col2 * + ( - col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 26 + 60 FROM tab0 cor0
----
86

query I rowsort
SELECT + - 16 + col1 FROM tab2 AS cor0
----
1
15
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT ALL + + ( col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL + + ( col1 ) / col2 AS col1 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT + col1 DIV + 4 col1 FROM tab0 cor0
----
21
22
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6074
SELECT + col1 / + 4 col1 FROM tab0 cor0
----
21
22
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6075
SELECT col0 * col0 DIV + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6075
SELECT col0 * col0 / + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col0 * - 15 + col2 - + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-1344
-413
-621

query I rowsort
SELECT tab0.col0 * - col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT ( + col2 ) + col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT + 23 * 57 + col0 AS col1 FROM tab2 AS cor0
----
1318
1389
1390

query I rowsort
SELECT ALL + 34 + + col1 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT DISTINCT - 35 - + 52 AS col2 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + 38 - + col0 AS col2 FROM tab0 AS cor0
----
-51
14
3

query I rowsort
SELECT - - 88 - + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1160
-1316
-482

query I rowsort
SELECT cor0.col2 + + 91 * col0 FROM tab2 AS cor0
----
664
7124
7227

query I rowsort
SELECT + + 59 * + 43 * cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
25427
33077
66016

query I rowsort
SELECT ALL + col0 * - cor0.col0 + - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT + ( - col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab2 cor0
----
83

query I rowsort
SELECT + 79 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
1422
2456
4739

query I rowsort
SELECT + 73 * - col0 AS col2 FROM tab2 AS cor0
----
-511
-5694
-5767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * 93 col1 FROM tab0 cor0
----
3102
7708
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * col2 col0 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT ALL - - 3 + col0 AS col2 FROM tab0 AS cor0
----
27
38
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6094
SELECT ALL + 71 + col1 + + ( ( + col0 ) + CAST( cor0.col1 AS SIGNED ) ) * - col0 AS col0 FROM tab1 AS cor0
----
-4655
-7356
10

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL + 71 + col1 + + ( ( + col0 ) + CAST ( cor0.col1 AS INTEGER ) ) * - col0 AS col0 FROM tab1 AS cor0
----
-4655
-7356
10

query I rowsort
SELECT DISTINCT + - 30 + col0 FROM tab2 AS cor0
----
-23
48
49

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 - 92 AS col2 FROM tab2 AS cor0
----
1352
584
637

query I rowsort
SELECT + col0 * col0 + 47 FROM tab0 AS cor0
----
1272
623
7968

query I rowsort
SELECT ALL + 15 * col2 - 38 * col2 FROM tab0 cor0
----
-1886
-23
-759

query I rowsort
SELECT - col0 * - cor0.col1 + ( - col2 * + col2 + ( - col1 ) ) FROM tab2 AS cor0
----
-118
-543
3867

query I rowsort
SELECT DISTINCT tab2.col1 * 92 - col1 AS col0 FROM tab2
----
1547
2821
5369

query I rowsort
SELECT ( 76 ) - col2 FROM tab1
----
-20
19
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6102
SELECT DISTINCT + - 27 + col0 DIV + 8 + col0 * + col2 FROM tab0 AS cor0
----
12
7282
768

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT + - 27 + col0 / + 8 + col0 * + col2 FROM tab0 AS cor0
----
12
7282
768

query I rowsort
SELECT ALL - col1 + + col2 * - 28 FROM tab2 AS cor0
----
-1081
-787
-787

query I rowsort
SELECT - col0 * ( col1 ) + col0 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - cor0.col0 * 3 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL - col1 * col2 + 99 AS col0 FROM tab2 AS cor0
----
-1435
-547
-738

query I rowsort
SELECT DISTINCT + - ( + col1 ) * - col0 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT - 99 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + cor2.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT - col2 * 62 + - col1 AS col1 FROM tab2
----
-1671
-1705
-2373

query I rowsort
SELECT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL 53 - col1 FROM tab2
----
-6
22
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT ALL col1 DIV + col2 - + col2 AS col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL col1 / + col2 - + col2 AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 20 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
20

query I rowsort
SELECT ALL + col1 - + col1 * + tab1.col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + col2 + - col2 - + col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + col0 + + tab1.col1 * 77 AS col1 FROM tab1
----
1081
2005
834

onlyif mysql # use DIV operator for integer division
query I rowsort label-6120
SELECT col1 + col2 * ( + col0 ) + + col0 DIV + col1 FROM tab2
----
2088
220
3023

skipif mysql # not compatible
query I rowsort label-6120
SELECT col1 + col2 * ( + col0 ) + + col0 / + col1 FROM tab2
----
2088
220
3023

query I rowsort
SELECT - 93 + - col1 FROM tab0
----
-179
-184
-190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT + 76 DIV + cor0.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6122
SELECT + 76 / + cor0.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6123
SELECT DISTINCT col2 * col2 DIV - 34 FROM tab1
----
-271
-85
-95

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT col2 * col2 / - 34 FROM tab1
----
-271
-85
-95

query I rowsort
SELECT ALL + 87 * - cor1.col1 + - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9250a0bd9df522e9f828791e53f6dd80

query I rowsort
SELECT col1 + + 95 * - 78 AS col0 FROM tab2 cor0
----
-7351
-7379
-7393

query I rowsort
SELECT DISTINCT - col1 * col2 * col1 AS col0 FROM tab1 cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - col1 + + 66 * + 38 AS col2 FROM tab2
----
2449
2477
2491

query I rowsort
SELECT ALL - + col2 * 49 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT - cor0.col1 * 50 + - cor0.col0 + cor0.col0 * 1 FROM tab2 cor0
----
-1550
-2950
-850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col2 * + ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6132
SELECT col1 + CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT col1 + CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6133
SELECT + col2 + + col0 * col2 - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT + col2 + + col0 * col2 - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - 18 * + col2 * + col1 FROM tab0 AS cor0
----
-134398
-1747
-51117

query I rowsort
SELECT + col1 + col2 - col2 AS col0 FROM tab1 AS cor0
----
10
13
26

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6137
SELECT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6138
SELECT DISTINCT + 36 + col0 * + col0 * CAST( - col1 + - col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-225
-303068
-595164

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + 36 + col0 * + col0 * CAST ( - col1 + - col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-225
-303068
-595164

query I rowsort
SELECT DISTINCT col0 + + 66 AS col1 FROM tab2 AS cor0
----
144
145
73

query I rowsort
SELECT ALL cor0.col2 * - 43 - col2 FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT - ( 38 ) FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL - 41 + - col0 AS col0 FROM tab0 cor0
----
-130
-65
-76

query I rowsort
SELECT DISTINCT + - 48 * 7 + col2 AS col2 FROM tab0 AS cor0
----
-254
-303
-335

query I rowsort
SELECT ( + col1 ) + col0 * - col0 FROM tab2 cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab0 AS cor0
----
89

query I rowsort
SELECT ALL 29 * + cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b206d80429a622020fb024c43230ba42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6147
SELECT DISTINCT 91 * col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT 91 * col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - col0 * col0 FROM tab0 cor0
----
-1260
-600
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 57 + col1 col0 FROM tab1 AS cor0
----
-31
-44
-47

query I rowsort
SELECT ALL - ( + col1 ) * ( ( + col2 ) ) FROM tab0 AS cor0
----
-2838
-7462
-97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1, tab0 AS cor1
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT - 86 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col1 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - ( - col2 ) * 10 + col0 FROM tab2 AS cor0
----
277
338
459

query I rowsort
SELECT ALL + col1 * + cor0.col1 + - ( col0 ) FROM tab2 cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-6159
SELECT DISTINCT + + col2 + col1 DIV col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT + + col2 + col1 / col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - col2 + - col2 AS col2 FROM tab1 cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col0 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT ALL col1 * + tab1.col2 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col1 + - col0 + col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6165
SELECT ALL - + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + - ( + cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * col2 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-6169
SELECT - 63 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6169
SELECT - 63 / - col2 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6170
SELECT ALL - tab1.col2 DIV - col2 + tab1.col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL - tab1.col2 / - col2 + tab1.col2 FROM tab1
----
55
58
97

query I rowsort
SELECT 32 + col1 * col0 FROM tab0 cor0
----
2096
3427
8131

query I rowsort
SELECT + + col0 * 59 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT 48 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col2 FROM tab1
----
28
47
83

query I rowsort
SELECT 60 * + col2 FROM tab1 AS cor0
----
3240
3420
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 - - 39 col0 FROM tab2, tab1, tab0 AS cor0
----
-50
15
4

query I rowsort
SELECT - 2 * 11 FROM tab0
----
-22
-22
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6179
SELECT + col1 * + CAST( col1 AS SIGNED ) + col2 FROM tab2 AS cor0
----
327
3507
988

skipif mysql # not compatible
query I rowsort label-6179
SELECT + col1 * + CAST ( col1 AS INTEGER ) + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - - col0 + col0 AS col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT + col1 DIV cor0.col0 + col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-6181
SELECT + col1 / cor0.col0 + col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT ALL + cor0.col2 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col2 * 24 + + ( + col2 ) * - col2 AS col1 FROM tab1 cor0
----
-11520
-4212
-4617

onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT DISTINCT cor0.col2 DIV - cor0.col1 col0 FROM tab2 AS cor0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT cor0.col2 / - cor0.col1 col0 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT - + col1 + col0 AS col1 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT - + col2 + + 39 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 - + col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL + col1 * col2 * col0 - col2 AS col1 FROM tab1 AS cor0
----
36423
4158
99744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 52 col2 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT ALL col1 + ( + col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT + cor0.col1 + - 85 * 74 FROM tab2 AS cor0
----
-6231
-6259
-6273

query I rowsort
SELECT ALL - + col1 * + 28 + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1057
-3478
-3680

query I rowsort
SELECT DISTINCT col1 * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 * ( col2 ) * - 16 col0 FROM tab0 AS cor0
----
107675
113
17510

onlyif mysql # use DIV operator for integer division
query I rowsort label-6195
SELECT ALL col0 DIV - 55 - col2 FROM tab0 cor0
----
-1
-33
-83

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL col0 / - 55 - col2 FROM tab0 cor0
----
-1
-33
-83

query I rowsort
SELECT DISTINCT + + 43 FROM tab0 AS cor0
----
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6197
SELECT - CAST( NULL AS SIGNED ) * - ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT - CAST ( NULL AS INTEGER ) * - ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 28 + + col2 * + col2 FROM tab0 AS cor0
----
1117
29
6752

query I rowsort
SELECT ALL - + 68 * - 21 AS col0 FROM tab0 AS cor0
----
1428
1428
1428

query I rowsort
SELECT ALL - 69 AS col1 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT - col2 * - 61 - col1 AS col1 FROM tab2
----
1527
1616
2301

query I rowsort
SELECT ALL 7 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

onlyif mysql # use DIV operator for integer division
query I rowsort label-6203
SELECT DISTINCT + + col0 * col1 DIV + 8 + - col0 * + cor0.col0 FROM tab1 AS cor0
----
-4016
-6270
0

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT + + col0 * col1 / + 8 + - col0 * + cor0.col0 FROM tab1 AS cor0
----
-4016
-6270
0

query I rowsort
SELECT + 85 AS col2 FROM tab0 cor0
----
85
85
85

query I rowsort
SELECT ALL 54 * - 81 * col0 FROM tab2
----
-30618
-341172
-345546

query I rowsort
SELECT tab1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - 15 * col2 - col0 AS col1 FROM tab2 AS cor0
----
-412
-468
-649

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT - 15 DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6208
SELECT - 15 / col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 31 FROM tab2
----
31
31
31

query I rowsort
SELECT 49 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT - col0 * + col1 * - col2 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
54

query I rowsort
SELECT - tab2.col2 * - col1 + + col2 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT DISTINCT - col0 + col2 DIV col2 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT - col0 + col2 / col2 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT tab2.col1 * - col0 - - ( - tab2.col0 ) * col1 FROM tab2
----
-2686
-434
-9204

query I rowsort
SELECT + col2 * + col0 + col0 * - col0 FROM tab1
----
-448
1280
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 + + col2 col0 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT - + col2 * ( - 35 ) AS col1 FROM tab2 cor0
----
1330
910
945

query I rowsort
SELECT ALL + col2 * 49 FROM tab2 AS cor0
----
1274
1323
1862

skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col0 + + CAST ( - col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - - col0 * + 91 AS col1 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT ALL + - col2 + ( + col2 ) FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 * 18 col1 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT DISTINCT 47 + ( - tab1.col0 ) * + col2 FROM tab1
----
-115
-3601
-7633

query I rowsort
SELECT DISTINCT + tab0.col1 + - 28 AS col1 FROM tab0
----
58
63
69

query I rowsort
SELECT ALL 92 + + col2 * tab1.col2 * ( col1 ) + + col0 * tab1.col2 AS col1 FROM tab1
----
127580
36230
76070

query I rowsort
SELECT 59 * col2 * + col2 + - tab0.col1 FROM tab0
----
-38
396625
64165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 + tab2.col1 * col1 col1 FROM tab2
----
295
3487
967

query I rowsort
SELECT DISTINCT - 26 + + col0 FROM tab0
----
-2
63
9

query I rowsort
SELECT 25 + col0 FROM tab1
----
105
28
89

query I rowsort
SELECT tab0.col1 * - 17 + - tab0.col0 * col1 AS col2 FROM tab0
----
-3526
-5044
-9646

query I rowsort
SELECT tab0.col0 - - tab0.col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT col2 * ( cor0.col2 ) + + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + ( + col0 * - col2 ) + - ( tab2.col2 + + col0 ) AS col1 FROM tab2
----
-2132
-223
-3119

query I rowsort
SELECT 66 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + 32 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT - 10 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
164
210
263

query I rowsort
SELECT ALL + - col1 + cor0.col2 * ( - col1 ) FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - 90 * col0 AS col1 FROM tab1 cor0
----
-270
-5760
-7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT DISTINCT + col1 DIV col1 + col1 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT + col1 / col1 + col1 FROM tab2 cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + 88 * + col2 + - 13 FROM tab0 AS cor0
----
2891
7203
75

query I rowsort
SELECT DISTINCT - 38 + - col1 AS col1 FROM tab2 AS cor0
----
-55
-69
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6245
SELECT + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col0 * 93 FROM tab0 cor0
----
3255
678714
73656

query I rowsort
SELECT + 27 * + col0 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT ALL col2 * cor0.col1 + + col1 + - 23 AS col1 FROM tab1 AS cor0
----
1238
1407
557

query I rowsort
SELECT - 97 FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL + 76 AS col0 FROM tab2 cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) + + col2 * col0 col0 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT + - 36 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT ALL ( 83 ) * tab1.col2 AS col1 FROM tab1
----
4482
4731
7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-6254
SELECT + 44 DIV - col0 + - col2 FROM tab2 AS cor0
----
-26
-33
-38

skipif mysql # not compatible
query I rowsort label-6254
SELECT + 44 / - col0 + - col2 FROM tab2 AS cor0
----
-26
-33
-38

query I rowsort
SELECT DISTINCT - ( col0 * - col0 + - col2 * col0 ) FROM tab2
----
238
8112
9243

query I rowsort
SELECT - ( 90 + + col1 ) AS col1 FROM tab2
----
-107
-121
-149

query I rowsort
SELECT 1 * col2 + - col0 * col1 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6258
SELECT + col2 * - CAST( + col1 + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1566
-2090
-2210

skipif mysql # not compatible
query I rowsort label-6258
SELECT + col2 * - CAST ( + col1 + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT - + col0 + + 24 AS col2 FROM tab2 AS cor0
----
-54
-55
17

query I rowsort
SELECT - col0 * col0 + 60 * col0 AS col2 FROM tab1
----
-1600
-256
171

query I rowsort
SELECT - tab0.col1 + tab0.col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 * ( 18 ) AS col2 FROM tab2 AS cor0
----
1062
306
558

onlyif mysql # use DIV operator for integer division
query I rowsort label-6263
SELECT + - col0 DIV 75 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6263
SELECT + - col0 / 75 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col1 * col2 + + 11 + col0 FROM tab2
----
1623
736
855

query I rowsort
SELECT ALL - ( col0 ) + col2 + + 72 FROM tab2
----
20
31
92

query I rowsort
SELECT ALL col2 + - col0 * + col0 AS col0 FROM tab0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-6267
SELECT DISTINCT ( col2 ) * + col2 + tab0.col0 DIV - col2 + col2 col1 FROM tab0
----
-33
1122
6805

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT ( col2 ) * + col2 + tab0.col0 / - col2 + col2 col1 FROM tab0
----
-33
1122
6805

query I rowsort
SELECT DISTINCT col2 + tab0.col0 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + cor0.col0 * - 27 AS col1 FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT ALL - + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col0 * - ( + ( - col0 ) ) + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - col2 * + col0 - + col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + + col0 + + 22 FROM tab1 AS cor0
----
102
25
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6275
SELECT ALL - cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * 61 + col2 AS col2 FROM tab1 cor0
----
-1532
-553
-697

query I rowsort
SELECT col0 * + 82 FROM tab1
----
246
5248
6560

query I rowsort
SELECT DISTINCT 55 + + 61 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
1156
194
756

query I rowsort
SELECT ALL - + ( - col1 ) * cor0.col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT col1 DIV col1 + - col0 DIV + 76 + + 16 FROM tab2 AS cor0
----
16
16
17

skipif mysql # not compatible
query I rowsort label-6280
SELECT col1 / col1 + - col0 / + 76 + + 16 FROM tab2 AS cor0
----
16
16
17

query I rowsort
SELECT col1 * - 9 + col0 FROM tab1 AS cor0
----
-231
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT col2 DIV + col0 + + col2 + col0 col2 FROM tab1 AS cor0
----
121
177
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6282
SELECT col2 / + col0 + + col2 + col0 col2 FROM tab1 AS cor0
----
121
177
75

query I rowsort
SELECT - col2 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT - col1 + col1 * col2 DIV col0 FROM tab0 AS cor0
----
-8
-95
32

skipif mysql # not compatible
query I rowsort label-6284
SELECT - col1 + col1 * col2 / col0 FROM tab0 AS cor0
----
-8
-95
32

query I rowsort
SELECT - 79 * - 34 FROM tab0 AS cor0
----
2686
2686
2686

query I rowsort
SELECT ALL + + 31 * - 2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT 62 DIV + col2 - col0 FROM tab0 AS cor0
----
-23
-89
27

skipif mysql # not compatible
query I rowsort label-6287
SELECT 62 / + col2 - col0 FROM tab0 AS cor0
----
-23
-89
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + ( - col0 ) * - ( + 13 * col1 ) FROM tab0 cor0
----
105287
26832
44135

query I rowsort
SELECT + 51 AS col0 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT + ( cor0.col1 ) + - 43 FROM tab0 AS cor0
----
43
48
54

query I rowsort
SELECT - col1 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - + col0 * col0 - ( col2 ) FROM tab2 cor0
----
-6110
-6279
-76

query I rowsort
SELECT + col2 * + ( + 26 ) + + col0 AS col0 FROM tab2 AS cor0
----
1067
709
754

query I rowsort
SELECT - col2 * col0 * + col1 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL col1 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL col2 * cor0.col0 + - cor0.col0 + + col1 FROM tab0 cor0
----
7300
854
97

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6300
SELECT + col2 * col1 DIV - col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6300
SELECT + col2 * col1 / - col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col0 > - col0 * col2
----

query I rowsort
SELECT DISTINCT - col0 * col1 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + - col1 * - col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + col0 * - cor0.col1 + col2 * col2 FROM tab2 cor0
----
-3926
101
512

onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT DISTINCT col0 + + col1 DIV - col2 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT col0 + + col1 / - col2 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - cor0.col2 * - col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - col0 + + col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 - - col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - - col2 + + col2 - col1 FROM tab0 AS cor0
----
-20
-95
73

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 * col0 col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ( col2 ) + 90 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1266
2394
957

query I rowsort
SELECT DISTINCT - - col1 * + col2 + + col0 * col1 FROM tab0 AS cor0
----
15561
3492
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col1 col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + + cor0.col0 + cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT 55 * + cor0.col2 FROM tab1 AS cor0
----
2970
3135
5280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT col0 + + tab0.col1 DIV col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-6318
SELECT col0 + + tab0.col1 / col0 FROM tab0
----
27
37
90

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT col0 * col1 + - col2 IN ( + col1 )
----
24
35
89

query I rowsort
SELECT - - 55 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL 84 AS col2 FROM tab1
----
84
84
84

query I rowsort
SELECT DISTINCT ( col1 * col1 ) FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col0 + - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE col0 - + col1 < ( - col0 * col2 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT ALL - col1 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - col1 / col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 * - tab2.col1 + - col2 AS col2 FROM tab2
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col1 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6329
SELECT - col2 DIV col1 - - col1 AS col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6329
SELECT - col2 / col1 - - col1 AS col1 FROM tab2
----
15
31
59

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 - + col1 ) = - col2 + + col0 + col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col1 + col1 + - col0 FROM tab0
----
148
159
93

query I rowsort
SELECT DISTINCT col0 * - col2 * - col0 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT + col2 + - col0 * col1 + + col2 AS col2 FROM tab0
----
-1998
-3393
-7935

query I rowsort
SELECT ALL - col1 + tab0.col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT col0 * - col2 + col2 * - col0 * col2 FROM tab2
----
-117078
-5292
-54756

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * - col2 + col2 * col2 ) IN ( col1 * + col2 )
----

query I rowsort
SELECT col0 - col0 AS col1 FROM tab0 WHERE ( NULL ) = ( col2 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col2 + - col0 )
----

query I rowsort
SELECT DISTINCT + col0 * col2 * col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT + tab0.col2 * + tab0.col1 - tab0.col1 FROM tab0
----
0
2752
7371

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col0 - + tab2.col0 * col0 )
----

query I rowsort
SELECT ALL col1 + + tab1.col1 AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT col0 + + col2 * + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT col1 / col0 > col0
----
1
33
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 + col1 AND ( + col1 )
----

query I rowsort
SELECT ALL 55 AS col2 FROM tab0
----
55
55
55

query I rowsort
SELECT - - ( - col2 ) * col1 + + col0 AS col2 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1185
-203
-4446

query I rowsort
SELECT + + col2 * col2 + col0 * col0 FROM tab2 AS cor0
----
6760
7685
778

onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT ALL + col1 + col1 DIV - col0 FROM tab0 cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + col1 + col1 / - col0 FROM tab0 cor0
----
83
90
95

query I rowsort
SELECT - col1 + - ( 47 ) * cor0.col1 FROM tab1 AS cor0
----
-1248
-480
-624

query I rowsort
SELECT col2 * ( col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - - cor0.col2 * 40 FROM tab1 cor0
----
2160
2280
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6355
SELECT - cor0.col2 DIV 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6355
SELECT - cor0.col2 / 89 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - - col2 * - ( col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ( + 62 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT + col0 * col2 + col0 + - col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - + 60 FROM tab2 cor0
----
-60
-60
-60

query I rowsort
SELECT cor0.col2 * col1 - + col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL ( 85 ) AS col0 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT - ( - col1 ) + col1 + + col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT DISTINCT - - 53 - 51 FROM tab1 AS cor0
----
2

query I rowsort
SELECT col0 * col0 - + col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT ALL + + col1 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + 90 + + 21 AS col2 FROM tab2 cor0
----
111
111
111

query I rowsort
SELECT ALL - ( 67 ) + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
13

query I rowsort
SELECT DISTINCT ( 40 ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT - 11 * col1 AS col0 FROM tab1 AS cor0
----
-110
-143
-286

query I rowsort
SELECT + - col0 + ( col0 ) + + cor0.col1 * + col0 * - cor0.col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL col2 * - cor0.col1 * + col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + col0 - cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + 1 + 90 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT 3 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT ALL ( 79 ) + + tab0.col1 DIV + col0 AS col2 FROM tab0
----
80
81
82

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL ( 79 ) + + tab0.col1 / + col0 AS col2 FROM tab0
----
80
81
82

query I rowsort
SELECT col2 * - col0 * + col1 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT 74 + col1 * - tab2.col2 + ( col0 ) FROM tab2
----
-1382
-493
-756

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1, tab1 AS cor1
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0

query I rowsort
SELECT ALL col2 + col2 * col1 * + col2 FROM tab2 AS cor0
----
22626
24586
39910

query I rowsort
SELECT ALL + - cor0.col0 * + cor0.col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + col1 + - col0 + col1 AS col1 FROM tab1 cor0
----
-44
-54
49

query I rowsort
SELECT 97 * tab1.col0 AS col1 FROM tab1
----
291
6208
7760

query I rowsort
SELECT ALL - col2 * - 20 FROM tab1
----
1080
1140
1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) + col2 * col1 * - col0 col1 FROM tab1
----
-36470
-4186
-99827

query I rowsort
SELECT - col1 + col2 + col0 * col0 FROM tab2
----
45
6051
6262

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col0 * col2 + col0 FROM tab2
----
114155
5110
52806

query I rowsort
SELECT ALL + col0 * - col0 AS col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + ( tab1.col1 ) * - tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 47 * col2 AS col2 FROM tab2
----
1222
1269
1786

query I rowsort
SELECT - - cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT ALL col1 + - tab2.col1 DIV + col0 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL col1 + - tab2.col1 / + col0 FROM tab2
----
17
27
59

query I rowsort
SELECT col2 + - col1 * + 89 AS col1 FROM tab1
----
-1061
-2260
-833

query I rowsort
SELECT + + 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

query I rowsort
SELECT DISTINCT - col1 + 71 + col2 * col2 * + col1 FROM tab0 cor0
----
611864
71
93639

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6397
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6398
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6398
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 87d4c8f6b827823252b140738d532e5c

query I rowsort
SELECT ALL - + col0 * 31 FROM tab1 AS cor0
----
-1984
-2480
-93

query I rowsort
SELECT col0 * + 28 AS col1 FROM tab2
----
196
2184
2212

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6402
SELECT ALL CAST( - 25 AS SIGNED ) FROM tab1
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL CAST ( - 25 AS INTEGER ) FROM tab1
----
-25
-25
-25

query I rowsort
SELECT - tab1.col2 * 36 AS col1 FROM tab1
----
-1944
-2052
-3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-6404
SELECT - 78 DIV 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-6404
SELECT - 78 / col1 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT - 9 DIV col2 FROM tab0 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-6405
SELECT - 9 / col2 FROM tab0 AS cor0
----
-9
0
0

query I rowsort
SELECT + + ( + col0 ) * col0 + + col0 - col0 * col2 FROM tab0 AS cor0
----
-192
1225
712

query I rowsort
SELECT ALL 98 * + 29 AS col2 FROM tab1 AS cor0
----
2842
2842
2842

query I rowsort
SELECT col0 * 74 AS col2 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT col2 + cor0.col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6410
SELECT - + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT - + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6411
SELECT col0 * CAST( col1 * col1 AS SIGNED ) - col0 AS col1 FROM tab0
----
177480
329280
736920

skipif mysql # not compatible
query I rowsort label-6411
SELECT col0 * CAST ( col1 * col1 AS INTEGER ) - col0 AS col1 FROM tab0
----
177480
329280
736920

query I rowsort
SELECT 82 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT DISTINCT col1 * tab0.col1 * ( col2 ) FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT col0 + + ( + col0 ) * - col1 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6415
SELECT DISTINCT + col2 DIV - col0 + col0 + col2 FROM tab2
----
104
117
31

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT + col2 / - col0 + col0 + col2 FROM tab2
----
104
117
31

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 * + col1 AS REAL ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 + - col1 * - col0 * col1 FROM tab0
----
177537
329316
737091

query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
35

query I rowsort
SELECT ALL + cor0.col1 + - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 7 * col2 AS col2 FROM tab0 cor0
----
-231
-574
-7

query I rowsort
SELECT + + 10 * cor0.col0 AS col1 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT + + col0 * + 55 AS col1 FROM tab2 AS cor0
----
385
4290
4345

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6423
SELECT - col2 * col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT - col2 * col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - col1 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + - 96 + 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT 62 * + col1 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT + + cor0.col1 - - col0 * - ( col2 ) FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + - 83 * col2 * + ( - col1 ) - + col2 FROM tab1 AS cor0
----
103488
116478
47253

query I rowsort
SELECT DISTINCT - col1 * + ( ( col0 ) ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 + + ( col1 ) col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT col2 * 65 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT ALL - col1 * - col0 * 14 FROM tab1 AS cor0
----
1092
14560
8960

skipif mysql # not compatible
query I rowsort
SELECT - col2 * CAST ( 55 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT 21 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6436
SELECT DISTINCT + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT + col1 / col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 35 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT - col0 * + col1 + - col2 * - tab0.col2 * - 4 FROM tab0
----
-3399
-34995
-6420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 + 79 col2 FROM tab1 AS cor0
----
-1169
-1325
-491

query I rowsort
SELECT ALL - col1 * col2 * - cor0.col2 + col1 FROM tab0 AS cor0
----
194
611975
93740

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + ( - col2 ) * col0 AS col2 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT DISTINCT - col1 * ( + col1 ) - col0 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT - + col1 - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT ALL + - col0 + col2 DIV - col0 + + col1 DIV 34 AS col1 FROM tab1 AS cor0
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + - col0 + col2 / - col0 + + col1 / 34 AS col1 FROM tab1 AS cor0
----
-21
-64
-81

query I rowsort
SELECT + col2 + col1 * + ( cor0.col1 ) * col0 + cor0.col1 * - col0 * - col0 FROM tab1 AS cor0
----
2316
47417
96816

query I rowsort
SELECT DISTINCT + + col1 * ( - 48 + + col2 ) FROM tab1 AS cor0
----
156
624
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6447
SELECT DISTINCT col0 * + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT col0 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + + col1 * + col0 + col0 * col1 * + ( + 81 ) + + col0 FROM tab0 AS cor0
----
169272
278425
664207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6449
SELECT col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 51 ) FROM tab0 AS cor0
----
-51

query I rowsort
SELECT ALL + + 76 + cor0.col2 AS col0 FROM tab2 AS cor0
----
102
103
114

query I rowsort
SELECT DISTINCT + + 34 FROM tab1 AS cor0
----
34

query I rowsort
SELECT + ( 18 ) * col2 FROM tab0 AS cor0
----
1476
18
594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( - col2 ) ) col2 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6455
SELECT CAST( 6 AS SIGNED ) * - col0 + col0 AS col0 FROM tab1 AS cor0
----
-15
-320
-400

skipif mysql # not compatible
query I rowsort label-6455
SELECT CAST ( 6 AS INTEGER ) * - col0 + col0 AS col0 FROM tab1 AS cor0
----
-15
-320
-400

query I rowsort
SELECT DISTINCT - - col2 + + col2 + + col2 AS col0 FROM tab2 cor0
----
114
78
81

query I rowsort
SELECT ALL - ( col2 ) + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + + ( - 2 ) AS col2 FROM tab2
----
-19
-33
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col0 ) * + col2 * 57 col0 FROM tab1 cor0
----
207936
437760
9234

query I rowsort
SELECT col0 * cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + col2 * + col2 + 69 AS col1 FROM tab1 AS cor0
----
2985
3318
9285

query I rowsort
SELECT ALL + cor0.col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT col0 * cor0.col2 + - 43 * col0 + cor0.col0 * + ( + col2 + col0 ) FROM tab2 AS cor0
----
126
6786
8848

onlyif mysql # use DIV operator for integer division
query I rowsort label-6465
SELECT - col2 - - col2 DIV - col1 FROM tab1 AS cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-6465
SELECT - col2 - - col2 / - col1 FROM tab1 AS cor0
----
-103
-56
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6466
SELECT DISTINCT 29 + cor0.col2 DIV col2 col1 FROM tab0 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT 29 + cor0.col2 / col2 col1 FROM tab0 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + col1 * col2 col2 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT DISTINCT - cor0.col0 + ( - cor1.col1 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-110
-115
-121
-126
-132
-175
-180
-186

query I rowsort
SELECT ALL + col2 - + col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + col2 * tab2.col1 * - tab2.col1 FROM tab2
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6471
SELECT - 62 DIV + 54 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-6471
SELECT - 62 / + 54 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 + col2 * - col2 col1 FROM tab0
----
-6634
-999
89

query I rowsort
SELECT DISTINCT 85 * 20 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
1700

query I rowsort
SELECT DISTINCT col0 + - cor0.col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL + + col1 * cor0.col1 + cor0.col0 * 10 FROM tab2 AS cor0
----
1031
1079
4261

query I rowsort
SELECT ALL ( - col2 ) - - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6477
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col1 + + 89 * - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-14392
-324662
-683507

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + col2 AS col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT - + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - 35 + col2 FROM tab2
----
-8
-9
3

query I rowsort
SELECT col2 + col0 * col1 AS col0 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6484
SELECT - col2 DIV - tab2.col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6484
SELECT - col2 / - tab2.col1 FROM tab2
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT + 34 DIV - tab1.col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6485
SELECT + 34 / - tab1.col1 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT 40 + col2 FROM tab1
----
136
94
97

query I rowsort
SELECT 77 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT ALL col0 + - ( + col2 ) * col1 * + col1 FROM tab0
----
-244044
-678953
-9374

query I rowsort
SELECT - cor0.col2 * 30 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6db8b6b0c42ca3da350117f0affc69db

query I rowsort
SELECT col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
3298
664027
68026

query I rowsort
SELECT - 65 + col1 AS col0 FROM tab2 AS cor0
----
-34
-48
-6

query I rowsort
SELECT DISTINCT + 80 * - col2 AS col1 FROM tab1 cor0
----
-4320
-4560
-7680

query I rowsort
SELECT DISTINCT + cor0.col2 + 31 FROM tab2, tab2 AS cor0
----
57
58
69

query I rowsort
SELECT - 25 AS col0 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT 67 * col2 FROM tab2
----
1742
1809
2546

query I rowsort
SELECT ALL tab1.col2 * - col2 * 89 FROM tab1
----
-259524
-289161
-820224

query I rowsort
SELECT ALL tab0.col1 * tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea

query I rowsort
SELECT + + ( col2 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col2 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-6502
SELECT + - cor0.col0 DIV + col0 + + ( cor0.col1 ) FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6502
SELECT + - cor0.col0 / + col0 + + ( cor0.col1 ) FROM tab0 AS cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * col1 + + col0 * col0 * col1 col0 FROM tab2 AS cor0
----
107440
1736
363558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 61 * col1 + - tab2.col2 col0 FROM tab2
----
13210
280696
81885

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6505
SELECT DISTINCT + + cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT + + cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - col1 ) col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col2 + - 23 FROM tab1 cor0
----
31
34
73

query I rowsort
SELECT - col1 + + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT - - ( + 37 ) - cor0.col0 AS col1 FROM tab2 AS cor0
----
-41
-42
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-6510
SELECT - col0 * col2 + + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-6510
SELECT - col0 * col2 + + col2 / col1 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - ( + ( + col2 ) ) - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 + + 73 FROM tab2 AS cor0
----
151
152
80

query I rowsort
SELECT DISTINCT - ( 61 ) AS col0 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT ALL + + ( col1 ) + cor0.col2 * - ( - col0 ) * - cor0.col2 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT DISTINCT + col1 * + col2 * col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + col0 + - 0 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6517
SELECT - ( - 24 ) + col1 * CAST( + cor0.col1 AS SIGNED ) - col1 FROM tab0 AS cor0
----
7334
8214
9336

skipif mysql # not compatible
query I rowsort label-6517
SELECT - ( - 24 ) + col1 * CAST ( + cor0.col1 AS INTEGER ) - col1 FROM tab0 AS cor0
----
7334
8214
9336

query I rowsort
SELECT ALL + 82 * - 61 - - col1 FROM tab0
----
-4905
-4911
-4916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT + - 39 * ( + col0 ) FROM tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT - 76 + col1 AS col1 FROM tab1 AS cor0
----
-50
-63
-66

query I rowsort
SELECT DISTINCT - 92 + col1 FROM tab0 AS cor0
----
-1
-6
5

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 AS REAL ) + + cor0.col2 - + col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + ( + 62 ) * col1 AS col0 FROM tab1 AS cor0
----
1612
620
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6525
SELECT + CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6525
SELECT + CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT ALL col0 * - col1 DIV - col1 + - col2 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL col0 * - col1 / - col1 + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col2 - col2 AS col1 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6528
SELECT DISTINCT col2 + - cor0.col2 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT col2 + - cor0.col2 / cor0.col0 AS col0 FROM tab1 AS cor0
----
36
57
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6529
SELECT DISTINCT - col0 DIV - cor0.col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT - col0 / - cor0.col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL + col2 * col0 + + ( + 40 + - col2 ) AS col0 FROM tab2 AS cor0
----
202
2042
3004

query I rowsort
SELECT + cor0.col0 + - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 29 + - col0 * 45 AS col2 FROM tab2 AS cor0
----
-286
-3481
-3526

query I rowsort
SELECT ALL col0 + + col2 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + col1 * col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT - cor0.col2 DIV 60 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6535
SELECT - cor0.col2 / 60 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT ( + col0 ) DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6536
SELECT ( + col0 ) / - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - tab1.col0 * - col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - col1 * ( + col0 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + 39 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT - + col1 * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + col0 * cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + col1 * - 4 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT - col0 + - col1 * + col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT cor0.col0 + 86 AS col0 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT - + col2 * col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 * 17 FROM tab0 cor0
----
-1513
-408
-595

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT 31 * cor0.col1 * 45 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 62c2261c000f21f5a6a407fb27f01b38

query I rowsort
SELECT - ( - col1 ) + ( col2 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 3 * col2 AS col2 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT 55 + - cor0.col1 + col1 FROM tab0 cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + col0 * + col1 + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL 51 * col1 FROM tab2 cor0
----
1581
3009
867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * + col2 * col0 col2 FROM tab0 AS cor0
----
1575
328410
35640

query I rowsort
SELECT ALL 0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + - col1 * - cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + ( cor0.col1 ) + + 48 * - col2 AS col0 FROM tab2 AS cor0
----
-1307
-1327
-1841

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab1, tab0, tab1 AS cor0
----
13

query I rowsort
SELECT ( cor0.col0 ) * + 57 AS col0 FROM tab1 AS cor0
----
171
3648
4560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT DISTINCT + col0 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT + col0 / cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL 46 + cor0.col1 * 25 AS col2 FROM tab1 AS cor0
----
296
371
696

query I rowsort
SELECT DISTINCT - + 94 * + col2 - - col1 AS col2 FROM tab0 cor0
----
-3016
-7617
3

query I rowsort
SELECT ALL 97 AS col1 FROM tab0
----
97
97
97

query I rowsort
SELECT ALL - ( col0 ) + 33 AS col1 FROM tab0
----
-2
-56
9

query I rowsort
SELECT ALL - + col1 + col1 * - 90 FROM tab0 cor0
----
-7826
-8281
-8827

query I rowsort
SELECT - - cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + tab0.col2 * - col2 + col0 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT + 64 * cor0.col0 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT + col1 + + cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + ( + col0 ) + 9 AS col0 FROM tab0
----
33
44
98

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 cor1, tab1, tab0 cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683

onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT ALL + cor0.col1 DIV + col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL + cor0.col1 / + col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + col1 AS col0 FROM tab2 cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + col1 AS col0 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT + cor0.col0 * - 59 FROM tab2, tab1 AS cor0
----
9 values hashing to 45ab40e26cca69ea8ca7efa1e590d71c

query I rowsort
SELECT DISTINCT - col1 * - col0 * - col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab0, tab1 AS cor0
----
53

query I rowsort
SELECT 36 FROM tab1, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - ( 79 ) * col0 + - col0 AS col0 FROM tab2
----
-560
-6240
-6320

query I rowsort
SELECT tab1.col0 + - 99 FROM tab1
----
-19
-35
-96

query I rowsort
SELECT + + 86 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT - col1 - 81 AS col2 FROM tab1
----
-107
-91
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + col2 + col2 col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - 3 + col2 FROM tab0
----
-2
30
79

query I rowsort
SELECT + + col1 * - col1 + - col0 FROM tab0 cor0
----
-7420
-8370
-9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6586
SELECT + 51 * 74 + - col1 + + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3774
3774
3774

skipif mysql # not compatible
query I rowsort label-6586
SELECT + 51 * 74 + - col1 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3774
3774
3774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 35 + col0 col1 FROM tab0 AS cor0
----
-2986
-3096
-3360

query I rowsort
SELECT col0 + col1 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col2 + - 65 * + col0 FROM tab2
----
-428
-5044
-5097

query I rowsort
SELECT 64 - - col1 FROM tab1
----
74
77
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6591
SELECT DISTINCT - + col0 + + ( + col2 * CAST( col1 AS SIGNED ) ) FROM tab0 cor0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - + col0 + + ( + col2 * CAST ( col1 AS INTEGER ) ) FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT ALL - + 52 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + 57 + col0 + - col0 * 28 AS col1 FROM tab1 AS cor0
----
-1671
-2103
-24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6594
SELECT - CAST( NULL AS DECIMAL ) - + col2 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT - CAST ( NULL AS REAL ) - + col2 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6595
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + col0 * col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL 97 + col0 * + ( - 9 ) FROM tab1 AS cor0
----
-479
-623
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT DISTINCT 64 DIV - col0 + - ( + col2 ) col0 FROM tab2 AS cor0
----
-26
-36
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT 64 / - col0 + - ( + col2 ) col0 FROM tab2 AS cor0
----
-26
-36
-38

query I rowsort
SELECT 28 * col1 - 49 FROM tab0 AS cor0
----
2359
2499
2667

query I rowsort
SELECT ALL 33 + tab2.col1 * - tab2.col1 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 9bff9792e2879d50c9e65c7a7eba7ea8

query I rowsort
SELECT + col1 * col2 + - 4 - cor0.col0 AS col0 FROM tab1 cor0
----
1164
1397
502

onlyif mysql # use DIV operator for integer division
query I rowsort label-6602
SELECT - 61 DIV - col1 + col0 DIV - col1 AS col0 FROM tab1
----
-2
0
2

skipif mysql # not compatible
query I rowsort label-6602
SELECT - 61 / - col1 + col0 / - col1 AS col0 FROM tab1
----
-2
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6603
SELECT DISTINCT - cor0.col0 + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT - cor0.col0 + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6604
SELECT + - ( col2 ) * - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT + - ( col2 ) * - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * col1 + + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + ( + col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT DISTINCT - col1 * cor0.col0 DIV col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT - col1 * cor0.col0 / col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT col2 + - ( - col0 ) * col2 AS col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT 56 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6610
SELECT ALL + col0 + + CAST( 10 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
264
385
979

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + col0 + + CAST ( 10 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT DISTINCT - col0 * 12 + col2 AS col2 FROM tab0 AS cor0
----
-255
-419
-986

query I rowsort
SELECT DISTINCT - col2 + col0 + + col2 * cor0.col0 FROM tab1 AS cor0
----
111
3655
7664

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT cor0.col2 + 63 * 93 FROM tab2 AS cor0
----
5885
5886
5897

query I rowsort
SELECT - 87 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6616
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) * + col0 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-6616
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 + - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( 21 ) + col1 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT DISTINCT + 46 + 27 AS col2 FROM tab1 AS cor0
----
73

query I rowsort
SELECT ALL col2 + - ( col0 * + col1 ) FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6621
SELECT DISTINCT + 87 + 64 - - cor0.col2 * - CAST( ( + col0 ) * - col2 AS SIGNED ) FROM tab2 cor0
----
114227
5254
52879

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT + 87 + 64 - - cor0.col2 * - CAST ( ( + col0 ) * - col2 AS INTEGER ) FROM tab2 cor0
----
114227
5254
52879

query I rowsort
SELECT col1 + 27 * col2 FROM tab1 AS cor0
----
1484
1549
2605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 * col2 * col1 + - col2 col1 FROM tab0 AS cor0
----
-133419
-350796
-4560

query I rowsort
SELECT ALL - - col0 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT DISTINCT + 48 DIV col0 + cor0.col0 FROM tab0 AS cor0
----
26
36
89

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT + 48 / col0 + cor0.col0 FROM tab0 AS cor0
----
26
36
89

query I rowsort
SELECT ALL + col0 + - cor0.col0 * col2 + ( 60 ) FROM tab0 AS cor0
----
-708
-7149
60

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab2 cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 61 + + col0 col2 FROM tab1 AS cor0
----
3297
3541
5936

query I rowsort
SELECT + - col1 * col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + - 83 - col1 FROM tab2 cor0
----
-100
-114
-142

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT ALL col0 * col0 DIV col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL col0 * col0 / col0 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * 82 col2 FROM tab2 AS cor0
----
2073
2183
3099

query I rowsort
SELECT - col0 * + ( - col2 ) + col0 + col0 AS col1 FROM tab1 AS cor0
----
168
3776
7840

query I rowsort
SELECT DISTINCT col2 * tab2.col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col0 + + 43 * + col0 + + col0 FROM tab2
----
301
3354
3397

query I rowsort
SELECT DISTINCT col1 * + 64 * - col1 AS col1 FROM tab1
----
-10816
-43264
-6400

query I rowsort
SELECT + tab0.col2 + - 31 FROM tab0
----
-30
2
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT DISTINCT col0 DIV - col1 + + col2 * col1 col1 FROM tab2
----
1533
642
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT col0 / - col1 + + col2 * col1 col1 FROM tab2
----
1533
642
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6640
SELECT DISTINCT tab2.col1 + CAST( - ( col2 ) AS SIGNED ) * col1 FROM tab2
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT tab2.col1 + CAST ( - ( col2 ) AS INTEGER ) * col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT col0 * col2 + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT col2 + + col2 * ( 54 * + col0 ) FROM tab2 AS cor0
----
10233
109538
162146

query I rowsort
SELECT - col0 + + 77 * col0 FROM tab2
----
532
5928
6004

query I rowsort
SELECT col0 + + 3 FROM tab1
----
6
67
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( col0 ) ) * - ( - col1 ) * + col0 col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT + 31 + col1 FROM tab2 AS cor0
----
48
62
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6647
SELECT - 49 DIV + col0 AS col2 FROM tab1 cor0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 49 / + col0 AS col2 FROM tab1 cor0
----
-16
0
0

query I rowsort
SELECT cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT ALL - 75 + + col1 DIV - 11 AS col2 FROM tab2 AS cor0
----
-76
-77
-80

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - 75 + + col1 / - 11 AS col2 FROM tab2 AS cor0
----
-76
-77
-80

query I rowsort
SELECT ALL + col2 * col2 * - col0 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL 29 + col1 FROM tab1 AS cor0
----
39
42
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6652
SELECT ( - cor0.col2 ) DIV + col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6652
SELECT ( - cor0.col2 ) / + col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 29 AS col2 FROM tab2 cor0
----
29
29
29

query I rowsort
SELECT ALL 32 AS col2 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT + cor0.col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT col1 * col2 * col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * - col1 col1 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT + cor0.col1 * ( + col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col0 * + 88 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT ALL - - col2 * + ( col2 ) FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + - cor0.col2 + 90 FROM tab1 AS cor0
----
-6
33
36

query I rowsort
SELECT 71 * col2 + + col1 * cor0.col1 * cor0.col1 AS col2 FROM tab0 cor0
----
638399
759393
912744

query I rowsort
SELECT DISTINCT - col1 * 1 + col1 * + 0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 - - col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 44 * - col0 col1 FROM tab2 AS cor0
----
277
3373
3459

query I rowsort
SELECT - + 29 AS col0 FROM tab0 cor0
----
-29
-29
-29

query I rowsort
SELECT + col2 * tab0.col0 * - 92 FROM tab0
----
-3220
-671416
-72864

query I rowsort
SELECT + cor0.col0 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6669
SELECT col1 * + col0 + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT col1 * + col0 + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT - col0 DIV + col0 + + col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-6670
SELECT - col0 / + col0 + + col2 FROM tab2 AS cor0
----
25
26
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6671
SELECT + CAST( 26 AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
108
27
59

skipif mysql # not compatible
query I rowsort label-6671
SELECT + CAST ( 26 AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
108
27
59

query I rowsort
SELECT ( col1 ) * - col2 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - col0 + col0 + - col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col2 + - col2 FROM tab0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT ALL + tab0.col2 DIV col0 + col1 * col1 AS col2 FROM tab0
----
7397
8281
9409

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL + tab0.col2 / col0 + col1 * col1 AS col2 FROM tab0
----
7397
8281
9409

query I rowsort
SELECT DISTINCT + col0 + + tab0.col1 * col1 AS col2 FROM tab0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT ALL col2 * col0 + col2 - col1 DIV tab1.col0 FROM tab1
----
208
3705
7776

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL col2 * col0 + col2 - col1 / tab1.col0 FROM tab1
----
208
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 col1 FROM tab2
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT ALL - col2 DIV - col0 + - tab2.col1 * col0 FROM tab2
----
-1343
-214
-4602

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - col2 / - col0 + - tab2.col1 * col0 FROM tab2
----
-1343
-214
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col1 * col1 col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT - cor0.col0 * + cor0.col2 + cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col2 col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT - col1 * cor0.col0 * - col2 + col2 * + col1 FROM tab1 AS cor0
----
101088
37050
5616

query I rowsort
SELECT - col1 - - cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - col2 * col0 + col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT DISTINCT col1 + - col2 * col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT cor0.col0 * col0 + - col2 * + col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 + col0 ) OR NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT DISTINCT + col1 DIV - col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT + col1 / - col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - col1 * col1 + - col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1690
-1733
-4157

query I rowsort
SELECT DISTINCT col2 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * - cor0.col0 + + cor0.col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - col0 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - col0 + + cor0.col2 * + col2 * + col1 FROM tab0 AS cor0
----
611795
62
93630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT cor0.col1 DIV col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6696
SELECT cor0.col1 / col1 AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6697
SELECT + col0 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6697
SELECT + col0 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT - - col1 * col1 * cor0.col0 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT - - col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6702
SELECT - - col0 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL - - col2 * col1 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - col1 + tab0.col2 * + col0 - col2 FROM tab0
----
-63
673
7125

query I rowsort
SELECT col0 * + col2 - + col1 * + col1 * - col0 FROM tab2
----
25833
273546
6916

query I rowsort
SELECT DISTINCT + col0 + - col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + col2 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + col0 * + col0 col2 FROM tab2 AS cor0
----
6887
7618
886

onlyif mysql # use DIV operator for integer division
query I rowsort label-6709
SELECT + + col0 DIV col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6709
SELECT + + col0 / col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + + col0 + - col1 * + cor0.col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT col1 + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT col1 + + col2 * - col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL - col1 + col0 + col2 AS col1 FROM tab1 cor0
----
111
163
31

query I rowsort
SELECT DISTINCT + - ( + col1 ) + + col0 * col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ( + col1 * + col2 ) + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT + 68 AS col2 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT - + ( col2 ) + - col0 + col1 * cor0.col0 FROM tab1 AS cor0
----
21
519
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6718
SELECT DISTINCT CAST( col0 + + col1 * - col2 AS SIGNED ) AS col2 FROM tab2
----
-1456
-567
-830

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT CAST ( col0 + + col1 * - col2 AS INTEGER ) AS col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - 29 FROM tab2
----
-29

query I rowsort
SELECT - 50 * + col1 * - col0 AS col0 FROM tab0 AS cor0
----
103200
169750
404950

query I rowsort
SELECT ALL + - 44 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT + 29 * + col1 AS col1 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT DISTINCT col1 * + col0 + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - col1 - col1 * col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL 79 * + col1 FROM tab2 cor0
----
1343
2449
4661

query I rowsort
SELECT col2 * col1 - + col2 * cor0.col0 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT ALL - + cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT tab1.col1 + col1 * - tab1.col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT col1 - - tab0.col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL col2 + - tab1.col1 AS col1 FROM tab1
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * tab2.col0 + - col1 col0 FROM tab2
----
-1360
-248
-4661

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6733
SELECT ALL col0 * col0 DIV col0 + tab2.col1 * tab2.col0 FROM tab2
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL col0 * col0 / col0 + tab2.col1 * tab2.col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NULL IN ( + col2 - tab1.col2 )
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT col1 - col0 * col1 * col1 FROM tab2
----
-22814
-271459
-6696

onlyif mysql # use DIV operator for integer division
query I rowsort label-6737
SELECT - 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-6737
SELECT - tab2.col0 / tab2.col1 col2 FROM tab2
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT col2 DIV + col1 + col2 * col0 - + col1 FROM tab0
----
-62
706
7207

skipif mysql # not compatible
query I rowsort label-6738
SELECT col2 / + col1 + col2 * col0 - + col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT + col0 * col1 * col2 AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col2 + col1 + - col2 FROM tab0
----
-73
20
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT col1 + col2 DIV - col1 AS col0 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6741
SELECT col1 + col2 / - col1 AS col0 FROM tab2
----
15
31
59

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - col2 + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - col0
----

query I rowsort
SELECT ALL + col2 + + tab2.col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + col2 + + col0 + col2 AS col0 FROM tab0
----
253
37
90

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT col1 / - col1 + col2 * - col0 <= NULL
----

query I rowsort
SELECT ALL col2 + tab2.col2 + col0 * + col2 AS col2 FROM tab2
----
2080
243
3078

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT IN ( - tab2.col0 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col2 + + col0 * tab2.col2 FROM tab2
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE - col2 IN ( + col0 )
----

query I rowsort
SELECT tab2.col0 * col1 * col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col0 + + tab2.col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 + + col2 ) > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + cor0.col1 / cor0.col0 + cor0.col2 * + col2 + - col0 * - col0 / - col0 )
----

query I rowsort
SELECT col0 + col0 * + col0 FROM tab1
----
12
4160
6480

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( - col2 * col0 )
----

query I rowsort
SELECT + + col0 + + cor0.col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col0 - - col0 * - col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * col0 * col0 <= col1
----
14
156
158

query I rowsort
SELECT DISTINCT col1 + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - col1 NOT IN ( col0 )
----
26
27
38

query I rowsort
SELECT col2 * + cor0.col2 - col2 FROM tab1 cor0 WHERE NULL BETWEEN - col0 AND - col2
----

query I rowsort
SELECT ALL - col2 * col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 + - ( + col2 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - col0 * 27 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT + 76 + cor0.col1 AS col2 FROM tab1 AS cor0
----
102
86
89

query I rowsort
SELECT col1 * col2 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ( - cor0.col0 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + col0 * + ( + col0 * + col2 ) FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT DISTINCT + + col1 + 3 DIV - col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT + + col1 + 3 / - col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + col2 * cor0.col2 + - cor0.col1 * col2 * 85 FROM tab1 AS cor0
----
-116424
-45201
-96864

query I rowsort
SELECT ALL + 39 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - 36 + col1 AS col0 FROM tab1
----
-10
-23
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 3 col0 FROM tab2
----
20
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6775
SELECT ALL + col1 + - ( col2 ) DIV + col0 + - col2 FROM tab0 AS cor0
----
52
9
96

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL + col1 + - ( col2 ) / + col0 + - col2 FROM tab0 AS cor0
----
52
9
96

query I rowsort
SELECT + 45 * col0 AS col2 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT DISTINCT + - 30 AS col2 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL col0 * - 22 AS col1 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT DISTINCT 0 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col0 * + col0 * col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT tab1.col1 * 98 AS col1 FROM tab1
----
1274
2548
980

query I rowsort
SELECT - 23 - 20 AS col2 FROM tab0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT - col2 + 22 + tab2.col0 FROM tab2
----
2
63
74

query I rowsort
SELECT + tab1.col2 + + ( + col0 ) AS col0 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( col0 + + col2 ) col0 FROM tab0
----
253
37
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6786
SELECT CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6786
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * 87 FROM tab2
----
2262
2349
3306

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6788
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 45 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 45 FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6789
SELECT - CAST( NULL AS DECIMAL ) * col0 + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT - CAST ( NULL AS REAL ) * col0 + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6790
SELECT ALL CAST( NULL AS SIGNED ) / - 57 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL CAST ( NULL AS INTEGER ) / - 57 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6791
SELECT CAST( - cor0.col1 AS SIGNED ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-6791
SELECT CAST ( - cor0.col1 AS INTEGER ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT 91 * - tab1.col2 AS col0 FROM tab1
----
-4914
-5187
-8736

query I rowsort
SELECT 81 + - col2 FROM tab2 AS cor0
----
43
54
55

query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT col0 + + col1 * 75 FROM tab0 AS cor0
----
6474
6914
7310

query I rowsort
SELECT col1 + col1 + col0 AS col2 FROM tab1 cor0
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT col1 * 12 DIV col1 AS col1 FROM tab0 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-6797
SELECT col1 * 12 / col1 AS col1 FROM tab0 AS cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 51 col0 FROM tab2 AS cor0
----
110
68
82

query I rowsort
SELECT ALL col1 + 45 * ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
29087
37696
69089

query I rowsort
SELECT - cor0.col2 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + col0 * + 46 FROM tab2 cor0
----
322
3588
3634

query I rowsort
SELECT ALL + col1 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + col0 + - 93 FROM tab2 AS cor0
----
-14
-15
-86

query I rowsort
SELECT + cor0.col2 * + col1 + col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT col0 * col1 * + col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - 48 AS col2 FROM tab1
----
-48
-48
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6807
SELECT 12 DIV + tab0.col0 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6807
SELECT 12 / + tab0.col0 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - 71 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT DISTINCT 27 * - 68 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-1836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 61 col0 FROM tab0 AS cor0
----
-1464
-2135
-5429

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6811
SELECT col1 + CAST( NULL AS SIGNED ) / + ( col1 ) + ( - 28 + - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT col1 + CAST ( NULL AS INTEGER ) / + ( col1 ) + ( - 28 + - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6813
SELECT - + col0 + CAST( - col1 AS SIGNED ) - col1 AS col1 FROM tab2 AS cor0
----
-113
-196
-69

skipif mysql # not compatible
query I rowsort label-6813
SELECT - + col0 + CAST ( - col1 AS INTEGER ) - col1 AS col1 FROM tab2 AS cor0
----
-113
-196
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 80 col1 FROM tab1 AS cor0
----
1040
2080
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + 82 * col1 col0 FROM tab2 cor0
----
1356
2515
4812

query I rowsort
SELECT DISTINCT col1 * + col0 + col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT col0 + + ( col0 ) + + cor0.col2 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT DISTINCT - - col0 + - 97 AS col0 FROM tab2 AS cor0
----
-18
-19
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT + - col1 - + ( + col0 ) DIV col2 FROM tab0 cor0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-6820
SELECT + - col1 - + ( + col0 ) / col2 FROM tab0 cor0
----
-132
-86
-92

query I rowsort
SELECT ALL col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6822
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 * tab0.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 * tab0.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - + 74 * + col2 AS col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6824
SELECT ALL + ( col1 ) * cor0.col2 * CAST( - 49 AS SIGNED ) + col1 FROM tab2 cor0
----
-31637
-40982
-75107

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL + ( col1 ) * cor0.col2 * CAST ( - 49 AS INTEGER ) + col1 FROM tab2 cor0
----
-31637
-40982
-75107

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL 61 + + 86 FROM tab1 AS cor0
----
147
147
147

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col0 * - 70 + + col1 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-977
2512
974

query I rowsort
SELECT + cor0.col0 + col2 * + col2 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - col2 ) ) * + 34 col0 FROM tab1 AS cor0
----
-1836
-1938
-3264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6832
SELECT + CAST( NULL AS SIGNED ) * - col0 + + col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT + CAST ( NULL AS INTEGER ) * - col0 + + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 AS col1 FROM tab1 cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6836
SELECT ALL - - col2 * col1 + - CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - - col2 * col1 + - CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6837
SELECT ALL + CAST( + col2 AS SIGNED ) * + col1 AS col0 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + CAST ( + col2 AS INTEGER ) * + col1 AS col0 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6838
SELECT ALL col2 + - col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL col2 + - col0 / - col2 AS col1 FROM tab0 AS cor0
----
33
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT - - 42 DIV col2 + - cor0.col1 * cor0.col0 FROM tab0 cor0
----
-2063
-3353
-8099

skipif mysql # not compatible
query I rowsort label-6839
SELECT - - 42 / col2 + - cor0.col1 * cor0.col0 FROM tab0 cor0
----
-2063
-3353
-8099

query I rowsort
SELECT DISTINCT + col0 - col0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 51 * 36 + - cor0.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 32c84f8151c4784b335364b11fe0d7ff

query I rowsort
SELECT ALL 2 + col0 * + col0 FROM tab0 AS cor0
----
1227
578
7923

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * col0 + CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col1 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT - - 29 AS col2 FROM tab0 cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 96 AS col1 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT ( + col2 ) + + col1 * - col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT - col0 + + col1 * + col0 AS col1 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT + + 44 AS col1 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT - col0 * col1 + ( - col2 * col1 ) FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT DISTINCT - + col0 * col1 + 81 AS col2 FROM tab2 AS cor0
----
-1262
-136
-4521

query I rowsort
SELECT + 15 * 32 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9acccc87c27a3471de9d1287dcd8e1b6

query I rowsort
SELECT - col1 + - tab1.col0 * col0 FROM tab1
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + 85 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - cor0.col1 + + 30 + - col2 AS col2 FROM tab2 AS cor0
----
-25
-28
-55

query I rowsort
SELECT - col2 + - col0 - - col1 AS col1 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT DISTINCT - - 56 + col1 FROM tab1 AS cor0
----
66
69
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( - col0 ) ) col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL 22 + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2086
3417
8121

query I rowsort
SELECT DISTINCT - 67 * col1 FROM tab0 AS cor0
----
-5762
-6097
-6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + col1 * - col1 - + ( cor0.col0 ) * col0 col2 FROM tab2 AS cor0
----
-281
-5086
-8889

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6865
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col1 * + col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col1 * + col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
3
64
80

query I rowsort
SELECT - 89 FROM tab1, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT - 35 + + col0 AS col0 FROM tab1
----
-32
29
45

query I rowsort
SELECT ALL - col1 + col0 + + col1 FROM tab2
----
7
78
79

query I rowsort
SELECT 32 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT DISTINCT + tab2.col0 * col2 + - col2 AS col2 FROM tab2
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 82 col0 FROM tab2
----
108
109
120

query I rowsort
SELECT DISTINCT ( 37 ) + - tab0.col2 AS col0 FROM tab0
----
-45
36
4

query I rowsort
SELECT - col1 * 40 + cor0.col1 FROM tab0 AS cor0
----
-3354
-3549
-3783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6875
SELECT DISTINCT - ( - col1 ) + - col2 * + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - ( - col1 ) + - col2 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + 62 - - col1 * - col1 * + col0 FROM tab0 AS cor0
----
-177442
-329253
-736947

query I rowsort
SELECT ALL col1 * col2 * + col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT ALL + 67 + col2 * cor0.col1 FROM tab1 cor0
----
1315
1471
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - cor0.col1 col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT col2 * + col0 * ( tab2.col1 ) FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col2 + + col0 * - ( col0 ) AS col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT + tab2.col2 * + 2 * + col0 FROM tab2
----
378
4056
6004

query I rowsort
SELECT ALL col2 * + 9 AS col1 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT + col2 * cor0.col0 + 52 AS col1 FROM tab1 AS cor0
----
214
3700
7732

query I rowsort
SELECT col1 * ( - col0 * cor0.col0 ) FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT - cor0.col1 + - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 076bba756c9b7eaa94a11ec2f6f251f8

query I rowsort
SELECT - ( - 46 ) AS col0 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT + col1 * cor0.col1 * col0 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 49 + 48 * + col0 AS col1 FROM tab1 AS cor0
----
193
3121
3889

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT ALL + col0 DIV col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL + col0 / col1 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col2 * col1 - - col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT - 88 * + col1 AS col2 FROM tab2
----
-1496
-2728
-5192

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27

query I rowsort
SELECT + col0 - + col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT - 36 - + col2 AS col1 FROM tab1 AS cor0
----
-132
-90
-93

query I rowsort
SELECT DISTINCT + + col1 - + col0 AS col1 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 80 - col1 AS col2 FROM tab0 AS cor0
----
-166
-171
-177

query I rowsort
SELECT - col1 + - ( + col0 + + col2 * + col1 ) FROM tab1 AS cor0
----
-1341
-1433
-644

query I rowsort
SELECT ALL + 79 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6903
SELECT - col2 * CAST( NULL AS SIGNED ) + - 43 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT - col2 * CAST ( NULL AS INTEGER ) + - 43 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * - ( 23 ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1296
-1368
-2304

query I rowsort
SELECT tab0.col1 - 41 * cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7119893c542d08b5268ddd9a68850888

onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT - + col2 DIV - col2 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-6906
SELECT - + col2 / - col2 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1224
-575
-7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT col0 * 15 - col1 DIV - col0 FROM tab2 AS cor0
----
109
1170
1185

skipif mysql # not compatible
query I rowsort label-6907
SELECT col0 * 15 - col1 / - col0 FROM tab2 AS cor0
----
109
1170
1185

query I rowsort
SELECT + col0 * col2 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1260
-19032
-649611

query I rowsort
SELECT DISTINCT + col0 * ( ( - col1 ) ) * + col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-32384
-4203
-93440

query I rowsort
SELECT DISTINCT + col1 * col0 + 10 FROM tab0 AS cor0
----
2074
3405
8109

query I rowsort
SELECT ALL col2 - 71 FROM tab0 AS cor0
----
-38
-70
11

query I rowsort
SELECT ALL 62 * - 32 FROM tab1 AS cor0
----
-1984
-1984
-1984

query I rowsort
SELECT + + 46 + + col0 FROM tab2 AS cor0
----
124
125
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6914
SELECT ALL + + col0 * col0 + + col1 DIV cor0.col1 FROM tab1 cor0
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL + + col0 * col0 + + col1 / cor0.col1 FROM tab1 cor0
----
10
4097
6401

query I rowsort
SELECT ALL ( 41 ) + + col1 * - 88 FROM tab2 AS cor0
----
-1455
-2687
-5151

query I rowsort
SELECT - col1 + + ( + col2 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - tab0.col1 + 53 + - 19 AS col2 FROM tab0
----
-52
-57
-63

query I rowsort
SELECT DISTINCT - col2 * - tab2.col2 AS col0 FROM tab2
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT - ( - col1 ) DIV + 70 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6920
SELECT - ( - col1 ) / + 70 FROM tab0 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6921
SELECT tab2.col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6921
SELECT tab2.col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ( + ( + tab0.col0 ) * col2 + + col0 ) FROM tab0
----
70
7387
816

query I rowsort
SELECT cor0.col2 + - col0 * 24 AS col0 FROM tab0 cor0
----
-2054
-543
-839

query I rowsort
SELECT col1 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT + col2 + col0 + col0 * col2 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT - col1 - + cor0.col0 * + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-207946
-737293
-8774

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6927
SELECT ALL + + ( + col2 ) * + col2 * CAST( NULL AS SIGNED ) + 81 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL + + ( + col2 ) * + col2 * CAST ( NULL AS INTEGER ) + 81 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - 47 ) * col0 FROM tab2 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT ALL - + col1 + - col1 * + col1 + + 33 FROM tab2 AS cor0
----
-273
-3507
-959

query I rowsort
SELECT ALL + ( - col0 ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6931
SELECT ALL - ( ( + col2 DIV + 91 ) ) * col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL - ( ( + col2 / + 91 ) ) * col1 / - col1 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT cor0.col1 * 71 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 93d04e1153a3e2adae7803e1f3a03547

query I rowsort
SELECT ALL + 25 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 68fc0eecd4f434589f3ec576bbd0c540

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab0 AS cor0
----
17

query I rowsort
SELECT col0 + 77 AS col0 FROM tab2 AS cor0
----
155
156
84

query I rowsort
SELECT DISTINCT + - 55 * + 42 FROM tab0 cor0
----
-2310

query I rowsort
SELECT DISTINCT 21 + - 33 + - col0 * 31 AS col2 FROM tab2 AS cor0
----
-229
-2430
-2461

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6938
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + ( col2 ) * col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT 61 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT ( 53 ) - col2 AS col0 FROM tab0
----
-29
20
52

query I rowsort
SELECT ALL + - ( col2 ) * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 17 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT + col1 + + 88 * col1 FROM tab0 AS cor0
----
7654
8099
8633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 70 col2 FROM tab2 AS cor0
----
-1190
-2170
-4130

query I rowsort
SELECT DISTINCT + col2 * col0 + - 29 * tab2.col2 FROM tab2
----
-594
1274
1900

query I rowsort
SELECT col1 - + col0 AS col2 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT - tab0.col1 * - col0 + + 7 DIV - 26 AS col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-6948
SELECT - tab0.col1 * - col0 + + 7 / - 26 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT 68 * col2 AS col1 FROM tab1
----
3672
3876
6528

query I rowsort
SELECT ALL 66 * - 0 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + + ( - col2 ) + col0 * + tab2.col0 * col2 col1 FROM tab2
----
159692
2133
237766

query I rowsort
SELECT ( - col1 * - col2 ) AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab0, tab2 cor0, tab1 cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL + 55 + + col1 + 61 AS col0 FROM tab1
----
126
129
142

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab2, tab1 cor0
----
31

query I rowsort
SELECT cor0.col1 * + ( col2 ) + col0 * + col2 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT DISTINCT - col1 * col2 + 36 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-10414
-133
-4026

query I rowsort
SELECT - col2 + ( col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - 95 + cor0.col1 FROM tab1 AS cor0
----
1248
2496
960

query I rowsort
SELECT ALL - col1 - + col0 * - col1 AS col0 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + col0 * + 70 - - col1 FROM tab2 AS cor0
----
521
5519
5547

query I rowsort
SELECT - col2 * ( + ( col2 ) ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6964
SELECT - col1 / + CAST( NULL AS SIGNED ) + cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT - col1 / + CAST ( NULL AS INTEGER ) + cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + 25 * col1 * col2 FROM tab1 AS cor0
----
14240
31187
35074

query I rowsort
SELECT DISTINCT + col0 + - ( 12 ) * + col2 FROM tab1 AS cor0
----
-1072
-620
-645

query I rowsort
SELECT ALL cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 - col1 col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col2 * + ( col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT tab1.col0 * + 68 FROM tab1
----
204
4352
5440

query I rowsort
SELECT DISTINCT + col2 * + tab2.col2 + 81 + tab2.col2 AS col2 FROM tab2
----
1563
783
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6972
SELECT col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + + 17 * + 82 FROM tab0 AS cor0
----
1418
1429
1483

query I rowsort
SELECT ALL - cor0.col0 * 36 AS col0 FROM tab2 AS cor0
----
-252
-2808
-2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6975
SELECT - col2 + + col2 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6975
SELECT - col2 + + col2 / col1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6976
SELECT - col1 * CAST( + col1 * + col0 AS SIGNED ) FROM tab0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-6976
SELECT - col1 * CAST ( + col1 * + col0 AS INTEGER ) FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - 37 * - 73 FROM tab0 cor0
----
2701

query I rowsort
SELECT - - 86 * + col1 * + col1 FROM tab1 AS cor0
----
14534
58136
8600

query I rowsort
SELECT - - ( - col0 ) * col1 + + ( col2 ) FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col2 * 68 FROM tab2 AS cor0
----
1768
1836
2584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6981
SELECT ALL 71 + col2 DIV cor0.col1 FROM tab0 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL 71 + col2 / cor0.col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT + ( col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + - col1 + ( col0 ) * col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT 59 * cor0.col2 + + col1 FROM tab1 AS cor0
----
3212
3373
5677

query I rowsort
SELECT - - col2 * 61 FROM tab0 AS cor0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT + - col1 DIV + 91 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6986
SELECT + - col1 / + 91 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col2 * + col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - 63 * + col0 + ( + ( - col2 ) ) + col1 AS col0 FROM tab2 AS cor0
----
-437
-4881
-4998

onlyif mysql # use DIV operator for integer division
query I rowsort label-6989
SELECT DISTINCT - - col2 + col0 DIV - ( 49 ) FROM tab2 AS cor0
----
25
27
37

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT - - col2 + col0 / - ( 49 ) FROM tab2 AS cor0
----
25
27
37

query I rowsort
SELECT ALL ( col2 ) + - ( col1 ) FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL 91 + - col2 AS col1 FROM tab0
----
58
9
90

query I rowsort
SELECT - tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT 22 + col2 FROM tab1 cor0
----
118
76
79

query I rowsort
SELECT DISTINCT - 65 + col0 + - col1 FROM tab2 AS cor0
----
-3
-46
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 * 86 + + col1 * col1 * col0 - 96 FROM tab1 AS cor0
----
-118812
-42716
-93904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - cor0.col0 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col1 * - col2 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + - col2 - - col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - cor0.col0 * col0 - - col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT + 18 * cor0.col1 FROM tab0, tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT - col1 * - ( col1 ) - col2 * + 25 FROM tab0 AS cor0
----
6231
6571
9384

query I rowsort
SELECT ALL + col0 * 67 AS col1 FROM tab0 cor0
----
1608
2345
5963

onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT + + col2 * - col0 DIV - cor0.col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7004
SELECT + + col2 * - col0 / - cor0.col0 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + 54 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 41e86a9764ba29c593f7c73b5760e18f

query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ( col0 ) + cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col1 + cor0.col0 + cor0.col1 FROM tab2 cor0
----
113
196
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * + col2 col0 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT col2 * col1 - ( col1 * col0 ) FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT + ( + tab2.col2 + col0 ) * - col0 * + col1 FROM tab2
----
-157131
-478608
-7378

query I rowsort
SELECT 69 * col0 FROM tab2
----
483
5382
5451

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab0
----
18

query I rowsort
SELECT + + 36 * col0 * col0 + - col2 * - col0 AS col1 FROM tab0 AS cor0
----
21528
292454
44135

query I rowsort
SELECT - + cor0.col1 + col1 * cor0.col0 AS col2 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT - + cor0.col1 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT ALL - col2 * 77 FROM tab0 AS cor0
----
-2541
-6314
-77

query I rowsort
SELECT + col2 * 44 AS col2 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT ( cor0.col1 ) FROM tab2, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT + cor0.col0 * 60 + col2 DIV ( col0 ) + - col2 col1 FROM tab0 AS cor0
----
1408
2099
5258

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7021
SELECT + cor0.col0 * 60 + col2 / ( col0 ) + - col2 col1 FROM tab0 AS cor0
----
1408
2099
5258

query I rowsort
SELECT + - col1 + 23 FROM tab1 AS cor0
----
-3
10
13

query I rowsort
SELECT ALL ( col1 * + col2 ) AS col0 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT - tab2.col2 DIV + 26 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-7024
SELECT - tab2.col2 / + 26 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT cor1.col0 * + cor1.col2 DIV + cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif mysql # not compatible
query I rowsort label-7025
SELECT cor1.col0 * + cor1.col2 / + cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - 69 * 57 AS col2 FROM tab0 AS cor0
----
-3933
-3933
-3933

onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT col0 + 92 DIV - col2 AS col0 FROM tab0 AS cor0
----
-57
22
88

skipif mysql # not compatible
query I rowsort label-7027
SELECT col0 + 92 / - col2 AS col0 FROM tab0 AS cor0
----
-57
22
88

query I rowsort
SELECT - ( + cor0.col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7029
SELECT CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( col2 ) + - 77 * + 40 - col2 FROM tab2 AS cor0
----
-3132
-3134
-3156

query I rowsort
SELECT + col0 + - col2 + 19 FROM tab0 AS cor0
----
10
26
53

query I rowsort
SELECT + 61 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT 49 * - cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 810f3e5e4a3a141dea71e26fc9fd66d6

query I rowsort
SELECT ( - cor0.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT ALL ( + 46 ) DIV - col0 FROM tab2
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL ( + 46 ) / - col0 FROM tab2
----
-6
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT ALL col2 + + col1 + + col2 DIV - col2 FROM tab1 AS cor0
----
108
66
79

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL col2 + + col1 + + col2 / - col2 FROM tab1 AS cor0
----
108
66
79

query I rowsort
SELECT + 40 * col2 + + col1 FROM tab2 AS cor0
----
1099
1111
1537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col0 * - col0 + col2 col2 FROM tab0 AS cor0
----
-1224
-18975
-649440

query I rowsort
SELECT ALL ( col2 ) + 26 * col2 AS col1 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT 70 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + col2 + + 50 * - col2 AS col0 FROM tab2 AS cor0
----
-1274
-1323
-1862

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7042
SELECT - - col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT - - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 65 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT col1 * col1 * + col1 AS col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT + col2 * - 42 * col2 FROM tab0 AS cor0
----
-282408
-42
-45738

query I rowsort
SELECT ALL + + cor0.col1 * 57 + col0 AS col0 FROM tab2 AS cor0
----
1048
1774
3441

query I rowsort
SELECT - ( + col0 ) * - col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL cor0.col2 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - col1 * 53 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT DISTINCT + ( col1 ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + col1 + + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - + col1 * ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT - col1 DIV + col2 + - 14 FROM tab1
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-7054
SELECT - col1 / + col2 + - 14 FROM tab1
----
-14
-14
-14

query I rowsort
SELECT DISTINCT col1 + + col0 * col0 + - 34 FROM tab2 AS cor0
----
46
6109
6224

query I rowsort
SELECT ALL + col0 * - col2 + - cor0.col1 - + ( col1 ) FROM tab1 AS cor0
----
-214
-3668
-7706

query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab0 cor0
----
-32

query I rowsort
SELECT col1 * 73 AS col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT ALL - - col1 * + col1 * 10 AS col2 FROM tab2 AS cor0
----
2890
34810
9610

query I rowsort
SELECT - 77 * col0 + ( 90 * col1 ) FROM tab1
----
-4028
-4990
2109

query I rowsort
SELECT DISTINCT - 87 + col1 FROM tab0
----
-1
10
4

query I rowsort
SELECT DISTINCT + col1 * - 20 * col1 FROM tab1 cor0
----
-13520
-2000
-3380

onlyif mysql # use DIV operator for integer division
query I rowsort label-7064
SELECT - col0 DIV ( + col0 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7064
SELECT - col0 / ( + col0 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 + - 32 + 78 FROM tab2 AS cor0
----
72
73
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT ALL + + cor0.col0 DIV ( - 93 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL + + cor0.col0 / ( - 93 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - col0 + + cor0.col1 AS col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT 47 + - col2 AS col1 FROM tab1
----
-10
-49
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7069
SELECT DISTINCT 86 DIV tab1.col0 + tab1.col1 * + col1 col1 FROM tab1
----
101
170
704

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT 86 / tab1.col0 + tab1.col1 * + col1 col1 FROM tab1
----
101
170
704

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT + col1 DIV + col1 - - col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7070
SELECT + col1 / + col1 - - col2 FROM tab1
----
55
58
97

query I rowsort
SELECT - tab2.col0 * tab2.col2 * col2 AS col1 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT col0 + - col2 * + 59 FROM tab0
----
-1923
-24
-4749

query I rowsort
SELECT DISTINCT 81 + + 74 AS col2 FROM tab1 AS cor0
----
155

query I rowsort
SELECT - col2 + - col2 * + cor0.col2 FROM tab2 AS cor0
----
-1482
-702
-756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7075
SELECT ALL - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + col2 col0 FROM tab1 AS cor0
----
145
148
187

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col2 * + col1 FROM tab0 cor0
----
-611802
-93621
-96

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + ( - col0 ) * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 77 * col1 AS col1 FROM tab2 AS cor0
----
-1309
-2387
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7081
SELECT DISTINCT - 71 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT - 71 / col0 AS col1 FROM tab1 AS cor0
----
-1
-23
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT ALL + col0 DIV - col0 + + col2 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL + col0 / - col0 + + col2 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL + + ( col1 ) * - cor0.col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 - 33 FROM tab0 AS cor0
----
-119
-124
-130

query I rowsort
SELECT DISTINCT cor0.col2 * 0 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - col2 * - 20 AS col2 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT - 96 + cor0.col1 FROM tab1 AS cor0
----
-70
-83
-86

query I rowsort
SELECT ALL + col1 * + 89 FROM tab1
----
1157
2314
890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7089
SELECT - tab1.col2 + - CAST( col2 + - col1 AS SIGNED ) FROM tab1
----
-104
-179
-82

skipif mysql # not compatible
query I rowsort label-7089
SELECT - tab1.col2 + - CAST ( col2 + - col1 AS INTEGER ) FROM tab1
----
-104
-179
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7090
SELECT tab2.col0 DIV 99 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7090
SELECT tab2.col0 / 99 col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7091
SELECT - 48 DIV 72 AS col2 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-7091
SELECT - 48 / 72 AS col2 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT DISTINCT + 69 - col0 * - col0 FROM tab1
----
4165
6469
78

query I rowsort
SELECT DISTINCT col0 * - col0 + + col1 AS col0 FROM tab0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT DISTINCT col2 * + col0 - col1 DIV - col1 FROM tab2
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT col2 * + col0 - col1 / - col1 FROM tab2
----
190
2029
3003

query I rowsort
SELECT 31 + - 29 AS col1 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col1 AS REAL ) * + col0 * ( 77 ) - col2 FROM tab2 AS cor0
----
103373
16682
354328

query I rowsort
SELECT - 15 + col1 AS col1 FROM tab0 AS cor0
----
71
76
82

query I rowsort
SELECT ALL + - ( ( + col0 ) ) + 45 * col1 AS col1 FROM tab1 AS cor0
----
1167
386
505

onlyif mysql # use DIV operator for integer division
query I rowsort label-7099
SELECT + 95 * col1 + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
1615
2948
5605

skipif mysql # not compatible
query I rowsort label-7099
SELECT + 95 * col1 + col2 / + col0 AS col1 FROM tab2 AS cor0
----
1615
2948
5605

query I rowsort
SELECT ALL col1 - col2 * col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - 38 * col1 + col2 FROM tab0
----
-3235
-3376
-3685

onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT - 60 + cor0.col2 - cor0.col2 DIV + col0 FROM tab1 AS cor0
----
-24
-3
35

skipif mysql # not compatible
query I rowsort label-7102
SELECT - 60 + cor0.col2 - cor0.col2 / + col0 FROM tab1 AS cor0
----
-24
-3
35

query I rowsort
SELECT + col1 * + 31 AS col1 FROM tab2
----
1829
527
961

query I rowsort
SELECT col2 * + 64 FROM tab1
----
3456
3648
6144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7105
SELECT col1 * 74 + + col2 + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
6483
6907
7276

skipif mysql # not compatible
query I rowsort label-7105
SELECT col1 * 74 + + col2 + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
6483
6907
7276

query I rowsort
SELECT ALL ( 74 ) * - col2 AS col1 FROM tab2
----
-1924
-1998
-2812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7107
SELECT CAST( 9 AS SIGNED ) + col2 + + col1 FROM tab0
----
107
128
182

skipif mysql # not compatible
query I rowsort label-7107
SELECT CAST ( 9 AS INTEGER ) + col2 + + col1 FROM tab0
----
107
128
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 * - col2 + + col0 col1 FROM tab1
----
-5181
-5408
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT col2 + + col0 + col2 DIV col0 FROM tab0
----
171
36
58

skipif mysql # not compatible
query I rowsort label-7109
SELECT col2 + + col0 + col2 / col0 FROM tab0
----
171
36
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-7110
SELECT 82 * - col0 + col1 DIV 82 FROM tab1 AS cor0
----
-246
-5248
-6560

skipif mysql # not compatible
query I rowsort label-7110
SELECT 82 * - col0 + col1 / 82 FROM tab1 AS cor0
----
-246
-5248
-6560

query I rowsort
SELECT DISTINCT + - cor0.col1 + col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT - + col0 - - cor0.col0 * - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL + - col1 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - 63 * + col1 FROM tab2 AS cor0
----
-1071
-1953
-3717

query I rowsort
SELECT DISTINCT 22 + - col2 FROM tab0 cor0
----
-11
-60
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-7116
SELECT ALL - cor0.col2 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - cor0.col2 / + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 + col2 col1 FROM tab0 AS cor0
----
-6
26
75

query I rowsort
SELECT DISTINCT + + col0 * col2 * col0 + + 64 AS col1 FROM tab1 AS cor0
----
233536
550
614464

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + cor0.col0 * + 26 FROM tab2 AS cor0
----
182
2028
2054

query I rowsort
SELECT DISTINCT + col1 * 4 AS col2 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT ALL + col2 * - ( col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + - col0 * + col2 + col1 + - col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col1 * cor0.col1 + cor0.col2 + col2 FROM tab0 AS cor0
----
7462
8445
9411

onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT DISTINCT - - col0 DIV ( + col1 + + col0 * col2 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT - - col0 / ( + col1 + + col0 * col2 ) FROM tab1 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7126
SELECT DISTINCT - col2 * CAST( - 63 AS SIGNED ) FROM tab2 AS cor0
----
1638
1701
2394

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - col2 * CAST ( - 63 AS INTEGER ) FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT ALL - col2 + - col2 AS col0 FROM tab0 cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT DISTINCT - cor0.col1 * col1 DIV - col0 - col2 FROM tab1 AS cor0
----
-56
-94
171

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT - cor0.col1 * col1 / - col0 - col2 FROM tab1 AS cor0
----
-56
-94
171

query I rowsort
SELECT ALL ( + 77 ) AS col2 FROM tab0 cor0
----
77
77
77

query I rowsort
SELECT DISTINCT - - cor2.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * - col1 col0 FROM tab2 AS cor0
----
-1209
-2301
-663

query I rowsort
SELECT ALL - cor0.col1 + + col2 * col0 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7133
SELECT - CAST( + col1 AS SIGNED ) * col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT - CAST ( + col1 AS INTEGER ) * col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 32 * cor0.col1 AS col2 FROM tab1 cor0
----
-320
-416
-832

onlyif mysql # use DIV operator for integer division
query I rowsort label-7135
SELECT ALL - - cor0.col0 * col2 + - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - - cor0.col0 * col2 + - col0 / - col0 AS col1 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT - + col0 + + 66 * - ( - col1 ) AS col2 FROM tab2 AS cor0
----
1043
2039
3816

query I rowsort
SELECT col0 + 55 * cor0.col2 FROM tab1 AS cor0
----
2973
3199
5360

query I rowsort
SELECT - + col1 * + cor0.col1 - - col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - col2 - + ( + col1 + col0 ) FROM tab1 AS cor0
----
-131
-189
-83

query I rowsort
SELECT + - col0 * + col1 + col2 * + col2 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT + - cor0.col2 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + ( tab1.col1 ) * + tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT ( 68 ) FROM tab0
----
68

query I rowsort
SELECT DISTINCT ( + tab2.col1 ) * col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT 19 - cor0.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 65326edc09511c7141b49fe9315f797e

query I rowsort
SELECT DISTINCT - ( - col0 ) * + ( col0 + col0 ) FROM tab1
----
12800
18
8192

query I rowsort
SELECT ALL - - 33 AS col1 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT ALL + ( + tab2.col2 ) FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - cor0.col1 + 22 * col1 FROM tab2 cor0
----
1239
357
651

query I rowsort
SELECT - col0 * - 34 FROM tab0 AS cor0
----
1190
3026
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col0 + + col1 * + col2 col0 FROM tab0 AS cor0
----
14849
167
3654

query I rowsort
SELECT + tab0.col2 * + col0 AS col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7154
SELECT + col2 DIV col0 col0 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7154
SELECT + col2 / col0 col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL + col2 * ( col0 ) FROM tab1
----
162
3648
7680

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 cor0, tab1 AS cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT DISTINCT col1 * col0 + 63 FROM tab0 AS cor0
----
2127
3458
8162

query I rowsort
SELECT ALL - + col1 + - 10 FROM tab0 AS cor0
----
-101
-107
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7159
SELECT + col0 * - 48 DIV + 48 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7159
SELECT + col0 * - 48 / + 48 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT DISTINCT ( + tab1.col0 ) * - col1 + CAST( - col0 AS SIGNED ) DIV col0 FROM tab1
----
-1041
-641
-79

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT ( + tab1.col0 ) * - col1 + CAST ( - col0 AS INTEGER ) / col0 FROM tab1
----
-1041
-641
-79

query I rowsort
SELECT + 31 + ( - col1 ) * ( + col1 ) FROM tab0 AS cor0
----
-7365
-8250
-9378

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + 75 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT + 8 * col0 AS col0 FROM tab0 AS cor0
----
192
280
712

onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT + col0 * 42 + + cor0.col2 * 90 DIV - col0 FROM tab2 AS cor0
----
-53
3246
3275

skipif mysql # not compatible
query I rowsort label-7165
SELECT + col0 * 42 + + cor0.col2 * 90 / - col0 FROM tab2 AS cor0
----
-53
3246
3275

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 FROM tab2, tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + ( col2 ) * col0 + + ( 86 * - col2 ) AS col1 FROM tab0 AS cor0
----
-2046
-51
246

query I rowsort
SELECT ALL - col0 * - col0 + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7169
SELECT col1 + - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT col1 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * - col1 + - col0 + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( - cor0.col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL ( + col0 ) * col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7174
SELECT DISTINCT - col2 + col2 * col0 + ( col1 * + CAST( - col0 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
-2600
-55
1621

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT - col2 + col2 * col0 + ( col1 * + CAST ( - col0 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
-2600
-55
1621

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab2 AS cor0
----
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7176
SELECT - col0 + col1 DIV col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-7176
SELECT - col0 + col1 / col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT ALL + + col2 + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col1 + - col2 * ( + 62 + - col1 ) AS col0 FROM tab0 cor0
----
-62
2287
706

query I rowsort
SELECT ALL 95 * + col1 FROM tab2
----
1615
2945
5605

query I rowsort
SELECT DISTINCT 69 FROM tab1, tab2 AS cor0
----
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7181
SELECT - CAST( NULL AS SIGNED ) - - col0 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT - CAST ( NULL AS INTEGER ) - - col0 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 7 - + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to abfe664562eab0556ce0aacac00f4dca

query I rowsort
SELECT ALL 41 + col1 AS col0 FROM tab1
----
51
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7184
SELECT ALL + 20 DIV 51 + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + 20 / 51 + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col0 col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - 41 + col2 FROM tab2 AS cor0
----
-14
-15
-3

query I rowsort
SELECT + - ( ( + col2 ) ) - - 95 FROM tab0 cor0
----
13
62
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7188
SELECT ALL - - CAST( - col0 AS SIGNED ) + col1 * + col1 FROM tab1 AS cor0
----
36
673
89

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL - - CAST ( - col0 AS INTEGER ) + col1 * + col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ALL - 75 + col2 * col0 AS col1 FROM tab0 cor0
----
-40
717
7223

query I rowsort
SELECT - - 37 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
11
24
27

query I rowsort
SELECT ALL - 86 + ( - cor0.col1 ) FROM tab2 AS cor0
----
-103
-117
-145

query I rowsort
SELECT ALL - ( col0 ) + - col0 AS col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT ALL cor0.col1 * cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

skipif