sqllogictest

Artifact [4661df3273]
Login

Artifact 4661df327330a9b2e7a13d15d6b11241d25e5771:


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 tab1.col0 + col1 * + col2 * + col1 FROM tab1
----
16304
36507
5764

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

query I rowsort
SELECT DISTINCT - col2 * col2 - - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1512
-2679
-7968

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6
SELECT + - col1 * + col2 + col0 + + col0 DIV cor0.col2 FROM tab0 AS cor0
----
-27
-2814
-7372

skipif mysql # not compatible
query I rowsort label-6
SELECT + - col1 * + col2 + col0 + + col0 / cor0.col2 FROM tab0 AS cor0
----
-27
-2814
-7372

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

query I rowsort
SELECT col1 + col2 * - col0 * + cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
-3201
-663936
-67940

query I rowsort
SELECT + + col1 * col1 + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
15005
8485
9410

query I rowsort
SELECT DISTINCT + col1 + tab0.col2 * + col0 * col1 + col0 AS col2 FROM tab0
----
3527
664298
68222

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

query I rowsort
SELECT + cor0.col0 * col0 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
1010
6530
9565

query I rowsort
SELECT + col1 * - col0 * col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT cor0.col1 * + col2 + col1 + col0 FROM tab1 AS cor0
----
1341
1433
644

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

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

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 ) OR NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - 33 * cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
-1782
-1881
-3168

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-19
SELECT ALL - - col0 / + col1 col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT 96 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e03080212e3345d8b37e64e3264019c4

query I rowsort
SELECT ALL - 27 * col1 FROM tab0 cor0
----
-2322
-2457
-2619

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

query I rowsort
SELECT DISTINCT - 80 + col1 FROM tab0 AS cor0
----
11
17
6

query I rowsort
SELECT + + cor0.col1 * 7 AS col2 FROM tab1 AS cor0
----
182
70
91

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

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

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

query I rowsort
SELECT + col1 * - 19 + 80 * - col0 AS col1 FROM tab2 AS cor0
----
-1149
-6643
-7361

query I rowsort
SELECT - 35 + tab1.col1 AS col2 FROM tab1
----
-22
-25
-9

query I rowsort
SELECT + - col1 - ( + col2 ) * - col2 * + col1 AS col0 FROM tab1 cor0
----
119795
32480
75790

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT - - cor0.col2 DIV + col0 - col1 FROM tab1 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-33
SELECT - - cor0.col2 / + col0 - col1 FROM tab1 AS cor0
----
-10
-12
-8

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 >= col0 + + col1
----

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

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

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

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

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

query I rowsort
SELECT col0 + col0 + col2 FROM tab0
----
260
71
81

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

query I rowsort
SELECT 31 * col0 FROM tab0 AS cor0
----
1085
2759
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-43
SELECT DISTINCT col0 * col0 - - col2 DIV - tab1.col1 FROM tab1
----
4091
6393
7

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT col0 * col0 - - col2 / - tab1.col1 FROM tab1
----
4091
6393
7

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 22 col2 FROM tab2 cor0
----
-572
-594
-836

query I rowsort
SELECT DISTINCT + col2 + - 81 FROM tab1 AS cor0
----
-24
-27
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 64 col1 FROM tab2 AS cor0
----
-14
-15
57

query I rowsort
SELECT ALL col2 * ( col2 ) AS col1 FROM tab2
----
1444
676
729

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

query I rowsort
SELECT + cor0.col1 * + 40 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT + col1 * 3 * + 74 + + col1 * col2 FROM tab0 AS cor0
----
21631
21930
27664

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

query I rowsort
SELECT - + col0 + 17 * col0 FROM tab2 AS cor0
----
112
1248
1264

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

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
40

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

query I rowsort
SELECT - 32 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT + 93 * col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1598
2914
5546

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

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 - col2 * col2 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT - col1 + - col0 * + 91 FROM tab2 AS cor0
----
-668
-7157
-7206

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

query I rowsort
SELECT + 10 AS col0 FROM tab1
----
10
10
10

query I rowsort
SELECT DISTINCT + + ( col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 75 + + col0 AS col0 FROM tab2 AS cor0
----
-68
3
4

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

query I rowsort
SELECT ALL - + col1 + - col1 AS col2 FROM tab1 cor0
----
-20
-26
-52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 55 + col1 col2 FROM tab1 AS cor0
----
65
68
81

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

query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 + - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1140
2496
2808

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

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

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

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

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

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

query I rowsort
SELECT ALL + cor0.col1 + + 89 * col0 AS col1 FROM tab0 AS cor0
----
2222
3212
8012

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-89
SELECT ALL - 80 + + col2 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
-73
-75
-78

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL - 80 + + col2 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
-73
-75
-78

query I rowsort
SELECT ALL + + 14 + - col2 FROM tab0 AS cor0
----
-19
-68
13

query I rowsort
SELECT DISTINCT - - col1 * - col0 * col0 - - col0 FROM tab0 AS cor0
----
-118790
-49512
-720722

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) <> NULL AND NULL IN ( col2 ) ) AND NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT ALL col1 * col0 + + col1 * + col0 AS col2 FROM tab2
----
2686
434
9204

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

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

skipif mysql # not compatible
query I rowsort label-95
SELECT - CAST ( + 46 AS INTEGER ) AS col1 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT 39 * + 14 FROM tab0
----
546
546
546

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

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

query I rowsort
SELECT col1 * - 26 + + col0 FROM tab2 AS cor0
----
-1456
-363
-799

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

query I rowsort
SELECT DISTINCT - 76 - - 83 FROM tab0 cor0
----
7

query I rowsort
SELECT - - 29 + + cor0.col1 FROM tab1 AS cor0
----
39
42
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * - 67 - + col1 * + col0 * + col2 col1 FROM tab0 AS cor0
----
-669746
-73740
-9023

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

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

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

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

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

query I rowsort
SELECT 11 * + col0 + - col0 - + col1 FROM tab0 AS cor0
----
154
253
799

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

query I rowsort
SELECT DISTINCT - col0 + - ( + col0 ) * 19 FROM tab1
----
-1280
-1600
-60

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-113
SELECT + - col2 + - cor0.col0 DIV 68 FROM tab1 AS cor0
----
-54
-57
-97

skipif mysql # not compatible
query I rowsort label-113
SELECT + - col2 + - cor0.col0 / 68 FROM tab1 AS cor0
----
-54
-57
-97

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

query I rowsort
SELECT - col1 + col2 * ( col1 * col0 ) FROM tab0 AS cor0
----
3298
664027
68026

query I rowsort
SELECT ALL - 74 + + col0 * col1 AS col1 FROM tab0
----
1990
3321
8025

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

query I rowsort
SELECT DISTINCT + col0 + - 61 + - col0 * col0 FROM tab2
----
-103
-6067
-6223

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

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

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT col0 + - CAST ( cor0.col1 AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - 47 AS col1 FROM tab1
----
-47
-47
-47

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

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

query I rowsort
SELECT ALL col1 * ( - 42 ) FROM tab0 cor0
----
-3612
-3822
-4074

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

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

query I rowsort
SELECT DISTINCT + col1 * + 22 * 26 + col0 FROM tab2 AS cor0
----
17739
33826
9803

query I rowsort
SELECT ALL col2 * 24 AS col0 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT - 19 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # use DIV operator for integer division
query I rowsort label-130
SELECT ALL col0 * 63 DIV + col0 AS col2 FROM tab0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL col0 * 63 / + col0 AS col2 FROM tab0
----
63
63
63

query I rowsort
SELECT - 49 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT ALL col0 * 89 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
596
6916
6993

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

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

query I rowsort
SELECT DISTINCT - + 69 + - col2 AS col0 FROM tab1 AS cor0
----
-123
-126
-165

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( + col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
1
33
82

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT - - CAST ( - cor0.col0 AS INTEGER ) + - col1 * + col1 AS col0 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL + + 35 + - ( - col1 ) FROM tab2 AS cor0
----
52
66
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 13 ) * - col2 col0 FROM tab2 AS cor0
----
-338
-351
-494

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

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

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

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

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL 88 / col1 + col0 FROM tab0 AS cor0
----
25
35
89

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

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

query I rowsort
SELECT DISTINCT + col1 + - col1 * - col2 * + col0 AS col0 FROM tab0
----
3492
664209
68198

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

query I rowsort
SELECT 83 * - col1 AS col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

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

skipif mysql # not compatible
query I rowsort label-152
SELECT CAST ( - ( col0 ) AS INTEGER ) * + col0 AS col2 FROM tab0
----
-1225
-576
-7921

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-154
SELECT 57 * col1 + + col1 DIV CAST( - col2 AS SIGNED ) FROM tab0
----
4900
5186
5432

skipif mysql # not compatible
query I rowsort label-154
SELECT 57 * col1 + + col1 / CAST ( - col2 AS INTEGER ) FROM tab0
----
4900
5186
5432

query I rowsort
SELECT DISTINCT - col2 * col1 - + 89 * - col2 AS col2 FROM tab0 AS cor0
----
-164
-8
99

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-158
SELECT - 36 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-158
SELECT - 36 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

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

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT col0 / + 78 FROM tab0
----
0
1

query I rowsort
SELECT - + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT col0 * + 1 + col2 * 11 * - col0 AS col0 FROM tab1
----
-1779
-40064
-84400

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

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

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

query I rowsort
SELECT - 82 - - col1 * col1 AS col1 FROM tab0 AS cor0
----
7314
8199
9327

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( col0 ) + 22 col1 FROM tab0
----
24
84
84

query I rowsort
SELECT DISTINCT ( col1 ) * 96 FROM tab1 AS cor0
----
1248
2496
960

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

query I rowsort
SELECT ALL - 5 * cor0.col0 + col1 * col2 FROM tab2 AS cor0
----
1144
251
802

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

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

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

query I rowsort
SELECT DISTINCT col0 * ( 44 * col1 ) - col1 FROM tab2
----
202429
59075
9517

query I rowsort
SELECT - cor0.col0 * 72 + + col2 FROM tab0 AS cor0
----
-1695
-2519
-6326

query I rowsort
SELECT - col0 - - 83 FROM tab2
----
4
5
76

query I rowsort
SELECT + col1 + col1 + + col1 FROM tab0
----
258
273
291

query I rowsort
SELECT - col1 + ( + col0 ) - - col0 FROM tab0
----
-27
-38
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-176
SELECT col2 + - col1 * col1 * col1 - - CAST( 86 AS SIGNED ) * col1 * col2 col1 FROM tab2
----
-73429
42218
50681

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-176
SELECT col2 + - col1 * col1 * col1 - - CAST ( 86 AS INTEGER ) * col1 * col2 col1 FROM tab2
----
-73429
42218
50681

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

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

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

query I rowsort
SELECT DISTINCT col0 * ( + col1 ) + 17 * col1 FROM tab0 cor0
----
3526
5044
9646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - 11 col2 FROM tab0 AS cor0
----
-12
-44
-93

query I rowsort
SELECT ALL - - cor0.col1 - 34 FROM tab1 AS cor0
----
-21
-24
-8

query I rowsort
SELECT ( ( col1 ) ) * - ( col1 ) * col2 + + col1 FROM tab1 AS cor0
----
-16211
-36478
-5690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + col1 col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + - col0 + ( col0 ) * col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT 60 * + 60 + - col1 FROM tab0 cor0
----
3503
3509
3514

query I rowsort
SELECT ALL - col0 * 54 * - col1 AS col1 FROM tab1 AS cor0
----
34560
4212
56160

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

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

query I rowsort
SELECT - ( - 43 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT - 35 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT ALL - 46 * col1 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
-3164
-4427
3112

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-193
SELECT + col2 + - col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-193
SELECT + col2 + - col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT ALL + 42 * - cor0.col0 + 24 FROM tab0 cor0
----
-1446
-3714
-984

query I rowsort
SELECT - 63 + cor0.col2 FROM tab0 AS cor0
----
-30
-62
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-196
SELECT ALL cor0.col1 DIV col2 + + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL cor0.col1 / col2 + + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - cor0.col1 * + col1 + col2 - - col0 AS col0 FROM tab1 AS cor0
----
-619
21
7

query I rowsort
SELECT ALL col0 * + col2 * ( cor0.col0 ) + + cor0.col0 FROM tab2 AS cor0
----
1330
158262
237237

onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT DISTINCT - col1 DIV 96 + 42 AS col2 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT - col1 / 96 + 42 AS col2 FROM tab2 cor0
----
42

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

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - + col2 / 8 FROM tab0 AS cor0
----
-10
-4
0

query I rowsort
SELECT - - col0 + 22 AS col2 FROM tab0 AS cor0
----
111
46
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * ( - col1 * - 58 ) + - col0 col1 FROM tab1 AS cor0
----
-37184
-4527
-60400

query I rowsort
SELECT ALL + + ( + 33 ) - - col2 FROM tab1 AS cor0
----
129
87
90

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

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

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

query I rowsort
SELECT - 99 FROM tab2, tab1 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + + col2 * - col2 col2 FROM tab1 AS cor0
----
-2822
-3155
-9122

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-208
SELECT DISTINCT + cor0.col2 * + ( col0 ) * CAST( 77 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
14553
156156
231154

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + cor0.col2 * + ( col0 ) * CAST ( 77 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
14553
156156
231154

query I rowsort
SELECT ALL + ( + col0 ) + + cor0.col2 + - ( - cor0.col0 ) * col1 AS col1 FROM tab0 cor0
----
2121
3431
8270

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-211
SELECT ALL - CAST( + 37 AS SIGNED ) * - col0 AS col1 FROM tab1 cor0
----
111
2368
2960

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - CAST ( + 37 AS INTEGER ) * - col0 AS col1 FROM tab1 cor0
----
111
2368
2960

query I rowsort
SELECT 82 * - col2 + col0 * col2 FROM tab2
----
-104
-114
-2025

query I rowsort
SELECT ALL ( - 58 * + col1 ) + - col2 FROM tab1
----
-1562
-637
-850

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

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + col0 * col2 + + CAST ( + col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-215
SELECT ALL + col1 DIV col1 + - 4 FROM tab0 cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + col1 / col1 + - 4 FROM tab0 cor0
----
-3
-3
-3

query I rowsort
SELECT + + 35 AS col2 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-217
SELECT DISTINCT - + col1 * + col0 + - CAST( 62 AS SIGNED ) FROM tab2 AS cor0
----
-1405
-279
-4664

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - + col1 * + col0 + - CAST ( 62 AS INTEGER ) FROM tab2 AS cor0
----
-1405
-279
-4664

query I rowsort
SELECT DISTINCT col0 * + col1 * ( + cor0.col1 * col2 ) + - col0 * 76 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
109293
1298240
364032

query I rowsort
SELECT ALL 72 * 52 * - col1 + col1 FROM tab0
----
-321898
-340613
-363071

query I rowsort
SELECT DISTINCT + col1 * - 57 FROM tab2
----
-1767
-3363
-969

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

query I rowsort
SELECT DISTINCT 79 * - col2 + col0 AS col2 FROM tab1
----
-4263
-4439
-7504

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-224
SELECT DISTINCT + tab2.col1 DIV 91 AS col0 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT + tab2.col1 / 91 AS col0 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT - ( col1 ) * col0 + col1 * + col2 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT - 81 + - col0 * + col2 FROM tab0
----
-116
-7379
-873

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

query I rowsort
SELECT DISTINCT 45 * + col0 FROM tab2
----
315
3510
3555

query I rowsort
SELECT + cor0.col0 * - 66 AS col1 FROM tab0 AS cor0
----
-1584
-2310
-5874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + col0 col0 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * cor0.col1 - + cor0.col1 col0 FROM tab0 AS cor0
----
1978
3298
8008

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT ALL - tab2.col2 DIV - col0 + - tab2.col0 * col2 + + tab2.col1 * + ( - col2 * + col1 + col0 * col2 ) AS col0 FROM tab2
----
-20274
27118
37050

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - tab2.col2 / - col0 + - tab2.col0 * col2 + + tab2.col1 * + ( - col2 * + col1 + col0 * col2 ) AS col0 FROM tab2
----
-20274
27118
37050

query I rowsort
SELECT + col1 * + tab0.col1 + 77 + col1 AS col0 FROM tab0
----
7559
8449
9583

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

query I rowsort
SELECT ALL 88 * + cor0.col1 + + col1 FROM tab2 cor0
----
1513
2759
5251

query I rowsort
SELECT + col2 * ( - col2 ) * - col1 FROM tab0
----
611884
93654
97

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

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

query I rowsort
SELECT col0 * - 91 * - col0 AS col0 FROM tab0
----
111475
52416
720811

query I rowsort
SELECT - ( - 49 ) * + col2 AS col0 FROM tab2 AS cor0
----
1274
1323
1862

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

query I rowsort
SELECT + 17 + 16 AS col0 FROM tab2 AS cor0
----
33
33
33

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

query I rowsort
SELECT DISTINCT - - ( 1 ) * - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL ( + ( col1 ) ) * 49 AS col2 FROM tab0 AS cor0
----
4214
4459
4753

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-247
SELECT DISTINCT - col0 * 12 + - col0 DIV - col1 AS col2 FROM tab0
----
-1068
-288
-420

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT - col0 * 12 + - col0 / - col1 AS col2 FROM tab0
----
-1068
-288
-420

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

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

query I rowsort
SELECT DISTINCT - col0 * col0 * + col1 + col0 FROM tab1
----
-231
-40896
-83120

query I rowsort
SELECT DISTINCT - 59 * 74 AS col2 FROM tab2, tab2 AS cor0
----
-4366

query I rowsort
SELECT cor0.col0 + + 25 * col2 FROM tab2 AS cor0
----
1029
682
728

query I rowsort
SELECT DISTINCT 21 + - col2 AS col0 FROM tab2 AS cor0
----
-17
-5
-6

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

query I rowsort
SELECT ALL + ( col2 ) * + col1 * ( + col2 * - col1 ) + col1 FROM tab2 AS cor0
----
-2353097
-417299
-700538

query I rowsort
SELECT ALL + 14 + col2 FROM tab2 cor0
----
40
41
52

query I rowsort
SELECT DISTINCT col1 * - 63 AS col1 FROM tab0 AS cor0
----
-5418
-5733
-6111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 + col1 col1 FROM tab2 AS cor0
----
126
84
98

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

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

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

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

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

query I rowsort
SELECT - cor0.col2 * cor0.col0 + - 50 FROM tab1 AS cor0
----
-212
-3698
-7730

query I rowsort
SELECT col0 - - col0 AS col1 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT 25 * + col1 - + col1 AS col2 FROM tab1 AS cor0
----
240
312
624

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

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

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

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

query I rowsort
SELECT + col0 + cor0.col2 + - 7 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-19809
-52063
-643

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * 36 FROM tab0 cor0
----
-1260
-3204
-864

query I rowsort
SELECT + - col1 * - col2 - + col1 * + col1 AS col0 FROM tab1 cor0
----
1079
470
728

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

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

query I rowsort
SELECT - col1 + - 14 FROM tab1 cor0
----
-24
-27
-40

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

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

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

query I rowsort
SELECT DISTINCT - col1 * ( + 20 ) + + col1 FROM tab1 AS cor0
----
-190
-247
-494

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

query I rowsort
SELECT + + 5 * + col0 * 1 AS col2 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT - - 73 AS col1 FROM tab0, tab2 cor0, tab1, tab1 AS cor1
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2

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

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

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

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

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

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

query I rowsort
SELECT col2 + col1 * 84 AS col1 FROM tab0
----
7257
7726
8149

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

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

query I rowsort
SELECT DISTINCT - col2 + + 69 + - col1 * - col0 FROM tab1
----
1013
652
93

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

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

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

query I rowsort
SELECT col1 * ( col0 * + cor0.col0 + + col2 ) AS col1 FROM tab2 AS cor0
----
106743
2356
360490

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

query I rowsort
SELECT + col0 + 82 * col2 * - col1 FROM tab0
----
-232692
-611795
-7919

query I rowsort
SELECT - + 99 + cor0.col0 AS col1 FROM tab2 cor0
----
-20
-21
-92

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

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

query I rowsort
SELECT ALL ( 27 ) * col2 AS col0 FROM tab1 cor0
----
1458
1539
2592

query I rowsort
SELECT ALL col2 * + 3 * + col1 FROM tab2 AS cor0
----
1938
2511
4602

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

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

query I rowsort
SELECT + 11 - col2 * + col2 * + col0 AS col2 FROM tab2
----
-114065
-5092
-52717

onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT DISTINCT + + 50 + cor0.col1 DIV col2 + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-7247
-740
112

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT + + 50 + cor0.col1 / col2 + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-7247
-740
112

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

query I rowsort
SELECT DISTINCT ( + col0 ) + + ( + 18 ) AS col0 FROM tab1 cor0
----
21
82
98

query I rowsort
SELECT + col1 * col0 - col2 * - ( + cor0.col1 ) FROM tab1 AS cor0
----
1210
1482
2288

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

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

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

query I rowsort
SELECT DISTINCT + - col0 + - col2 * - ( + cor0.col1 * - col0 ) - col1 FROM tab1 AS cor0
----
-36554
-4241
-99933

query I rowsort
SELECT - 36 + - col0 FROM tab2 AS cor0
----
-114
-115
-43

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

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

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

query I rowsort
SELECT ALL - cor0.col1 * + 0 * col1 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + cor0.col2 * - col2 * col2 + col1 * + 89 FROM tab1 AS cor0
----
-155150
-184303
-883579

query I rowsort
SELECT DISTINCT + - col2 * 14 FROM tab2 AS cor0
----
-364
-378
-532

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

query I rowsort
SELECT ALL + col1 * + 55 AS col2 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT - 70 * + col0 AS col0 FROM tab1
----
-210
-4480
-5600

query I rowsort
SELECT col0 * - col0 + col0 - col1 * + col1 * + col0 AS col0 FROM tab1
----
-10432
-19840
-2034

query I rowsort
SELECT ALL 29 + - col1 + - 22 * - col1 * col2 FROM tab0
----
164102
2066
62379

query I rowsort
SELECT 3 * + col2 + - tab2.col1 * 95 FROM tab2
----
-1501
-2864
-5527

query I rowsort
SELECT DISTINCT + 80 * col2 + + 88 FROM tab2
----
2168
2248
3128

query I rowsort
SELECT ALL + col1 + ( 38 ) AS col1 FROM tab1 AS cor0
----
48
51
64

query I rowsort
SELECT DISTINCT + - col1 * col1 + + 85 FROM tab0 AS cor0
----
-7311
-8196
-9324

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

query I rowsort
SELECT ALL col0 * ( - 18 ) * col2 FROM tab2 AS cor0
----
-3402
-36504
-54036

query I rowsort
SELECT ALL col0 + - col1 * + 7 AS col2 FROM tab1 AS cor0
----
-11
-179
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + ( - col1 * col1 ) col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT ALL - col1 * 2 - + 9 AS col2 FROM tab1 AS cor0
----
-29
-35
-61

query I rowsort
SELECT col1 * - 91 + ( col0 ) FROM tab0 AS cor0
----
-7802
-8192
-8792

query I rowsort
SELECT DISTINCT cor0.col2 + ( cor0.col2 + + col1 ) FROM tab0 AS cor0
----
152
255
99

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-339
SELECT DISTINCT + tab2.col2 + 67 DIV cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
28
29
31
32
33
40
43
44

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT + tab2.col2 + 67 / cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
28
29
31
32
33
40
43
44

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

query I rowsort
SELECT ALL - 87 - 34 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6c392c025e0783bc17c0d2ce80445d43

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

query I rowsort
SELECT - col2 - 64 FROM tab0 AS cor0
----
-146
-65
-97

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

query I rowsort
SELECT + 41 * cor0.col0 + col2 FROM tab2 AS cor0
----
314
3224
3277

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT + col0 * col2 + col2 DIV - 34 FROM tab2 AS cor0
----
189
2028
3001

skipif mysql # not compatible
query I rowsort label-348
SELECT + col0 * col2 + col2 / - 34 FROM tab2 AS cor0
----
189
2028
3001

query I rowsort
SELECT + ( + 84 ) + + col2 AS col2 FROM tab0 AS cor0
----
117
166
85

query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col1 * 61 FROM tab0
----
5246
5551
5917

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

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL - + col1 + + col2 / cor0.col0 AS col0 FROM tab0 cor0
----
-85
-91
-97

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

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

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

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

query I rowsort
SELECT 74 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT 20 + cor0.col1 DIV 9 FROM tab1 AS cor0
----
21
21
22

skipif mysql # not compatible
query I rowsort label-357
SELECT 20 + cor0.col1 / 9 FROM tab1 AS cor0
----
21
21
22

query I rowsort
SELECT - 14 * + col0 + - col1 FROM tab0
----
-1337
-422
-587

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

query I rowsort
SELECT + col0 + col1 * col2 + - 3 AS col1 FROM tab0
----
129
2859
7548

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

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

query I rowsort
SELECT ALL + 47 + col1 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT DISTINCT 88 * col0 - ( + col0 ) FROM tab0 AS cor0
----
2088
3045
7743

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

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

query I rowsort
SELECT DISTINCT + 73 + col1 * col0 FROM tab2
----
1416
290
4675

query I rowsort
SELECT + ( - 5 ) * col2 FROM tab1
----
-270
-285
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 46 col2 FROM tab2
----
1426
2714
782

query I rowsort
SELECT ALL + 35 * + col2 FROM tab1
----
1890
1995
3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-369
SELECT - tab2.col1 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-369
SELECT - tab2.col1 / 83 FROM tab2
----
0
0
0

query I rowsort
SELECT - 11 * col0 + - col0 * 92 + - cor0.col1 FROM tab1 AS cor0
----
-335
-6602
-8253

query I rowsort
SELECT - - 79 + + cor0.col1 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
112
58
83

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

query I rowsort
SELECT - 56 * 70 AS col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 0993e4bcdaa0e68e8fed4568af9b5d50

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

query I rowsort
SELECT - 44 + col1 + + 9 AS col2 FROM tab1 AS cor0
----
-22
-25
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-376
SELECT + + 27 * col2 / CAST( NULL AS SIGNED ) + col2 + 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-376
SELECT + + 27 * col2 / CAST ( NULL AS INTEGER ) + col2 + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 * + col0 + col2 AS col0 FROM tab2 cor0
----
2054
209
2092

onlyif mysql # use DIV operator for integer division
query I rowsort label-378
SELECT + + col1 DIV col2 + - col0 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-378
SELECT + + col1 / col2 + - col0 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - 7 * col0 AS col0 FROM tab1 AS cor0
----
-21
-448
-560

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

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

query I rowsort
SELECT 47 + - col1 FROM tab2 cor0
----
-12
16
30

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

skipif mysql # not compatible
query I rowsort label-382
SELECT + 19 + - col1 / ( col1 + + col2 ) FROM tab1 AS cor0
----
19
19
19

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

skipif mysql # not compatible
query I rowsort label-383
SELECT - - col1 + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col1 * - ( 11 ) FROM tab2 AS cor0
----
-187
-341
-649

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

query I rowsort
SELECT + col2 + 5 * - col0 AS col1 FROM tab1 AS cor0
----
-263
-304
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 + col1 + col0 col0 FROM tab1 AS cor0
----
127
146
82

query I rowsort
SELECT - 46 * col1 + col2 AS col0 FROM tab1 cor0
----
-1142
-403
-502

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

query I rowsort
SELECT DISTINCT + ( - 91 ) FROM tab2, tab2 AS cor0
----
-91

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

query I rowsort
SELECT DISTINCT - 73 * 47 + col0 * + col2 + - col1 AS col0 FROM tab0 cor0
----
-2725
-3493
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT ALL col2 DIV col2 - col0 * ( + col2 ) FROM tab0 AS cor0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL col2 / col2 - col0 * ( + col2 ) FROM tab0 AS cor0
----
-34
-7297
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 56 * - cor0.col2 col1 FROM tab0 cor0
----
-1848
-4592
-56

query I rowsort
SELECT ALL - 79 * + 31 FROM tab1 AS cor0
----
-2449
-2449
-2449

query I rowsort
SELECT + + 29 + cor0.col1 FROM tab0 AS cor0
----
115
120
126

query I rowsort
SELECT ALL 47 * + col1 AS col2 FROM tab0 AS cor0
----
4042
4277
4559

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

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

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

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

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

query I rowsort
SELECT ALL 4 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1339
-213
-4598

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

query I rowsort
SELECT 35 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

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

query I rowsort
SELECT DISTINCT + + 31 * - 86 FROM tab2 AS cor0
----
-2666

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

query I rowsort
SELECT ALL - + col1 + col2 * 17 - col1 FROM tab1 AS cor0
----
1606
866
949

query I rowsort
SELECT cor0.col2 + 34 FROM tab2, tab0 AS cor0
----
9 values hashing to 6cc954a4feb629cbf113eafb4297ab2a

query I rowsort
SELECT - + ( + 83 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

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

query I rowsort
SELECT DISTINCT + - 8 AS col1 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL + col0 + + 98 AS col0 FROM tab0 AS cor0
----
122
133
187

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

query I rowsort
SELECT DISTINCT col1 + + col1 + - ( 71 + + col2 ) * col2 FROM tab1
----
-16006
-6698
-7276

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

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + 28 / col1 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT ALL col2 * - col1 * 78 FROM tab2
----
-119652
-50388
-65286

query I rowsort
SELECT col2 + 7 * col0 FROM tab0
----
201
246
705

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

query I rowsort
SELECT DISTINCT col2 * 49 FROM tab0
----
1617
4018
49

query I rowsort
SELECT ALL tab2.col0 * col0 AS col1 FROM tab2
----
49
6084
6241

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

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

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

skipif mysql # not compatible
query I rowsort label-425
SELECT - - col0 + cor0.col2 / col0 AS col0 FROM tab0 cor0
----
25
35
89

query I rowsort
SELECT ALL - + col2 - - cor0.col0 * ( col1 + - 86 * ( col0 ) ) FROM tab1 AS cor0
----
-351673
-549456
-750

query I rowsort
SELECT ALL - + col2 + + col1 * + 22 FROM tab1 AS cor0
----
163
190
518

query I rowsort
SELECT DISTINCT col1 + 45 FROM tab0 AS cor0
----
131
136
142

query I rowsort
SELECT - + col1 + 86 * - col2 AS col1 FROM tab0 AS cor0
----
-183
-2924
-7143

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

query I rowsort
SELECT DISTINCT + - col0 + 26 * ( + col0 * col2 + col0 ) FROM tab2 AS cor0
----
5089
54678
80027

query I rowsort
SELECT + col2 * - col2 * - col0 + - col1 FROM tab1 AS cor0
----
207926
737267
8722

query I rowsort
SELECT ALL col1 * + 33 + - cor0.col2 FROM tab2 AS cor0
----
1921
523
996

query I rowsort
SELECT + ( col0 * + 3 ) FROM tab2
----
21
234
237

query I rowsort
SELECT col0 + - 72 AS col2 FROM tab1 AS cor0
----
-69
-8
8

query I rowsort
SELECT tab1.col1 * col1 + col1 + col2 * - col2 * 42 FROM tab1
----
-121770
-136348
-386890

query I rowsort
SELECT - 6 FROM tab1, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + 38 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2, tab2 AS cor1
----
243 values hashing to e7e29a35e9ea0bf90f319b5265e65a75

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

query I rowsort
SELECT + 93 + + col2 * + col1 AS col1 FROM tab1 cor0
----
1341
1497
663

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - col0 + + tab2.col0 * - ( col1 * + 61 ) FROM tab2
----
-13020
-276120
-80580

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 2 * 86 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
172

query I rowsort
SELECT DISTINCT col2 * + col0 + + 34 * + col0 FROM tab1
----
10400
264
5824

onlyif mysql # use DIV operator for integer division
query I rowsort label-454
SELECT DISTINCT - 8 * + col1 DIV - col1 FROM tab0 cor0
----
8

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT - 8 * + col1 / - col1 FROM tab0 cor0
----
8

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

query I rowsort
SELECT ( + col1 + col0 * col0 ) FROM tab2
----
6143
6258
80

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

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

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

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

query I rowsort
SELECT - col1 - ( col1 ) * col1 FROM tab2 AS cor0
----
-306
-3540
-992

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

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

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

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

query I rowsort
SELECT DISTINCT - 48 * col1 FROM tab2
----
-1488
-2832
-816

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

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

query I rowsort
SELECT DISTINCT ( + 95 ) FROM tab2
----
95

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

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

query I rowsort
SELECT + col0 + + 84 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7248
7733
8183

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-474
SELECT tab2.col0 * 13 + + col0 DIV + 88 FROM tab2
----
1014
1027
91

skipif mysql # not compatible
query I rowsort label-474
SELECT tab2.col0 * 13 + + col0 / + 88 FROM tab2
----
1014
1027
91

query I rowsort
SELECT ( - 66 ) + + col2 FROM tab2
----
-28
-39
-40

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

query I rowsort
SELECT ALL + 36 + 62 * - col1 AS col1 FROM tab1 AS cor0
----
-1576
-584
-770

query I rowsort
SELECT - + ( + ( col1 ) ) AS col2 FROM tab1 cor0
----
-10
-13
-26

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

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - CAST ( NULL AS INTEGER ) * 35 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + + CAST ( 92 AS INTEGER ) AS col0 FROM tab1 cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 col0 FROM tab0
----
119
173
98

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

query I rowsort
SELECT DISTINCT + ( 30 ) * col0 - ( col2 ) FROM tab2
----
183
2314
2332

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

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

query I rowsort
SELECT - col0 + + col2 * col1 + - tab1.col2 FROM tab1
----
1072
1347
449

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

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

query I rowsort
SELECT cor0.col2 * + 56 AS col0 FROM tab1 AS cor0
----
3024
3192
5376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-488
SELECT + CAST( 79 AS SIGNED ) * col0 FROM tab0
----
1896
2765
7031

skipif mysql # not compatible
query I rowsort label-488
SELECT + CAST ( 79 AS INTEGER ) * col0 FROM tab0
----
1896
2765
7031

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

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

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

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

query I rowsort
SELECT DISTINCT ( + tab2.col1 ) + - 52 FROM tab2
----
-21
-35
7

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

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

query I rowsort
SELECT ALL - col0 * + tab2.col0 * 88 AS col1 FROM tab2
----
-4312
-535392
-549208

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

query I rowsort
SELECT DISTINCT - - tab2.col0 AS col0 FROM tab2, tab0, tab0 cor0
----
7
78
79

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

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

query I rowsort
SELECT + + col2 * 71 * col2 FROM tab0 AS cor0
----
477404
71
77319

query I rowsort
SELECT col1 * 45 - ( - tab2.col2 ) FROM tab2
----
1422
2681
803

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + - CAST ( - cor0.col1 + + col1 AS REAL ) FROM tab1 AS cor0
----
10
13
26

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

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

query I rowsort
SELECT col1 + + 99 AS col0 FROM tab0
----
185
190
196

query I rowsort
SELECT + tab0.col0 - 19 AS col2 FROM tab0
----
16
5
70

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

query I rowsort
SELECT ALL col0 + 52 * col1 FROM tab2 AS cor0
----
1619
3146
963

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * + 54 * - col1 AS col0 FROM tab2 AS cor0
----
-11687
-248449
-72505

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

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

query I rowsort
SELECT 17 * + col0 AS col2 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT DISTINCT - col2 * 40 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT ALL - - col1 * + 4 FROM tab1 cor0
----
104
40
52

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

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

query I rowsort
SELECT ALL - col1 * + 2 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

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

query I rowsort
SELECT + - 52 * + 66 AS col1 FROM tab2 AS cor0
----
-3432
-3432
-3432

query I rowsort
SELECT DISTINCT + - 30 * 3 + - col1 AS col1 FROM tab0 AS cor0
----
-176
-181
-187

query I rowsort
SELECT DISTINCT + 26 * - cor0.col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-123
-2223
-944

query I rowsort
SELECT + 30 * + col0 FROM tab1 AS cor0
----
1920
2400
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-519
SELECT DISTINCT 19 * 65 + + col2 * ( cor0.col1 + col0 ) DIV 99 AS col1 FROM tab0 AS cor0
----
1236
1271
1384

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT 19 * 65 + + col2 * ( cor0.col1 + col0 ) / 99 AS col1 FROM tab0 AS cor0
----
1236
1271
1384

query I rowsort
SELECT col2 + ( cor0.col0 ) * 78 FROM tab0 cor0
----
1905
2731
7024

query I rowsort
SELECT DISTINCT 85 + + col0 + + col0 * - col2 AS col2 FROM tab2 cor0
----
-1865
-2838
-97

query I rowsort
SELECT - col0 * 62 FROM tab0 cor0
----
-1488
-2170
-5518

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

query I rowsort
SELECT 34 + col2 * col1 FROM tab1 AS cor0
----
1282
1438
604

query I rowsort
SELECT ALL - ( 66 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1584
-2310
-5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-526
SELECT + col0 DIV - cor0.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-526
SELECT + col0 / - cor0.col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 45 + + col0 FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT col1 * col2 + 81 FROM tab2 AS cor0
----
1615
727
918

query I rowsort
SELECT 82 + col0 AS col1 FROM tab0 AS cor0
----
106
117
171

query I rowsort
SELECT ALL - col1 * col0 + col0 * - col0 * col2 FROM tab0 AS cor0
----
-21072
-4620
-657621

query I rowsort
SELECT - col2 + + col2 * + 35 FROM tab1 AS cor0
----
1836
1938
3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * + col1 col0 FROM tab2 cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 * col1 col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL + 89 AS col0 FROM tab1 AS cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + + col2 col1 FROM tab1 AS cor0
----
-1152
-1350
-513

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

query I rowsort
SELECT - + 30 - + col0 FROM tab2 AS cor0
----
-108
-109
-37

query I rowsort
SELECT DISTINCT - + col2 * cor0.col0 * col0 + col2 * cor0.col0 FROM tab2 AS cor0
----
-1134
-156156
-234156

query I rowsort
SELECT + - col0 * + cor0.col0 + 96 FROM tab0 AS cor0
----
-1129
-480
-7825

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

query I rowsort
SELECT ALL + 40 * cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 91cd69233e45240c75dbd534f53ade33

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

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

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

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

query I rowsort
SELECT DISTINCT 76 + col1 FROM tab1
----
102
86
89

query I rowsort
SELECT ALL - 87 * 63 + col1 * + col1 AS col0 FROM tab2 cor0
----
-2000
-4520
-5192

query I rowsort
SELECT DISTINCT + ( - 52 ) * col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT - col0 + 70 FROM tab2 AS cor0
----
-8
-9
63

query I rowsort
SELECT - 84 - + col2 AS col1 FROM tab0 cor0
----
-117
-166
-85

query I rowsort
SELECT ALL - 32 * - cor0.col2 + col0 * ( - 47 * + col1 ) AS col2 FROM tab2 AS cor0
----
-215462
-61905
-9335

onlyif mysql # use DIV operator for integer division
query I rowsort label-550
SELECT DISTINCT + + col0 + col1 * col1 DIV - 3 + col2 AS col1 FROM tab2 AS cor0
----
-1056
-286
21

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT + + col0 + col1 * col1 / - 3 + col2 AS col1 FROM tab2 AS cor0
----
-1056
-286
21

query I rowsort
SELECT - 16 + + col2 + col0 FROM tab0
----
155
20
41

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT ( 66 ) * col1 DIV 43 AS col0 FROM tab1
----
15
19
39

skipif mysql # not compatible
query I rowsort label-553
SELECT ( 66 ) * col1 / 43 AS col0 FROM tab1
----
15
19
39

query I rowsort
SELECT DISTINCT - col2 + - 53 AS col0 FROM tab2 AS cor0
----
-79
-80
-91

query I rowsort
SELECT + col2 + 12 FROM tab1 cor0
----
108
66
69

query I rowsort
SELECT ALL - cor0.col1 * - col0 + col0 * 61 FROM tab1 AS cor0
----
261
4544
5920

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

query I rowsort
SELECT - - 65 * col0 + + col1 * ( col0 ) * col1 AS col0 FROM tab0 AS cor0
----
179064
331590
742794

query I rowsort
SELECT + + 16 * + col1 - + col2 FROM tab2 AS cor0
----
234
469
918

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 44 * col2 + + ( ( - cor0.col2 ) ) * CAST ( + 53 AS REAL ) FROM tab1 AS cor0
----
-486
-513
-864

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-567
SELECT ALL + col1 + 16 DIV col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL + col1 + 16 / col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - col0 + 2 * - 31 AS col1 FROM tab0 AS cor0
----
-151
-86
-97

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

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 * col0 + + col2 * - ( col2 ) + + cor0.col1 FROM tab0 cor0
----
3491
657485
67109

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + col0 + 28 FROM tab1
----
-23
12
35

query I rowsort
SELECT col0 * + 63 + col1 FROM tab0
----
1598
2302
5698

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

query I rowsort
SELECT col2 - + 62 AS col2 FROM tab0
----
-29
-61
20

query I rowsort
SELECT ALL tab1.col1 * - 32 * - tab1.col1 AS col0 FROM tab1
----
21632
3200
5408

query I rowsort
SELECT DISTINCT - col0 + + col1 * + 69 * col1 AS col1 FROM tab1 AS cor0
----
11581
46641
6836

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

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

query I rowsort
SELECT 54 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3456
-4320

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

query I rowsort
SELECT ALL 40 AS col0 FROM tab0
----
40
40
40

query I rowsort
SELECT + + col2 * - 92 FROM tab1 AS cor0
----
-4968
-5244
-8832

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

query I rowsort
SELECT ALL - col1 * - col1 * ( col2 * + col1 + + col0 * + tab2.col2 ) AS col1 FROM tab2
----
1054272
12399322
985986

query I rowsort
SELECT + - col0 + - col0 * col1 - col2 FROM tab2 AS cor0
----
-1460
-251
-4706

query I rowsort
SELECT DISTINCT - 52 + - col0 * - 61 AS col1 FROM tab1 AS cor0
----
131
3852
4828

query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 + - col0 * cor0.col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT - ( + col1 ) * + 82 AS col0 FROM tab0
----
-7052
-7462
-7954

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

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

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

query I rowsort
SELECT + col1 * 18 * - col0 + col1 FROM tab0 AS cor0
----
-145691
-37066
-61013

query I rowsort
SELECT - - col0 * ( - cor0.col0 * + col2 ) FROM tab2 AS cor0
----
-1323
-158184
-237158

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + col0 + col0 * col2 col1 FROM tab0
----
167
7478
902

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

query I rowsort
SELECT + cor0.col1 + 28 FROM tab2 AS cor0
----
45
59
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT - col0 * 44 + col1 DIV col0 FROM tab0 AS cor0
----
-1053
-1538
-3915

skipif mysql # not compatible
query I rowsort label-601
SELECT - col0 * 44 + col1 / col0 FROM tab0 AS cor0
----
-1053
-1538
-3915

query I rowsort
SELECT 14 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

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

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

query I rowsort
SELECT ALL + + 50 * col1 AS col2 FROM tab0 AS cor0
----
4300
4550
4850

query I rowsort
SELECT ALL + 96 FROM tab1 cor0
----
96
96
96

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

query I rowsort
SELECT ALL + col2 + + ( col2 * - cor0.col2 ) FROM tab1 AS cor0
----
-2862
-3192
-9120

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

query I rowsort
SELECT ALL - - col2 * 60 AS col1 FROM tab1 AS cor0
----
3240
3420
5760

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

query I rowsort
SELECT ALL + col1 * cor0.col2 + + 52 * + cor0.col2 FROM tab1 AS cor0
----
3534
4212
6240

query I rowsort
SELECT ALL + 81 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

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

query I rowsort
SELECT + 98 * ( - col1 ) * cor0.col2 + col0 AS col1 FROM tab0 cor0
----
-278100
-731187
-9471

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

skipif mysql # not compatible
query I rowsort label-615
SELECT + col0 * col2 + cor0.col2 * CAST ( col0 + cor0.col1 AS INTEGER ) FROM tab0 cor0
----
167
22058
4422

query I rowsort
SELECT ALL 86 + - col0 AS col0 FROM tab2 AS cor0
----
7
79
8

query I rowsort
SELECT 67 + 8 * col0 AS col2 FROM tab2 AS cor0
----
123
691
699

query I rowsort
SELECT - - ( - ( col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - - 84 + 17 * col2 AS col1 FROM tab2 AS cor0
----
526
543
730

query I rowsort
SELECT ( - 83 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT DISTINCT tab2.col0 * ( col0 + + col0 ) FROM tab2
----
12168
12482
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-622
SELECT + CAST( col2 + col2 AS SIGNED ) FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-622
SELECT + CAST ( col2 + col2 AS INTEGER ) FROM tab0
----
164
2
66

query I rowsort
SELECT + + 81 AS col2 FROM tab0 cor0
----
81
81
81

query I rowsort
SELECT - + col0 * col1 + - col2 * + ( 7 ) AS col2 FROM tab2 AS cor0
----
-1609
-406
-4784

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-625
SELECT + CAST ( + col1 AS INTEGER ) * col0 + - col0 col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT 25 + - 13 FROM tab0
----
12

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

query I rowsort
SELECT + ( - col1 * col1 ) + - col2 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT ALL + 20 * + 19 * col2 + col1 AS col1 FROM tab2
----
10291
14457
9939

query I rowsort
SELECT ALL + 16 + col1 FROM tab0 AS cor0
----
102
107
113

query I rowsort
SELECT + - 39 + 10 AS col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

query I rowsort
SELECT ALL + 40 + + col1 * col0 * col2 FROM tab2
----
119692
51074
5899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col2 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # use DIV operator for integer division
query I rowsort label-634
SELECT ALL - 95 + + col1 DIV 89 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-69
-82
-85

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL - 95 + + col1 / 89 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-69
-82
-85

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

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

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - col2 + - col0 / + col1 FROM tab1 AS cor0
----
-102
-54
-63

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * ( - 89 + col1 * cor0.col0 ) FROM tab0 AS cor0
----
115710
47400
712890

onlyif mysql # use DIV operator for integer division
query I rowsort label-642
SELECT + + col0 + - col0 DIV col1 FROM tab1 cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-642
SELECT + + col0 + - col0 / col1 FROM tab1 cor0
----
3
58
74

query I rowsort
SELECT - + 10 * col2 * cor0.col2 - col1 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
-25422
-33237
-97266

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

query I rowsort
SELECT - 17 * + col2 AS col2 FROM tab0 AS cor0
----
-1394
-17
-561

onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT DISTINCT + + col0 DIV 91 + + col1 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT + + col0 / 91 + + col1 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ( + ( col0 ) ) + - 57 - + 93 * col0 FROM tab2 AS cor0
----
-701
-7233
-7325

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

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

query I rowsort
SELECT DISTINCT 63 * 58 FROM tab0 AS cor0
----
3654

query I rowsort
SELECT ALL + + cor0.col1 + + 94 FROM tab2 cor0
----
111
125
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-652
SELECT col1 * col2 + col0 DIV - 53 AS col2 FROM tab0
----
2838
7461
97

skipif mysql # not compatible
query I rowsort label-652
SELECT col1 * col2 + col0 / - 53 AS col2 FROM tab0
----
2838
7461
97

query I rowsort
SELECT - 98 * - col2 + col2 FROM tab1
----
5346
5643
9504

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

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

query I rowsort
SELECT col2 + + 90 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-216
-5703
-7104

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

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

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

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

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

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

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

query I rowsort
SELECT - cor0.col2 + col1 * - 49 FROM tab2 cor0
----
-1546
-2917
-871

query I rowsort
SELECT + + col0 * - ( + col2 + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT + cor0.col1 * - 69 AS col1 FROM tab1 AS cor0
----
-1794
-690
-897

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

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

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

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

query I rowsort
SELECT + ( 18 * col0 ) + + ( + col0 + + col1 ) FROM tab1
----
1226
1533
83

query I rowsort
SELECT ALL 33 * - 53 FROM tab2 AS cor0
----
-1749
-1749
-1749

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-672
SELECT 41 * + col1 + + col0 DIV - col2 FROM tab0 AS cor0
----
3526
3730
3942

skipif mysql # not compatible
query I rowsort label-672
SELECT 41 * + col1 + + col0 / - col2 FROM tab0 AS cor0
----
3526
3730
3942

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-675
SELECT ALL - 94 * col0 DIV - col1 FROM tab1 AS cor0
----
10
578
601

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - 94 * col0 / - col1 FROM tab1 AS cor0
----
10
578
601

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + - cor0.col2 FROM tab1 cor0
----
0

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

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

query I rowsort
SELECT - 83 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT DISTINCT 82 * - col2 AS col1 FROM tab1 AS cor0
----
-4428
-4674
-7872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * cor0.col2 col1 FROM tab1 AS cor0
----
3618
3819
6432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-684
SELECT ALL CAST( + 26 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL CAST ( + 26 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

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

query I rowsort
SELECT DISTINCT 59 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
59

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

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

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

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

query I rowsort
SELECT 74 + + col1 FROM tab2 AS cor0
----
105
133
91

query I rowsort
SELECT + 17 * col1 AS col0 FROM tab2 AS cor0
----
1003
289
527

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

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

skipif mysql # not compatible
query I rowsort label-694
SELECT + col2 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL cor0.col0 + 96 FROM tab0 AS cor0
----
120
131
185

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-699
SELECT DISTINCT - col1 + - tab0.col0 * 61 DIV - col0 FROM tab0
----
-25
-30
-36

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT - col1 + - tab0.col0 * 61 / - col0 FROM tab0
----
-25
-30
-36

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + tab2.col0 * 65 * 68 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ffbc66707fdabe6715f9ba6a026c4b32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-702
SELECT ALL - CAST ( 82 AS INTEGER ) col1 FROM tab2
----
-82
-82
-82

query I rowsort
SELECT - col0 * col0 * + col0 AS col0 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT - + col2 + ( 85 ) FROM tab1 cor0
----
-11
28
31

query I rowsort
SELECT DISTINCT - 43 + - cor0.col2 FROM tab0, tab0 AS cor0
----
-125
-44
-76

query I rowsort
SELECT ALL tab1.col0 + + col2 * 35 + col2 AS col0 FROM tab1
----
1947
2116
3536

query I rowsort
SELECT - 50 * cor0.col0 FROM tab2 cor0
----
-350
-3900
-3950

query I rowsort
SELECT ALL + - col2 * 39 FROM tab1 AS cor0
----
-2106
-2223
-3744

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

query I rowsort
SELECT ALL + ( 89 ) FROM tab2
----
89
89
89

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

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

query I rowsort
SELECT DISTINCT + ( + ( + col0 ) ) + 12 FROM tab2 AS cor0
----
19
90
91

query I rowsort
SELECT ALL + - 87 FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT 4 * + col1 - 34 AS col2 FROM tab2
----
202
34
90

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 - col2 col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT + 89 + - col0 FROM tab0
----
0
54
65

query I rowsort
SELECT - col0 + - tab0.col0 * 24 - 32 AS col0 FROM tab0
----
-2257
-632
-907

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

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

query I rowsort
SELECT ALL + + ( + cor0.col2 ) * 74 * - col1 - col2 AS col0 FROM tab0 cor0
----
-210045
-552270
-7179

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-722
SELECT - col1 * ( 95 ) + col0 - CAST( + 61 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-10285
-3365
-6355

skipif mysql # not compatible
query I rowsort label-722
SELECT - col1 * ( 95 ) + col0 - CAST ( + 61 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-10285
-3365
-6355

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

query I rowsort
SELECT ALL - cor0.col0 * ( col2 * cor0.col2 ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + cor0.col0 * - 17 FROM tab1 cor0
----
-1088
-1360
-51

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

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

query I rowsort
SELECT ALL - col0 * 95 + col2 AS col2 FROM tab1 AS cor0
----
-231
-6023
-7504

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

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

query I rowsort
SELECT + + col2 * 85 - - col2 FROM tab2 AS cor0
----
2236
2322
3268

onlyif mysql # use DIV operator for integer division
query I rowsort label-730
SELECT + + col1 * - 28 DIV 4 + col1 * - col0 col0 FROM tab0 AS cor0
----
-2666
-4074
-8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-730
SELECT + + col1 * - 28 / 4 + col1 * - col0 col0 FROM tab0 AS cor0
----
-2666
-4074
-8736

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

query I rowsort
SELECT DISTINCT + col1 * - col2 * + 38 + col0 * col0 + col1 FROM tab2 AS cor0
----
-18290
-31726
-52149

query I rowsort
SELECT + col1 - - col0 * 93 AS col2 FROM tab2 cor0
----
682
7313
7364

query I rowsort
SELECT col0 * 29 - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-393
-4143
1014

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

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT + + cor0.col2 * CAST ( col2 AS INTEGER ) - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 28 FROM tab1
----
141
648
72

query I rowsort
SELECT col2 * 18 AS col0 FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT DISTINCT 79 * cor0.col2 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT - - 63 * ( col2 ) * - ( - col0 * - col1 ) + ( - col1 ) * + cor0.col0 FROM tab1 AS cor0
----
-2298880
-265434
-6290960

onlyif mysql # use DIV operator for integer division
query I rowsort label-740
SELECT + col0 * 72 DIV col2 FROM tab0
----
2520
52
78

skipif mysql # not compatible
query I rowsort label-740
SELECT + col0 * 72 / col2 FROM tab0
----
2520
52
78

query I rowsort
SELECT ALL col0 * + col0 + - 46 FROM tab1
----
-37
4050
6354

query I rowsort
SELECT ALL - col1 * + 71 + - col1 AS col0 FROM tab2
----
-1224
-2232
-4248

query I rowsort
SELECT ALL - col1 + 18 AS col0 FROM tab1
----
-8
5
8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT ALL col1 + + col1 + ( + col2 + col1 ) DIV - 80 FROM tab1 cor0
----
20
25
51

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL col1 + + col1 + ( + col2 + col1 ) / - 80 FROM tab1 cor0
----
20
25
51

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

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

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab1
----
28

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + + 99 + - col1 AS col2 FROM tab2 AS cor0
----
1029
3521
371

query I rowsort
SELECT ALL col1 * col0 - + 48 AS col1 FROM tab2 AS cor0
----
1295
169
4554

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

query I rowsort
SELECT DISTINCT - 7 + + cor0.col1 * 28 FROM tab1 AS cor0
----
273
357
721

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

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

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

query I rowsort
SELECT - 69 + - col1 * 78 FROM tab0 AS cor0
----
-6777
-7167
-7635

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * - cor0.col2 col1 FROM tab2 AS cor0
----
-2340
-2430
-3420

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-761
SELECT DISTINCT + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

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

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

query I rowsort
SELECT ALL - col0 * - col1 * - tab1.col1 + + col2 FROM tab1
----
-13424
-1974
-6343

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL <> NULL
----

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

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

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

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

query I rowsort
SELECT ALL 43 + col0 + - col1 * - col2 FROM tab1
----
1371
1450
677

query I rowsort
SELECT + col0 * col2 * + col2 + + col1 + + col2 FROM tab2
----
114131
5161
52813

query I rowsort
SELECT - - 66 * col0 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT + - col0 * col1 * + col1 - + col2 AS col1 FROM tab2 AS cor0
----
-22869
-271544
-6754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 + col0 col2 FROM tab1
----
138
173
32

query I rowsort
SELECT ( col2 ) * - col0 * - col1 AS col1 FROM tab0
----
3395
664118
68112

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

query I rowsort
SELECT - col0 + col1 * + col1 AS col1 FROM tab0 cor0
----
7372
8192
9374

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT ALL col2 + + col2 * col2 DIV tab0.col1 FROM tab0
----
1
155
45

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL col2 + + col2 * col2 / tab0.col1 FROM tab0
----
1
155
45

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col1 < col2
----
7
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE - col2 * - col0 > ( + col0 / col1 )
----
86
91
97

query I rowsort
SELECT tab1.col2 + + col2 + col1 * col0 AS col0 FROM tab1
----
1232
186
754

query I rowsort
SELECT ALL - col1 * col1 * + tab0.col0 + - col2 + col2 FROM tab0
----
-177504
-329315
-737009

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

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - col2 + + col2 - col1 / + col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 * col2 + tab1.col0 * - col0 AS col2 FROM tab1
----
-747
2985
3583

query I rowsort
SELECT col1 * col0 + col0 * + col1 * col1 + - col2 * col1 FROM tab1
----
13312
6470
702

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-788
SELECT + 48 / + col0 col0 FROM tab0 AS cor0
----
0
1
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-789
SELECT - - 39 / cor0.col2 col0 FROM tab0 AS cor0
----
0
1
39

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - tab0.col1
----

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT col2 * - col2 DIV + col2 + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-796
SELECT col2 * - col2 / + col2 + col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT + col2 + + col0 * col0 + col1 * col1 AS col0 FROM tab1
----
4253
6665
739

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

query I rowsort
SELECT ALL tab2.col0 FROM tab2 WHERE ( NULL ) <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-801
SELECT col1 DIV col0 + - col2 * col0 FROM tab2
----
-185
-2028
-3002

skipif mysql # not compatible
query I rowsort label-801
SELECT col1 / col0 + - col2 * col0 FROM tab2
----
-185
-2028
-3002

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT ALL + col2 + col1 + col0 DIV tab1.col2 AS col0 FROM tab1
----
109
68
80

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + col2 + col1 + col0 / tab1.col2 AS col0 FROM tab1
----
109
68
80

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT ALL - col0 * - col2 * - col0 + + col2 FROM tab2
----
-1296
-158158
-237120

onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT ALL - col0 DIV - col2 + + tab0.col1 * + col1 AS col0 FROM tab0
----
7396
8282
9444

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - col0 / - col2 + + tab0.col1 * + col1 AS col0 FROM tab0
----
7396
8282
9444

query I rowsort
SELECT DISTINCT - 3 + col2 AS col2 FROM tab2 AS cor0
----
23
24
35

query I rowsort
SELECT ALL + col2 * + col1 * 21 FROM tab1 AS cor0
----
11970
26208
29484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - cor0.col1 * - 64 col1 FROM tab0 cor0
----
5528
5913
6243

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

query I rowsort
SELECT ALL col1 + + tab1.col0 * + col2 - 45 FROM tab1
----
143
3613
7648

query I rowsort
SELECT DISTINCT col1 * tab1.col1 + - ( tab1.col1 ) FROM tab1
----
156
650
90

query I rowsort
SELECT ALL + 25 + col1 AS col0 FROM tab2
----
42
56
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 + - col0 - + 16 col2 FROM tab1
----
-125
-141
-64

query I rowsort
SELECT ALL + col2 + + tab1.col0 * - 89 AS col0 FROM tab1
----
-213
-5639
-7024

onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT DISTINCT col0 + col0 DIV + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT col0 + col0 / + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL + 55 * - col0 + + col0 AS col2 FROM tab2
----
-378
-4212
-4266

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

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

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

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

query I rowsort
SELECT ALL + 41 - - col2 * - col2 AS col1 FROM tab1
----
-2875
-3208
-9175

query I rowsort
SELECT - 18 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1602
-432
-630

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT col0 * cor0.col1 DIV + cor0.col1 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-828
SELECT col0 * cor0.col1 / + cor0.col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL 6 * 97 FROM tab1 AS cor0
----
582
582
582

query I rowsort
SELECT - - col1 * 38 FROM tab0 AS cor0
----
3268
3458
3686

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 + 59 FROM tab2
----
85
86
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-840
SELECT DISTINCT - 56 DIV + col0 FROM tab1
----
-18
0

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT - 56 / + col0 FROM tab1
----
-18
0

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

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) - col1 AS col1 FROM tab1 cor0
----
-20
-26
-52

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

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

query I rowsort
SELECT - col1 * 23 + cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4326
-607
-6699

query I rowsort
SELECT DISTINCT 72 + - col0 FROM tab2 AS cor0
----
-6
-7
65

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

query I rowsort
SELECT DISTINCT 29 * col2 + - col2 FROM tab0 AS cor0
----
2296
28
924

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

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

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

query I rowsort
SELECT ALL + 86 * - col0 AS col1 FROM tab1 AS cor0
----
-258
-5504
-6880

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

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

query I rowsort
SELECT + col0 + cor0.col2 + - col2 FROM tab0 AS cor0
----
24
35
89

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + + cor0.col1 * + col0 * col1 - + col2 AS col0 FROM tab1 AS cor0
----
13424
1974
6343

query I rowsort
SELECT ALL col2 * - 24 + + col1 * + col2 * - col1 FROM tab0 AS cor0
----
-244860
-681010
-9433

query I rowsort
SELECT ALL col0 * + 80 * col1 + col1 AS col0 FROM tab2 AS cor0
----
107457
17391
368219

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT DISTINCT + cor0.col1 * col2 + col0 DIV + col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT + cor0.col1 * col2 + col0 / + col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col2 + - 77 FROM tab2 AS cor0
----
-39
-50
-51

query I rowsort
SELECT ALL + col1 - ( 33 ) * + col1 AS col1 FROM tab1 cor0
----
-320
-416
-832

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 * - ( col1 ) col0 FROM tab2 AS cor0
----
-272
-3422
-930

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

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

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-877
SELECT col0 + - CAST( + 55 AS SIGNED ) FROM tab1
----
-52
25
9

skipif mysql # not compatible
query I rowsort label-877
SELECT col0 + - CAST ( + 55 AS INTEGER ) FROM tab1
----
-52
25
9

query I rowsort
SELECT - cor0.col0 + - 20 * col0 AS col1 FROM tab0 AS cor0
----
-1869
-504
-735

query I rowsort
SELECT - - col1 * col2 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT DISTINCT tab0.col1 * + col2 * + 79 AS col0 FROM tab0
----
224202
589498
7663

query I rowsort
SELECT 38 AS col2 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab0 cor0
----
69

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

query I rowsort
SELECT DISTINCT - - col2 * col0 + - 24 AS col2 FROM tab0 AS cor0
----
11
7274
768

query I rowsort
SELECT + 33 + col0 AS col2 FROM tab0 AS cor0
----
122
57
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-886
SELECT col1 DIV - 32 + + col0 * ( 78 ) AS col1 FROM tab2
----
546
6083
6162

skipif mysql # not compatible
query I rowsort label-886
SELECT col1 / - 32 + + col0 * ( 78 ) AS col1 FROM tab2
----
546
6083
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * + 26 col0 FROM tab2
----
260
260
260

query I rowsort
SELECT + ( 35 ) AS col0 FROM tab0
----
35
35
35

query I rowsort
SELECT + 24 + + col2 FROM tab0 AS cor0
----
106
25
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT col0 + - col0 DIV col0 + col1 FROM tab2
----
136
37
95

skipif mysql # not compatible
query I rowsort label-890
SELECT col0 + - col0 / col0 + col1 FROM tab2
----
136
37
95

query I rowsort
SELECT + 58 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL 61 + col2 AS col1 FROM tab1
----
115
118
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + 62 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT ALL - - 40 * col1 DIV - col1 + 36 - col0 * 22 FROM tab0 AS cor0
----
-1962
-532
-774

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL - - 40 * col1 / - col1 + 36 - col0 * 22 FROM tab0 AS cor0
----
-1962
-532
-774

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

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

query I rowsort
SELECT ALL col2 + + col1 * 92 FROM tab2 AS cor0
----
1602
2879
5454

query I rowsort
SELECT ALL + col1 + col2 * ( - col2 ) * tab1.col2 AS col0 FROM tab1
----
-157438
-185183
-884723

query I rowsort
SELECT 98 * col0 AS col1 FROM tab0
----
2352
3430
8722

query I rowsort
SELECT DISTINCT - col2 + + col1 * - col1 * col1 FROM tab1 cor0
----
-1057
-17630
-2293

query I rowsort
SELECT ALL + col1 * - 37 AS col0 FROM tab0 AS cor0
----
-3182
-3367
-3589

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

query I rowsort
SELECT - - col1 - col0 * cor0.col1 * - col1 AS col0 FROM tab2 cor0
----
22848
271577
6758

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

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

query I rowsort
SELECT + 67 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-909
SELECT - col2 * + CAST( col2 AS SIGNED ) FROM tab0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-909
SELECT - col2 * + CAST ( col2 AS INTEGER ) FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - + cor0.col2 - 27 * - 70 FROM tab1 AS cor0
----
1794
1833
1836

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

query I rowsort
SELECT ALL col2 - - 48 FROM tab2
----
74
75
86

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

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

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

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

query I rowsort
SELECT - col0 + - ( cor0.col1 + col1 ) AS col2 FROM tab0 AS cor0
----
-196
-229
-271

query I rowsort
SELECT - - col1 * + 33 + col0 AS col1 FROM tab0 AS cor0
----
2862
3092
3236

query I rowsort
SELECT - 25 * tab1.col0 * + col0 - col1 * - col0 FROM tab1
----
-101760
-147
-158960

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

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

query I rowsort
SELECT - cor0.col1 * + cor1.col2 FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab2 cor2
----
243 values hashing to d87575086a0471530ccbb6071ee922ae

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab0 cor1, tab2 cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0

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

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

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

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

query I rowsort
SELECT ALL - 44 * 70 * cor0.col0 FROM tab1 AS cor0
----
-197120
-246400
-9240

query I rowsort
SELECT DISTINCT col1 * col0 + col0 * 87 AS col2 FROM tab1 AS cor0
----
339
6208
8000

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

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

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

query I rowsort
SELECT - cor0.col0 + - 88 AS col0 FROM tab0 AS cor0
----
-112
-123
-177

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

query I rowsort
SELECT DISTINCT col1 * - 6 + - col2 AS col1 FROM tab0 AS cor0
----
-549
-583
-628

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

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

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

query I rowsort
SELECT ALL col1 - + 33 FROM tab0 AS cor0
----
53
58
64

query I rowsort
SELECT ALL - 42 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1492
604
795

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

query I rowsort
SELECT DISTINCT - 83 * - 76 + + col2 AS col0 FROM tab0 AS cor0
----
6309
6341
6390

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

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

query I rowsort
SELECT ALL - col1 + - col2 * - col1 * col2 FROM tab2 AS cor0
----
22568
24531
39825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-943
SELECT - cor0.col2 * - CAST( - 84 AS SIGNED ) + col0 * 62 AS col1 FROM tab0 AS cor0
----
-1284
-1370
2086

skipif mysql # not compatible
query I rowsort label-943
SELECT - cor0.col2 * - CAST ( - 84 AS INTEGER ) + col0 * 62 AS col1 FROM tab0 AS cor0
----
-1284
-1370
2086

query I rowsort
SELECT ALL - col2 + 53 * cor0.col2 FROM tab0 cor0
----
1716
4264
52

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

query I rowsort
SELECT ALL cor0.col2 + + 24 FROM tab2 AS cor0
----
50
51
62

query I rowsort
SELECT ALL + 66 * - col1 * + tab0.col0 FROM tab0
----
-136224
-224070
-534534

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

query I rowsort
SELECT - col1 * + 55 AS col2 FROM tab2 AS cor0
----
-1705
-3245
-935

query I rowsort
SELECT 4 * + cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d5aef25d30aedbb823ca2d4f7428d7e6

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

query I rowsort
SELECT - col2 * col0 - + 19 FROM tab2
----
-2047
-208
-3021

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-954
SELECT DISTINCT + col0 DIV - col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT + col0 / - col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT ALL + - 78 FROM tab0 cor0
----
-78
-78
-78

query I rowsort
SELECT - 30 + - col1 * - col2 FROM tab1 AS cor0
----
1218
1374
540

query I rowsort
SELECT 63 * tab2.col0 + - col0 FROM tab2
----
434
4836
4898

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

query I rowsort
SELECT 72 - + col1 AS col0 FROM tab2
----
13
41
55

query I rowsort
SELECT DISTINCT - col2 + col0 + 83 AS col2 FROM tab0
----
117
74
90

query I rowsort
SELECT ALL + + col1 + + col1 + + col0 AS col0 FROM tab1 AS cor0
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT - col0 DIV col1 - 22 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-168966
-3564
-80262

skipif mysql # not compatible
query I rowsort label-962
SELECT - col0 / col1 - 22 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-168966
-3564
-80262

query I rowsort
SELECT ALL 92 * - tab0.col1 * + 42 + col0 + col2 AS col1 FROM tab0
----
-332247
-351453
-374772

query I rowsort
SELECT cor1.col2 * 38 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5e453588f7c61688fcb7314d8e3eb01c

onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT col1 * col1 + 55 - - col0 DIV cor0.col0 AS col1 FROM tab1 cor0
----
156
225
732

skipif mysql # not compatible
query I rowsort label-965
SELECT col1 * col1 + 55 - - col0 / cor0.col0 AS col1 FROM tab1 cor0
----
156
225
732

query I rowsort
SELECT DISTINCT + 62 + - col0 * col2 + col1 FROM tab2 AS cor0
----
-1907
-2923
-96

query I rowsort
SELECT ALL col2 * col0 + 45 AS col2 FROM tab1 AS cor0
----
207
3693
7725

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-970
SELECT DISTINCT + col2 * ( 54 ) DIV col2 AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT + col2 * ( 54 ) / col2 AS col1 FROM tab1 AS cor0
----
54

query I rowsort
SELECT col0 * - cor0.col2 + + 55 FROM tab1 AS cor0
----
-107
-3593
-7625

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

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

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

query I rowsort
SELECT + cor0.col1 * + 40 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-2322
1051
332

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

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT col0 + - col2 * + CAST ( col1 AS INTEGER ) + - col1 FROM tab2
----
-1515
-584
-861

query I rowsort
SELECT DISTINCT + 56 + col2 AS col0 FROM tab0
----
138
57
89

query I rowsort
SELECT DISTINCT + col2 + + col1 * ( + col0 + - 98 ) AS col1 FROM tab1 cor0
----
-138
-2416
-283

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

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

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

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

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

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

query I rowsort
SELECT ALL col0 * - col1 + - col0 * tab0.col1 FROM tab0
----
-16198
-4128
-6790

query I rowsort
SELECT DISTINCT 37 * - col1 + col1 * ( - ( col2 ) ) FROM tab2
----
-1275
-1984
-3717

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-986
SELECT ALL - CAST( - 4 AS SIGNED ) + - cor0.col1 FROM tab0 cor0
----
-82
-87
-93

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL - CAST ( - 4 AS INTEGER ) + - cor0.col1 FROM tab0 cor0
----
-82
-87
-93

query I rowsort
SELECT DISTINCT + - cor0.col2 + 87 AS col1 FROM tab0 AS cor0
----
5
54
86

query I rowsort
SELECT ALL 24 * col2 + + col1 FROM tab1 AS cor0
----
1322
1378
2317

query I rowsort
SELECT ( - col1 ) + col2 * col0 - col2 FROM tab1 AS cor0
----
3581
7571
82

query I rowsort
SELECT col0 * + col2 + col0 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
15668
8212
9479

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-992
SELECT ALL + 77 DIV cor0.col1 col0 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-992
SELECT ALL + 77 / cor0.col1 col0 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT 57 * col0 * - col0 AS col2 FROM tab0
----
-32832
-451497
-69825

query I rowsort
SELECT DISTINCT - col1 + - 28 AS col2 FROM tab2
----
-45
-59
-87

query I rowsort
SELECT DISTINCT + ( - tab0.col2 ) * col1 + col0 * - col2 AS col2 FROM tab0
----
-132
-14760
-3630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-996
SELECT + + col0 + + col1 + - CAST( 84 AS SIGNED ) FROM tab0 AS cor0
----
26
48
96

skipif mysql # not compatible
query I rowsort label-996
SELECT + + col0 + + col1 + - CAST ( 84 AS INTEGER ) FROM tab0 AS cor0
----
26
48
96

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

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

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

query I rowsort
SELECT ALL - + col0 * 52 AS col2 FROM tab0 AS cor0
----
-1248
-1820
-4628

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

query I rowsort
SELECT ALL - col0 * ( - 88 ) AS col2 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT DISTINCT col2 + col2 + + 87 AS col1 FROM tab1 AS cor0
----
195
201
279

query I rowsort
SELECT ALL + col2 + + 1 FROM tab0 AS cor0
----
2
34
83

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

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

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

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

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

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

query I rowsort
SELECT ALL - + col2 * - ( - cor0.col2 ) - - col0 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab2 cor0
----
-7
-78
-79

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

query I rowsort
SELECT ALL 56 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1015
SELECT - CAST( col1 AS SIGNED ) col0 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1015
SELECT - CAST ( col1 AS INTEGER ) col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col2 * ( col2 * + col0 ) FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT + 0 * 8 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + 40 - - 21 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT ALL + 32 + + col0 AS col1 FROM tab0 AS cor0
----
121
56
67

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 + - ( - 28 ) * col2 AS col2 FROM tab0 cor0
----
-5002
-7
132

query I rowsort
SELECT 99 + col1 AS col1 FROM tab0 AS cor0
----
185
190
196

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + 3 + 42 AS col1 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT ALL 67 * - col1 - col2 FROM tab0 AS cor0
----
-5795
-6179
-6500

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

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT - col2 + + cor0.col2 / 62 AS col0 FROM tab0 cor0
----
-1
-33
-81

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

query I rowsort
SELECT DISTINCT - 72 + col2 AS col2 FROM tab2 AS cor0
----
-34
-45
-46

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

query I rowsort
SELECT DISTINCT + col1 * + 18 AS col0 FROM tab1 AS cor0
----
180
234
468

onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT DISTINCT - 49 DIV cor0.col0 AS col2 FROM tab0, tab1 cor0
----
-16
0

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT - 49 / cor0.col0 AS col2 FROM tab0, tab1 cor0
----
-16
0

query I rowsort
SELECT ALL + col2 - 97 AS col0 FROM tab2 AS cor0
----
-59
-70
-71

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

query I rowsort
SELECT - - 90 + col0 FROM tab0 AS cor0
----
114
125
179

query I rowsort
SELECT ALL + 44 * - col0 AS col1 FROM tab1 cor0
----
-132
-2816
-3520

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

query I rowsort
SELECT DISTINCT + - col0 + col0 * 16 AS col2 FROM tab2 AS cor0
----
105
1170
1185

onlyif mysql # use DIV operator for integer division
query I rowsort label-1038
SELECT ALL 50 DIV + col0 - col0 AS col0 FROM tab1 AS cor0
----
-64
-80
13

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL 50 / + col0 - col0 AS col0 FROM tab1 AS cor0
----
-64
-80
13

query I rowsort
SELECT + col0 + col0 + col0 AS col0 FROM tab0 AS cor0
----
105
267
72

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

query I rowsort
SELECT DISTINCT 65 + 13 * tab1.col2 AS col0 FROM tab1
----
1313
767
806

query I rowsort
SELECT - 50 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT 18 * cor0.col1 + col2 FROM tab0 AS cor0
----
1581
1720
1747

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1044
SELECT 4 + col2 * + col2 + + CAST( - tab1.col1 AS SIGNED ) * col0 AS col1 FROM tab1
----
2613
2842
8180

skipif mysql # not compatible
query I rowsort label-1044
SELECT 4 + col2 * + col2 + + CAST ( - tab1.col1 AS INTEGER ) * col0 AS col1 FROM tab1
----
2613
2842
8180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col0 ) col2 FROM tab0, tab0 cor0, tab2 cor1
----
24
35
89

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

query I rowsort
SELECT + 1 + + col2 AS col1 FROM tab1 AS cor0
----
55
58
97

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

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

query I rowsort
SELECT ALL col2 * - 64 + - col2 FROM tab2
----
-1690
-1755
-2470

query I rowsort
SELECT + 63 * cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 8b9f7aa976fe52d93a3cbca1e4e6d68c

query I rowsort
SELECT - cor1.col2 * cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 897f7ed602fc86364e8d474cab107f0c

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

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

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

query I rowsort
SELECT col1 + tab1.col1 - + 54 FROM tab1
----
-2
-28
-34

query I rowsort
SELECT ALL - col1 - 58 FROM tab1
----
-68
-71
-84

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1058
SELECT DISTINCT tab0.col0 DIV + 54 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT tab0.col0 / + 54 FROM tab0
----
0
1

query I rowsort
SELECT 30 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + tab2.col0 * - 83 FROM tab2
----
-581
-6474
-6557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * col1 + col2 col2 FROM tab2 AS cor0
----
242
399
734

query I rowsort
SELECT ALL col2 + - col2 + - col0 AS col1 FROM tab1 cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col0 * col1 col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

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

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL CAST ( - 51 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-51
-51

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

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

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

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

query I rowsort
SELECT + ( 74 ) + + col0 + col1 AS col2 FROM tab2 AS cor0
----
112
170
211

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

query I rowsort
SELECT ( - col0 ) + col1 + - col1 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1071
SELECT DISTINCT + 74 + + 55 DIV col2 FROM tab1
----
74
75

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT + 74 + + 55 / col2 FROM tab1
----
74
75

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

query I rowsort
SELECT DISTINCT - col2 * + 22 AS col2 FROM tab2 AS cor0
----
-572
-594
-836

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

query I rowsort
SELECT - 52 * - ( col0 ) - + col2 AS col1 FROM tab1 AS cor0
----
102
3271
4064

query I rowsort
SELECT ( col1 ) * cor0.col2 + col2 + 48 FROM tab2 AS cor0
----
1608
732
912

skipif mysql # not compatible
query I rowsort
SELECT ALL + - ( cor0.col2 ) + cor0.col2 * + CAST ( col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL 57 + col1 FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT ALL col0 * + 7 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT 41 * + 37 + col2 + + col0 FROM tab2 AS cor0
----
1551
1621
1634

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

query I rowsort
SELECT + + cor0.col0 - cor0.col2 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
208000
737360
8751

query I rowsort
SELECT ALL - col2 * col2 + + col0 * - col0 FROM tab2 AS cor0
----
-6760
-7685
-778

query I rowsort
SELECT DISTINCT - - 92 + - 82 * - col1 FROM tab2 AS cor0
----
1486
2634
4930

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
17
31
59

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

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

query I rowsort
SELECT + col1 * 76 FROM tab2
----
1292
2356
4484

query I rowsort
SELECT + cor0.col0 * cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1092
SELECT - 73 / col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - + 58 + col2 * + col0 + cor0.col1 FROM tab2 AS cor0
----
162
2029
2961

query I rowsort
SELECT + - 28 + + col1 FROM tab2 cor0
----
-11
3
31

query I rowsort
SELECT ALL - + col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + - col1 + + col2 * col0 * + col2 FROM tab0 cor0
----
-62
26050
598345

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

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

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

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

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

query I rowsort
SELECT ALL - col2 + + col1 + col1 FROM tab2
----
-4
35
92

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

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

query I rowsort
SELECT - col1 * col1 + + col0 AS col0 FROM tab0
----
-7372
-8192
-9374

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

query I rowsort
SELECT DISTINCT + col1 + + col1 * col2 * - col1 AS col2 FROM tab1
----
-16211
-36478
-5690

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

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

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

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

query I rowsort
SELECT col2 FROM tab1 WHERE - col0 NOT IN ( tab1.col0 )
----
54
57
96

query I rowsort
SELECT DISTINCT + col0 * - col2 - - col0 FROM tab2 WHERE NOT ( - col1 * col2 ) IN ( + col1 )
----
-182
-1950
-2923

query I rowsort
SELECT - col1 * + col2 - col0 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
-121186
-51680
-6696

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 * + col1 + + col0 col2 FROM tab2
----
11061
25954
90584

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1117
SELECT cor0.col0 + col2 * cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
162
35
36

skipif mysql # not compatible
query I rowsort label-1117
SELECT cor0.col0 + col2 * cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
162
35
36

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT col0 IN ( - col1 )
----
17
31
59

query I rowsort
SELECT col0 + - col1 + + col0 AS col0 FROM tab0 cor0 WHERE + col1 + col1 / col0 + + col0 / - col0 = NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col0 IN ( - col1 * tab2.col2 )
----
7
78
79

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

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

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

query I rowsort
SELECT col2 + - ( + col1 + + col1 ) AS col2 FROM tab2
----
-35
-92
4

query I rowsort
SELECT + - 71 + col1 FROM tab0 cor0
----
15
20
26

query I rowsort
SELECT DISTINCT 12 * col2 AS col0 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT DISTINCT - 22 * - col2 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT ( + col0 ) + col0 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1129
SELECT ALL col1 DIV 44 + + col0 FROM tab0
----
25
37
91

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL col1 / 44 + + col0 FROM tab0
----
25
37
91

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1131
SELECT DISTINCT col1 + tab2.col2 * col0 DIV col1 col2 FROM tab2
----
193
37
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT col1 + tab2.col2 * col0 / col1 col2 FROM tab2
----
193
37
93

query I rowsort
SELECT tab0.col0 + 37 FROM tab0
----
126
61
72

query I rowsort
SELECT col2 * 30 FROM tab0
----
2460
30
990

query I rowsort
SELECT tab1.col0 + col0 + 66 * + col0 FROM tab1
----
204
4352
5440

query I rowsort
SELECT DISTINCT - + col1 * col2 + col0 * - 28 AS col0 FROM tab1 AS cor0
----
-1488
-2362
-3488

query I rowsort
SELECT 80 * 63 + + col0 FROM tab1
----
5043
5104
5120

query I rowsort
SELECT DISTINCT 20 * 14 FROM tab1 AS cor0
----
280

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

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

query I rowsort
SELECT DISTINCT col2 + cor0.col2 * col1 * + ( + ( - col2 ) ) AS col0 FROM tab2 cor0
----
-22572
-24510
-39858

query I rowsort
SELECT + + ( + 1 ) * col2 AS col0 FROM tab1 AS cor0
----
54
57
96

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

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

query I rowsort
SELECT cor0.col0 + - 3 FROM tab0 AS cor0
----
21
32
86

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

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

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

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

query I rowsort
SELECT ALL 36 - - tab2.col0 * + ( col0 ) AS col0 FROM tab2
----
6120
6277
85

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

query I rowsort
SELECT 93 * - col1 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT DISTINCT - 72 + col2 AS col1 FROM tab0 AS cor0
----
-39
-71
10

query I rowsort
SELECT ALL + 73 * col0 FROM tab1 AS cor0
----
219
4672
5840

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

query I rowsort
SELECT DISTINCT - + cor1.col2 - 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-53
-54
-65

query I rowsort
SELECT col0 + 58 * - col0 + - col0 FROM tab2 AS cor0
----
-406
-4524
-4582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( col1 ) - + col2 col1 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT - + col2 + col0 * col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-129
-28
-405

skipif mysql # not compatible
query I rowsort label-1157
SELECT - + col2 + col0 * col0 / - col1 AS col0 FROM tab2 AS cor0
----
-129
-28
-405

query I rowsort
SELECT 31 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

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

query I rowsort
SELECT DISTINCT + col0 + 77 FROM tab1 AS cor0
----
141
157
80

query I rowsort
SELECT + + cor0.col2 * + col1 + cor0.col2 - col0 * + col1 * - col2 FROM tab2 AS cor0
----
121212
51718
6723

query I rowsort
SELECT cor0.col0 * + 40 - 85 * col2 AS col0 FROM tab1 AS cor0
----
-2285
-4470
-4960

query I rowsort
SELECT - tab1.col1 * - ( + 15 ) AS col2 FROM tab1
----
150
195
390

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

query I rowsort
SELECT DISTINCT col1 * + ( + 77 ) AS col0 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT + col0 * + col2 + 15 + + col2 AS col1 FROM tab2 AS cor0
----
2069
231
3055

query I rowsort
SELECT ALL - - col1 + - col1 * - 14 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT DISTINCT col1 + ( 71 ) AS col0 FROM tab2 AS cor0
----
102
130
88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col1 + col1 col2 FROM tab1 AS cor0
----
1261
1430
580

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

query I rowsort
SELECT ALL col0 * - col0 + col1 + col1 FROM tab2
----
-5966
-6207
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 48 col0 FROM tab1
----
2592
2736
4608

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT ALL cor0.col1 * + col1 + col1 DIV col2 FROM tab0 AS cor0
----
7398
8282
9506

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL cor0.col1 * + col1 + col1 / col2 FROM tab0 AS cor0
----
7398
8282
9506

query I rowsort
SELECT + col1 + - 71 AS col0 FROM tab0
----
15
20
26

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

query I rowsort
SELECT DISTINCT - 12 + cor0.col2 * 4 FROM tab1 AS cor0
----
204
216
372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - - 66 + col1 AS col2 FROM tab1 AS cor0
----
76
79
92

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * - col1 * - CAST ( ( col0 ) AS REAL ) AS col1 FROM tab1
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - col0 * - col0 col1 FROM tab2
----
6110
6279
76

query I rowsort
SELECT tab2.col2 * col1 + 87 * col0 FROM tab2
----
1446
7519
8320

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

query I rowsort
SELECT + tab1.col2 * 6 AS col2 FROM tab1
----
324
342
576

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

skipif mysql # not compatible
query I rowsort label-1189
SELECT col0 / 92 + + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT + tab0.col1 * tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1191
SELECT DISTINCT col2 + 89 DIV 72 AS col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT col2 + 89 / 72 AS col1 FROM tab1
----
55
58
97

query I rowsort
SELECT col1 * + 90 FROM tab2
----
1530
2790
5310

query I rowsort
SELECT DISTINCT col2 * + col2 + + 64 * - col1 AS col1 FROM tab0
----
-4415
-6207
900

query I rowsort
SELECT - 16 + - 83 * col1 FROM tab0 cor0
----
-7154
-7569
-8067

query I rowsort
SELECT ( col1 ) + + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
111
85
93

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

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 + 77 * 75 + - col1 FROM tab0
----
5775
5775
5775

query I rowsort
SELECT DISTINCT ( 2 ) FROM tab0, tab1 AS cor0
----
2

query I rowsort
SELECT + 89 FROM tab1, tab1 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

query I rowsort
SELECT DISTINCT + ( 19 * - col0 + - col2 * col0 ) FROM tab1
----
-219
-4864
-9200

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

query I rowsort
SELECT DISTINCT - + col2 + 27 FROM tab2 AS cor0
----
-11
0
1

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

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

query I rowsort
SELECT ALL 39 + - col0 FROM tab0 AS cor0
----
-50
15
4

query I rowsort
SELECT DISTINCT + + col2 - - 53 FROM tab1 AS cor0
----
107
110
149

query I rowsort
SELECT ALL + col1 * - col1 - + col0 * 78 AS col1 FROM tab0 AS cor0
----
-12139
-15223
-9268

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

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

query I rowsort
SELECT + 7 * - col0 - - col0 FROM tab0 cor0
----
-144
-210
-534

query I rowsort
SELECT - col0 + 22 - - tab2.col2 FROM tab2
----
-19
-30
42

query I rowsort
SELECT - 33 * - col1 + + 83 FROM tab1 AS cor0
----
413
512
941

query I rowsort
SELECT - + col0 + col1 * 20 FROM tab0 AS cor0
----
1696
1731
1905

query I rowsort
SELECT ALL - 4 * col2 FROM tab1 AS cor0
----
-216
-228
-384

onlyif mysql # use DIV operator for integer division
query I rowsort label-1216
SELECT + 19 DIV col1 + CAST( col2 AS SIGNED ) * col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

skipif mysql # not compatible
query I rowsort label-1216
SELECT + 19 / col1 + CAST ( col2 AS INTEGER ) * col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT - 2 + + col0 * col0 FROM tab2 AS cor0
----
47
6082
6239

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

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

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

skipif mysql # not compatible
query I rowsort label-1220
SELECT - CAST ( NULL AS INTEGER ) * 67 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

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

query I rowsort
SELECT ALL + + 34 AS col2 FROM tab1 AS cor0
----
34
34
34

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

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

query I rowsort
SELECT DISTINCT - - col2 + 42 AS col2 FROM tab0 AS cor0
----
124
43
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1228
SELECT ALL col2 + CAST( 47 + col0 * 81 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
344
5288
6623

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL col2 + CAST ( 47 + col0 * 81 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
344
5288
6623

query I rowsort
SELECT - col2 * - 29 + col2 FROM tab0 AS cor0
----
2460
30
990

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

skipif mysql # not compatible
query I rowsort label-1230
SELECT - col0 + CAST ( col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
576
75
960

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 15 col2 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT ALL cor0.col1 * - 2 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col0 * col0 col1 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT col0 * - cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT col0 + tab2.col2 - - 23 AS col0 FROM tab2
----
127
140
57

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

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

query I rowsort
SELECT ALL - - col2 + 30 FROM tab1 AS cor0
----
126
84
87

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

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

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

query I rowsort
SELECT + cor0.col1 * - 70 AS col1 FROM tab0 AS cor0
----
-6020
-6370
-6790

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

query I rowsort
SELECT DISTINCT - - col0 * - 54 + col0 FROM tab2 cor0
----
-371
-4134
-4187

query I rowsort
SELECT DISTINCT col0 + - 87 * col1 FROM tab1 AS cor0
----
-1051
-2259
-806

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

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

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

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

query I rowsort
SELECT col0 + col2 * - col0 + + col1 FROM tab2
----
-151
-1891
-2906

query I rowsort
SELECT DISTINCT col1 + + col2 * - tab2.col2 * + col0 AS col2 FROM tab2
----
-114059
-5072
-52669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * + col2 col0 FROM tab0
----
-1065
-6635
34

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 * col2 ) BETWEEN col0 * - col2 AND - col0 + col0 * col0
----
3
26
54
80
13
96

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

query I rowsort
SELECT + + col1 + cor0.col0 * 86 FROM tab1 AS cor0
----
284
5514
6893

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

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

query I rowsort
SELECT tab2.col2 + col2 * + col2 * col1 FROM tab2
----
22626
24586
39910

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

query I rowsort
SELECT 10 * + col0 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
32

query I rowsort
SELECT ALL - + 33 + col1 FROM tab0 AS cor0
----
53
58
64

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

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

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT - col2 / col1 + + col0 FROM tab1 AS cor0
----
1
59
73

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - ( 5 ) AS col0 FROM tab1 AS cor0
----
-130
-50
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1274
SELECT DISTINCT col1 DIV 35 + - 11 * + col2 AS col1 FROM tab0 AS cor0
----
-361
-9
-900

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT col1 / 35 + - 11 * + col2 AS col1 FROM tab0 AS cor0
----
-361
-9
-900

query I rowsort
SELECT - ( + 94 ) FROM tab1, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT col1 * 92 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT - - col1 * col2 * ( col0 ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + col0 * 37 FROM tab0 AS cor0
----
1295
3293
888

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

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

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

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

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to 4b145ce61881e246723968d1ac787ac2

query I rowsort
SELECT DISTINCT - - col1 * + col0 + cor0.col0 * + ( col1 ) + - col0 FROM tab1 AS cor0
----
1216
153
2000

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

query I rowsort
SELECT DISTINCT 12 * col0 AS col1 FROM tab0 cor0
----
1068
288
420

query I rowsort
SELECT DISTINCT ( col1 ) + col0 * 81 FROM tab1 AS cor0
----
269
5194
6493

query I rowsort
SELECT ALL - 69 * 91 * - col1 FROM tab1 AS cor0
----
163254
62790
81627

query I rowsort
SELECT ALL + col1 * - col1 + col2 + col2 FROM tab1 AS cor0
----
-568
14
23

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

query I rowsort
SELECT DISTINCT - + 89 * col2 AS col2 FROM tab2 AS cor0
----
-2314
-2403
-3382

query I rowsort
SELECT ALL - ( cor0.col0 ) * 2 + + ( - col2 ) AS col2 FROM tab0 cor0
----
-260
-71
-81

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

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + cor0.col1 + + cor0.col0 / col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT + + 92 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT 60 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 * + col0 col0 FROM tab1
----
36480
4212
99840

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

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

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

query I rowsort
SELECT - cor0.col1 * + 93 * + col0 + + col0 * + ( + cor0.col0 ) * cor0.col1 AS col0 FROM tab1 cor0
----
-13520
-18560
-7020

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + 55 + cor0.col0 AS col2 FROM tab2 AS cor0
----
133
134
62

query I rowsort
SELECT ( 11 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT + 13 + cor0.col2 AS col2 FROM tab0 cor0
----
14
46
95

query I rowsort
SELECT DISTINCT + 64 + col2 FROM tab1 AS cor0
----
118
121
160

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1307
SELECT DISTINCT - - col1 * + col0 * + 71 + + 76 DIV cor0.col1 col1 FROM tab2 AS cor0
----
15409
326743
95357

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT - - col1 * + col0 * + 71 + + 76 / cor0.col1 col1 FROM tab2 AS cor0
----
15409
326743
95357

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1309
SELECT DISTINCT - 96 DIV + col2 + ( + 84 ) AS col1 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT - 96 / + col2 + ( + 84 ) AS col1 FROM tab1
----
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1310
SELECT DISTINCT col0 + col2 * CAST( 60 AS SIGNED ) FROM tab0
----
2004
5009
95

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT col0 + col2 * CAST ( 60 AS INTEGER ) FROM tab0
----
2004
5009
95

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

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

query I rowsort
SELECT - 77 * + col2 + + col2 + col1 * col1 FROM tab2
----
-1091
-2599
1505

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT + col1 + + CAST ( - col2 AS INTEGER ) * - col0 - + col2 * - col2 FROM tab0 AS cor0
----
133
14113
1967

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

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

query I rowsort
SELECT 94 + col2 FROM tab0
----
127
176
95

query I rowsort
SELECT DISTINCT col1 * tab0.col0 + + col1 FROM tab0
----
2150
3492
8190

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

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

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

query I rowsort
SELECT col2 - 22 AS col2 FROM tab0 AS cor0
----
-21
11
60

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1324
SELECT - col0 * 55 DIV + col1 AS col2 FROM tab1
----
-338
-352
-6

skipif mysql # not compatible
query I rowsort label-1324
SELECT - col0 * 55 / + col1 AS col2 FROM tab1
----
-338
-352
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1325
SELECT + tab0.col1 DIV 62 + col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1325
SELECT + tab0.col1 / 62 + col0 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL col2 - + ( 92 + col0 ) FROM tab2
----
-133
-144
-72

query I rowsort
SELECT ALL col1 * col0 * - col0 + col2 - + col0 AS col2 FROM tab2
----
-106138
-1499
-359008

query I rowsort
SELECT ALL - col1 - ( - 49 ) AS col0 FROM tab1
----
23
36
39

query I rowsort
SELECT DISTINCT col1 - 4 * - col1 AS col0 FROM tab0
----
430
455
485

onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT col1 DIV + col0 + - col0 * - tab2.col0 * + ( 34 ) + - tab2.col2 * - col0 FROM tab2
----
1859
208884
215196

skipif mysql # not compatible
query I rowsort label-1330
SELECT col1 / + col0 + - col0 * - tab2.col0 * + ( 34 ) + - tab2.col2 * - col0 FROM tab2
----
1859
208884
215196

query I rowsort
SELECT 48 * col2 AS col0 FROM tab0
----
1584
3936
48

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

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

query I rowsort
SELECT ALL col1 + - 4 + tab0.col2 AS col1 FROM tab0
----
115
169
94

query I rowsort
SELECT ( - 36 ) - + col1 FROM tab0
----
-122
-127
-133

query I rowsort
SELECT 38 * - 14 FROM tab1
----
-532
-532
-532

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

query I rowsort
SELECT 97 * col0 FROM tab0 AS cor0
----
2328
3395
8633

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

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

query I rowsort
SELECT DISTINCT 24 * - col1 AS col0 FROM tab1
----
-240
-312
-624

query I rowsort
SELECT ( 94 ) + + col2 AS col2 FROM tab0
----
127
176
95

query I rowsort
SELECT + col1 * 20 * + col1 + 66 * tab0.col2 * + tab0.col2 FROM tab0
----
188246
219794
609404

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

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

query I rowsort
SELECT DISTINCT + col2 + 50 FROM tab2 AS cor0
----
76
77
88

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

query I rowsort
SELECT DISTINCT 36 + - 77 * col1 FROM tab2 AS cor0
----
-1273
-2351
-4507

query I rowsort
SELECT + 85 * col1 AS col0 FROM tab1 AS cor0
----
1105
2210
850

query I rowsort
SELECT ALL + - 31 + col2 * col1 FROM tab0 AS cor0
----
2807
66
7431

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

query I rowsort
SELECT + - col2 + col2 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
193
2891
7471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col2 - - col2 col0 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-1354
SELECT + + col2 + - col2 DIV col0 + - col1 FROM tab1 AS cor0
----
10
47
82

skipif mysql # not compatible
query I rowsort label-1354
SELECT + + col2 + - col2 / col0 + - col1 FROM tab1 AS cor0
----
10
47
82

query I rowsort
SELECT ALL - 81 * col2 FROM tab0 AS cor0
----
-2673
-6642
-81

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

query I rowsort
SELECT DISTINCT - 83 * + col1 AS col1 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT + - 33 * - col2 AS col2 FROM tab0 cor0
----
1089
2706
33

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

query I rowsort
SELECT + ( 3 * - col1 ) AS col2 FROM tab2
----
-177
-51
-93

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

query I rowsort
SELECT ALL col1 - + col0 * - col0 AS col2 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL - col2 * - 49 - + col1 FROM tab0
----
-48
1531
3927

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

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

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

query I rowsort
SELECT DISTINCT - col1 * 24 + - 91 * col1 AS col0 FROM tab1 AS cor0
----
-1150
-1495
-2990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 22 col2 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT ALL col0 * + col0 - - 51 FROM tab2 AS cor0
----
100
6135
6292

query I rowsort
SELECT DISTINCT + col2 + + 36 AS col0 FROM tab1 AS cor0
----
132
90
93

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

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

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

query I rowsort
SELECT DISTINCT col1 * 47 + - col1 FROM tab1 AS cor0
----
1196
460
598

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

query I rowsort
SELECT DISTINCT - + 74 + 26 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT + col0 * - col0 - col1 AS col2 FROM tab2
----
-6143
-6258
-80

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

query I rowsort
SELECT - 46 * - 58 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1bddc79ad1e0e3c8fcc0681ec8508967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 + + col0 * + col2 - + col0 * ( col2 + ( - col0 ) ) * col0 col0 FROM tab2 AS cor0
----
-838
258836
318349

query I rowsort
SELECT + - 11 * 9 + col1 AS col1 FROM tab2 AS cor0
----
-40
-68
-82

query I rowsort
SELECT ALL + - cor0.col1 - col1 * col1 * - 31 FROM tab2 AS cor0
----
107852
29760
8942

query I rowsort
SELECT ALL + ( col0 ) + - ( 98 + col0 ) FROM tab0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT 42 + 61 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
103

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1384
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 4 - col0 FROM tab0 AS cor0
----
-20
-31
-85

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

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

query I rowsort
SELECT - col0 + col1 * + ( col0 ) + col2 FROM tab1
----
1056
129
633

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1390
SELECT + + col0 + - col2 DIV + 12 AS col0 FROM tab0 AS cor0
----
22
35
83

skipif mysql # not compatible
query I rowsort label-1390
SELECT + + col0 + - col2 / + 12 AS col0 FROM tab0 AS cor0
----
22
35
83

query I rowsort
SELECT ALL + col2 - + 45 * + col2 FROM tab2 AS cor0
----
-1144
-1188
-1672

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

query I rowsort
SELECT DISTINCT + + col0 * col0 * - cor0.col2 + cor0.col2 AS col1 FROM tab1 cor0
----
-233415
-432
-614304

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

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

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

query I rowsort
SELECT - col1 + + col2 + col2 * 36 FROM tab1
----
1972
2099
3539

query I rowsort
SELECT ( - col0 ) * + 12 FROM tab2
----
-84
-936
-948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 - col2 col1 FROM tab1 AS cor0
----
-30
-33
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1399
SELECT DISTINCT 42 DIV 85 FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT 42 / 85 FROM tab0, tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col1 + + 62 * col1 * col0 FROM tab1 AS cor0
----
39670
4810
64467

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

query I rowsort
SELECT - 27 AS col2 FROM tab0 AS cor0
----
-27
-27
-27

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

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

query I rowsort
SELECT 76 * cor0.col2 AS col1 FROM tab1 cor0
----
4104
4332
7296

query I rowsort
SELECT 62 + cor0.col1 AS col1 FROM tab1 AS cor0
----
72
75
88

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1408
SELECT ALL col1 + - 39 DIV col1 AS col2 FROM tab1 AS cor0
----
10
25
7

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL col1 + - 39 / col1 AS col2 FROM tab1 AS cor0
----
10
25
7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1410
SELECT DISTINCT + 76 DIV - col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT + 76 / - col1 FROM tab2 AS cor0
----
-1
-2
-4

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

query I rowsort
SELECT ALL + + col2 * + col1 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
14924
194
5676

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

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

query I rowsort
SELECT DISTINCT - + col2 + + cor0.col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2888
3202
9133

query I rowsort
SELECT ALL + + col1 - + ( + 89 + col1 ) * - ( - col2 + col1 ) AS col0 FROM tab1 AS cor0
----
-3194
-4643
-8453

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 71 col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 cor2
----
243 values hashing to dba0629212dd6bf03c2834a27d0b07fb

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

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + col2 * - ( - col2 ) / - col2 AS col2 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT + col0 DIV 64 + + col2 AS col1 FROM tab1 AS cor0
----
54
58
97

skipif mysql # not compatible
query I rowsort label-1423
SELECT + col0 / 64 + + col2 AS col1 FROM tab1 AS cor0
----
54
58
97

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

skipif mysql # not compatible
query I rowsort label-1424
SELECT col2 + CAST ( col1 + - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + - col2 * + 69 * col1 + - col0 AS col0 FROM tab1 AS cor0
----
-39394
-86192
-96879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + 39 + + 33 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1428
SELECT - col0 DIV col0 - - ( col1 + - col0 ) * col2 FROM tab0
----
163
2045
61

skipif mysql # not compatible
query I rowsort label-1428
SELECT - col0 / col0 - - ( col1 + - col0 ) * col2 FROM tab0
----
163
2045
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1429
SELECT + - col2 + col0 DIV - 43 AS col2 FROM tab2 AS cor0
----
-27
-27
-39

skipif mysql # not compatible
query I rowsort label-1429
SELECT + - col2 + col0 / - 43 AS col2 FROM tab2 AS cor0
----
-27
-27
-39

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

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

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

query I rowsort
SELECT DISTINCT 30 * - col1 * - 2 FROM tab0 AS cor0
----
5160
5460
5820

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

skipif mysql # not compatible
query I rowsort label-1433
SELECT + 1 * col0 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-2
-62
-62

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

query I rowsort
SELECT DISTINCT col1 * + col1 * + 14 AS col0 FROM tab0 AS cor0
----
103544
115934
131726

query I rowsort
SELECT ALL - cor0.col2 + 24 * col0 FROM tab0 AS cor0
----
2054
543
839

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1438
SELECT DISTINCT + col0 * + col1 - + col2 DIV col0 col1 FROM tab0 AS cor0
----
2063
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + col0 * + col1 - + col2 / col0 col1 FROM tab0 AS cor0
----
2063
3395
8099

query I rowsort
SELECT - 82 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL + + col2 * 94 AS col0 FROM tab2 AS cor0
----
2444
2538
3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col2 + + 51 col0 FROM tab0 AS cor0
----
-7247
-741
16

query I rowsort
SELECT + col0 + + col1 * + 69 AS col1 FROM tab2 AS cor0
----
1252
2146
4149

query I rowsort
SELECT - - col0 * + 47 FROM tab1 AS cor0
----
141
3008
3760

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1447
SELECT DISTINCT - col2 - + 99 DIV + col1 FROM tab2 cor0
----
-27
-30
-43

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT - col2 - + 99 / + col1 FROM tab2 cor0
----
-27
-30
-43

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

query I rowsort
SELECT DISTINCT - col1 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
636056
753571
912673

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1451
SELECT - ( 32 ) DIV cor0.col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1451
SELECT - ( 32 ) / cor0.col1 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1452
SELECT + - CAST( - 61 AS SIGNED ) * + col2 + cor0.col1 - col2 * + col1 FROM tab2 AS cor0
----
111
1689
841

skipif mysql # not compatible
query I rowsort label-1452
SELECT + - CAST ( - 61 AS INTEGER ) * + col2 + cor0.col1 - col2 * + col1 FROM tab2 AS cor0
----
111
1689
841

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 * col0 + - col2 col2 FROM tab1
----
-324
-5817
-7296

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( 19 AS REAL ) * - col0 + ( + col2 ) * col1 + ( + col0 + col2 ) * - cor0.col2 FROM tab1 AS cor0
----
-17168
-1731
-7543

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

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

query I rowsort
SELECT ALL - cor0.col0 + 23 * + col1 AS col0 FROM tab1 AS cor0
----
166
219
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) + - col2 * col1 + cor0.col0 col2 FROM tab2 AS cor0
----
-1430
-529
-803

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

skipif mysql # not compatible
query I rowsort label-1463
SELECT + CAST ( NULL AS INTEGER ) / + 17 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 + 44 + col1 * - col0 * col2 col0 FROM tab2 cor0
----
-119549
-50973
-5784

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

skipif mysql # not compatible
query I rowsort label-1465
SELECT - - CAST ( - col0 AS INTEGER ) * col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

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

query I rowsort
SELECT ALL 22 * + cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
12
1351
1664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1468
SELECT + - ( col0 ) * cor0.col1 + CAST( 85 AS SIGNED ) FROM tab2 AS cor0
----
-1258
-132
-4517

skipif mysql # not compatible
query I rowsort label-1468
SELECT + - ( col0 ) * cor0.col1 + CAST ( 85 AS INTEGER ) FROM tab2 AS cor0
----
-1258
-132
-4517

query I rowsort
SELECT DISTINCT + - 83 * - col1 FROM tab1 AS cor0
----
1079
2158
830

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

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - col1 + col1 * ( - col2 ) / - col1 FROM tab0 AS cor0
----
-53
-9
-96

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

query I rowsort
SELECT ALL + 9 * col0 * 86 FROM tab2 AS cor0
----
5418
60372
61146

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

query I rowsort
SELECT ALL - ( - col0 ) + - col0 * 8 AS col0 FROM tab1 AS cor0
----
-21
-448
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT - col0 + col1 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-1475
SELECT - col0 + col1 / CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT ALL - - 9 + col0 * + col0 FROM tab1 AS cor0
----
18
4105
6409

query I rowsort
SELECT ALL + 35 * - col0 + col0 * col2 FROM tab2 AS cor0
----
-56
-702
237

query I rowsort
SELECT ALL - 57 * + col2 + - col1 FROM tab1 AS cor0
----
-3104
-3259
-5485

query I rowsort
SELECT DISTINCT col2 * tab2.col2 + col2 AS col0 FROM tab2
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 53 col1 FROM tab2
----
112
70
84

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

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

query I rowsort
SELECT 70 * col0 + - 86 FROM tab2 AS cor0
----
404
5374
5444

query I rowsort
SELECT - 22 FROM tab2, tab1 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

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

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

skipif mysql # not compatible
query I rowsort label-1486
SELECT - + ( col2 ) + + col0 * + CAST ( ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT 42 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 29 col2 FROM tab2, tab0 cor0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1491
SELECT DISTINCT CAST( + 80 AS SIGNED ) DIV - col1 + - col0 FROM tab2
----
-79
-83
-9

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT CAST ( + 80 AS INTEGER ) / - col1 + - col0 FROM tab2
----
-79
-83
-9

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

query I rowsort
SELECT ALL - ( col0 ) - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 36 * + cor0.col2 + - col2 - - 24 FROM tab1 AS cor0
----
1914
2019
3384

query I rowsort
SELECT + ( col1 ) * col1 * col0 - col2 FROM tab1 AS cor0
----
13424
1974
6343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col1 * - col0 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 - - col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - - ( + 20 ) + + col1 FROM tab0 AS cor0
----
106
111
117

query I rowsort
SELECT 16 + + 35 AS col1 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT ALL - + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * col1 * col1 col2 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT tab1.col0 * - col2 * + 91 AS col1 FROM tab1
----
-14742
-331968
-698880

query I rowsort
SELECT ALL + 90 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

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

query I rowsort
SELECT col2 * 38 * + 77 FROM tab1
----
158004
166782
280896

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT ALL + 4 DIV col0 + col0 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL + 4 / col0 + col0 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1509
SELECT ALL - col0 DIV 38 AS col0 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - col0 / 38 AS col0 FROM tab1 AS cor0
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1510
SELECT - CAST( - ( + col1 ) AS SIGNED ) + col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-1510
SELECT - CAST ( - ( + col1 ) AS INTEGER ) + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT - 45 * tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e4d5c63cd450f2b33efe605cd738029d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1512
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col0 + + col2 * 99 * col0 AS col1 FROM tab0 AS cor0
----
4690
730423
78984

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col0 + + col2 * 99 * col0 AS col1 FROM tab0 AS cor0
----
4690
730423
78984

query I rowsort
SELECT ALL + 73 - col2 FROM tab1 AS cor0
----
-23
16
19

query I rowsort
SELECT - ( 2 ) FROM tab0 cor0
----
-2
-2
-2

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col0 + 77 FROM tab1 cor0
----
141
157
80

query I rowsort
SELECT + - col2 - + col2 FROM tab0 cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 68 * col2 + + 73 * + col2 col0 FROM tab0 AS cor0
----
11562
141
4653

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

query I rowsort
SELECT DISTINCT - 43 - col1 AS col1 FROM tab1
----
-53
-56
-69

query I rowsort
SELECT - 32 * - col0 AS col0 FROM tab0 cor0
----
1120
2848
768

query I rowsort
SELECT ALL + col0 * + ( 80 ) FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT DISTINCT - + col2 * 40 AS col0 FROM tab0 cor0
----
-1320
-3280
-40

query I rowsort
SELECT DISTINCT col2 + 13 * 13 FROM tab1 AS cor0
----
223
226
265

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

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

query I rowsort
SELECT ALL col1 * 68 + + col0 * - col2 * - ( 33 + col0 ) FROM tab1 AS cor0
----
354536
7600
868724

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

query I rowsort
SELECT DISTINCT + + col1 + 87 FROM tab2 AS cor0
----
104
118
146

query I rowsort
SELECT col2 + + col1 * + col2 * + cor0.col1 + cor0.col0 * 44 AS col1 FROM tab1 AS cor0
----
19840
36690
8573

query I rowsort
SELECT ALL + col1 + 66 FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT + col2 * col1 + cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
2904
7626
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + col2 col0 FROM tab1 AS cor0
----
124
134
205

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT - cor0.col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1537
SELECT ALL + col2 - + tab0.col0 DIV col0 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + col2 - + tab0.col0 / col0 FROM tab0
----
0
32
81

query I rowsort
SELECT - + col1 * col1 + - 60 AS col1 FROM tab1 AS cor0
----
-160
-229
-736

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

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

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

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

query I rowsort
SELECT - col0 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-56
-6162
-6320

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

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

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

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

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

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

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

query I rowsort
SELECT ( col2 ) + - 59 FROM tab2
----
-21
-32
-33

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

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

query I rowsort
SELECT ALL + 0 * - col0 FROM tab1 cor0
----
0
0
0

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

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

query I rowsort
SELECT - + 48 + - col1 FROM tab1 AS cor0
----
-58
-61
-74

query I rowsort
SELECT DISTINCT col0 + col1 + - tab0.col2 FROM tab0
----
131
77
98

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

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

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL tab0.col2 / col2 AS col2 FROM tab0
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1560
SELECT ALL col0 DIV tab1.col0 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL col0 / tab1.col0 AS col2 FROM tab1
----
1
1
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + tab1.col0 + col2 col0 FROM tab1
----
131
189
83

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

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

query I rowsort
SELECT + col1 + - col0 * col1 * + col2 FROM tab1
----
-36470
-4186
-99827

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

query I rowsort
SELECT DISTINCT - col2 + + col0 + + col2 * col0 AS col2 FROM tab1
----
111
3655
7664

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

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

query I rowsort
SELECT DISTINCT col2 * col0 + tab2.col1 * col2 + col1 AS col0 FROM tab2
----
1057
3621
3665

query I rowsort
SELECT col1 * col2 + col2 * col1 FROM tab2
----
1292
1674
3068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 - col1 AND ( NULL )
----

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

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

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - col1 / + col1 + - col1 FROM tab0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 col2 FROM tab0 WHERE - col1 * + col0 <= col2 + col2
----
-1
-33
-82

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col2 <> NULL
----

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1580
SELECT ALL - col0 DIV tab2.col0 + col1 AS col0 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL - col0 / tab2.col0 + col1 AS col0 FROM tab2
----
16
30
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= - tab1.col2 * + col0
----

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

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

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

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

query I rowsort
SELECT - - 12 + col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
28
5
63

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

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

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

query I rowsort
SELECT col0 * - 11 * col0 FROM tab1
----
-45056
-70400
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1590
SELECT DISTINCT col2 DIV 12 + col0 FROM tab2
----
80
82
9

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT col2 / 12 + col0 FROM tab2
----
80
82
9

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT DISTINCT - col0 DIV ( - 37 * col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT - col0 / ( - 37 * col0 ) FROM tab0 AS cor0
----
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1594
SELECT + col2 + + col2 * col1 DIV col1 col1 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1594
SELECT + col2 + + col2 * col1 / col1 col1 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-1595
SELECT + col1 + cor0.col2 DIV col2 + col1 * col2 AS col0 FROM tab0 AS cor0
----
195
2925
7554

skipif mysql # not compatible
query I rowsort label-1595
SELECT + col1 + cor0.col2 / col2 + col1 * col2 AS col0 FROM tab0 AS cor0
----
195
2925
7554

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

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

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

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

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

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

query I rowsort
SELECT + ( - 47 ) * - col0 FROM tab1 AS cor0
----
141
3008
3760

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

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

query I rowsort
SELECT + + col2 * col2 * + col2 + ( col1 + 43 ) * 96 AS col1 FROM tab0 AS cor0
----
13441
48321
564232

query I rowsort
SELECT - 50 + - cor0.col2 * + 88 FROM tab2 AS cor0
----
-2338
-2426
-3394

query I rowsort
SELECT + - ( col1 ) * 20 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT - col0 * + col1 + 5 * - col1 AS col2 FROM tab2 AS cor0
----
-1428
-372
-4897

onlyif mysql # use DIV operator for integer division
query I rowsort label-1607
SELECT + - 75 DIV - col0 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-1607
SELECT + - 75 / - col0 FROM tab0 cor0
----
0
2
3

query I rowsort
SELECT ALL col2 * ( + 83 ) FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT DISTINCT + col0 + - col2 + cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
69
7305
783

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

query I rowsort
SELECT ALL - cor0.col0 * ( + cor0.col0 ) * - col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT + 77 * col1 AS col1 FROM tab1
----
1001
2002
770

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

query I rowsort
SELECT col2 + - 58 AS col0 FROM tab1 AS cor0
----
-1
-4
38

query I rowsort
SELECT + + 75 - + 99 FROM tab2 cor0
----
-24
-24
-24

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * + ( col2 ) col2 FROM tab2
----
624
648
912

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

query I rowsort
SELECT + 18 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL - 91 * 61 FROM tab2
----
-5551
-5551
-5551

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

query I rowsort
SELECT DISTINCT - 15 + - col0 AS col1 FROM tab1 cor0
----
-18
-79
-95

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

query I rowsort
SELECT - 95 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT + cor1.col0 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT ALL + tab0.col0 - + col0 DIV col2 col0 FROM tab0
----
0
24
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL + tab0.col0 - + col0 / col2 col0 FROM tab0
----
0
24
88

query I rowsort
SELECT ALL ( col2 ) * - col0 * + 5 + col1 * + tab2.col1 FROM tab2
----
-14721
-6659
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-1629
SELECT DISTINCT col1 DIV tab1.col2 + + col1 * tab1.col1 AS col1 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT col1 / tab1.col2 + + col1 * tab1.col1 AS col1 FROM tab1
----
100
169
676

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

query I rowsort
SELECT - col0 + - cor0.col0 * ( - col2 * + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
119574
50955
5852

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

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

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

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

query I rowsort
SELECT ALL - col0 * 2 * + col1 AS col2 FROM tab0
----
-16198
-4128
-6790

query I rowsort
SELECT + col0 * - col1 + cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
-1280
-156
-2080

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

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL - - CAST ( + col1 AS INTEGER ) / - col2 FROM tab0 AS cor0
----
-1
-2
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( 10 ) * col1 col1 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT ALL - - 66 - 5 FROM tab1 cor0
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1642
SELECT DISTINCT + + 30 + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT + + 30 + col1 / - col1 AS col0 FROM tab1 AS cor0
----
29

query I rowsort
SELECT DISTINCT col0 * + 72 - col1 * - col1 AS col0 FROM tab0 AS cor0
----
11929
14689
9124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 93 * col1 col1 FROM tab0 AS cor0
----
7998
8463
9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1645
SELECT ALL CAST( 5 AS SIGNED ) * col1 + - cor0.col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-5789
-6156
106

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL CAST ( 5 AS INTEGER ) * col1 + - cor0.col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-5789
-6156
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 24 AS col1 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - + col1 * - 90 + + ( col1 ) * 15 + col1 * + col0 FROM tab2 AS cor0
----
10797
3128
3472

query I rowsort
SELECT col1 + - col1 - + col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col1 + + col2 * + col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - - col2 * col2 - col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL + col1 * - 91 + col0 AS col0 FROM tab2 AS cor0
----
-1468
-2814
-5291

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + col1 + - col0 - - cor0.col1 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 + + col1 * - cor0.col2 * + 66 FROM tab0 AS cor0
----
-187189
-492319
-6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 33 + 0 * + col1 col2 FROM tab0 AS cor0
----
-1155
-2937
-792

query I rowsort
SELECT col2 - col2 * - 52 AS col2 FROM tab0
----
1749
4346
53

query I rowsort
SELECT - col0 * + col1 * - 80 + + col0 + col0 FROM tab0
----
165168
271670
648098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col0 + - col0 + - col2 col2 FROM tab0 AS cor0
----
-1
7127
735

query I rowsort
SELECT col0 + cor0.col1 + col2 AS col1 FROM tab2 cor0
----
134
163
65

query I rowsort
SELECT - ( + col0 ) + - cor0.col0 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT ALL + col2 + - col1 + col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT ALL col1 + col2 + col0 FROM tab1
----
131
189
83

query I rowsort
SELECT + 22 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1665
SELECT - col2 DIV + col0 AS col2 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1665
SELECT - col2 / + col0 AS col2 FROM tab2
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + 17 * col0 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT DISTINCT col2 * col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL + + 93 + col0 AS col2 FROM tab1 AS cor0
----
157
173
96

query I rowsort
SELECT DISTINCT - + 54 + + col1 AS col2 FROM tab1 cor0
----
-28
-41
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1672
SELECT ALL + - 1 DIV + col1 + - 84 FROM tab2 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + - 1 / + col1 + - 84 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT + col1 - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 12 * + col1 FROM tab2
----
204
372
708

query I rowsort
SELECT + col0 + + col0 * + 97 AS col1 FROM tab0
----
2352
3430
8722

query I rowsort
SELECT DISTINCT + col2 - + col1 AS col2 FROM tab0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1678
SELECT DISTINCT - 39 * + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - 39 * + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col1 * col1 + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT ALL - col1 DIV col2 + col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - col1 / col2 + col2 FROM tab0 AS cor0
----
-96
31
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1681
SELECT ALL - col0 + + col2 * + CAST( NULL AS SIGNED ) / - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - col0 + + col2 * + CAST ( NULL AS INTEGER ) / - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 38 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
0
11
12

query I rowsort
SELECT + 67 * col2 AS col1 FROM tab0 AS cor0
----
2211
5494
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * + 46 col1 FROM tab2
----
-1426
-2714
-782

query I rowsort
SELECT DISTINCT 81 FROM tab1, tab0 AS cor0, tab0 cor1
----
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1686
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) + + 41 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) + + 41 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * - ( + ( col0 ) ) + + ( cor0.col1 * col0 ) + - col0 AS col1 FROM tab1 AS cor0
----
237
4224
8640

query I rowsort
SELECT ALL col2 + col0 * col1 + - col0 * + 22 AS col2 FROM tab2 AS cor0
----
-357
2912
90

query I rowsort
SELECT col2 * col2 * + 77 FROM tab1
----
224532
250173
709632

onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT - col2 DIV - tab1.col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1690
SELECT - col2 / - tab1.col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT - col1 + + 51 AS col0 FROM tab1 AS cor0
----
25
38
41

query I rowsort
SELECT + - col1 + ( 77 ) * + col2 AS col1 FROM tab2 AS cor0
----
1943
2048
2909

onlyif mysql # use DIV operator for integer division
query I rowsort label-1693
SELECT 10 DIV + tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1693
SELECT 10 / + tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - ( + 88 ) AS col2 FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1695
SELECT DISTINCT - CAST( 23 AS SIGNED ) col1 FROM tab1 cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - CAST ( 23 AS INTEGER ) col1 FROM tab1 cor0
----
-23

query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 * ( col0 ) FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-1697
SELECT ALL - ( + 43 ) DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL - ( + 43 ) / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1698
SELECT CAST( NULL AS SIGNED ) + + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1698
SELECT CAST ( NULL AS INTEGER ) + + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT 56 + 3 * cor0.col1 FROM tab2 AS cor0
----
107
149
233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * 23 col1 FROM tab2 AS cor0
----
1435
470
720

query I rowsort
SELECT col1 * + col1 * col2 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT ( - 54 ) * tab0.col1 AS col2 FROM tab0
----
-4644
-4914
-5238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT col1 DIV + 41 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT col1 / + 41 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1707
SELECT + col0 - + CAST( + col2 * - col2 AS SIGNED ) col2 FROM tab2
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1707
SELECT + col0 - + CAST ( + col2 * - col2 AS INTEGER ) col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT - col2 * - col2 + 67 AS col0 FROM tab0 AS cor0
----
1156
6791
68

query I rowsort
SELECT col0 - col1 * + col2 * + col1 FROM tab2 AS cor0
----
-10903
-25940
-90428

query I rowsort
SELECT DISTINCT - col0 - 27 AS col2 FROM tab2
----
-105
-106
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1711
SELECT - col1 - CAST( col1 AS SIGNED ) * - col2 FROM tab1
----
1235
1378
560

skipif mysql # not compatible
query I rowsort label-1711
SELECT - col1 - CAST ( col1 AS INTEGER ) * - col2 FROM tab1
----
1235
1378
560

query I rowsort
SELECT 12 + - col1 AS col0 FROM tab0 AS cor0
----
-74
-79
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1713
SELECT + - 42 + ( col2 * CAST( NULL AS SIGNED ) ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT + - 42 + ( col2 * CAST ( NULL AS INTEGER ) ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + 97 FROM tab2 cor0
----
59
70
71

query I rowsort
SELECT ALL ( + col2 ) + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - col0 + 59 FROM tab2 AS cor0
----
-19
-20
52

query I rowsort
SELECT - col2 * + col1 + col2 * + 68 FROM tab1 AS cor0
----
2268
3306
5280

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + col1 + 63 AS col2 FROM tab2 AS cor0
----
101
159
200

onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT ALL - ( col2 ) + cor0.col2 DIV + 93 + - ( col1 ) col0 FROM tab0 AS cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - ( col2 ) + cor0.col2 / + 93 + - ( col1 ) col0 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1720
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 + - cor0.col2 * - col2 - 38 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 + - cor0.col2 * - col2 - 38 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 95 + - col0 * - col0 + + ( + ( + col0 ) ) * 46 AS col1 FROM tab2 AS cor0
----
466
9767
9970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT 36 * + col2 AS col1 FROM tab2 cor0
----
1368
936
972

query I rowsort
SELECT col0 * - 58 FROM tab0 AS cor0
----
-1392
-2030
-5162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + cor0.col2 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col0 * 86 AS col1 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT DISTINCT - col2 * - 10 * + col2 FROM tab1 AS cor0
----
29160
32490
92160

query I rowsort
SELECT cor0.col1 + + 29 FROM tab2 AS cor0
----
46
60
88

query I rowsort
SELECT DISTINCT - - 50 FROM tab1, tab0 AS cor0
----
50

query I rowsort
SELECT - col2 * - ( - col0 + col0 ) AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + 49 * - ( - cor1.col1 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8414d49d57afb2d5bb13602da091697b

query I rowsort
SELECT ALL + col2 * + 82 * col2 + col1 AS col0 FROM tab1 AS cor0
----
239138
266428
755725

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1733
SELECT col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + ( - cor0.col1 ) * col0 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT DISTINCT + col1 DIV + ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT + col1 / + ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT - + col1 + 0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col2 * - ( - 57 * col1 ) AS col0 FROM tab1 AS cor0
----
32490
71136
80028

query I rowsort
SELECT ALL + col1 * - ( - col1 * - col2 + + ( ( - col1 ) ) ) FROM tab0 AS cor0
----
-236672
-670761
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
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-1739
SELECT DISTINCT + col0 / + col1 col2 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL + col2 * + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - cor0.col1 * 61 AS col2 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT - col1 * - col1 * col0 AS col2 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - - col1 + + col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL - 42 * cor0.col0 FROM tab1 AS cor0
----
-126
-2688
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 69 ) col2 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT + tab0.col2 * - col2 * + tab0.col2 AS col1 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT ALL col0 * col1 + 13 * + col2 AS col1 FROM tab0 cor0
----
2493
3408
9165

query I rowsort
SELECT DISTINCT col0 + col2 - col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - cor0.col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + col1 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + col0 * col2 + ( - col2 ) * + col1 * col2 FROM tab0 cor0
----
-604586
-62
-92862

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) / + col1 + col0 * col2 AS col0 FROM tab0
----
36
7299
793

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1753
SELECT CAST( 42 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

skipif mysql # not compatible
query I rowsort label-1753
SELECT CAST ( 42 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT + 54 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
54

query I rowsort
SELECT ALL 19 + - tab2.col2 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d077ef73299bdf56d845d6fba1f7d358

onlyif mysql # use DIV operator for integer division
query I rowsort label-1756
SELECT + - col1 * col1 DIV - col0 FROM tab2 AS cor0
----
137
3
44

skipif mysql # not compatible
query I rowsort label-1756
SELECT + - col1 * col1 / - col0 FROM tab2 AS cor0
----
137
3
44

query I rowsort
SELECT - - 29 AS col0 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - - col0 * - col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col0 * ( col0 ) FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) * ( - ( col0 ) ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 * col1 + + col1 col2 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT DISTINCT 32 + - col1 * + col0 * col2 FROM tab2 AS cor0
----
-119620
-51002
-5827

onlyif mysql # use DIV operator for integer division
query I rowsort label-1763
SELECT ALL + 61 DIV col2 + col2 AS col2 FROM tab1 AS cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL + 61 / col2 + col2 AS col2 FROM tab1 AS cor0
----
55
58
96

query I rowsort
SELECT DISTINCT col1 * 97 - + col0 * col1 AS col0 FROM tab1 cor0
----
221
2444
330

query I rowsort
SELECT ALL col1 + - 96 FROM tab0 cor0
----
-10
-5
1

query I rowsort
SELECT col0 - - col2 * col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + 10 * col0 * 79 - col1 * + col2 FROM tab1 AS cor0
----
49990
61952
966

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT DISTINCT + 71 + - col0 DIV ( - 2 ) AS col1 FROM tab2 AS cor0
----
110
74

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT + 71 + - col0 / ( - 2 ) AS col1 FROM tab2 AS cor0
----
110
74

query I rowsort
SELECT + + cor0.col1 * - col1 - col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL - 73 - col2 * 62 FROM tab0 AS cor0
----
-135
-2119
-5157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1771
SELECT ALL col1 * - col0 - CAST( NULL AS SIGNED ) 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-1771
SELECT ALL col1 * - col0 - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 92 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + + col0 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT DISTINCT col2 + col2 DIV 50 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT col2 + col2 / 50 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT col1 * - 93 * - 59 AS col2 FROM tab1 cor0
----
142662
54870
71331

query I rowsort
SELECT col1 * col1 * col1 + col1 * 0 AS col2 FROM tab1 AS cor0
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT ALL - col0 DIV + 50 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL - col0 / + 50 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col1 * + 53 FROM tab1 AS cor0
----
-1378
-530
-689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1781
SELECT 48 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1781
SELECT 48 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 92 * col2 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT ALL + - col1 * - 94 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT ALL cor0.col1 * - cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

query I rowsort
SELECT + 29 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT ( ( + col2 ) ) + col1 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ( + tab0.col1 + col0 ) FROM tab0
----
110
132
180

query I rowsort
SELECT cor0.col2 + cor0.col1 * - 3 FROM tab0 AS cor0
----
-191
-225
-290

query I rowsort
SELECT DISTINCT col0 * + 88 * - col2 AS col1 FROM tab1
----
-14256
-321024
-675840

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - 26 * cor0.col2 AS col1 FROM tab2, tab1 cor0
----
-1404
-1482
-2496

query I rowsort
SELECT - tab2.col1 * + col0 + col2 FROM tab2
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT DISTINCT - col2 DIV + col0 + col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT - col2 / + col0 + col0 FROM tab1
----
-15
64
79

query I rowsort
SELECT - col2 * + col2 * + tab1.col2 AS col2 FROM tab1
----
-157464
-185193
-884736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1795
SELECT 61 * - col1 + + CAST( NULL AS SIGNED ) / - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT 61 * - col1 + + CAST ( NULL AS INTEGER ) / - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1796
SELECT col1 DIV + ( - cor0.col0 ) + col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
213
4602

skipif mysql # not compatible
query I rowsort label-1796
SELECT col1 / + ( - cor0.col0 ) + col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
213
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1797
SELECT ( col2 ) DIV + ( col0 ) FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1797
SELECT ( col2 ) / + ( col0 ) FROM tab2
----
0
0
3

query I rowsort
SELECT ALL + ( col0 ) * - col2 + col1 * col0 * col1 FROM tab1
----
1866
2752
5840

query I rowsort
SELECT ALL col1 * col1 + ( + 23 ) * col1 FROM tab2
----
1674
4838
680

query I rowsort
SELECT DISTINCT - ( col0 ) + + col1 FROM tab1
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1801
SELECT CAST( NULL AS SIGNED ) * - tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1801
SELECT CAST ( NULL AS INTEGER ) * - tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - col2 + - ( col1 * - cor0.col0 ) FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-1803
SELECT col0 + - cor0.col1 DIV - col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-1803
SELECT col0 + - cor0.col1 / - col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT ALL col0 * + col0 + ( - col1 ) * ( - cor0.col1 ) * - col2 FROM tab1 AS cor0
----
-1604
-36495
-9824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1805
SELECT + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1806
SELECT DISTINCT - + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT - + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * cor0.col2 + col0 * col2 FROM tab2 AS cor0
----
2704
4446
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 84 col2 FROM tab1 AS cor0
----
4536
4788
8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 col2 FROM tab0 cor0
----
2
62

query I rowsort
SELECT ALL - ( - col0 * + col1 ) + + col0 AS col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT + col0 - + col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT col0 * col1 * col0 - col0 AS col2 FROM tab2 AS cor0
----
106018
1512
358878

query I rowsort
SELECT DISTINCT col1 + - col2 * - col2 - - col2 FROM tab2 AS cor0
----
1499
761
787

query I rowsort
SELECT - col1 - + col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col0 + cor0.col2 * + col2 AS col2 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT ALL - col2 + col2 - + col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + 97 * col1 FROM tab2
----
1649
3007
5723

query I rowsort
SELECT 13 - - col2 AS col1 FROM tab0 AS cor0
----
14
46
95

query I rowsort
SELECT + 72 * + 65 FROM tab1, tab1 AS cor0
----
9 values hashing to c7757bf79064b0cfb10118f90764401e

query I rowsort
SELECT col2 * ( + col0 * col1 ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - 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 + 64 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT + cor0.col2 + - ( 8 * - col0 ) FROM tab1 AS cor0
----
569
736
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col1 * col0 col2 FROM tab1 cor0
----
-1136
-132
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1825
SELECT CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT CAST ( NULL AS REAL ) * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) * col0 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 - - col2 col2 FROM tab2
----
61
62
73

query I rowsort
SELECT ALL - col1 - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - 31 AS col0 FROM tab1 AS cor0
----
-31
-31
-31

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - col1 + col2 * + col2 - col1 ) OR col0 * - col2 > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1832
SELECT - col0 + - col1 DIV + col1 AS col0 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-1832
SELECT - col0 + - col1 / + col1 AS col0 FROM tab0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1833
SELECT ALL + col2 + col2 * + col0 - - col0 DIV - col2 FROM tab1 cor0
----
216
3704
7776

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + col2 + col2 * + col0 - - col0 / - col2 FROM tab1 cor0
----
216
3704
7776

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE + col2 IN ( + col0 + col2 )
----

query I rowsort
SELECT col0 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col2 * - col2 * - col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT ALL col1 * col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL col1 * col2 / + col2 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + - col1 + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL col1 * cor0.col2 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL - col0 * - col2 * - col0 + - col2 AS col1 FROM tab0 cor0
----
-1226
-19041
-649604

query I rowsort
SELECT - cor0.col2 + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col1 * col2 col0 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 - + col2 col0 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT col0 + col1 * + tab1.col1 + col0 AS col2 FROM tab1
----
228
329
682

query I rowsort
SELECT DISTINCT - col0 * col0 + col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT col0 + + tab1.col0 + - col1 AS col0 FROM tab1
----
-20
118
147

query I rowsort
SELECT DISTINCT - 53 AS col0 FROM tab0
----
-53

query I rowsort
SELECT ALL 2 + cor0.col1 AS col2 FROM tab0 cor0
----
88
93
99

query I rowsort
SELECT - col1 + col1 * + col2 * col1 FROM tab2 AS cor0
----
10965
25916
90447

query I rowsort
SELECT DISTINCT - 44 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-44

query I rowsort
SELECT tab2.col2 + - col2 * col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + col0 + - 55 AS col1 FROM tab1 AS cor0
----
-52
25
9

query I rowsort
SELECT DISTINCT - col1 * - col1 + + 41 AS col1 FROM tab0 AS cor0
----
7437
8322
9450

query I rowsort
SELECT 74 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1856
SELECT ALL col1 * col0 + ( col1 ) * - CAST( cor0.col2 AS SIGNED ) FROM tab1 cor0
----
-1326
-208
70

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL col1 * col0 + ( col1 ) * - CAST ( cor0.col2 AS INTEGER ) FROM tab1 cor0
----
-1326
-208
70

query I rowsort
SELECT DISTINCT cor0.col0 * 94 AS col2 FROM tab0 AS cor0
----
2256
3290
8366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( + 56 ) col1 FROM tab0 AS cor0
----
145
80
91

query I rowsort
SELECT - col1 * - cor0.col2 + + col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 + col1 col2 FROM tab2
----
124
82
96

query I rowsort
SELECT DISTINCT + col2 + + 19 * + col0 AS col2 FROM tab1
----
111
1273
1616

query I rowsort
SELECT 4 + col1 FROM tab1
----
14
17
30

query I rowsort
SELECT tab0.col1 + + col0 * + col0 + col2 FROM tab0
----
1323
695
8094

query I rowsort
SELECT 65 + + col1 AS col0 FROM tab1
----
75
78
91

query I rowsort
SELECT DISTINCT + + 74 * - col2 AS col1 FROM tab0 cor0
----
-2442
-6068
-74

query I rowsort
SELECT - cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT ALL ( - 72 ) AS col2 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT - + 43 AS col2 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT ALL - 78 * col2 + col2 FROM tab0 AS cor0
----
-2541
-6314
-77

query I rowsort
SELECT 16 + - col0 AS col0 FROM tab0 AS cor0
----
-19
-73
-8

query I rowsort
SELECT DISTINCT + col1 * + col2 * - 48 AS col1 FROM tab2 AS cor0
----
-31008
-40176
-73632

query I rowsort
SELECT - col2 * col1 + cor0.col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT - col0 + col2 * 57 * + 32 FROM tab0 AS cor0
----
149479
1789
60168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab2.col1 col0 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1875
SELECT DISTINCT - ( col1 ) DIV col1 + ( col0 * col1 ) FROM tab0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - ( col1 ) / col1 + ( col0 * col1 ) FROM tab0
----
2063
3394
8098

onlyif mysql # use DIV operator for integer division
query I rowsort label-1876
SELECT ALL cor0.col2 * col2 + col0 DIV col1 - - col0 AS col0 FROM tab2 AS cor0
----
1527
736
755

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL cor0.col2 * col2 + col0 / col1 - - col0 AS col0 FROM tab2 AS cor0
----
1527
736
755

query I rowsort
SELECT ALL + 38 + col1 * col2 FROM tab1 AS cor0
----
1286
1442
608

onlyif mysql # use DIV operator for integer division
query I rowsort label-1878
SELECT DISTINCT - 37 * + col2 * + col0 + 19 DIV + col1 AS col1 FROM tab1 cor0
----
-134975
-284159
-5994

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT - 37 * + col2 * + col0 + 19 / + col1 AS col1 FROM tab1 cor0
----
-134975
-284159
-5994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 82 col1 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT - + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 80 - - 65 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9ecd0c7aa257f92c701c0e9fed42e1e6

query I rowsort
SELECT ALL - ( + cor0.col2 ) * + 72 AS col2 FROM tab0 cor0
----
-2376
-5904
-72

query I rowsort
SELECT 14 * col0 FROM tab1
----
1120
42
896

query I rowsort
SELECT - 9 * - col1 * + ( col2 ) AS col1 FROM tab2
----
13806
5814
7533

query I rowsort
SELECT - 32 + - col2 AS col1 FROM tab0 cor0
----
-114
-33
-65

query I rowsort
SELECT + - ( + col1 ) + cor0.col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT col0 * col0 + + 83 * ( - col0 ) * col0 AS col1 FROM tab1 cor0
----
-335872
-524800
-738

query I rowsort
SELECT col2 * ( cor0.col1 ) + + col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT + - col0 DIV - col1 + + 12 * + col2 col1 FROM tab1 AS cor0
----
1158
648
690

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1889
SELECT + - col0 / - col1 + + 12 * + col2 col1 FROM tab1 AS cor0
----
1158
648
690

query I rowsort
SELECT - + col0 * 96 + - cor0.col1 FROM tab1 AS cor0
----
-314
-6154
-7693

query I rowsort
SELECT + col2 + col1 * col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - + col2 * - ( + 69 * col1 ) + cor0.col1 FROM tab2 AS cor0
----
105905
44591
57784

query I rowsort
SELECT - col0 * ( cor0.col2 ) + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - - col2 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 + col0 * col1 AS col0 FROM tab1
----
24
583
944

query I rowsort
SELECT col2 * - 10 FROM tab0 AS cor0
----
-10
-330
-820

query I rowsort
SELECT - 21 - - col2 * + col0 FROM tab0 AS cor0
----
14
7277
771

query I rowsort
SELECT + ( + col1 ) * - col2 - col0 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + 13 + + 49 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT 6 + + col0 AS col0 FROM tab0 cor0
----
30
41
95

query I rowsort
SELECT + - col2 + 89 * col2 AS col1 FROM tab0 AS cor0
----
2904
7216
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 78 ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + 91 FROM tab2, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL ( - 55 ) + col0 + + 31 * col1 AS col2 FROM tab0
----
2635
2855
2987

query I rowsort
SELECT ALL 82 + col0 * - tab0.col2 AS col2 FROM tab0
----
-710
-7216
47

query I rowsort
SELECT + ( + tab0.col0 ) * col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + + ( + 87 ) * + col0 AS col0 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab0 cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 + + ( col2 ) * col1 col0 FROM tab1 AS cor0
----
1257
1413
579

query I rowsort
SELECT + + ( col2 ) * col0 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + - cor0.col0 * ( - col2 * 68 ) FROM tab1 AS cor0
----
11016
248064
522240

query I rowsort
SELECT - - 6 + 44 * + col1 FROM tab2 AS cor0
----
1370
2602
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1913
SELECT DISTINCT - cor0.col0 DIV + 7 FROM tab2 AS cor0
----
-1
-11

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT - cor0.col0 / + 7 FROM tab2 AS cor0
----
-1
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-1914
SELECT ALL tab0.col0 * ( + col0 ) DIV col1 AS col1 FROM tab0
----
12
6
87

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL tab0.col0 * ( + col0 ) / col1 AS col1 FROM tab0
----
12
6
87

query I rowsort
SELECT ALL + ( col0 ) * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - cor0.col1 + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL + + 37 AS col1 FROM tab0 cor0
----
37
37
37

query I rowsort
SELECT - col2 * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-1919
SELECT DISTINCT - + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT - + col2 / - col2 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + - 21 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ( cor0.col1 ) + - 35 * cor0.col0 FROM tab2 AS cor0
----
-214
-2671
-2748

query I rowsort
SELECT + col0 - + 81 FROM tab2
----
-2
-3
-74

query I rowsort
SELECT DISTINCT cor0.col2 * - 17 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT col1 + + 9 * + col0 FROM tab1 AS cor0
----
53
586
733

query I rowsort
SELECT DISTINCT col1 * - col0 + col0 * + col0 FROM tab2 AS cor0
----
-168
1482
4898

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1926
SELECT ALL + + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL + + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - cor0.col1 - + 36 AS col1 FROM tab1 AS cor0
----
-10
-23
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + cor0.col0 + - col2 col1 FROM tab0 cor0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT col2 DIV + 20 + + col0 FROM tab0 AS cor0
----
25
35
93

skipif mysql # not compatible
query I rowsort label-1929
SELECT col2 / + 20 + + col0 FROM tab0 AS cor0
----
25
35
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + 60 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to faebb42060ddaf5dec7dbf1f01bae592

query I rowsort
SELECT + + col0 + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1932
SELECT + col1 + - ( col1 ) + col0 DIV 53 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1932
SELECT + col1 + - ( col1 ) + col0 / 53 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT DISTINCT + col0 DIV col1 + - tab1.col2 * + col1 * - 27 AS col0 FROM tab1
----
15396
33702
37908

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + col0 / col1 + - tab1.col2 * + col1 * - 27 AS col0 FROM tab1
----
15396
33702
37908

query I rowsort
SELECT col1 + ( - tab0.col1 + col1 ) * + col2 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT col0 + - 29 FROM tab1
----
-26
35
51

query I rowsort
SELECT ALL - ( cor0.col1 ) - - cor0.col0 * - 72 FROM tab2 AS cor0
----
-535
-5675
-5705

query I rowsort
SELECT DISTINCT + ( 75 ) + col0 * + col2 * cor0.col2 FROM tab0 AS cor0
----
110
26211
598511

query I rowsort
SELECT DISTINCT + 78 + col1 + - col1 AS col1 FROM tab0 AS cor0
----
78

query I rowsort
SELECT - + 86 FROM tab0 cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT - col0 + + ( - 47 ) AS col0 FROM tab2
----
-125
-126
-54

query I rowsort
SELECT DISTINCT + col2 + col1 * col2 AS col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col2 + tab0.col1 * - col1 AS col2 FROM tab0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT - col2 DIV - col2 + + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1943
SELECT - col2 / - col2 + + col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL ( - cor0.col1 ) * - col1 * 10 FROM tab1 AS cor0
----
1000
1690
6760

query I rowsort
SELECT - ( 48 ) AS col0 FROM tab0 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 + col1 * cor0.col2 col0 FROM tab2 AS cor0
----
1482
605
857

query I rowsort
SELECT - + col2 * - col1 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + 61 + - col0 * col2 FROM tab2 AS cor0
----
-128
-1967
-2941

query I rowsort
SELECT DISTINCT - ( + 39 ) - + col1 * col0 * - cor0.col0 FROM tab0 AS cor0
----
118786
49497
720772

query I rowsort
SELECT ALL col2 * col0 * col2 AS col1 FROM tab0 cor0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( + 30 ) * cor0.col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT ALL - ( + 17 ) AS col2 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL + ( col1 ) + tab0.col1 + col0 FROM tab0
----
196
229
271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 40 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT DISTINCT 85 - + col2 DIV tab1.col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT 85 - + col2 / tab1.col2 FROM tab1
----
84

query I rowsort
SELECT - cor0.col2 - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT ALL - col0 * cor0.col2 + - col1 DIV ( col1 + + 14 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL - col0 * cor0.col2 + - col1 / ( col1 + + 14 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-1960
SELECT ALL col2 + + col0 DIV + 65 FROM tab2 AS cor0
----
27
27
39

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL col2 + + col0 / + 65 FROM tab2 AS cor0
----
27
27
39

query I rowsort
SELECT ( - col2 ) - - 44 * + 89 AS col0 FROM tab2 AS cor0
----
3878
3889
3890

query I rowsort
SELECT cor0.col2 * - ( - 17 ) AS col1 FROM tab0 AS cor0
----
1394
17
561

query I rowsort
SELECT ALL - cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col1 - ( + col0 + + col0 ) AS col1 FROM tab2 cor0
----
-141
-97
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1965
SELECT - col0 * - CAST( NULL AS DECIMAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT - col0 * - CAST ( NULL AS REAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to dba0629212dd6bf03c2834a27d0b07fb

query I rowsort
SELECT ALL - + col2 * 67 + - col1 * + col0 + col0 FROM tab0 AS cor0
----
-13504
-3427
-4251

query I rowsort
SELECT + col0 + + col1 * col2 + col1 * cor0.col2 * col2 FROM tab2 AS cor0
----
23443
25273
41496

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + 88 AS col1 FROM tab1 AS cor0
----
1128
166
728

query I rowsort
SELECT 63 * col2 + - 11 AS col0 FROM tab0 AS cor0
----
2068
5155
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1971
SELECT + col0 DIV col1 col1 FROM tab1 cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1971
SELECT + col0 / col1 col1 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - 75 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT ALL col2 + + cor0.col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT + + ( col2 ) * - 24 FROM tab2 AS cor0
----
-624
-648
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 * + ( + 85 ) col0 FROM tab1 AS cor0
----
-14365
-57460
-8500

query I rowsort
SELECT 19 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
108
43
54

query I rowsort
SELECT ALL 99 * col2 FROM tab2 AS cor0
----
2574
2673
3762

query I rowsort
SELECT DISTINCT + col0 + col0 * col0 * 24 FROM tab2 AS cor0
----
1183
146094
149863

query I rowsort
SELECT DISTINCT + col2 * - col1 * - col1 + - col2 + col0 AS col2 FROM tab2
----
11023
25927
90558

query I rowsort
SELECT col0 * + 64 AS col2 FROM tab2
----
448
4992
5056

query I rowsort
SELECT - col1 * col2 + + col0 * col1 FROM tab1 cor0
----
-1326
-208
70

query I rowsort
SELECT - cor0.col2 * - col0 + - 59 * + col1 AS col0 FROM tab0 AS cor0
----
-4282
-5688
1929

query I rowsort
SELECT ALL - col1 * - tab0.col2 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - - 63 * - 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 36442df6e173c775ac9fb91044169cfe

query I rowsort
SELECT + 31 + 9 AS col1 FROM tab1 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 78 col0 FROM tab0
----
1872
2730
6942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) + col2 col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - tab1.col0 + - tab1.col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + 13 FROM tab2, tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT ( tab1.col1 ) * - col1 + ( - tab1.col0 ) AS col1 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT + col2 + + ( col1 ) + - col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - + 61 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
-32
13
32

query I rowsort
SELECT 17 + - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f094cf189d151098e206ce86ed80b9a7

query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab1
----
-3

query I rowsort
SELECT + - col0 * + col0 - - col0 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col2 col0 FROM tab2
----
1196
1242
1748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * - 23 col1 FROM tab1
----
1242
1311
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) - 32 col1 FROM tab0 AS cor0
----
-31
1
50

query I rowsort
SELECT ALL + 89 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT + cor0.col0 * + 15 FROM tab0 cor0
----
1335
360
525

query I rowsort
SELECT - - cor0.col1 * col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2003
SELECT + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2003
SELECT + col2 / + col1 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 * col1 col0 FROM tab0 cor0
----
-5934
-6279
-6693

query I rowsort
SELECT - - col1 * 39 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT + ( + 2 ) * + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT 56 * + col2 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT - + 98 * - col2 AS col2 FROM tab0 cor0
----
3234
8036
98

query I rowsort
SELECT 31 * - 39 AS col0 FROM tab2 AS cor0
----
-1209
-1209
-1209

query I rowsort
SELECT DISTINCT col2 + tab0.col1 * + col2 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT - col1 DIV + col0 + col2 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-2011
SELECT - col1 / + col0 + col2 FROM tab2
----
23
26
38

query I rowsort
SELECT DISTINCT 43 * col2 AS col2 FROM tab1
----
2322
2451
4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 col0 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT col1 * + col2 * - cor0.col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - - 93 + - col2 * + col1 FROM tab1 AS cor0
----
-1155
-1311
-477

query I rowsort
SELECT - - 8 + cor0.col2 FROM tab1 cor0
----
104
62
65

query I rowsort
SELECT ALL + col2 + 79 * col2 FROM tab1 AS cor0
----
4320
4560
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2018
SELECT ALL - - cor0.col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - - cor0.col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2019
SELECT DISTINCT col2 + col1 DIV 50 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT col2 + col1 / 50 AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + 16 FROM tab2, tab1, tab1 AS cor0
----
16

query I rowsort
SELECT ALL + 25 FROM tab2
----
25
25
25

query I rowsort
SELECT DISTINCT + col2 + 52 FROM tab1 cor0
----
106
109
148

query I rowsort
SELECT DISTINCT col1 * - 3 + col2 FROM tab2 AS cor0
----
-13
-151
-66

query I rowsort
SELECT + 1 + + 26 * - col0 * + ( col1 ) + col2 AS col2 FROM tab1 AS cor0
----
-16582
-1973
-26943

query I rowsort
SELECT ( + cor0.col2 ) + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col1 * col0 + col0 + 3 AS col1 FROM tab2 AS cor0
----
1425
227
4683

query I rowsort
SELECT cor0.col0 + + 44 - - col0 AS col1 FROM tab0 AS cor0
----
114
222
92

query I rowsort
SELECT ALL cor0.col2 * 1 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * col0 * col1 col2 FROM tab0 AS cor0
----
-118860
-49560
-720900

query I rowsort
SELECT DISTINCT 26 + + col2 FROM tab1 AS cor0
----
122
80
83

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + 90 + - col2 AS col0 FROM tab0 AS cor0
----
57
8
89

query I rowsort
SELECT - 79 * + col1 * col2 + - col2 + 78 * col2 * ( - col0 * + col2 ) AS col1 FROM tab1 cor0
----
-16264095
-57606528
-793314

query I rowsort
SELECT 50 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL tab1.col1 * 0 * col2 + - col2 - + col0 AS col1 FROM tab1
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2036
SELECT ALL + - col0 DIV - col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + - col0 / - col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col1 - + col1 * col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL col0 * col1 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-180
-40903
-83104

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 + col1 + cor0.col2 * col1 FROM tab2 AS cor0
----
-2339
-435
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-2040
SELECT col1 * col1 DIV - col0 + + col0 col1 FROM tab0 AS cor0
----
-233
-284
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2040
SELECT col1 * col1 / - col0 + + col0 col1 FROM tab0 AS cor0
----
-233
-284
-4

query I rowsort
SELECT ALL + col0 + + col2 + - col2 * col0 FROM tab0 AS cor0
----
-7127
-735
1

query I rowsort
SELECT DISTINCT - 1 * - col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 + 18 AS col0 FROM tab0 AS cor0
----
-2046
-3377
-8081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2044
SELECT ALL + ( col2 ) + + col2 * ( col0 ) * + col0 - - CAST( NULL AS SIGNED ) / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + ( col2 ) + + col2 * ( col0 ) * + col0 - - CAST ( NULL AS INTEGER ) / + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 34 + + 61 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT - col1 + + col1 * col2 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab2, tab0, tab1 AS cor0, tab1 cor1
----
81

query I rowsort
SELECT DISTINCT - - 93 AS col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT - ( - tab2.col0 ) + tab2.col0 - - ( ( tab2.col2 ) ) FROM tab2
----
182
196
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT ALL 18 - + col1 DIV col2 FROM tab0
----
-79
16
17

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL 18 - + col1 / col2 FROM tab0
----
-79
16
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2051
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 cor0, tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 cor0, tab0 cor1
----
NULL

query I rowsort
SELECT ALL 81 + col0 + col2 FROM tab1 AS cor0
----
138
202
257

query I rowsort
SELECT - 20 + - col2 FROM tab0 AS cor0
----
-102
-21
-53

query I rowsort
SELECT ALL - col0 + col2 + tab2.col1 FROM tab2
----
-24
51
7

query I rowsort
SELECT DISTINCT - + ( - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 + - col0 * 78 AS col2 FROM tab2 AS cor0
----
-573
-6110
-6200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2057
SELECT - 21 DIV col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT - 21 / col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2058
SELECT DISTINCT col2 DIV col0 - + col0 * + col0 FROM tab2 AS cor0
----
-46
-6084
-6241

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT col2 / col0 - + col0 * + col0 FROM tab2 AS cor0
----
-46
-6084
-6241

query I rowsort
SELECT 79 * 68 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to bddb98ce6b107b86c0b3db425b87e7a7

query I rowsort
SELECT - col1 * col0 - 60 FROM tab1
----
-1100
-138
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + + 19 col2 FROM tab0
----
101
20
52

query I rowsort
SELECT ( + col1 ) * - col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT + + cor0.col2 DIV ( col0 ) + cor0.col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-2063
SELECT + + cor0.col2 / ( col0 ) + cor0.col0 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT ( - col1 ) + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + 51 * col2 - + tab0.col2 * - col0 AS col1 FROM tab0
----
11480
2475
86

query I rowsort
SELECT ALL 77 - col1 FROM tab0
----
-14
-20
-9

query I rowsort
SELECT ALL - cor0.col1 + - col1 * - col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + 89 * col1 + + col0 * col0 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
2395
263091
513253

query I rowsort
SELECT ALL - + ( + col0 ) * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL 58 + - ( + col0 ) + ( col1 ) AS col1 FROM tab0 AS cor0
----
120
120
60

query I rowsort
SELECT DISTINCT - 27 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
-27

query I rowsort
SELECT DISTINCT + 53 + ( + col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1481
-593
-784

query I rowsort
SELECT DISTINCT - + 56 + + col0 AS col2 FROM tab0 AS cor0
----
-21
-32
33

query I rowsort
SELECT - col1 + - ( + col0 ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + cor0.col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 + - col2 * ( + col0 ) + 67 FROM tab1 AS cor0
----
-15293
-257
-7229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2077
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col0 * + col0 + + col0 FROM tab2 AS cor0
----
6240
63
6399

query I rowsort
SELECT DISTINCT - - col2 * 75 AS col1 FROM tab1 AS cor0
----
4050
4275
7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2080
SELECT + col0 * + CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT + col0 * + CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * + 62 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT ALL - col0 + 54 * col1 AS col2 FROM tab2 AS cor0
----
1667
3108
839

query I rowsort
SELECT DISTINCT + col1 * 26 AS col1 FROM tab2
----
1534
442
806

query I rowsort
SELECT - col2 * col2 - col1 * - col0 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT - - col1 * + col0 - + ( col2 ) AS col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2086
SELECT DISTINCT - cor0.col2 * CAST( + col2 AS SIGNED ) + col0 * 10 AS col1 FROM tab1 AS cor0
----
-2609
-2886
-8416

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT - cor0.col2 * CAST ( + col2 AS INTEGER ) + col0 * 10 AS col1 FROM tab1 AS cor0
----
-2609
-2886
-8416

onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT DISTINCT + col0 + CAST( col0 AS SIGNED ) DIV - col1 col2 FROM tab2 AS cor0
----
7
75
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + col0 + CAST ( col0 AS INTEGER ) / - col1 col2 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT col1 * cor0.col0 + 17 FROM tab1 cor0
----
1057
657
95

query I rowsort
SELECT - - col0 + 15 AS col0 FROM tab1 AS cor0
----
18
79
95

query I rowsort
SELECT - col1 * - col1 + + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL col1 + + 31 AS col2 FROM tab1
----
41
44
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT ALL - col2 + - ( col1 ) * - col2 DIV + col2 AS col1 FROM tab0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - col2 + - ( col1 ) * - col2 / + col2 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - col1 + + cor0.col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT ALL cor0.col2 DIV col1 + 1 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL cor0.col2 / col1 + 1 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT ALL - col1 * + col1 * 63 + - col2 AS col0 FROM tab1 AS cor0
----
-10743
-42642
-6357

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2097
SELECT ALL + - col2 * cor0.col1 * + CAST( NULL AS DECIMAL ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + - col2 * cor0.col1 * + CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2098
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 53 + col2 * 95 FROM tab0 AS cor0
----
148
3188
7843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col1 + + col0 col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT cor0.col1 * - 17 FROM tab0, tab2 AS cor0
----
9 values hashing to 3b46fda91128d74082e84574b3cf282a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2102
SELECT - + col2 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT - + col2 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
84

query I rowsort
SELECT 81 + - col2 AS col2 FROM tab1
----
-15
24
27

query I rowsort
SELECT DISTINCT - 39 * - col1 AS col1 FROM tab2
----
1209
2301
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2106
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - 36 FROM tab0, tab2 cor0, tab1 AS cor1
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 45 col2 FROM tab0
----
-41
-46
-52

query I rowsort
SELECT col1 * - 55 FROM tab0
----
-4730
-5005
-5335

onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT ALL + col0 DIV 5 - col1 FROM tab2 AS cor0
----
-2
-30
-44

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL + col0 / 5 - col1 FROM tab2 AS cor0
----
-2
-30
-44

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 93 AS REAL ) + + col1 AS col2 FROM tab1 AS cor0
----
103
106
119

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + col0 * + col1 + + 73 FROM tab2 AS cor0
----
1416
290
4675

query I rowsort
SELECT 61 * cor0.col0 FROM tab2 AS cor0
----
427
4758
4819

onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT DISTINCT col2 + + col2 DIV ( cor0.col0 ) FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT col2 + + col2 / ( cor0.col0 ) FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT DISTINCT + 78 - - col2 FROM tab2 cor0
----
104
105
116

query I rowsort
SELECT + 58 AS col2 FROM tab0 cor0
----
58
58
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2120
SELECT cor0.col0 * cor0.col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT cor0.col0 * cor0.col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT 88 DIV col0 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-2121
SELECT 88 / col0 FROM tab0 cor0
----
0
2
3

query I rowsort
SELECT DISTINCT + 21 + 52 * - col1 FROM tab2 AS cor0
----
-1591
-3047
-863

onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT - col1 * 64 DIV - 64 + tab1.col2 + col0 AS col2 FROM tab1
----
131
189
83

skipif mysql # not compatible
query I rowsort label-2123
SELECT - col1 * 64 / - 64 + tab1.col2 + col0 AS col2 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT - col2 + - 22 * + col0 + col1 * - col1 DIV + col1 FROM tab2
----
-1793
-1801
-212

skipif mysql # not compatible
query I rowsort label-2124
SELECT - col2 + - 22 * + col0 + col1 * - col1 / + col1 FROM tab2
----
-1793
-1801
-212

onlyif mysql # use DIV operator for integer division
query I rowsort label-2125
SELECT + col2 + col1 DIV + col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2125
SELECT + col2 + col1 / + col1 FROM tab1
----
55
58
97

query I rowsort
SELECT DISTINCT - col0 + + 95 FROM tab0
----
6
60
71

query I rowsort
SELECT ( 86 ) AS col2 FROM tab1
----
86
86
86

query I rowsort
SELECT ( - col1 ) - + col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - col0 * 34 + - tab0.col1 + + col0 AS col1 FROM tab0
----
-1252
-3028
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT DISTINCT col1 + col2 DIV - col0 + col2 FROM tab2
----
55
85

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT col1 + col2 / - col0 + col2 FROM tab2
----
55
85

query I rowsort
SELECT col2 + col2 * col2 FROM tab1
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 + + col2 + col2 * tab2.col1 * - col0 col1 FROM tab2
----
-119532
-50902
-5738

query I rowsort
SELECT ALL 15 * - col0 FROM tab1 AS cor0
----
-1200
-45
-960

query I rowsort
SELECT + 97 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT ALL col2 * col1 * + col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col0 - col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - + col0 * + 47 - col0 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 * + 98 AS col2 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT ALL + cor0.col2 * - 54 + + cor0.col0 FROM tab2 AS cor0
----
-1326
-1451
-1973

query I rowsort
SELECT DISTINCT + - col1 * + ( col1 * col0 ) + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-177537
-329316
-737091

query I rowsort
SELECT ALL - col2 + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL - col1 * + 94 + - col0 - cor0.col0 FROM tab2 AS cor0
----
-1756
-2928
-5702

query I rowsort
SELECT col1 * ( col1 ) + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
3748
7849
838

query I rowsort
SELECT DISTINCT - - col0 * - 93 + + cor0.col2 * - col2 + - col0 FROM tab1 AS cor0
----
-16736
-3198
-9265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * col2 col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT col1 * tab0.col0 + + col0 FROM tab0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - col1 col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL - col2 * + col0 * + col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT - - cor0.col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col0 * - col1 - + col1 * - col2 FROM tab1 cor0
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-2151
SELECT + col2 DIV - col0 + col0 * col0 * + col2 col2 FROM tab0 AS cor0
----
1225
19007
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2151
SELECT + col2 / - col0 + col0 * col0 * + col2 col2 FROM tab0 AS cor0
----
1225
19007
649522

query I rowsort
SELECT + cor0.col2 - col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - col2 * + col2 + col2 * col0 FROM tab1 AS cor0
----
-1536
-2754
399

onlyif mysql # use DIV operator for integer division
query I rowsort label-2154
SELECT + col2 DIV cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-2154
SELECT + col2 / cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT ALL - cor0.col1 * col1 - - col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - cor0.col1 + col1 * cor0.col2 * col1 FROM tab0 AS cor0
----
243982
678951
9312

query I rowsort
SELECT DISTINCT + col2 + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL col1 * - cor0.col0 * col1 + col0 AS col0 FROM tab0 AS cor0
----
-177480
-329280
-736920

query I rowsort
SELECT ALL - col1 - col2 * col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + col0 - + col1 AS col2 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col1 * col1 col0 FROM tab2
----
306
3540
992

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = ( NULL ) AND NOT NULL NOT IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2163
SELECT - - col0 * cor0.col2 - - col0 DIV - col1 FROM tab2 cor0
----
189
2027
2998

skipif mysql # not compatible
query I rowsort label-2163
SELECT - - col0 * cor0.col2 - - col0 / - col1 FROM tab2 cor0
----
189
2027
2998

query I rowsort
SELECT ALL tab0.col1 - + tab0.col2 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - col1 - col2 * col0 AS col1 FROM tab0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2166
SELECT ALL - cor0.col2 DIV cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL - cor0.col2 / cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - 95 * col1 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2169
SELECT - 5 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2169
SELECT - 5 / - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col0 + - col1 + col1 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT 59 * - col1 FROM tab2 AS cor0
----
-1003
-1829
-3481

query I rowsort
SELECT - + 43 * col0 AS col0 FROM tab0 cor0
----
-1032
-1505
-3827

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) + col2 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT + ( col1 ) - + col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2175
SELECT + col0 * ( + col2 ) + + col2 * col1 DIV col1 AS col2 FROM tab1
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-2175
SELECT + col0 * ( + col2 ) + + col2 * col1 / col1 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + + 56 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
218
3704
7736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT DISTINCT + col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT + col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL + 9 + - col0 FROM tab0 cor0
----
-15
-26
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT ALL + - col1 * col1 + - col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-290
-3482
-962

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL + - col1 * col1 + - col1 / + col1 AS col2 FROM tab2 AS cor0
----
-290
-3482
-962

onlyif mysql # use DIV operator for integer division
query I rowsort label-2180
SELECT - tab1.col1 DIV tab1.col2 + + col2 * col0 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2180
SELECT - tab1.col1 / tab1.col2 + + col2 * col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col1 + + col2 * cor0.col1 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - 73 * - col0 * col0 FROM tab2 cor0
----
3577
444132
455593

query I rowsort
SELECT ( + col2 ) * col1 * 8 + - tab0.col2 FROM tab0
----
22671
59614
775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2184
SELECT + CAST( NULL AS SIGNED ) + 51 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT + CAST ( NULL AS INTEGER ) + 51 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 73 ) FROM tab1
----
73
73
73

query I rowsort
SELECT cor1.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL col0 * - col0 - col2 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT - col0 * col1 + 92 * cor0.col0 FROM tab2 AS cor0
----
2574
427
5925

query I rowsort
SELECT ALL col0 * - col0 + + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + col0 - 79 FROM tab2 AS cor0
----
-1
-72
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2191
SELECT ALL + col0 * + ( + cor0.col2 ) + - col2 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-1242
3078
6432

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL + col0 * + ( + cor0.col2 ) + - col2 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT col1 * ( cor0.col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT col2 * + cor0.col1 AS col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 * col1 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col0 col0 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL - - col0 + 26 * - col1 AS col1 FROM tab0 AS cor0
----
-2212
-2277
-2487

onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT ALL + 74 DIV + col1 + + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1243
-1402
-563

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + 74 / + col1 + + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1243
-1402
-563

query I rowsort
SELECT DISTINCT - col2 * ( - cor0.col2 ) + ( - col1 * col1 ) FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT + tab0.col2 * + col2 + - 72 FROM tab0
----
-71
1017
6652

query I rowsort
SELECT 37 + + col0 AS col2 FROM tab1 cor0
----
101
117
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT cor0.col1 DIV + col0 AS col2 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2201
SELECT cor0.col1 / + col0 AS col2 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT - + ( - 6 ) AS col0 FROM tab2 cor0
----
6
6
6

query I rowsort
SELECT ( 6 ) * cor0.col0 FROM tab0 cor0
----
144
210
534

query I rowsort
SELECT col0 + + 33 FROM tab0 AS cor0
----
122
57
68

query I rowsort
SELECT DISTINCT col1 * + 68 AS col2 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT - col1 * - col2 * col2 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2207
SELECT + 88 DIV - 55 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2207
SELECT + 88 / - 55 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 38 * - 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT 76 + - cor0.col1 DIV col1 col1 FROM tab2 cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2209
SELECT 76 + - cor0.col1 / col1 col1 FROM tab2 cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col2 * cor0.col2 col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2211
SELECT DISTINCT cor0.col1 * - col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT cor0.col1 * - col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2213
SELECT ALL - col2 DIV + col0 col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL - col2 / + col0 col0 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2214
SELECT col0 DIV - col1 + cor0.col2 AS col0 FROM tab2 cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-2214
SELECT col0 / - col1 + cor0.col2 AS col0 FROM tab2 cor0
----
25
27
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2215
SELECT - col2 DIV + 14 AS col0 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT - col2 / + 14 AS col0 FROM tab0 AS cor0
----
-2
-5
0

query I rowsort
SELECT + - col1 + ( 24 ) * col0 - 86 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-465
-4895
-4915

query I rowsort
SELECT ALL - 82 FROM tab2, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL 8 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT - + tab1.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL + ( + 21 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL + + cor0.col2 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT ALL 96 + 97 DIV cor0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL 96 + 97 / cor0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2223
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1, tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - + col2 * + 25 FROM tab1 AS cor0
----
-1350
-1425
-2400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2225
SELECT ALL - + col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL - + col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * cor0.col1 - - col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2227
SELECT DISTINCT - cor0.col1 * + CAST( 57 AS SIGNED ) FROM tab2 AS cor0
----
-1767
-3363
-969

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT - cor0.col1 * + CAST ( 57 AS INTEGER ) FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT ALL + col2 * + 88 AS col0 FROM tab0 AS cor0
----
2904
7216
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( + col1 ) + col2 * 89 col0 FROM tab2
----
-2288
2039
2186

query I rowsort
SELECT ALL - - col0 + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + 30 AS col1 FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT col0 * col0 + + col0 AS col0 FROM tab0
----
1260
600
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2233
SELECT col1 + + CAST( col0 AS SIGNED ) FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2233
SELECT col1 + + CAST ( col0 AS INTEGER ) FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col0 - - col1 * col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT DISTINCT 77 * - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-1948
-713
-905

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2236
SELECT ALL - col0 + col0 - CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL - col0 + col0 - CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 74 + 21 AS col1 FROM tab1
----
95

query I rowsort
SELECT ALL - 13 * tab1.col0 + - col1 AS col2 FROM tab1
----
-1053
-65
-842

query I rowsort
SELECT DISTINCT - col0 * + 34 + col1 AS col2 FROM tab2
----
-207
-2593
-2669

query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col0 FROM tab0, tab2, tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2241
SELECT col2 + col1 DIV - cor0.col1 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-2241
SELECT col2 + col1 / - cor0.col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT DISTINCT - 55 * col2 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 * - col0 * col1 FROM tab1 AS cor0
----
-1638
-41530
-84448

query I rowsort
SELECT - ( - cor0.col2 ) * + ( + 10 ) FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT + + 63 AS col1 FROM tab1 cor0
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT - col2 + col0 DIV - col2 col2 FROM tab0
----
-33
-36
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2246
SELECT - col2 + col0 / - col2 col2 FROM tab0
----
-33
-36
-83

query I rowsort
SELECT DISTINCT + col0 + + col1 * 15 AS col0 FROM tab0 AS cor0
----
1314
1454
1490

query I rowsort
SELECT + + 35 AS col1 FROM tab1 cor0
----
35
35
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2249
SELECT DISTINCT - col2 + col2 DIV 15 AS col1 FROM tab2 AS cor0
----
-25
-26
-36

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT - col2 + col2 / 15 AS col1 FROM tab2 AS cor0
----
-25
-26
-36

query I rowsort
SELECT - 37 * - col1 AS col0 FROM tab1 cor0
----
370
481
962

query I rowsort
SELECT - - col0 * 63 FROM tab2 AS cor0
----
441
4914
4977

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 - CAST ( 34 + - col2 AS REAL ) FROM tab1 AS cor0
----
-34

query I rowsort
SELECT DISTINCT - cor0.col1 + - ( + cor0.col1 ) FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT + col2 + col0 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
36537
4266
99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2255
SELECT DISTINCT 12 DIV 22 AS col2 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT 12 / 22 AS col2 FROM tab2, tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - col0 + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT 15 + tab0.col2 AS col0 FROM tab0
----
16
48
97

query I rowsort
SELECT ALL - cor0.col0 * 93 AS col0 FROM tab1 cor0
----
-279
-5952
-7440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2259
SELECT ALL - col2 + + CAST( col0 AS SIGNED ) * col1 FROM tab1 AS cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL - col2 + + CAST ( col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - cor0.col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2261
SELECT DISTINCT + - cor0.col1 + - 51 DIV 2 AS col1 FROM tab2 AS cor0
----
-42
-56
-84

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT + - cor0.col1 + - 51 / 2 AS col1 FROM tab2 AS cor0
----
-42
-56
-84

query I rowsort
SELECT DISTINCT + - col0 + - col1 + - col2 FROM tab0 AS cor0
----
-133
-143
-262

onlyif mysql # use DIV operator for integer division
query I rowsort label-2263
SELECT 41 * tab1.col0 DIV col2 + + col2 FROM tab1
----
103
130
56

skipif mysql # not compatible
query I rowsort label-2263
SELECT 41 * tab1.col0 / col2 + + col2 FROM tab1
----
103
130
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT 79 * + col0 + col0 + + col1 DIV - ( col2 + col0 ) AS col0 FROM tab2
----
560
6240
6320

skipif mysql # not compatible
query I rowsort label-2264
SELECT 79 * + col0 + col0 + + col1 / - ( col2 + col0 ) AS col0 FROM tab2
----
560
6240
6320

query I rowsort
SELECT DISTINCT + ( 90 ) AS col2 FROM tab0 AS cor0
----
90

query I rowsort
SELECT DISTINCT + + 17 + + col2 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT - col1 * - col1 + col0 * 86 * col2 - - col0 AS col2 FROM tab2 AS cor0
----
17222
177967
258540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 19 col0 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-2269
SELECT ALL + ( + col1 ) + col1 DIV col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL + ( + col1 ) + col1 / col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT - ( - 53 ) * + col0 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT ALL + + cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT 82 + + col0 FROM tab0 AS cor0
----
106
117
171

query I rowsort
SELECT ALL col2 + col0 * - col2 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ( + col0 ) + col1 - - ( col2 ) * col0 AS col0 FROM tab1
----
191
3722
7773

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT ALL 28 + + tab2.col0 * - col1 + col2 * - col2 FROM tab2
----
-2759
-5250
-918

query I rowsort
SELECT ( + tab2.col1 ) * + col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT col0 + col2 + col0 * - col1 * - col2 FROM tab1
----
100016
36601
4269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + tab2.col1 col1 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT + col0 * + col2 + + col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1 + col2 * + col2 + - col2
----

query I rowsort
SELECT ALL col1 * - col1 * col2 + col1 AS col0 FROM tab0
----
-243982
-678951
-9312

query I rowsort
SELECT DISTINCT col0 + col0 * + col0 AS col1 FROM tab0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab1.col2 col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT col2 * - col2 <> NULL
----

query I rowsort
SELECT col2 + col0 * tab2.col0 * + col2 FROM tab2
----
1350
158210
237196

query I rowsort
SELECT - col1 + + col1 + col1 * + col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + tab2.col0 * - col1 / col0 + col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 WHERE ( col2 ) NOT IN ( col0 * + col2 )
----
-24
-35
-89

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col0 * col2 ) AND - col2 * col1 + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2293
SELECT ALL + col2 DIV col1 + col0 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + col2 / col1 + col0 FROM tab2
----
7
78
81

query I rowsort
SELECT DISTINCT - col1 * col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - - cor0.col1 * - col2 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT tab0.col0 DIV - tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2296
SELECT tab0.col0 / - tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 + col2 * col1 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT ALL - col2 * col0 FROM tab2 AS cor0 WHERE NOT + col0 * col2 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2300
SELECT - col0 DIV - col2 + + col2 * - col0 * col1 FROM tab1 AS cor0
----
-36479
-4212
-99840

skipif mysql # not compatible
query I rowsort label-2300
SELECT - col0 / - col2 + + col2 * - col0 * col1 FROM tab1 AS cor0
----
-36479
-4212
-99840

query I rowsort
SELECT + tab0.col0 + col0 * col2 FROM tab0 WHERE - col0 NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT DISTINCT + tab0.col0 * col0 + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT col2 * + col1 * - tab2.col0 + col1 * - col1 FROM tab2
----
-123133
-51323
-6820

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) IN ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL cor0.col2 * + col1 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT col2 * col1 + - col2 * + col1 * col2 FROM tab0 AS cor0
----
-604422
-90816
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2309
SELECT ALL + col2 + 93 * + tab1.col2 * tab1.col1 - col1 DIV + col1 AS col2 FROM tab1
----
116159
130625
53066

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL + col2 + 93 * + tab1.col2 * tab1.col1 - col1 / + col1 AS col2 FROM tab1
----
116159
130625
53066

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT - col0 * - col0 - - 17 AS col0 FROM tab2 AS cor0
----
6101
6258
66

query I rowsort
SELECT - cor0.col2 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + col0 + - 81 AS col2 FROM tab0 AS cor0
----
-46
-57
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 + - col2 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col0 * - col2 * - 25 AS col1 FROM tab2
----
-4725
-50700
-75050

query I rowsort
SELECT ALL + col2 * - col2 + - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT - 37 + col1 FROM tab2 cor0
----
-20
-6
22

query I rowsort
SELECT col0 * - tab2.col0 + 99 FROM tab2
----
-5985
-6142
50

query I rowsort
SELECT - col2 * 51 + + 53 AS col2 FROM tab0 cor0
----
-1630
-4129
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2323
SELECT col2 + ( col1 ) * col0 + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
2121
3431
8270

skipif mysql # not compatible
query I rowsort label-2323
SELECT col2 + ( col1 ) * col0 + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
2121
3431
8270

query I rowsort
SELECT ALL + cor0.col1 * 94 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 65e1bdd814535bc8e8f91e988ba400a4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + col1 * + col0 col1 FROM tab0
----
173376
285180
680316

query I rowsort
SELECT - tab1.col0 * - col0 + col0 FROM tab1
----
12
4160
6480

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col2 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT DISTINCT + col0 DIV col1 + - col2 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
-18
5
6

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT + col0 / col1 + - col2 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
-18
5
6

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL cor0.col0 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL col0 - ( + col0 ) * col0 * - cor0.col2 FROM tab1 AS cor0
----
233536
489
614480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2333
SELECT CAST( + col0 AS SIGNED ) * - col2 col1 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2333
SELECT CAST ( + col0 AS INTEGER ) * - col2 col1 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * cor0.col0 col0 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col0 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL 75 * col0 AS col2 FROM tab0 AS cor0
----
1800
2625
6675

query I rowsort
SELECT DISTINCT - col2 + col2 * + col1 - + cor0.col0 FROM tab1 AS cor0
----
1072
1347
449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 - col2 col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2339
SELECT ALL col0 DIV col1 + - col1 AS col2 FROM tab1 cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL col0 / col1 + - col1 AS col2 FROM tab1 cor0
----
-26
-4
-7

query I rowsort
SELECT ALL col0 * - col0 + cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - 27 - col1 FROM tab1 AS cor0
----
-37
-40
-53

query I rowsort
SELECT ALL ( col2 + + tab2.col0 ) FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col0 + + col1 * 70 FROM tab0 AS cor0
----
6044
6459
6825

query I rowsort
SELECT + - col2 + + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + 48 - - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5473b80f743321556c1e1a8967e5f508

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7

query I rowsort
SELECT DISTINCT - col1 + 45 * + cor0.col1 FROM tab2 AS cor0
----
1364
2596
748

query I rowsort
SELECT DISTINCT - col1 * + 54 FROM tab1
----
-1404
-540
-702

query I rowsort
SELECT ALL - tab2.col1 * 33 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 901ac60946817c6d8433004277b25c05

query I rowsort
SELECT DISTINCT + cor0.col1 + - ( + cor0.col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - 45 + + cor0.col1 FROM tab0 AS cor0
----
41
46
52

query I rowsort
SELECT + - col2 + + ( + col1 ) * - col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - cor0.col1 + 33 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-262
-2624
-2633

query I rowsort
SELECT DISTINCT cor0.col0 - + 37 AS col0 FROM tab1 AS cor0
----
-34
27
43

query I rowsort
SELECT + ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - col2 + 83 AS col2 FROM tab1
----
-13
26
29

query I rowsort
SELECT ALL - 4 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT col2 * ( 59 ) FROM tab0
----
1947
4838
59

skipif mysql # not compatible
query I rowsort
SELECT + col2 - CAST ( col0 AS REAL ) AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - - col0 * 7 FROM tab1 AS cor0
----
21
448
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT - ( - col1 ) * cor0.col1 DIV cor0.col2 + 59 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
11474
1640
5351

skipif mysql # not compatible
query I rowsort label-2361
SELECT - ( - col1 ) * cor0.col1 / cor0.col2 + 59 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
11474
1640
5351

query I rowsort
SELECT 81 * - 38 FROM tab1 AS cor0
----
-3078
-3078
-3078

query I rowsort
SELECT ALL - 67 * - col0 FROM tab0 cor0
----
1608
2345
5963

query I rowsort
SELECT DISTINCT + 70 * - col1 AS col0 FROM tab2 cor0
----
-1190
-2170
-4130

query I rowsort
SELECT ALL - col0 + 7 AS col1 FROM tab2
----
-71
-72
0

query I rowsort
SELECT col0 * col2 + + col0 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT + col0 * ( col0 ) + - col0 * col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 * 30 * - col0 FROM tab1 AS cor0
----
-19200
-2340
-31200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2369
SELECT + CAST( col0 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2369
SELECT + CAST ( col0 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL ( 57 ) FROM tab0
----
57
57
57

query I rowsort
SELECT ALL 20 - - col2 FROM tab2
----
46
47
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2373
SELECT DISTINCT col0 * - col1 - ( + col1 ) DIV - tab0.col2 AS col0 FROM tab0
----
-2062
-3298
-8098

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT col0 * - col1 - ( + col1 ) / - tab0.col2 AS col0 FROM tab0
----
-2062
-3298
-8098

onlyif mysql # use DIV operator for integer division
query I rowsort label-2374
SELECT - + col2 * cor0.col1 DIV + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-2374
SELECT - + col2 * cor0.col1 / + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + tab2.col2 * col1 - - col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * - ( + col1 + + col0 ) AS col2 FROM tab2 AS cor0
----
-10764
-273
-7663

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab1, tab2, tab2 AS cor0
----
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2378
SELECT DISTINCT 79 * - col1 + - CAST( col2 AS SIGNED ) * col1 FROM tab2
----
-1989
-3286
-6195

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT 79 * - col1 + - CAST ( col2 AS INTEGER ) * col1 FROM tab2
----
-1989
-3286
-6195

query I rowsort
SELECT - col1 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - col2 + 30 * + col2 AS col2 FROM tab2 AS cor0
----
1102
754
783

query I rowsort
SELECT - col1 + ( col0 ) * col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - col0 * + 1 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 + - col0 * + col1 col2 FROM tab1 AS cor0
----
-1107
-55
-694

onlyif mysql # use DIV operator for integer division
query I rowsort label-2384
SELECT ALL cor0.col2 + ( cor0.col2 ) DIV + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL cor0.col2 + ( cor0.col2 ) / + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL + - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT ALL col1 DIV + col0 AS col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL col1 / + col0 AS col0 FROM tab1 cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * - col2 col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + col1 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + col2 + + col1 * ( col1 ) FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + - col0 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2391
SELECT DISTINCT - + cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - + cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 * + 90 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
15040
4869
9226

onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT ALL - + cor0.col1 DIV - 73 + 28 FROM tab1 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL - + cor0.col1 / - 73 + 28 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT - cor0.col2 + - 66 FROM tab1 cor0
----
-120
-123
-162

query I rowsort
SELECT + 12 * + 9 FROM tab0, tab0 cor0
----
9 values hashing to 6d22d46245dff8bdc639b4b61304fdd9

query I rowsort
SELECT - - col1 + - 49 AS col1 FROM tab1 AS cor0
----
-23
-36
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 * col0 col2 FROM tab1
----
216
4608
5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2398
SELECT col2 DIV + col0 + cor0.col0 + + col0 AS col2 FROM tab1 cor0
----
128
161
24

skipif mysql # not compatible
query I rowsort label-2398
SELECT col2 / + col0 + cor0.col0 + + col0 AS col2 FROM tab1 cor0
----
128
161
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT col1 * col2 + col1 * + col1 + - col1 DIV + col2 FROM tab0 AS cor0
----
10232
15742
9409

skipif mysql # not compatible
query I rowsort label-2399
SELECT col1 * col2 + col1 * + col1 + - col1 / + col2 FROM tab0 AS cor0
----
10232
15742
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * col1 * + col1 col0 FROM tab0 AS cor0
----
428968
480298
545722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col0 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - + ( - col1 ) * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + col0 * 28 - + cor0.col1 FROM tab0 AS cor0
----
-1077
-2583
-758

query I rowsort
SELECT + - 19 - col2 AS col0 FROM tab2 AS cor0
----
-45
-46
-57

query I rowsort
SELECT col1 * + cor0.col1 + + cor0.col0 + + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1289
757
804

query I rowsort
SELECT - col1 + col2 + col0 * - col0 FROM tab0 AS cor0
----
-1321
-629
-7930

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 51 AS REAL ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT 68 + + 22 FROM tab1, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - - col0 * + col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2410
SELECT DISTINCT ( + cor0.col2 ) DIV - 16 FROM tab2, tab0 cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT ( + cor0.col2 ) / - 16 FROM tab2, tab0 cor0
----
-2
-5
0

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab1, tab1 AS cor0
----
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2412
SELECT ALL - tab0.col1 + - col0 DIV col2 FROM tab0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL - tab0.col1 + - col0 / col2 FROM tab0
----
-132
-86
-92

query I rowsort
SELECT + col1 * + col0 * col0 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT 16 + + col2 FROM tab1
----
112
70
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col0 - ( + col2 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + col0 * 11 AS col2 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT + 4 - - col2 AS col2 FROM tab2 AS cor0
----
30
31
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT ALL - + ( + 75 ) DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - + ( + 75 ) / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - col2 * - col2 + + col0 - col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - + 40 * col2 FROM tab0 cor0
----
-1320
-3280
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2423
SELECT DISTINCT col2 + col2 * - CAST( 12 AS SIGNED ) + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1267
-2096
-672

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT col2 + col2 * - CAST ( 12 AS INTEGER ) + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1267
-2096
-672

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT + 53 + + col1 AS col0 FROM tab1 AS cor0
----
63
66
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT + - cor0.col1 + col1 - + col1 DIV 22 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2426
SELECT + - cor0.col1 + col1 - + col1 / 22 FROM tab2 cor0
----
-1
-2
0

query I rowsort
SELECT ALL + - 69 * + col0 FROM tab1 cor0
----
-207
-4416
-5520

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + + 35 AS col2 FROM tab2 AS cor0
----
-24
18
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2429
SELECT DISTINCT + + 30 + col1 DIV - col0 FROM tab1 AS cor0
----
22
30

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT + + 30 + col1 / - col0 FROM tab1 AS cor0
----
22
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-2430
SELECT - col1 + + col0 * - cor0.col1 + col1 DIV col0 FROM tab0 AS cor0
----
-2147
-3490
-8189

skipif mysql # not compatible
query I rowsort label-2430
SELECT - col1 + + col0 * - cor0.col1 + col1 / col0 FROM tab0 AS cor0
----
-2147
-3490
-8189

query I rowsort
SELECT + + 79 AS col1 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT - tab1.col0 * + 5 * + col0 FROM tab1
----
-20480
-32000
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2433
SELECT ALL + 28 DIV - 20 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + 28 / - 20 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 0 + - col1 * - col1 - + col1 AS col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT + cor0.col0 * - cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT col1 * + cor0.col0 + ( + col0 ) FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - - 34 - + col0 FROM tab1 AS cor0
----
-30
-46
31

query I rowsort
SELECT - col0 + 1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT 48 + col1 FROM tab0 AS cor0
----
134
139
145

query I rowsort
SELECT ALL - 86 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

query I rowsort
SELECT ALL ( - col0 ) + col1 * 37 FROM tab1 AS cor0
----
306
401
959

query I rowsort
SELECT - + ( 58 ) AS col0 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - 4 + cor0.col2 FROM tab1 AS cor0
----
50
53
92

query I rowsort
SELECT + 38 + + col1 AS col0 FROM tab0 AS cor0
----
124
129
135

query I rowsort
SELECT cor0.col0 * - col0 + - ( 89 ) * - col0 FROM tab1 AS cor0
----
1600
258
720

query I rowsort
SELECT DISTINCT - col0 + col0 * + col2 * ( - col1 * col0 ) FROM tab1
----
-12639
-2334784
-7987280

query I rowsort
SELECT ALL - 99 AS col0 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2448
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col1 + + 13 * - col1 FROM tab1
----
-140
-182
-364

query I rowsort
SELECT ALL + + col2 + - ( ( col1 ) ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col1 + - 21 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
31
5

query I rowsort
SELECT ALL + col2 * 45 + cor0.col2 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT - - col2 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col1 - - 97 AS col0 FROM tab1 cor0
----
107
110
123

query I rowsort
SELECT DISTINCT - cor0.col0 * + 77 * - col1 + + cor0.col1 * + ( ( + col1 ) ) FROM tab2 AS cor0
----
103700
17670
357835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * tab1.col1 * + 74 + col2 col0 FROM tab1
----
12698
50132
7514

query I rowsort
SELECT DISTINCT - col1 + + 82 AS col2 FROM tab2
----
23
51
65

query I rowsort
SELECT - col0 - + 42 AS col0 FROM tab2 AS cor0
----
-120
-121
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) - - col1 col1 FROM tab1
----
29
74
93

query I rowsort
SELECT 79 + + col1 * col2 + + 63 AS col2 FROM tab2
----
1676
788
979

query I rowsort
SELECT - 35 + - 57 AS col2 FROM tab0 cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT cor0.col2 - - col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + + ( col2 ) * - cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col0 - - 79 AS col0 FROM tab0 AS cor0
----
-10
44
55

query I rowsort
SELECT 7 * 48 AS col0 FROM tab0 AS cor0
----
336
336
336

query I rowsort
SELECT + ( cor0.col0 ) * col0 - col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL col0 * col0 - + 63 * + cor0.col0 FROM tab0 AS cor0
----
-936
-980
2314

onlyif mysql # use DIV operator for integer division
query I rowsort label-2469
SELECT ALL - - col2 DIV + col0 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - - col2 / + col0 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT - - 50 * col1 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-1616
-2749
-8566

onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT - 68 + + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-2471
SELECT - 68 + + col0 / col0 AS col0 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + 20 + col1 FROM tab1 AS cor0
----
30
33
46

query I rowsort
SELECT ALL col1 + col2 * 15 - 81 AS col1 FROM tab0 AS cor0
----
1240
31
500

query I rowsort
SELECT ALL 47 AS col1 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2475
SELECT + + 73 + - col2 * - CAST( - ( + col2 ) + ( 96 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
2296
2341
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2475
SELECT + + 73 + - col2 * - CAST ( - ( + col2 ) + ( 96 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
2296
2341
73

query I rowsort
SELECT DISTINCT - + col2 * cor0.col0 + 91 + + 83 AS col1 FROM tab0 AS cor0
----
-618
-7124
139

query I rowsort
SELECT DISTINCT + - 27 * col2 + col2 * col1 FROM tab1 AS cor0
----
-1344
-54
-969

query I rowsort
SELECT ALL + col1 - cor0.col2 * col1 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT - 21 * 74 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 159a31069234848f49397cc4cf4816e9

query I rowsort
SELECT ALL col0 * - 20 AS col1 FROM tab0
----
-1780
-480
-700

query I rowsort
SELECT DISTINCT col0 * col0 * + tab1.col2 AS col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL ( col0 * + ( col2 ) + col0 ) AS col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT - col1 * col0 * cor0.col0 + + 92 * - cor0.col0 * 12 FROM tab2 AS cor0
----
-193313
-445068
-9247

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT - 47 DIV - col1 + + ( col1 ) - col0 AS col0 FROM tab1 AS cor0
----
-50
-64
24

skipif mysql # not compatible
query I rowsort label-2485
SELECT - 47 / - col1 + + ( col1 ) - col0 AS col0 FROM tab1 AS cor0
----
-50
-64
24

query I rowsort
SELECT DISTINCT col0 * - col1 - - col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT - - 60 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT DISTINCT - col0 + col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT 8 + - col0 FROM tab0
----
-16
-27
-81

query I rowsort
SELECT DISTINCT + ( + col0 ) + + col1 + tab1.col1 AS col1 FROM tab1
----
106
55
84

query I rowsort
SELECT + col0 * ( 76 ) + + col1 AS col2 FROM tab1 AS cor0
----
254
4874
6093

query I rowsort
SELECT ALL + ( col2 ) + + tab0.col0 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT 97 + - col0 AS col0 FROM tab2
----
18
19
90

query I rowsort
SELECT - 18 * + col1 * - col2 AS col0 FROM tab2
----
11628
15066
27612

query I rowsort
SELECT DISTINCT - ( tab0.col1 ) + col1 AS col1 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2496
SELECT ALL CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( ( col0 ) ) + + ( col1 ) AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL ( col0 ) + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + 14 * 79 FROM tab1 AS cor0
----
-1106
-1106
-1106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col0 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT ALL CAST( - 2 AS SIGNED ) * + col2 + + col1 AS col0 FROM tab2 AS cor0
----
-23
-59
7

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL CAST ( - 2 AS INTEGER ) * + col2 + + col1 AS col0 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT 67 FROM tab1, tab2 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT - 78 + + 20 + - tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
-147
-82
-93

query I rowsort
SELECT + 69 * tab1.col2 AS col2 FROM tab2, tab1 cor0 CROSS JOIN tab1, tab0, tab2 AS cor1
----
243 values hashing to c13da443c0c7a58f61c8c1ce461dabb6

query I rowsort
SELECT + col0 * - col2 + tab2.col2 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-2506
SELECT - 88 + col0 DIV col1 + col1 AS col1 FROM tab1
----
-62
-69
-72

skipif mysql # not compatible
query I rowsort label-2506
SELECT - 88 + col0 / col1 + col1 AS col1 FROM tab1
----
-62
-69
-72

query I rowsort
SELECT DISTINCT - col2 * 82 AS col1 FROM tab0 AS cor0
----
-2706
-6724
-82

query I rowsort
SELECT - col1 * - ( - col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2509
SELECT ALL CAST( - 6 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL CAST ( - 6 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + cor0.col0 * - 24 FROM tab2 AS cor0
----
-168
-1872
-1896

onlyif mysql # use DIV operator for integer division
query I rowsort label-2512
SELECT ALL - + col1 DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - + col1 / - cor0.col0 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2513
SELECT + col2 * CAST( - col2 AS SIGNED ) FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-2513
SELECT + col2 * CAST ( - col2 AS INTEGER ) FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2514
SELECT - col1 DIV - col0 + + col2 AS col0 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-2514
SELECT - col1 / - col0 + + col2 AS col0 FROM tab1
----
57
62
96

query I rowsort
SELECT col2 * - col0 + - col2 FROM tab0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - ( 51 ) col0 FROM tab0
----
-1683
-4182
-51

query I rowsort
SELECT - - col0 - - 81 AS col0 FROM tab0 AS cor0
----
105
116
170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2518
SELECT - - CAST( col1 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-2518
SELECT - - CAST ( col1 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 + - col0 FROM tab1 AS cor0
----
-64
-71
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + + ( + col1 ) col1 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT + col1 * - 38 AS col2 FROM tab2
----
-1178
-2242
-646

query I rowsort
SELECT DISTINCT col0 + + 66 * col1 FROM tab0
----
5700
6095
6437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * + col2 * + col0 col2 FROM tab2
----
114155
5110
52806

query I rowsort
SELECT + 72 + col2 FROM tab1 AS cor0
----
126
129
168

query I rowsort
SELECT + col2 + 24 AS col2 FROM tab0 AS cor0
----
106
25
57

query I rowsort
SELECT - + cor0.col2 * col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + - 8 * - col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT col0 + 5 AS col2 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT ALL + + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - + 61 * col2 FROM tab0 AS cor0
----
-2013
-5002
-61

query I rowsort
SELECT + + 23 * col2 AS col2 FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT + + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2533
SELECT + - col2 DIV - cor0.col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2533
SELECT + - col2 / - cor0.col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 97 AS col1 FROM tab2 AS cor0
----
-97

query I rowsort
SELECT 1 * + col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT cor0.col0 * + ( 36 ) AS col2 FROM tab0 AS cor0
----
1260
3204
864

query I rowsort
SELECT - + cor0.col0 + 82 AS col1 FROM tab2 AS cor0
----
3
4
75

query I rowsort
SELECT col1 + col1 * - ( col2 ) AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
0

query I rowsort
SELECT + col1 + 69 * ( - col0 + 95 * col1 ) FROM tab0 AS cor0
----
562160
590455
633517

onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT ALL 82 * - col1 DIV ( - col1 ) AS col1 FROM tab2
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL 82 * - col1 / ( - col1 ) AS col1 FROM tab2
----
82
82
82

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab0, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL - cor0.col0 * + 36 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9033e7447ec81b00569dc9b9134660b0

query I rowsort
SELECT DISTINCT 91 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
91

query I rowsort
SELECT DISTINCT - col0 * + col2 + col2 AS col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT + - col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col2 + + 6 FROM tab2 AS cor0
----
32
33
44

query I rowsort
SELECT 27 FROM tab1, tab1 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT ALL + ( - col2 ) DIV col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL + ( - col2 ) / col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col1 * + ( + col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col2 * - cor0.col1 + - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 437e4bcaa1fa367f26887c0994f7fdd6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2552
SELECT + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

skipif mysql # not compatible
query I rowsort label-2552
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2553
SELECT ALL CAST( NULL AS SIGNED ) + 36 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL CAST ( NULL AS INTEGER ) + 36 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT cor0.col1 + col1 * col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT col0 + col2 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
221
345
733

query I rowsort
SELECT - 90 FROM tab0, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 7414b682e5ab5dac55bc20746601d17a

query I rowsort
SELECT col1 * - 30 FROM tab0
----
-2580
-2730
-2910

query I rowsort
SELECT DISTINCT - col2 + col1 * ( - tab0.col1 ) * + col0 FROM tab0
----
-177537
-329316
-737091

onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT ALL - col1 * col0 DIV - col2 AS col0 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - col1 * col0 / - col2 AS col0 FROM tab0
----
3395
62
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2560
SELECT - ( cor0.col1 ) * col0 DIV - col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2560
SELECT - ( cor0.col1 ) * col0 / - col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2561
SELECT col2 * + col1 * col2 + - col0 DIV col1 FROM tab1 AS cor0
----
119802
32484
75816

skipif mysql # not compatible
query I rowsort label-2561
SELECT col2 * + col1 * col2 + - col0 / col1 FROM tab1 AS cor0
----
119802
32484
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2562
SELECT + col1 DIV col2 + 90 + col0 FROM tab1 AS cor0
----
154
170
93

skipif mysql # not compatible
query I rowsort label-2562
SELECT + col1 / col2 + 90 + col0 FROM tab1 AS cor0
----
154
170
93

query I rowsort
SELECT - col1 * + col0 + 18 AS col0 FROM tab0 AS cor0
----
-2046
-3377
-8081

query I rowsort
SELECT ALL - 64 * + col1 AS col0 FROM tab1 AS cor0
----
-1664
-640
-832

query I rowsort
SELECT ALL + cor0.col1 * - col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 76 + + col2 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT ALL + + col0 * col0 * + col1 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT - col0 + - col0 * 47 FROM tab0 AS cor0
----
-1152
-1680
-4272

query I rowsort
SELECT + col0 * col2 + col0 * col1 * col0 - + col0 * - col0 FROM tab1 AS cor0
----
405
48704
97280

query I rowsort
SELECT DISTINCT - 21 + col0 * 42 AS col2 FROM tab0 AS cor0
----
1449
3717
987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT col0 + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + tab1.col0 * - col1 - + col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT ALL - 53 - 18 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT ( col1 ) + + col1 AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT col1 * col1 * + col2 - ( + col1 ) FROM tab0
----
243982
678951
9312

query I rowsort
SELECT DISTINCT - 71 + + col1 AS col1 FROM tab2 AS cor0
----
-12
-40
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * - col2 + col1 * + col0 col2 FROM tab2 AS cor0
----
1153
4472
82

query I rowsort
SELECT + 47 + + col0 FROM tab0 AS cor0
----
136
71
82

query I rowsort
SELECT 21 + + col0 AS col2 FROM tab2
----
100
28
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2581
SELECT ALL - + 49 DIV + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4e9105f1b6d8a1e57cb2d6032b88d437

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL - + 49 / + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4e9105f1b6d8a1e57cb2d6032b88d437

query I rowsort
SELECT ALL - 96 + - col0 AS col2 FROM tab0 AS cor0
----
-120
-131
-185

query I rowsort
SELECT DISTINCT 19 FROM tab0, tab1 AS cor0
----
19

query I rowsort
SELECT - - ( - 60 ) FROM tab1 cor0
----
-60
-60
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2585
SELECT ( 59 ) DIV col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2585
SELECT ( 59 ) / col0 FROM tab0
----
0
1
2

query I rowsort
SELECT + col2 * 63 + tab2.col2 + + col0 FROM tab2
----
1735
1742
2511

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col2 + + col0 col2 FROM tab2 cor0
----
100
3
45

query I rowsort
SELECT + 45 + col1 FROM tab0 AS cor0
----
131
136
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 84 col2 FROM tab0
----
2
51
83

query I rowsort
SELECT - ( - col0 ) * col2 * 14 + - 36 FROM tab2
----
2610
28356
41992

query I rowsort
SELECT + 67 + 15 FROM tab0
----
82
82
82

query I rowsort
SELECT + + 18 * col2 FROM tab0 cor0
----
1476
18
594

query I rowsort
SELECT DISTINCT 71 - col2 FROM tab1 AS cor0
----
-25
14
17

query I rowsort
SELECT ALL + col1 + 80 AS col0 FROM tab2 AS cor0
----
111
139
97

query I rowsort
SELECT ALL - col2 * 90 * cor0.col2 + col2 FROM tab2 AS cor0
----
-129922
-60814
-65583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * 86 * - 23 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9bb74b28e536183e340bfd6d7340243a

query I rowsort
SELECT ALL + - 47 + + col2 * - cor0.col0 FROM tab2 cor0
----
-2075
-236
-3049

onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT ALL 24 + col2 DIV + col0 FROM tab1 AS cor0
----
24
25
42

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL 24 + col2 / + col0 FROM tab1 AS cor0
----
24
25
42

query I rowsort
SELECT ALL col1 + col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT DISTINCT + 33 * 46 FROM tab1 AS cor0
----
1518

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 + col0 * col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 82 * - cor0.col1 - - col0 FROM tab1 AS cor0
----
-2129
-756
-986

query I rowsort
SELECT DISTINCT 58 + - col2 FROM tab0 cor0
----
-24
25
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + 56 * - col0 * cor0.col0 - col1 * cor0.col0 col1 FROM tab1 AS cor0
----
-229446
-358192
822

query I rowsort
SELECT + ( col0 ) - + col2 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT 42 + - col0 AS col1 FROM tab1
----
-22
-38
39

query I rowsort
SELECT 4 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46

query I rowsort
SELECT + cor0.col1 - + cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT ALL - cor0.col0 DIV col0 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - cor0.col0 / col0 AS col1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2610
SELECT DISTINCT + - col0 + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + - col0 + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT cor0.col0 + ( + col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + col0 * 36 AS col2 FROM tab0 cor0
----
1260
3204
864

query I rowsort
SELECT - - col2 * - 69 FROM tab2 AS cor0
----
-1794
-1863
-2622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 73 col0 FROM tab2 AS cor0
----
-100
-111
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2615
SELECT ALL - - CAST( - col2 AS SIGNED ) + - col0 DIV - col1 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL - - CAST ( - col2 AS INTEGER ) + - col0 / - col1 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT ALL - cor0.col1 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - cor0.col2 * + ( + col2 * col0 ) FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL 49 * col2 * col2 + ( + col0 ) + + col1 FROM tab1 AS cor0
----
142913
159275
451677

query I rowsort
SELECT + col0 + + col0 * 54 FROM tab0
----
1320
1925
4895

query III rowsort
SELECT * FROM tab2 WHERE + col0 IN ( col1 * col0 - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE ( + col2 * col1 ) NOT BETWEEN col1 / + col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 * - col0 col0 FROM tab1
----
-216
-3705
-7776

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT col1 + col1 * - col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT ALL tab0.col1 * + col0 * - col1 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col2 + + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - col2 * - col2 - col0 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT cor0.col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2628
SELECT cor0.col2 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT + col1 + col1 + col2 DIV cor0.col0 FROM tab2 cor0
----
118
34
65

skipif mysql # not compatible
query I rowsort label-2629
SELECT + col1 + col1 + col2 / cor0.col0 FROM tab2 cor0
----
118
34
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT + - col1 DIV cor0.col1 + - col2 DIV - col0 col2 FROM tab0 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2630
SELECT + - col1 / cor0.col1 + - col2 / - col0 col2 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT tab2.col0 + tab2.col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT 89 * + col2 + col2 * - ( col2 ) AS col2 FROM tab1
----
-672
1824
1890

query I rowsort
SELECT - 9 * - col0 AS col0 FROM tab2
----
63
702
711

query I rowsort
SELECT + ( + col2 ) * 41 AS col1 FROM tab1 cor0
----
2214
2337
3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - cor0.col2 * col1 * cor0.col1 col1 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT ALL - cor0.col2 * - ( col0 ) * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT DISTINCT + col1 DIV 49 col2 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT + col1 / 49 col2 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL + - col1 * + col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( - 99 ) + col1 * ( - col2 ) col2 FROM tab0 AS cor0
----
-11352
-16471
-9700

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 AS col2 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT ALL col0 + col2 * - col0 AS col0 FROM tab0 WHERE NOT - col2 * col2 + + col1 + + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - col2 * + col1 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2643
SELECT - col0 DIV - col0 - + tab0.col2 DIV + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2643
SELECT - col0 / - col0 - + tab0.col2 / + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 + + col2 - - col0 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - col2 * - col2 - + col2 * - col1 FROM tab0
----
14186
3927
98

query I rowsort
SELECT ALL col0 + + tab1.col0 * col2 * col2 FROM tab1
----
208000
737360
8751

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) = col1
----

query I rowsort
SELECT col1 * col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT col0 + col0 * + tab2.col1 AS col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL + cor0.col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col1 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT tab0.col2 + col2 * - col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT col0 + + col2 - + col0 * col2 AS col1 FROM tab2
----
-155
-1924
-2885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 + - col1 col1 FROM tab2
----
7
78
79

query I rowsort
SELECT - tab1.col1 * col1 * - col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT tab0.col0 * col0 + + col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + + col0 * col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 * 19 FROM tab0 AS cor0
----
-153881
-39216
-64505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2660
SELECT ALL + col0 DIV + 71 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL + col0 / + 71 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT - - col2 + + 19 + - col0 AS col1 FROM tab1 AS cor0
----
12
35
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col2 + cor0.col0 col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + - col0 - cor0.col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT + col1 * 30 AS col0 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT DISTINCT col2 + ( col2 ) * + col1 * cor0.col0 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT + col1 * + 84 + - 45 FROM tab2 AS cor0
----
1383
2559
4911

query I rowsort
SELECT DISTINCT col2 * col0 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col0 + + col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - ( col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 67 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2671
SELECT + col1 DIV - ( + 64 ) col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2671
SELECT + col1 / - ( + 64 ) col1 FROM tab1
----
0
0
0

query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT + 59 * + col0 AS col0 FROM tab0 cor0
----
1416
2065
5251

onlyif mysql # use DIV operator for integer division
query I rowsort label-2675
SELECT ALL - col2 * col0 DIV - ( col0 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL - col2 * col0 / - ( col0 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + + 94 + - col1 FROM tab2 AS cor0
----
35
63
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT + cor0.col1 DIV col0 + col2 AS col2 FROM tab1 cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-2677
SELECT + cor0.col1 / col0 + col2 AS col2 FROM tab1 cor0
----
57
62
96

query I rowsort
SELECT 52 * cor0.col0 FROM tab2 cor0
----
364
4056
4108

query I rowsort
SELECT DISTINCT + col2 + - tab2.col2 * tab2.col0 FROM tab2
----
-162
-2002
-2964

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

query I rowsort
SELECT + ( - tab2.col2 + - col2 ) FROM tab2
----
-52
-54
-76

query I rowsort
SELECT ALL ( - col2 + - col1 ) * - col2 AS col2 FROM tab2
----
1566
2090
2210

query I rowsort
SELECT ALL + ( col1 ) * ( - col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + - col0 * - col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 67 FROM tab0, tab0 AS cor0
----
67

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab2 cor0, tab1, tab1 AS cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT DISTINCT + cor0.col2 + 79 DIV 88 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + cor0.col2 + 79 / 88 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 4 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT - cor0.col1 * + 34 AS col1 FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT ALL + - col1 + 94 FROM tab2 AS cor0
----
35
63
77

query I rowsort
SELECT + - col2 * - 8 AS col1 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT ALL + + col2 * + 52 FROM tab2 AS cor0
----
1352
1404
1976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 32 + + col1 col0 FROM tab2 AS cor0
----
-1829
-527
-961

query I rowsort
SELECT DISTINCT 39 + col1 AS col2 FROM tab0
----
125
130
136

query I rowsort
SELECT 47 * - col2 AS col2 FROM tab0
----
-1551
-3854
-47

query I rowsort
SELECT + col0 + col2 * + col2 AS col1 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT + col0 + + 39 + - col0 * col2 AS col2 FROM tab1
----
-120
-3545
-7561

query I rowsort
SELECT 96 * col2 + - tab1.col0 AS col2 FROM tab1
----
5181
5408
9136

query I rowsort
SELECT 18 * tab2.col0 + ( tab2.col1 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 593ece1dc1f53d440f77342fd6125dab

query I rowsort
SELECT ALL 67 + col0 AS col2 FROM tab2 AS cor0
----
145
146
74

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col0 + - cor0.col2 * ( - col2 ) FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT + ( col1 ) - + cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT + col1 * 64 - cor0.col2 * col0 FROM tab1 cor0
----
-3008
-6848
1502

query I rowsort
SELECT ALL - 31 * col1 AS col0 FROM tab1 AS cor0
----
-310
-403
-806

query I rowsort
SELECT ALL + col1 + - col2 + + cor0.col1 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT ALL 57 + col0 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT DISTINCT + col1 * col2 + + col0 + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-3014
-6352
1245

query I rowsort
SELECT - ( - cor0.col1 ) + ( col2 ) FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2709
SELECT ALL + cor0.col1 DIV - col2 + + col1 AS col0 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL + cor0.col1 / - col2 + + col1 AS col0 FROM tab0 AS cor0
----
0
84
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2710
SELECT - 9 DIV tab1.col0 + - 47 * 30 FROM tab1, tab0 AS cor0
----
9 values hashing to bf29791f6dd7859b18936de997fbbd8d

skipif mysql # not compatible
query I rowsort label-2710
SELECT - 9 / tab1.col0 + - 47 * 30 FROM tab1, tab0 AS cor0
----
9 values hashing to bf29791f6dd7859b18936de997fbbd8d

query I rowsort
SELECT ALL 39 * - col0 + col0 FROM tab1 AS cor0
----
-114
-2432
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT + 3 + col2 DIV cor0.col0 FROM tab1 cor0
----
21
3
4

skipif mysql # not compatible
query I rowsort label-2712
SELECT + 3 + col2 / cor0.col0 FROM tab1 cor0
----
21
3
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT - + col0 DIV col2 AS col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT - + col0 / col2 AS col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT + ( - col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col2 * - 97 AS col2 FROM tab1
----
-5238
-5529
-9312

query I rowsort
SELECT ALL - col0 * ( + 4 ) FROM tab0
----
-140
-356
-96

query I rowsort
SELECT + col1 * - col0 * - col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + 61 FROM tab2, tab0 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT ALL - - 49 + + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
49
49
50

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - - 49 + + col2 / + col0 AS col1 FROM tab0 AS cor0
----
49
49
50

query I rowsort
SELECT ALL - col1 * - 51 FROM tab2
----
1581
3009
867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2721
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + tab2.col0 + + col1 AS col2 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2723
SELECT ( + col0 ) * col2 DIV - tab0.col0 + + col2 + + 95 * col1 AS col2 FROM tab0
----
8170
8645
9215

skipif mysql # not compatible
query I rowsort label-2723
SELECT ( + col0 ) * col2 / - tab0.col0 + + col2 + + 95 * col1 AS col2 FROM tab0
----
8170
8645
9215

query I rowsort
SELECT col2 * + ( + col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col2 + - ( col1 ) * col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2726
SELECT + - cor0.col2 / CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT + - cor0.col2 / CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * - col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT col1 * 33 AS col2 FROM tab0 cor0
----
2838
3003
3201

query I rowsort
SELECT ALL ( - cor0.col2 ) - tab2.col2 * - 3 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d7e33781cf81b7f7fd2f0187807eccfc

query I rowsort
SELECT 1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT DISTINCT + - col0 * 26 * - col2 AS col2 FROM tab1 AS cor0
----
199680
4212
94848

query I rowsort
SELECT ALL - 95 * - 52 + col0 FROM tab0 AS cor0
----
4964
4975
5029

query I rowsort
SELECT - + cor0.col0 * col0 * col0 + + col1 FROM tab1 AS cor0
----
-1
-262134
-511987

query I rowsort
SELECT ALL col2 * col1 - - col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT col2 * col2 + col0 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + 64 * col0 AS col2 FROM tab1 AS cor0
----
192
4096
5120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2737
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col2 + + col1 + - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col2 + + col1 + - col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 66 * col0 - col1 AS col2 FROM tab0 AS cor0
----
-1670
-2407
-5965

query I rowsort
SELECT ALL ( + col0 ) + col2 * ( - col2 ) FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT 69 * col2 + col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2742
SELECT + CAST( 41 AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
-48
17
6

skipif mysql # not compatible
query I rowsort label-2742
SELECT + CAST ( 41 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
-48
17
6

query I rowsort
SELECT + ( col0 ) + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ( cor0.col0 ) * col2 + + 95 AS col1 FROM tab2 AS cor0
----
2123
284
3097

query I rowsort
SELECT - - 82 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-4454
-4684
-7885

query I rowsort
SELECT - col2 * col2 * - col2 FROM tab1 AS cor0
----
157464
185193
884736

skipif mysql # not compatible
query I rowsort
SELECT - col1 - + CAST ( cor0.col0 + + col2 AS REAL ) * - col0 FROM tab2 AS cor0
----
207
8053
9226

query I rowsort
SELECT DISTINCT 38 * + cor0.col0 FROM tab2, tab1 cor0
----
114
2432
3040

query I rowsort
SELECT ALL - col0 * + 95 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT ALL col1 + ( + col1 ) FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT 9 + col0 AS col2 FROM tab2
----
16
87
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2752
SELECT + 68 DIV + col2 + col0 * - tab1.col1 FROM tab1
----
-1040
-639
-77

skipif mysql # not compatible
query I rowsort label-2752
SELECT + 68 / + col2 + col0 * - tab1.col1 FROM tab1
----
-1040
-639
-77

query I rowsort
SELECT + 5 * + col1 AS col1 FROM tab2 AS cor0
----
155
295
85

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab0
----
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT + + 89 * - col2 DIV - ( + col2 ) AS col1 FROM tab1 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-2755
SELECT + + 89 * - col2 / - ( + col2 ) AS col1 FROM tab1 AS cor0
----
89
89
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT + - col1 DIV - col1 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2756
SELECT + - col1 / - col1 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 4 * + cor0.col2 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT ALL - col0 * + col2 * - ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT DISTINCT col2 * + col2 + - 43 DIV + 44 FROM tab1 cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT col2 * + col2 + - 43 / + 44 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 39 - - col1 AS col0 FROM tab2 AS cor0
----
-22
-8
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 21 col0 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + - col0 * col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-2764
SELECT ALL - col1 * - col2 + + 22 DIV 63 FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - col1 * - col2 + + 22 / 63 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT 41 + col2 FROM tab1 AS cor0
----
137
95
98

query I rowsort
SELECT DISTINCT - - 75 * cor0.col1 + + 74 AS col1 FROM tab0 AS cor0
----
6524
6899
7349

query I rowsort
SELECT ALL - - col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col2 * col1 - + col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL + cor0.col2 + + col2 * 9 AS col0 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT ALL + cor0.col1 + 16 FROM tab2 AS cor0
----
33
47
75

query I rowsort
SELECT ALL - cor0.col0 + ( col1 * col2 ) AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - col2 * 83 AS col1 FROM tab2 cor0
----
-2158
-2241
-3154

query I rowsort
SELECT DISTINCT col1 + + 0 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col1 * - 72 * + col2 AS col1 FROM tab2 AS cor0
----
-110448
-46512
-60264

query I rowsort
SELECT col1 * ( - 42 ) FROM tab1 cor0
----
-1092
-420
-546

onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT col0 + ( col0 ) DIV - col1 + 47 AS col2 FROM tab1 AS cor0
----
105
121
50

skipif mysql # not compatible
query I rowsort label-2776
SELECT col0 + ( col0 ) / - col1 + 47 AS col2 FROM tab1 AS cor0
----
105
121
50

query I rowsort
SELECT - col2 * 62 + col0 AS col1 FROM tab2 AS cor0
----
-1534
-1667
-2277

query I rowsort
SELECT - + col1 * + 3 AS col2 FROM tab0 cor0
----
-258
-273
-291

query I rowsort
SELECT DISTINCT - col0 + + col2 * + col1 - col1 FROM tab0 AS cor0
----
-35
2728
7282

query I rowsort
SELECT + col2 + col2 * ( + col1 ) FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - + col2 + 9 FROM tab2 AS cor0
----
-17
-18
-29

query I rowsort
SELECT 21 + - ( + cor2.col1 ) * + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 004594fcb29fc5bc9cc7939f4fe52ede

query I rowsort
SELECT DISTINCT + + 97 AS col1 FROM tab2 cor0
----
97

query I rowsort
SELECT ALL + 95 + + 24 FROM tab1 AS cor0
----
119
119
119

query I rowsort
SELECT ALL - + col0 + + 20 AS col0 FROM tab0 AS cor0
----
-15
-4
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT DISTINCT + tab2.col0 DIV col0 + 66 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT + tab2.col0 / col0 + 66 FROM tab2
----
67

query I rowsort
SELECT ALL - tab2.col2 + ( col0 ) FROM tab2
----
-20
41
52

query I rowsort
SELECT cor0.col2 + - 63 FROM tab1 cor0
----
-6
-9
33

query I rowsort
SELECT + cor0.col0 * + cor0.col0 + + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - - col1 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col0 * 60 FROM tab1 cor0
----
180
3840
4800

query I rowsort
SELECT DISTINCT + 57 + - col2 AS col0 FROM tab2 cor0
----
19
30
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2794
SELECT + ( col1 ) + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT + ( col1 ) + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 - + cor0.col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1140
2496
2808

onlyif mysql # use DIV operator for integer division
query I rowsort label-2796
SELECT ALL col2 DIV cor0.col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL col2 / cor0.col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col2 + 3 * - cor0.col1 + ( + col1 ) * - col1 FROM tab1 cor0
----
-112
-700
-73

query I rowsort
SELECT DISTINCT + col0 + 33 + - col1 AS col2 FROM tab0
----
-29
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( + col0 * col0 ) + + col1 col1 FROM tab0
----
1323
695
8094

onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT - + 29 DIV - col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2800
SELECT - + 29 / - col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - 60 FROM tab1, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL - 76 + + tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e3d09fb155f65751bb2891b9c56803d2

query I rowsort
SELECT col0 * + 94 AS col1 FROM tab1
----
282
6016
7520

query I rowsort
SELECT - 76 * col2 AS col0 FROM tab0
----
-2508
-6232
-76

query I rowsort
SELECT + col1 * tab0.col1 * - col1 AS col2 FROM tab0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL + col0 * - 40 * col0 FROM tab0 AS cor0
----
-23040
-316840
-49000

onlyif mysql # use DIV operator for integer division
query I rowsort label-2807
SELECT ALL - tab1.col1 DIV tab1.col2 + 44 * 63 * + tab1.col0 FROM tab1
----
177408
221760
8316

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - tab1.col1 / tab1.col2 + 44 * 63 * + tab1.col0 FROM tab1
----
177408
221760
8316

query I rowsort
SELECT + col1 * + 1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - col0 + ( col2 * + col0 ) AS col2 FROM tab2
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-2810
SELECT DISTINCT + col0 * + col2 + + 62 DIV tab0.col2 + 90 AS col0 FROM tab0
----
187
7388
883

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT + col0 * + col2 + + 62 / tab0.col2 + 90 AS col0 FROM tab0
----
187
7388
883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 + + col1 * - 54 + col1 col1 FROM tab2
----
-1650
-3205
-980

onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT DISTINCT col1 DIV ( col2 ) + col2 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT col1 / ( col2 ) + col2 AS col1 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2813
SELECT DISTINCT - - cor0.col2 * CAST( - ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT - - cor0.col2 * CAST ( - ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + col1 + + 59 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
1065
1805
3500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + + col0 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT col0 * ( - col0 ) + col2 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT - col0 + col1 - - ( + col0 ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2818
SELECT - col0 - + CAST( + 65 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-129
-145
-68

skipif mysql # not compatible
query I rowsort label-2818
SELECT - col0 - + CAST ( + 65 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-129
-145
-68

query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT - tab0.col0 + + 65 * tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 050df68d47deee02ae17124c184ffb4e

query I rowsort
SELECT col1 * cor0.col1 * col0 + col0 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT + 63 + col2 FROM tab0 AS cor0
----
145
64
96

query I rowsort
SELECT + col1 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2824
SELECT 74 DIV cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to e356a6b217612a547b669fa80e15d9b4

skipif mysql # not compatible
query I rowsort label-2824
SELECT 74 / cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to e356a6b217612a547b669fa80e15d9b4

query I rowsort
SELECT + - col2 * - col1 * 95 AS col1 FROM tab1 cor0
----
118560
133380
54150

query I rowsort
SELECT DISTINCT col0 * + col1 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( - col1 ) * col1 + - col0 * col1 col0 FROM tab2 AS cor0
----
-12325
-26164
-95108

query I rowsort
SELECT ALL + - ( col2 ) - + col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + + 33 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-53
-58
-64

query I rowsort
SELECT - + col2 + + ( col1 ) * col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT + ( + col1 ) + tab1.col0 AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + 73 + col0 AS col1 FROM tab0
----
108
162
97

query I rowsort
SELECT - - col2 - col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 0 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2836
SELECT col2 DIV 46 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2836
SELECT col2 / 46 col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT col2 DIV + 84 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT col2 / + 84 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 7 + - col1 ) AS col1 FROM tab1
----
19
3
6

query I rowsort
SELECT ALL - 22 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT DISTINCT 30 + cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1313
-187
-4572

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570

query I rowsort
SELECT ALL - + 92 FROM tab0 cor0
----
-92
-92
-92

query I rowsort
SELECT - cor0.col2 - col2 * - ( 61 ) AS col2 FROM tab1 AS cor0
----
3240
3420
5760

query I rowsort
SELECT + cor0.col1 + col0 * - 90 AS col2 FROM tab1 AS cor0
----
-244
-5750
-7187

query I rowsort
SELECT ALL cor1.col1 * 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9693f5ea9151a0c78bc109319136ccd6

query I rowsort
SELECT DISTINCT + 43 FROM tab1, tab2, tab2 AS cor0
----
43

query I rowsort
SELECT ALL + 21 - - col2 AS col1 FROM tab1
----
117
75
78

query I rowsort
SELECT DISTINCT - col2 - col0 * 87 * - col0 FROM tab2
----
4236
529282
542929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col1 * col1 + col1 col2 FROM tab0 AS cor0
----
177590
329412
737100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * - 30 * - col0 col1 FROM tab2 cor0
----
1463
182442
187151

query I rowsort
SELECT 70 * - cor0.col2 AS col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to f87fdba5aa7baca00378d295b2b37ab7

query I rowsort
SELECT col2 * + col0 + 56 * + col0 AS col1 FROM tab2 AS cor0
----
581
6396
7426

onlyif mysql # use DIV operator for integer division
query I rowsort label-2853
SELECT ALL - ( tab1.col1 ) DIV + tab1.col1 + col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL - ( tab1.col1 ) / + tab1.col1 + col0 FROM tab1
----
2
63
79

query I rowsort
SELECT DISTINCT - col0 + col1 * - col2 + col2 FROM tab0
----
-131
-2829
-7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT ( col1 ) DIV ( + 67 ) col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2855
SELECT ( col1 ) / ( + 67 ) col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 14 * + col1 FROM tab2 AS cor0
----
-238
-434
-826

query I rowsort
SELECT + + 23 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
14858
19251
35282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab2.col0 col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT tab2.col0 + - ( col0 ) FROM tab2
----
0

query I rowsort
SELECT - 68 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62

query I rowsort
SELECT ALL - + col0 * - col2 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

onlyif mysql # use DIV operator for integer division
query I rowsort label-2862
SELECT DISTINCT - col2 DIV col2 + col2 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - col2 / col2 + col2 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + ( + 3 ) FROM tab0 AS cor0
----
3
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2864
SELECT + CAST( col2 AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-2864
SELECT + CAST ( col2 AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2865
SELECT ALL - col0 DIV 67 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - col0 / 67 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT 52 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT - 37 * + col1 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT + ( - 77 ) * col2 AS col0 FROM tab1 AS cor0
----
-4158
-4389
-7392

query I rowsort
SELECT DISTINCT - col2 + col2 * 9 + - tab1.col1 FROM tab1
----
406
446
755

query I rowsort
SELECT - ( col2 + + col2 ) * + col2 AS col1 FROM tab0
----
-13448
-2
-2178

query I rowsort
SELECT + cor0.col1 * ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col1 * - 15 FROM tab1 AS cor0
----
-150
-195
-390

query I rowsort
SELECT - - col1 + col0 * 56 * col1 AS col1 FROM tab1 cor0
----
35850
4394
58253

query I rowsort
SELECT - col1 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - tab0.col1 + + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 25 + + tab2.col0 FROM tab2
----
-18
53
54

query I rowsort
SELECT DISTINCT col1 * col0 + + tab1.col1 * col0 FROM tab1
----
1280
156
2080

query I rowsort
SELECT - col1 * + col1 + + col1 + + 29 * col1 FROM tab0
----
-4816
-5551
-6499

query I rowsort
SELECT - tab2.col2 - - col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 + + ( col2 ) * col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL + + col0 * 78 + cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-356
1080
2695

onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT ALL col0 DIV 31 + 14 * col0 AS col0 FROM tab1 AS cor0
----
1122
42
898

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL col0 / 31 + 14 * col0 AS col0 FROM tab1 AS cor0
----
1122
42
898

query I rowsort
SELECT ALL + + cor0.col2 * - col2 * - col2 FROM tab0 AS cor0
----
1
35937
551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT ALL + col0 DIV - cor0.col2 + col0 + + col2 FROM tab0 AS cor0
----
1
170
57

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL + col0 / - cor0.col2 + col0 + + col2 FROM tab0 AS cor0
----
1
170
57

query I rowsort
SELECT DISTINCT + + col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + col0 + 1 * - col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2887
SELECT ALL + + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + col0 + 62 FROM tab1 AS cor0
----
119
183
238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 + 73 - col2 col2 FROM tab0
----
132
164
83

query I rowsort
SELECT + + col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - ( ( - cor0.col1 ) ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - + col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + tab0.col0 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT - ( - 26 ) DIV col0 + col2 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-2894
SELECT - ( - 26 ) / col0 + col2 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT col2 + + 42 FROM tab0 cor0
----
124
43
75

query I rowsort
SELECT - 4 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT 58 + col0 FROM tab0 cor0
----
147
82
93

query I rowsort
SELECT ALL col1 * - col2 * - col1 + col1 FROM tab1 AS cor0
----
16237
36530
5710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL 60 + + col2 FROM tab2 cor0
----
86
87
98

query I rowsort
SELECT - + cor0.col1 * + cor0.col2 + + 49 AS col1 FROM tab0 cor0
----
-2789
-48
-7413

query I rowsort
SELECT 47 * 17 FROM tab2
----
799
799
799

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - 31 + + col1 FROM tab2 AS cor0
----
-14
0
28

query I rowsort
SELECT DISTINCT + - 61 * - col2 * + 34 + - 12 FROM tab0 AS cor0
----
170056
2062
68430

onlyif mysql # use DIV operator for integer division
query I rowsort label-2906
SELECT ALL - ( + col0 ) + col1 * col2 DIV + col0 FROM tab0 AS cor0
----
-33
-6
94

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - ( + col0 ) + col1 * col2 / + col0 FROM tab0 AS cor0
----
-33
-6
94

query I rowsort
SELECT + 63 * - col1 + - col1 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT ( col0 ) * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * col0 - - col0 * col0 FROM tab0 cor0
----
1152
15842
2450

query I rowsort
SELECT ALL + + col2 * col2 + + col1 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - - 96 FROM tab2 cor0
----
96

query I rowsort
SELECT + + 71 * col1 - col0 * col0 AS col1 FROM tab2 AS cor0
----
-1895
-5034
2152

query I rowsort
SELECT DISTINCT - + 26 FROM tab2 cor0
----
-26

query I rowsort
SELECT + 97 + col0 + col1 FROM tab1 AS cor0
----
126
171
190

query I rowsort
SELECT ALL ( + tab1.col0 ) + + col1 + col1 AS col0 FROM tab1
----
106
55
84

query I rowsort
SELECT ALL + ( col0 ) + - col2 * - col0 AS col0 FROM tab1
----
165
3712
7760

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col2 AS REAL ) * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT ( - col2 ) * - col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( col0 ) col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + - ( 29 ) - col0 * - col1 FROM tab2 AS cor0
----
1314
188
4573

query I rowsort
SELECT ALL col2 * + ( cor0.col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL 50 FROM tab0, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT - - 22 * - col1 AS col0 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT + 88 * 92 AS col2 FROM tab1 AS cor0
----
8096
8096
8096

query I rowsort
SELECT ALL col0 - - 43 * + tab1.col2 FROM tab1
----
2325
2515
4208

query I rowsort
SELECT ALL - tab2.col2 - - col0 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT ALL - 12 DIV tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL - 12 / tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c

query I rowsort
SELECT - + col2 * - 67 + col1 + + col2 FROM tab0 cor0
----
165
2330
5667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2931
SELECT DISTINCT + 81 * - 17 + col1 * CAST( 17 AS SIGNED ) - col1 FROM tab1
----
-1169
-1217
-961

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT + 81 * - 17 + col1 * CAST ( 17 AS INTEGER ) - col1 FROM tab1
----
-1169
-1217
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT DISTINCT 40 + tab2.col2 * + col2 + col1 DIV 15 FROM tab2
----
1485
719
771

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT 40 + tab2.col2 * + col2 + col1 / 15 FROM tab2
----
1485
719
771

query I rowsort
SELECT + 50 AS col2 FROM tab0
----
50
50
50

query I rowsort
SELECT DISTINCT - 1 * + col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + col0 * col1 + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - col1 * ( 57 ) FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT ALL 93 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT DISTINCT col1 * - 73 AS col1 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT ALL col1 + 49 * 55 FROM tab1 AS cor0
----
2705
2708
2721

query I rowsort
SELECT - - col1 + col2 * + 12 AS col2 FROM tab0 AS cor0
----
1075
109
482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col0 col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT cor0.col0 + - 64 AS col1 FROM tab2 cor0
----
-57
14
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2943
SELECT ALL + CAST( 71 AS SIGNED ) col1 FROM tab2 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL + CAST ( 71 AS INTEGER ) col1 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT ALL + cor0.col0 + + 30 AS col1 FROM tab2 AS cor0
----
108
109
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2945
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + ( col0 ) + col1 * + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - ( + col0 ) + - col2 * - 68 + - col0 * col0 * - col0 AS col0 FROM tab2 cor0
----
2172
476242
495544

query I rowsort
SELECT ALL tab2.col0 * - ( - col0 ) * + col0 AS col2 FROM tab2
----
343
474552
493039

query I rowsort
SELECT col2 * col0 * ( col1 * + col2 ) + + col2 * + col2 * col2 FROM tab0 AS cor0
----
2283633
3396
55009044

query I rowsort
SELECT ALL - col2 * + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab1 AS cor0
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT + col0 + - col0 DIV CAST( - col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2953
SELECT + col0 + - col0 / CAST ( - col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + ( + col0 ) * ( col0 ) FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT 71 * + col1 FROM tab1 cor0
----
1846
710
923

query I rowsort
SELECT + 37 + - col1 AS col1 FROM tab0 AS cor0
----
-49
-54
-60

query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + 10 * 28 AS col1 FROM tab1
----
280
280
280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT col2 + + col2 * + 86 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT ALL col1 + tab2.col1 * 14 FROM tab2
----
255
465
885

query I rowsort
SELECT ( col2 ) - + col1 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT + - col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 72 + col2 * - 84 FROM tab0 AS cor0
----
-156
-2844
-6960

query I rowsort
SELECT ALL 0 * + col0 * - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 9 * col0 + + cor0.col2 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
1338
317
7607

query I rowsort
SELECT ALL + 71 * col0 - col0 AS col2 FROM tab2
----
490
5460
5530

query I rowsort
SELECT + col0 * col1 - + col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT col2 + col1 * + col2 * col1 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT col0 * + col0 * - ( - tab2.col2 ) FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - 13 * + col1 FROM tab1
----
-130
-169
-338

query I rowsort
SELECT col2 + tab0.col0 + - ( + col0 + + col0 ) AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + + tab0.col2 FROM tab0, tab1, tab2 AS cor0
----
1
33
82

query I rowsort
SELECT + cor0.col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 82 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT + 5 * 10 * col0 AS col0 FROM tab2 AS cor0
----
350
3900
3950

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2978
SELECT DISTINCT - - CAST( col2 AS SIGNED ) * col2 - 57 col2 FROM tab2 AS cor0
----
1387
619
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) * col2 - 57 col2 FROM tab2 AS cor0
----
1387
619
672

query I rowsort
SELECT + + 6 AS col1 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT ALL + - col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT col0 + tab1.col2 * col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT + col0 - - 68 * - col2 AS col0 FROM tab1
----
-3669
-3812
-6448

query I rowsort
SELECT ALL - 14 FROM tab0, tab2 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT DISTINCT + ( + 3 ) DIV - col0 + - 78 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT + ( + 3 ) / - col0 + - 78 FROM tab0
----
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT + - 8 DIV 22 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2985
SELECT + - 8 / 22 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( ( col1 ) ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 + - 5 FROM tab1 AS cor0
----
49
52
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2988
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( + col1 + + tab1.col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + col1 + + tab1.col0 ) FROM tab1
----
NULL

query I rowsort
SELECT - + ( cor0.col2 ) + + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + col1 + - 79 FROM tab2 AS cor0
----
-20
-48
-62

query I rowsort
SELECT ALL + 17 * - col1 AS col2 FROM tab0
----
-1462
-1547
-1649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col1 FROM tab1
----
28

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 * col0 col0 FROM tab0
----
1435
3649
984

query I rowsort
SELECT + 37 * - col1 AS col1 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT cor0.col2 + col2 + + col0 FROM tab1 AS cor0
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT - 75 * col2 - 60 FROM tab0 AS cor0
----
-135
-2535
-6210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * + col2 col1 FROM tab2 AS cor0
----
624
648
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT + 18 - - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-3001
SELECT + 18 - - col2 / - col2 AS col2 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3002
SELECT + CAST( + cor0.col2 AS SIGNED ) FROM tab1, tab2 cor0, tab2, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

skipif mysql # not compatible
query I rowsort label-3002
SELECT + CAST ( + cor0.col2 AS INTEGER ) FROM tab1, tab2 cor0, tab2, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3003
SELECT DISTINCT + col1 * + CAST( - col2 AS SIGNED ) - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT + col1 * + CAST ( - col2 AS INTEGER ) - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT + col2 + col0 * + col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3005
SELECT DISTINCT col2 * CAST( + col2 AS SIGNED ) + + cor0.col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT col2 * CAST ( + col2 AS INTEGER ) + + cor0.col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT col1 * + 96 + + 72 AS col1 FROM tab2 AS cor0
----
1704
3048
5736

query I rowsort
SELECT DISTINCT col1 * + col0 + - col0 * + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * - 83 AS col0 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT + col1 * - col2 + ( col2 ) FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3011
SELECT ALL CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3012
SELECT CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab2.col1 + - 86 * col1 FROM tab2
----
-1445
-2635
-5015

query I rowsort
SELECT + + col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col1 + + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT - - col0 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT cor0.col2 * + 23 FROM tab0, tab2 AS cor0
----
9 values hashing to abfa7adc878b672857b09ebcf62b532b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3018
SELECT ALL - + col1 * + CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - + col1 * + CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3019
SELECT + cor0.col1 + CAST( + ( col1 ) AS SIGNED ) * + 61 AS col1 FROM tab0 AS cor0
----
5332
5642
6014

skipif mysql # not compatible
query I rowsort label-3019
SELECT + cor0.col1 + CAST ( + ( col1 ) AS INTEGER ) * + 61 AS col1 FROM tab0 AS cor0
----
5332
5642
6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 * + 48 col1 FROM tab2 AS cor0
----
1307
1327
1841

onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT ALL + 96 DIV cor0.col0 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + 96 / cor0.col0 FROM tab0 AS cor0
----
1
2
4

query I rowsort
SELECT + - 44 - - 41 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col0 * - col1 FROM tab0 cor0
----
177528
329350
737098

query I rowsort
SELECT - ( cor0.col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 20 + cor0.col1 FROM tab2 AS cor0
----
37
51
79

query I rowsort
SELECT + 2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to ca91d1f523a87017f672304548e91a77

query I rowsort
SELECT DISTINCT ( col2 ) * tab0.col0 * - col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT ALL 86 * col2 AS col1 FROM tab2
----
2236
2322
3268

query I rowsort
SELECT + 14 AS col0 FROM tab2
----
14
14
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3031
SELECT DISTINCT - col0 * + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - col0 * + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 + col1 + col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 + + col1 + + 18 * - tab1.col1 * + col1 FROM tab1
----
-12088
-1733
-2933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 + col2 col1 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT + col0 * - col1 * col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - col2 * + ( - 90 + col1 ) AS col2 FROM tab1 cor0
----
3456
4560
7392

query I rowsort
SELECT DISTINCT col0 + - ( ( + col2 ) * col0 ) + + ( + col0 + ( - 11 ) ) * col1 AS col2 FROM tab1 AS cor0
----
-3054
-367
-6703

query I rowsort
SELECT ALL 84 + col2 * + col2 AS col1 FROM tab1
----
3000
3333
9300

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT + - cor0.col0 DIV - 40 - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-80

skipif mysql # not compatible
query I rowsort label-3039
SELECT + - cor0.col0 / - 40 - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3040
SELECT ALL + CAST( NULL AS SIGNED ) - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3041
SELECT - - CAST( NULL AS SIGNED ) * 13 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3041
SELECT - - CAST ( NULL AS INTEGER ) * 13 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 70 + col2 * + tab2.col2 + ( col1 * col1 ) FROM tab2
----
1760
1803
4227

query I rowsort
SELECT - ( - col2 ) * - col2 * col1 + + 55 + + col0 AS col0 FROM tab0
----
-611740
-7
-93575

query I rowsort
SELECT cor0.col0 + + 3 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 145b2664099de330bd73aca5dfd63b00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 99 col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - 84 * col1 AS col2 FROM tab0 AS cor0
----
-7224
-7644
-8148

query I rowsort
SELECT ALL 39 AS col2 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT - + col2 * 1 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - - 81 * col2 - col0 FROM tab0 AS cor0
----
2649
46
6553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT + col2 * - col1 * + col2 - col1 DIV - col1 FROM tab0 AS cor0
----
-611883
-93653
-96

skipif mysql # not compatible
query I rowsort label-3050
SELECT + col2 * - col1 * + col2 - col1 / - col1 FROM tab0 AS cor0
----
-611883
-93653
-96

query I rowsort
SELECT + + ( + cor0.col1 ) + - col0 * ( - cor0.col2 * 36 ) FROM tab0 AS cor0
----
1357
262819
28598

onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT ALL 98 + col1 DIV + ( - col0 ) FROM tab1 AS cor0
----
90
98
98

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL 98 + col1 / + ( - col0 ) FROM tab1 AS cor0
----
90
98
98

query I rowsort
SELECT ALL + col1 * - col1 * cor0.col0 + col2 FROM tab2 AS cor0
----
-22793
-271492
-6700

query I rowsort
SELECT ALL - 89 * + col1 FROM tab2 AS cor0
----
-1513
-2759
-5251

onlyif mysql # use DIV operator for integer division
query I rowsort label-3055
SELECT DISTINCT - 13 * col1 + col0 DIV + col2 FROM tab1 AS cor0
----
-129
-169
-338

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - 13 * col1 + col0 / + col2 FROM tab1 AS cor0
----
-129
-169
-338

query I rowsort
SELECT col0 * cor0.col1 + 98 FROM tab0 AS cor0
----
2162
3493
8197

onlyif mysql # use DIV operator for integer division
query I rowsort label-3057
SELECT ALL + + 37 * - col1 * - col2 + 55 DIV col0 col1 FROM tab1 AS cor0
----
21090
46176
51966

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + + 37 * - col1 * - col2 + 55 / col0 col1 FROM tab1 AS cor0
----
21090
46176
51966

query I rowsort
SELECT - cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - col1 - - col1 * cor0.col1 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT - col1 * col2 DIV 8 FROM tab1 AS cor0
----
-156
-175
-71

skipif mysql # not compatible
query I rowsort label-3060
SELECT - col1 * col2 / 8 FROM tab1 AS cor0
----
-156
-175
-71

query I rowsort
SELECT DISTINCT + - 45 * col2 AS col2 FROM tab0 AS cor0
----
-1485
-3690
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT ALL + 43 DIV - col0 - + tab0.col0 DIV + 88 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL + 43 / - col0 - + tab0.col0 / + 88 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - - 42 + + col2 FROM tab1 AS cor0
----
138
96
99

query I rowsort
SELECT ALL + 92 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 + - ( col1 * 19 + + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1430
-2688
-948

query I rowsort
SELECT col1 + + col1 * cor0.col0 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + + col1 * - cor0.col0 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT + col2 * col0 + 44 * + col0 * - col0 FROM tab0
----
-24552
-341226
-53865

query I rowsort
SELECT col2 + col2 * - 80 + col1 AS col1 FROM tab0
----
-2521
-6387
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 15 col1 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT cor0.col1 * 88 FROM tab0 AS cor0
----
7568
8008
8536

query I rowsort
SELECT DISTINCT + col1 * col0 * 17 AS col1 FROM tab2 AS cor0
----
22831
3689
78234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + col2 * col1 col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL col1 + + col1 - cor0.col0 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT col1 + + 27 * 87 AS col0 FROM tab2 AS cor0
----
2366
2380
2408

query I rowsort
SELECT ALL - - col2 - ( - cor0.col0 + cor0.col0 * 80 ) AS col0 FROM tab0 AS cor0
----
-1863
-2764
-6949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col1 ) * col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 73 AS col1 FROM tab0 cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * - col0 * col2 FROM tab2 AS cor0
----
-119574
-50955
-5852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3080
SELECT CAST( NULL AS SIGNED ) + ( + col2 ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT CAST ( NULL AS INTEGER ) + ( + col2 ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 60 - + col1 * 12 * - 9 FROM tab1 AS cor0
----
2988
4920
6204

query I rowsort
SELECT DISTINCT 92 - + col1 FROM tab1 AS cor0
----
66
79
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3083
SELECT 26 DIV col1 AS col1 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3083
SELECT 26 / col1 AS col1 FROM tab1 AS cor0
----
1
2
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3084
SELECT ALL - + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL - + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3085
SELECT DISTINCT + - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT + - cor0.col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3086
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + col0 + + 99 * - cor0.col1 FROM tab2 AS cor0
----
-2880
-3813
1319

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + col0 + + 99 * - cor0.col1 FROM tab2 AS cor0
----
-2880
-3813
1319

onlyif mysql # use DIV operator for integer division
query I rowsort label-3087
SELECT - col0 * 49 DIV + col0 FROM tab0 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-3087
SELECT - col0 * 49 / + col0 FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL + 93 * cor0.col1 AS col1 FROM tab0 cor0
----
7998
8463
9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3089
SELECT - CAST( col2 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-3089
SELECT - CAST ( col2 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - + col2 - + 31 FROM tab1 AS cor0
----
-127
-85
-88

query I rowsort
SELECT ALL + col0 * + 33 - - col1 AS col1 FROM tab0
----
1252
3028
878

query I rowsort
SELECT ALL col0 - col0 * + col2 AS col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL + col2 * - ( + tab1.col1 ) - col1 * ( col1 ) FROM tab1
----
-1417
-2080
-670

query I rowsort
SELECT DISTINCT + + col2 - - col2 * cor0.col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + 65 AS col1 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT ALL - col0 * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3097
SELECT ALL + col1 + - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + col1 + - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT DISTINCT + cor0.col2 * col2 DIV col0 AS col1 FROM tab0 AS cor0
----
0
45
75

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT + cor0.col2 * col2 / col0 AS col1 FROM tab0 AS cor0
----
0
45
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT ALL + 42 + col2 DIV + col1 + - col2 FROM tab0 cor0
----
-40
41
9

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + 42 + col2 / + col1 + - col2 FROM tab0 cor0
----
-40
41
9

query I rowsort
SELECT - + col0 * col0 + ( col0 ) * - col0 FROM tab0 AS cor0
----
-1152
-15842
-2450

query I rowsort
SELECT DISTINCT - - 89 * + col1 - + 27 AS col1 FROM tab2 cor0
----
1486
2732
5224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 * 99 col0 FROM tab2
----
4851

query I rowsort
SELECT 74 - + col2 AS col1 FROM tab1
----
-22
17
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3104
SELECT + - col0 + - col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT + - col0 + - col1 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col1 * 81 FROM tab1 AS cor0
----
1149
2160
867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3106
SELECT DISTINCT 15 + - col2 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1459
691
744

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT 15 + - col2 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1459
691
744

query I rowsort
SELECT ALL 41 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL - 92 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col0 FROM tab1
----
36

query I rowsort
SELECT + col2 + col2 * ( + col0 + col1 ) FROM tab2
----
1053
3588
3686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3111
SELECT - col1 + CAST( - 83 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
-7224
-7644
-8148

skipif mysql # not compatible
query I rowsort label-3111
SELECT - col1 + CAST ( - 83 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
-7224
-7644
-8148

onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT ALL + 3 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + 3 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 44 FROM tab0, tab2 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT + + cor0.col1 + 99 AS col1 FROM tab0 AS cor0
----
185
190
196

query I rowsort
SELECT DISTINCT + col0 * 47 AS col0 FROM tab1 cor0
----
141
3008
3760

query I rowsort
SELECT - + col0 * 12 AS col2 FROM tab2 AS cor0
----
-84
-936
-948

onlyif mysql # use DIV operator for integer division
query I rowsort label-3117
SELECT - - col2 DIV 11 AS col1 FROM tab1 AS cor0
----
4
5
8

skipif mysql # not compatible
query I rowsort label-3117
SELECT - - col2 / 11 AS col1 FROM tab1 AS cor0
----
4
5
8

query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT - col2 + + 56 FROM tab1 AS cor0
----
-1
-40
2

query I rowsort
SELECT ALL col0 + + 84 * col0 AS col2 FROM tab1
----
255
5440
6800

query I rowsort
SELECT DISTINCT - col1 + + col1 + + col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3122
SELECT DISTINCT + col0 + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT + col0 + col1 / col2 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - - col2 - + cor0.col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * col0 + + col1 col1 FROM tab2 cor0
----
-221
-2749
-2827

query I rowsort
SELECT + - ( 1 ) * col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3126
SELECT ALL + 58 DIV 21 + col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2840
7464
99

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + 58 / 21 + col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2840
7464
99

query I rowsort
SELECT DISTINCT + col0 * 67 + - col1 AS col2 FROM tab0 AS cor0
----
1522
2248
5872

query I rowsort
SELECT DISTINCT - col1 + + col0 * - col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT 51 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL + - col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col1 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT + 49 - + cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to c25085852915e2e939b856441ee9cc12

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + + col2 + 80 AS col1 FROM tab1 AS cor0
----
134
137
176

query I rowsort
SELECT + 52 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2012
-3343
-8047

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3136
SELECT CAST( NULL AS SIGNED ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT CAST ( NULL AS INTEGER ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT - col1 + - col2 DIV + col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-3137
SELECT - col1 + - col2 / + col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT + col0 * 57 AS col0 FROM tab2 AS cor0
----
399
4446
4503

query I rowsort
SELECT - - ( col1 ) + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - 2 * ( col2 + + col0 ) AS col0 FROM tab2 AS cor0
----
-208
-234
-68

query I rowsort
SELECT DISTINCT - 64 * col0 + - 71 * - col1 + col2 AS col1 FROM tab2 cor0
----
-3811
-777
1780

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3143
SELECT DISTINCT cor0.col0 + + CAST( - 12 AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
12
23
77

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT cor0.col0 + + CAST ( - 12 AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
12
23
77

query I rowsort
SELECT + ( + col1 * - col1 ) AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + - cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + cor0.col0 + 46 AS col2 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT - 33 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
1254
858
891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 - 24 col2 FROM tab0, tab0 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3149
SELECT DISTINCT - + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + tab0.col2 * + 0 FROM tab0
----
0

query I rowsort
SELECT 25 + 23 AS col1 FROM tab1 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 57 + col0 * col2 col2 FROM tab0 AS cor0
----
7355
849
92

query I rowsort
SELECT col0 + 20 + + tab0.col1 FROM tab0
----
130
152
200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3154
SELECT col1 DIV tab2.col1 + tab2.col0 - + col1 AS col1 FROM tab2
----
-23
20
63

skipif mysql # not compatible
query I rowsort label-3154
SELECT col1 / tab2.col1 + tab2.col0 - + col1 AS col1 FROM tab2
----
-23
20
63

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 8e89a67df0eeeac4bb0eedb403f6bb3e

query I rowsort
SELECT - col2 * - 0 + + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + ( - 29 ) + col2 * + 13 FROM tab0
----
-16
1037
400

query I rowsort
SELECT col1 * 46 - - col0 * - ( - col2 ) FROM tab2
----
1615
3784
4742

query I rowsort
SELECT ALL - 70 AS col2 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to d0e68852e45abdcfbe6812110913ee01

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3160
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( 25 ) * col2 * - col0 AS col1 FROM tab1 AS cor0
----
-192000
-4050
-91200

query I rowsort
SELECT col1 * + cor0.col1 + col0 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1497
2083
734

query I rowsort
SELECT DISTINCT - 50 FROM tab2, tab0 cor0
----
-50

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col2 FROM tab2
----
-31

query I rowsort
SELECT - 69 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

query I rowsort
SELECT + cor0.col2 * - cor0.col1 + - col2 * + col0 - - col2 FROM tab1 AS cor0
----
-1512
-4161
-8832

query I rowsort
SELECT col0 * cor0.col0 + + col2 + + col0 AS col1 FROM tab0 AS cor0
----
1261
633
8092

onlyif mysql # use DIV operator for integer division
query I rowsort label-3169
SELECT DISTINCT col2 DIV col0 + col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-834

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT col2 / col0 + col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-834

query I rowsort
SELECT col1 * + 52 + col1 FROM tab1 AS cor0
----
1378
530
689

query I rowsort
SELECT DISTINCT col2 + 1 FROM tab2
----
27
28
39

query I rowsort
SELECT ALL 2 + - 9 FROM tab2, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL + col0 * 93 * + tab1.col0 + - col2 + - col0 AS col1 FROM tab1
----
380807
595024
780

query I rowsort
SELECT + cor0.col0 + 94 - - col2 AS col2 FROM tab0 AS cor0
----
130
151
265

query I rowsort
SELECT ALL col0 + 95 FROM tab0 AS cor0
----
119
130
184

query I rowsort
SELECT - col1 - - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + 14 AS col1 FROM tab1 AS cor0
----
24
27
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT ALL col1 * - col2 DIV - col2 + + col1 * - ( - col0 * - col2 ) FROM tab0 AS cor0
----
-3298
-664027
-68026

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL col1 * - col2 / - col2 + + col1 * - ( - col0 * - col2 ) FROM tab0 AS cor0
----
-3298
-664027
-68026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - col2 * + 97 FROM tab0 AS cor0
----
-3201
-7954
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3182
SELECT ALL col0 + + CAST( 83 AS SIGNED ) * + col2 FROM tab1 cor0
----
4485
4795
8048

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL col0 + + CAST ( 83 AS INTEGER ) * + col2 FROM tab1 cor0
----
4485
4795
8048

onlyif mysql # use DIV operator for integer division
query I rowsort label-3183
SELECT ALL - cor0.col2 DIV col0 + + col0 AS col1 FROM tab1 AS cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - cor0.col2 / col0 + + col0 AS col1 FROM tab1 AS cor0
----
-15
64
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3184
SELECT - - 14 * col0 DIV 21 FROM tab2 AS cor0
----
4
52
52

skipif mysql # not compatible
query I rowsort label-3184
SELECT - - 14 * col0 / 21 FROM tab2 AS cor0
----
4
52
52

query I rowsort
SELECT 13 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col1 FROM tab0
----
43

query I rowsort
SELECT DISTINCT - 31 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-24
47
48

query I rowsort
SELECT DISTINCT 7 + + cor0.col1 * + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-22592
-24541
-39877

query I rowsort
SELECT ALL col2 + + cor0.col1 * + ( cor0.col1 ) FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL col1 * col2 + - tab1.col1 AS col0 FROM tab1
----
1235
1378
560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3191
SELECT DISTINCT - tab1.col2 * + CAST( NULL AS SIGNED ) FROM tab1, tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT - tab1.col2 * + CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + 84 FROM tab0
----
170
175
181

query I rowsort
SELECT col2 + 77 * col2 AS col2 FROM tab1
----
4212
4446
7488

query I rowsort
SELECT DISTINCT + col0 * - col0 - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT + - col0 * ( col0 + + col2 ) FROM tab1 AS cor0
----
-14080
-171
-7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT + col0 * 42 + ( + col1 ) DIV - cor0.col1 FROM tab0 AS cor0
----
1007
1469
3737

skipif mysql # not compatible
query I rowsort label-3196
SELECT + col0 * 42 + ( + col1 ) / - cor0.col1 FROM tab0 AS cor0
----
1007
1469
3737

onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT ALL col2 DIV col1 + + ( + col2 + cor0.col0 ) * col0 AS col2 FROM tab2 AS cor0
----
238
8112
9245

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL col2 / col1 + + ( + col2 + cor0.col0 ) * col0 AS col2 FROM tab2 AS cor0
----
238
8112
9245

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3198
SELECT DISTINCT - CAST( - 66 AS SIGNED ) AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) AS col0 FROM tab1 cor0
----
66

query I rowsort
SELECT + col0 + col2 * col2 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT - 22 + col1 * col1 + ( 5 ) FROM tab1 AS cor0
----
152
659
83

query I rowsort
SELECT ALL + + 80 AS col1 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT ALL + ( - 42 ) AS col2 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + 20 AS col2 FROM tab2 cor0
----
20
20
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT - - 78 + col0 DIV cor0.col0 FROM tab0 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-3204
SELECT - - 78 + col0 / cor0.col0 FROM tab0 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 30 * col2 col0 FROM tab2 AS cor0
----
1102
754
783

onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT DISTINCT + - CAST( - 68 AS SIGNED ) + col0 DIV 40 + col0 FROM tab2 AS cor0
----
147
148
75

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT + - CAST ( - 68 AS INTEGER ) + col0 / 40 + col0 FROM tab2 AS cor0
----
147
148
75

query I rowsort
SELECT - 50 + col1 * col2 FROM tab2 cor0
----
1484
596
787

query I rowsort
SELECT DISTINCT - + cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - col0 * 3 - col1 AS col2 FROM tab1 AS cor0
----
-202
-253
-35

query I rowsort
SELECT ALL + - 29 + 40 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3211
SELECT ALL tab1.col2 * - CAST( col1 AS SIGNED ) * tab1.col2 + 13 AS col0 FROM tab1
----
-119795
-32477
-75803

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL tab1.col2 * - CAST ( col1 AS INTEGER ) * tab1.col2 + 13 AS col0 FROM tab1
----
-119795
-32477
-75803

query I rowsort
SELECT DISTINCT - col2 + + ( - 68 ) FROM tab2
----
-106
-94
-95

query I rowsort
SELECT col2 - - col1 * 43 FROM tab2
----
1360
2563
769

query I rowsort
SELECT + col0 + + ( - tab1.col0 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT col1 * col0 + col2 DIV tab0.col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3215
SELECT col1 * col0 + col2 / tab0.col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + 65 FROM tab2, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT DISTINCT - col2 DIV 6 AS col1 FROM tab2 AS cor0
----
-4
-6

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - col2 / 6 AS col1 FROM tab2 AS cor0
----
-4
-6

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) * cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * + col1 + col2 * 25 + + col0 AS col0 FROM tab2 AS cor0
----
-314
-3874
465

query I rowsort
SELECT col2 * col1 + + cor0.col2 * col2 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT 46 * col1 * + col0 FROM tab1
----
29440
3588
47840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3222
SELECT CAST( NULL AS SIGNED ) * - 60 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT CAST ( NULL AS INTEGER ) * - 60 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( 7 ) + col2 * + col1 AS col1 FROM tab0 AS cor0
----
104
2845
7469

query I rowsort
SELECT 11 * col1 AS col1 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT - + 84 FROM tab0 cor0
----
-84
-84
-84

query I rowsort
SELECT ALL ( + 66 ) FROM tab1
----
66
66
66

query I rowsort
SELECT ALL 80 * - col1 + + col2 FROM tab0 AS cor0
----
-6847
-7198
-7759

query I rowsort
SELECT DISTINCT - ( 14 ) FROM tab0
----
-14

query I rowsort
SELECT + cor0.col1 * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - - col2 - 21 AS col0 FROM tab0 AS cor0
----
-20
12
61

query I rowsort
SELECT + col2 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3232
SELECT DISTINCT col0 DIV ( col2 ) col2 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT col0 / ( col2 ) col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + cor0.col0 + 43 AS col0 FROM tab2 AS cor0
----
121
122
50

query I rowsort
SELECT - col1 * 14 - + 28 FROM tab1 AS cor0
----
-168
-210
-392

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab0, tab2 AS cor0
----
53

query I rowsort
SELECT ALL 96 - 43 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT ALL + col0 * CAST( - col0 AS SIGNED ) + - col0 DIV + col1 AS col2 FROM tab2
----
-49
-6085
-6245

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + col0 * CAST ( - col0 AS INTEGER ) + - col0 / + col1 AS col2 FROM tab2
----
-49
-6085
-6245

skipif mysql # not compatible
query I rowsort
SELECT - + col1 + CAST ( + col0 AS REAL ) * col1 + + col1 * - col2 * - col1 FROM tab1 AS cor0
----
17251
36556
6330

query I rowsort
SELECT col0 * ( + 85 ) AS col2 FROM tab2 AS cor0
----
595
6630
6715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - col0 * ( - col1 ) AS col2 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3243
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) + + col1 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * 37 FROM tab2 AS cor0
----
259
2886
2923

query I rowsort
SELECT ( - col0 ) * 0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT 38 + - col2 + ( 15 ) DIV tab2.col0 FROM tab2
----
0
12
13

skipif mysql # not compatible
query I rowsort label-3246
SELECT 38 + - col2 + ( 15 ) / tab2.col0 FROM tab2
----
0
12
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT ALL - col0 + tab1.col1 - - ( col2 + + col1 ) DIV + col0 AS col1 FROM tab1
----
-53
-66
49

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - col0 + tab1.col1 - - ( col2 + + col1 ) / + col0 AS col1 FROM tab1
----
-53
-66
49

query I rowsort
SELECT ALL - 37 + tab0.col1 + 80 FROM tab0
----
129
134
140

query I rowsort
SELECT ( - tab2.col0 ) * - tab2.col2 + - col0 AS col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT + col0 + ( + 11 + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
139
17
171

onlyif mysql # use DIV operator for integer division
query I rowsort label-3251
SELECT 36 DIV 8 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3251
SELECT 36 / 8 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + col1 * col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + col1 + col1 * - 22 FROM tab1 AS cor0
----
-210
-273
-546

query I rowsort
SELECT cor0.col1 * 30 + + col2 FROM tab2 AS cor0
----
1796
548
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3255
SELECT ALL col0 * + CAST( 62 AS SIGNED ) FROM tab1 cor0
----
186
3968
4960

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL col0 * + CAST ( 62 AS INTEGER ) FROM tab1 cor0
----
186
3968
4960

query I rowsort
SELECT - col0 * - 62 AS col0 FROM tab0 AS cor0
----
1488
2170
5518

onlyif mysql # use DIV operator for integer division
query I rowsort label-3257
SELECT col2 + - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3257
SELECT col2 + - col1 / col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 54 * 10 AS col0 FROM tab2 cor0
----
540
540
540

query I rowsort
SELECT + col0 + - col0 - - col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL 14 FROM tab1 cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort
SELECT + 0 * col1 - CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - 49 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT DISTINCT - col0 DIV col2 AS col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT - col0 / col2 AS col0 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT - - cor0.col1 - + col2 * 2 FROM tab0 AS cor0
----
-73
20
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3265
SELECT DISTINCT - - 57 DIV col1 + 36 col0 FROM tab0 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT - - 57 / col1 + 36 col0 FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL + + col2 + - col1 * 82 AS col2 FROM tab1 AS cor0
----
-2078
-763
-970

query I rowsort
SELECT ALL - 98 * cor0.col0 + + col2 FROM tab1 AS cor0
----
-240
-6215
-7744

query I rowsort
SELECT ALL + + cor0.col2 * col2 - - col0 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT - 66 AS col0 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - 63 * col0 AS col2 FROM tab1 AS cor0
----
-189
-4032
-5040

query I rowsort
SELECT DISTINCT ( col2 ) + - cor0.col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 50 - - cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b8855b7cdcbd572a3072607693c5b91c

query I rowsort
SELECT DISTINCT col2 * + col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - 53 * + col1 + + ( - col2 ) - cor0.col1 * col2 * col2 FROM tab0 cor0
----
-5239
-616789
-98245

query I rowsort
SELECT DISTINCT cor0.col1 + - col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT - 57 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-26
-40
2

query I rowsort
SELECT ALL - - 57 * - col1 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT ALL - col1 + ( - col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT col0 + - col2 * + col1 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT - col2 + col1 * - 61 + ( + tab0.col0 ) FROM tab0
----
-5255
-5544
-5883

query I rowsort
SELECT - col1 - + col1 * + col0 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - 16 + - col2 FROM tab0 AS cor0
----
-17
-49
-98

query I rowsort
SELECT DISTINCT + - cor0.col2 - - col2 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT 14 * col0 AS col2 FROM tab2 AS cor0
----
1092
1106
98

query I rowsort
SELECT + 99 * + 98 FROM tab1 AS cor0
----
9702
9702
9702

query I rowsort
SELECT + + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + 67 * col1 FROM tab2 AS cor0
----
1139
2077
3953

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT ALL col0 * + col2 - + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL col0 * + col2 - + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3289
SELECT CAST( NULL AS SIGNED ) - - tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT CAST ( NULL AS INTEGER ) - - tab1.col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) * + tab1.col2 AS col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3291
SELECT ALL - col0 * col2 DIV col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - col0 * col2 / col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + col2 * + 33 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3294
SELECT + + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3294
SELECT + + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + cor0.col0 + - cor0.col1 * + cor0.col0 * + 74 AS col0 FROM tab2 AS cor0
----
-16051
-340470
-99303

query I rowsort
SELECT - ( 20 ) FROM tab0 cor0
----
-20
-20
-20

onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT col0 DIV 23 col0 FROM tab2 AS cor0
----
0
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3297
SELECT col0 / 23 col0 FROM tab2 AS cor0
----
0
3
3

query I rowsort
SELECT ALL - col2 * col1 + - col1 * 61 FROM tab0 AS cor0
----
-13013
-6014
-8084

query I rowsort
SELECT ALL - 20 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT DISTINCT + col1 * + 32 FROM tab0
----
2752
2912
3104

query I rowsort
SELECT 65 + + 3 FROM tab1
----
68
68
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT ALL + 59 DIV 49 col0 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + 59 / 49 col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + cor0.col1 * + 16 AS col0 FROM tab0 AS cor0
----
119392
1552
45408

query I rowsort
SELECT - - 11 * - col1 AS col0 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT ALL + 65 * 68 AS col0 FROM tab1 cor0
----
4420
4420
4420

query I rowsort
SELECT ALL col0 + col1 - - ( + col1 ) * - tab1.col2 AS col1 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT ALL - 43 + col2 FROM tab2
----
-16
-17
-5

query I rowsort
SELECT col1 * ( col0 ) + + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - col2 * + tab0.col2 - - 23 FROM tab0
----
-1066
-6701
22

query I rowsort
SELECT col1 * + col2 * + col1 + col2 * col0 FROM tab1 AS cor0
----
23904
36666
9348

query I rowsort
SELECT - col2 - col0 * 55 FROM tab1 AS cor0
----
-219
-3577
-4496

query I rowsort
SELECT DISTINCT 69 + - col2 FROM tab0
----
-13
36
68

query I rowsort
SELECT ALL 10 + + col0 FROM tab0
----
34
45
99

query I rowsort
SELECT DISTINCT 28 + tab2.col1 FROM tab2
----
45
59
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3315
SELECT ALL - col2 DIV - col0 + ( col2 + - col0 ) AS col1 FROM tab1
----
-7
17
69

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - col2 / - col0 + ( col2 + - col0 ) AS col1 FROM tab1
----
-7
17
69

query I rowsort
SELECT ALL 79 FROM tab0, tab0 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - col0 + - col1 ) col0 FROM tab1 AS cor0
----
-1209
-740
-754

query I rowsort
SELECT ALL + - col1 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - + col1 * + col0 + - col1 * cor0.col0 - col0 AS col0 FROM tab1 AS cor0
----
-1344
-159
-2160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3320
SELECT DISTINCT - + cor0.col1 + CAST( 20 * col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
461
509
743

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - + cor0.col1 + CAST ( 20 * col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
461
509
743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - ( - 19 ) * + col0 col0 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT + cor0.col2 + col0 + - cor0.col2 * - col2 * col1 AS col0 FROM tab2 cor0
----
22633
24665
39988

query I rowsort
SELECT DISTINCT col2 + + 28 * - 75 * col0 + 85 FROM tab2 AS cor0
----
-14588
-163689
-165777

query I rowsort
SELECT - + col1 - ( + 56 ) FROM tab1 AS cor0
----
-66
-69
-82

query I rowsort
SELECT ALL col1 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - 28 col1 FROM tab2 AS cor0
----
-106
-107
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3327
SELECT col2 + - ( 26 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
55
59
98

skipif mysql # not compatible
query I rowsort label-3327
SELECT col2 + - ( 26 ) / - col1 AS col2 FROM tab1 AS cor0
----
55
59
98

query I rowsort
SELECT ALL - col1 * + ( - col1 * - col0 ) FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3329
SELECT ALL - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + col2 - + col1 FROM tab2 cor0
----
-35
-92
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3331
SELECT ALL + col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - ( 12 + col0 ) FROM tab0
----
-12

query I rowsort
SELECT DISTINCT + tab2.col0 * + col0 AS col2 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( col0 ) col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - 76 * + cor0.col1 * - col1 col0 FROM tab2 cor0
----
21981
264615
73067

query I rowsort
SELECT ALL col2 * - col1 * cor0.col2 + col1 * - col0 + col1 * cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1356992
-273222
-332807

query I rowsort
SELECT 48 * col1 + + col0 FROM tab2 AS cor0
----
1495
2910
895

query I rowsort
SELECT + - 55 * col2 - + col2 * ( col0 ) FROM tab1 AS cor0
----
-12960
-3132
-6783

query I rowsort
SELECT + + 54 + + col2 * col0 FROM tab2 cor0
----
2082
243
3056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) + + col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - 94 AS col0 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT + + ( + col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3343
SELECT - col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT - col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + col2 * - col0 AS col0 FROM tab1
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3345
SELECT DISTINCT - col1 + + CAST( - col0 AS SIGNED ) FROM tab2
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - col1 + + CAST ( - col0 AS INTEGER ) FROM tab2
----
-137
-38
-96

query I rowsort
SELECT - + 10 * col1 * col1 + col0 FROM tab1 AS cor0
----
-1610
-6757
-936

query I rowsort
SELECT DISTINCT - 55 - - col0 * ( - col1 ) FROM tab0 AS cor0
----
-2119
-3450
-8154

query I rowsort
SELECT DISTINCT + col2 * + col2 + col1 * col1 AS col0 FROM tab0 AS cor0
----
15005
8485
9410

query I rowsort
SELECT - + 11 * - col1 AS col0 FROM tab1 AS cor0
----
110
143
286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col2 FROM tab2
----
52

query I rowsort
SELECT - 94 + col2 AS col2 FROM tab2
----
-56
-67
-68

query I rowsort
SELECT cor0.col2 + col0 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-1189
-519
-7750

query I rowsort
SELECT DISTINCT col0 + + col1 * col2 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 + - col0 col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col2 * - col1 + col1 + + cor0.col0 FROM tab1 AS cor0
----
-1155
-1375
-496

query I rowsort
SELECT col1 * - col1 * + col2 + col2 FROM tab0
----
-244035
-678960
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + - col1 - - col2 col1 FROM tab2
----
1465
643
725

query I rowsort
SELECT + tab1.col2 * - col1 * col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT cor0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT + col0 + tab0.col1 DIV - col1 + col1 FROM tab0
----
109
131
179

skipif mysql # not compatible
query I rowsort label-3360
SELECT + col0 + tab0.col1 / - col1 + col1 FROM tab0
----
109
131
179

query I rowsort
SELECT - col2 + - col2 + - col0 FROM tab0 AS cor0
----
-253
-37
-90

query I rowsort
SELECT ALL col1 + + col1 + + col2 AS col1 FROM tab2
----
144
72
89

query I rowsort
SELECT + ( col1 + + col2 ) AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT - 17 + col0 FROM tab2 cor0
----
-10
61
62

query I rowsort
SELECT - - col2 * col2 * col1 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT BETWEEN + col0 AND - col0 + - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col0 * - col0 / - col0 FROM tab1 WHERE NOT ( - col0 ) NOT IN ( - col1 * col0 + col1 )
----

query I rowsort
SELECT ALL col2 / - col0 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - col1 + col1 * + col2 + + col0 FROM tab0
----
2776
35
7460

query I rowsort
SELECT DISTINCT + tab0.col1 * col1 FROM tab0 WHERE NOT NULL NOT IN ( tab0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col2 FROM tab2 WHERE NOT ( - col2 * + col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) IN ( col0 * col0 )
----

query I rowsort
SELECT ALL - col2 * col2 + col2 * - col2 * + col0 AS col0 FROM tab1
----
-11664
-211185
-746496

query I rowsort
SELECT - tab2.col1 + + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - tab1.col2 + + col1 * - col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * 45 AS col0 FROM tab0 AS cor0
----
3894
4184
4400

query I rowsort
SELECT ALL - + cor0.col2 * - cor0.col1 + col0 AS col0 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT - col1 * col2 - + cor0.col2 * col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT ALL 72 * - col1 * ( - col2 * col0 + - 51 ) AS col2 FROM tab2 AS cor0
----
3736872
535680
8831592

query I rowsort
SELECT + tab1.col2 FROM tab1 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( col2 * - col1 )
----

query I rowsort
SELECT col0 + col1 + + col2 FROM tab1
----
131
189
83

query I rowsort
SELECT ALL + 94 + - col0 AS col1 FROM tab0 AS cor0
----
5
59
70

query I rowsort
SELECT DISTINCT + col1 * col0 AS col2 FROM tab1 WHERE - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + col1 + - tab0.col2 - col2 FROM tab0
----
7330
8117
9407

query I rowsort
SELECT DISTINCT col2 + col0 * col1 AS col1 FROM tab1 cor0
----
1136
132
697

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( - col0 * col0 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - tab0.col0 col0 FROM tab0
----
178
48
70

query I rowsort
SELECT col1 * col2 + col0 FROM tab2 cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL col0 * col1 * + col1 - - col2 AS col1 FROM tab1 WHERE NULL IN ( + col1 * - col0 * + col1 + + col2 )
----

query I rowsort
SELECT col2 * col0 + + col0 * tab1.col0 FROM tab1
----
14080
171
7744

query I rowsort
SELECT + tab1.col0 * col2 + + col0 + + col2 AS col1 FROM tab1
----
219
3769
7856

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT col0 DIV col1 + 81 AS col2 FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-3396
SELECT col0 / col1 + 81 AS col2 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col1 * 41 FROM tab2 AS cor0
----
1278
2497
776

query I rowsort
SELECT - cor0.col1 * col1 - col0 FROM tab2 AS cor0
----
-3559
-368
-968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - - 79 + - col0 * + 76 AS col2 FROM tab1 AS cor0
----
-149
-4785
-6001

query I rowsort
SELECT + 14 + col1 + tab1.col0 * col1 AS col0 FROM tab1
----
1067
118
664

query I rowsort
SELECT - 43 AS col1 FROM tab1 cor0
----
-43
-43
-43

query I rowsort
SELECT ALL - ( + col1 ) * ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 * 72 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT ALL + col0 + + col1 * 47 * + col0 AS col2 FROM tab1 AS cor0
----
30144
3669
48960

query I rowsort
SELECT - - ( col1 ) + 57 AS col0 FROM tab0 AS cor0
----
143
148
154

query I rowsort
SELECT DISTINCT - + 89 * col0 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT 18 + + col2 * + col2 FROM tab2 AS cor0
----
1462
694
747

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT + - col2 + + col1 - col2 * 4 FROM tab0 AS cor0
----
-319
-79
92

query I rowsort
SELECT ALL - - cor0.col0 + + 71 * + col2 FROM tab1 AS cor0
----
3837
4111
6896

query I rowsort
SELECT - - col1 * 5 + - col1 * col1 FROM tab0 AS cor0
----
-6966
-7826
-8924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3413
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + col1 + col0 * - 15 FROM tab1 AS cor0
----
-1007
-1283
-73

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - - col0 * + 42 FROM tab1 AS cor0
----
126
2688
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT + + col0 * + 84 AS col2 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT DISTINCT - 66 * - col2 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT ALL 75 + col1 * - col2 AS col2 FROM tab2
----
-1459
-571
-762

query I rowsort
SELECT - col2 * col0 - 14 * cor0.col2 FROM tab2 AS cor0
----
-2392
-3534
-567

query I rowsort
SELECT - col0 - cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3424
SELECT CAST( + col2 AS SIGNED ) + - col1 + col2 FROM tab1
----
104
179
82

skipif mysql # not compatible
query I rowsort label-3424
SELECT CAST ( + col2 AS INTEGER ) + - col1 + col2 FROM tab1
----
104
179
82

query I rowsort
SELECT ALL + col0 + - cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab2, tab1 AS cor0
----
-53

query I rowsort
SELECT + + 53 + + col1 AS col1 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT DISTINCT - - col0 + + col2 - - col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT - 3 * + col0 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT DISTINCT cor0.col0 * 38 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
266
2964
3002

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1

query I rowsort
SELECT ( + col2 ) * - ( + 24 ) FROM tab2
----
-624
-648
-912

query I rowsort
SELECT DISTINCT ( col2 ) * - col0 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - cor1.col1 + cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-2
-62

query I rowsort
SELECT ( + col0 ) * - col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col2 - - col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT col2 * 16 AS col2 FROM tab1
----
1536
864
912

query I rowsort
SELECT tab0.col0 * col0 + col0 * - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col1 * - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3441
SELECT ALL tab2.col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL tab2.col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * cor0.col1 AS col1 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3443
SELECT - CAST( NULL AS SIGNED ) * 64 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT - CAST ( NULL AS INTEGER ) * 64 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3444
SELECT CAST( + 3 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3444
SELECT CAST ( + 3 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3445
SELECT - col2 * + ( + col0 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT - col2 * + ( + col0 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + col2 * - col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT - - col1 * + col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + col1 * ( + col2 * + col1 ) col2 FROM tab0 AS cor0
----
244154
679133
9506

query I rowsort
SELECT + cor0.col0 * - 40 FROM tab2 cor0
----
-280
-3120
-3160

query I rowsort
SELECT col2 + + col0 * - tab0.col1 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3451
SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col0 + 75 AS col2 FROM tab0 cor0
----
110
164
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + + col2 - col2 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT ALL - col1 DIV col2 + - 0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - col1 / col2 + - 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 + ( 6 ) FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT ALL - - col0 + - col0 * - 55 FROM tab0 AS cor0
----
1344
1960
4984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col0 FROM tab2 cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT 29 + col1 * col0 FROM tab2 AS cor0
----
1372
246
4631

query I rowsort
SELECT ALL + 50 * cor0.col2 FROM tab2 AS cor0
----
1300
1350
1900

onlyif mysql # use DIV operator for integer division
query I rowsort label-3461
SELECT - + 0 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT - + 0 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * 43 AS col2 FROM tab1 AS cor0
----
2322
2451
4128

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT - col1 DIV - col0 - - col1 AS col2 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-3463
SELECT - col1 / - col0 - - col1 AS col2 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT ALL - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 74 * - 86 + + col1 FROM tab0 AS cor0
----
-6267
-6273
-6278

query I rowsort
SELECT DISTINCT 23 + col1 * + col2 FROM tab2 AS cor0
----
1557
669
860

query I rowsort
SELECT + 37 * 44 + col0 FROM tab2 AS cor0
----
1635
1706
1707

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT + col2 + tab1.col1 DIV - col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3468
SELECT + col2 + tab1.col1 / - col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - 25 * col1 AS col2 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT - + 56 + col0 FROM tab2 AS cor0
----
-49
22
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3471
SELECT ALL + col1 * + col2 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + col1 * + col2 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT DISTINCT 95 DIV col0 FROM tab2 AS cor0
----
1
13

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT 95 / col0 FROM tab2 AS cor0
----
1
13

query I rowsort
SELECT - - 60 * + col0 AS col1 FROM tab1 cor0
----
180
3840
4800

query I rowsort
SELECT ALL 55 - col1 FROM tab0 AS cor0
----
-31
-36
-42

query I rowsort
SELECT col1 * - 12 AS col1 FROM tab1
----
-120
-156
-312

query I rowsort
SELECT ALL cor0.col2 * col2 - col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3478
SELECT CAST( col2 AS SIGNED ) * col1 AS col2 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-3478
SELECT CAST ( col2 AS INTEGER ) * col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL 59 + + col1 AS col0 FROM tab2
----
118
76
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + ( col0 ) col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL col1 + - tab1.col0 * + 58 + col2 * col1 FROM tab1
----
-3132
-3379
1256

query I rowsort
SELECT 6 * tab2.col2 AS col1 FROM tab2
----
156
162
228

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3483
SELECT ALL col1 * - CAST( - col2 * - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL col1 * - CAST ( - col2 * - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3484
SELECT DISTINCT + col2 DIV - 48 AS col0 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + col2 / - 48 AS col0 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT 56 DIV - col1 + - col2 * - col2 FROM tab2
----
1441
676
728

skipif mysql # not compatible
query I rowsort label-3485
SELECT 56 / - col1 + - col2 * - col2 FROM tab2
----
1441
676
728

query I rowsort
SELECT ALL + tab2.col0 * tab2.col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT + col2 * + col1 + 67 FROM tab2
----
1601
713
904

query I rowsort
SELECT ALL 28 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 59af3451da9c1ccd44e1c1e08d77ef8b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3489
SELECT col2 + CAST( col1 AS SIGNED ) * col1 FROM tab0
----
7429
8363
9410

skipif mysql # not compatible
query I rowsort label-3489
SELECT col2 + CAST ( col1 AS INTEGER ) * col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT col0 * - 14 FROM tab0 cor0
----
-1246
-336
-490

query I rowsort
SELECT + col0 * ( - cor0.col1 * - col0 ) FROM tab1 cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT ALL + col2 DIV 56 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + col2 / 56 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + - col0 col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + - col2 + col0 - - col2 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col1 * + ( col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + cor0.col1 col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3497
SELECT ALL col2 * + CAST( - 72 AS SIGNED ) FROM tab1 AS cor0
----
-3888
-4104
-6912

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL col2 * + CAST ( - 72 AS INTEGER ) FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT ( + 3 ) - col0 AS col1 FROM tab0
----
-21
-32
-86

query I rowsort
SELECT ALL - 79 + - col2 FROM tab2 AS cor0
----
-105
-106
-117

query I rowsort
SELECT ALL + col0 * col0 * - cor0.col2 + - 6 FROM tab2 AS cor0
----
-1329
-158190
-237164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3501
SELECT DISTINCT + CAST( + 61 AS SIGNED ) * col1 + - col1 FROM tab2 AS cor0
----
1020
1860
3540

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT + CAST ( + 61 AS INTEGER ) * col1 + - col1 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT ALL cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + cor0.col2 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 - + col2 col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL ( col1 ) + col1 + col2 * + col0 FROM tab2
----
2146
251
3036

query I rowsort
SELECT + + col0 + col0 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-17
141
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT DISTINCT + 25 DIV col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT + 25 / col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3508
SELECT ALL cor0.col2 / + cor2.col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL cor0.col2 / + cor2.col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT ALL - col0 * col2 DIV ( 69 ) FROM tab2 AS cor0
----
-2
-29
-43

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL - col0 * col2 / ( 69 ) FROM tab2 AS cor0
----
-2
-29
-43

query I rowsort
SELECT col2 * + col2 + 55 * col2 AS col0 FROM tab0
----
11234
2904
56

query I rowsort
SELECT + 55 + tab2.col2 FROM tab2
----
81
82
93

query I rowsort
SELECT ALL 6 * col2 AS col1 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT + + ( + cor0.col0 ) + ( + 48 ) AS col2 FROM tab0 AS cor0
----
137
72
83

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 88 AS REAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3515
SELECT DISTINCT - 3 + - col0 DIV + 72 AS col1 FROM tab0 AS cor0
----
-3
-4

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - 3 + - col0 / + 72 AS col1 FROM tab0 AS cor0
----
-3
-4

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab2, tab2 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + tab1.col1 * tab1.col0 col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT col0 + - ( + col2 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT col0 * col0 + + 86 FROM tab2 AS cor0
----
135
6170
6327

query I rowsort
SELECT ALL - col1 * - 16 * 35 FROM tab1 AS cor0
----
14560
5600
7280

query I rowsort
SELECT DISTINCT cor0.col1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - - col2 * - 59 AS col0 FROM tab0 AS cor0
----
-1947
-4838
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3523
SELECT 38 + 52 - col2 DIV - col0 FROM tab0 AS cor0
----
90
90
91

skipif mysql # not compatible
query I rowsort label-3523
SELECT 38 + 52 - col2 / - col0 FROM tab0 AS cor0
----
90
90
91

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL 0 * ( + col0 ) + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + + ( col0 ) * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 2 * - col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT - + 63 AS col2 FROM tab0 AS cor0
----
-63
-63
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3530
SELECT DISTINCT + col1 DIV col0 + 10 FROM tab1 AS cor0
----
10
18

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + col1 / col0 + 10 FROM tab1 AS cor0
----
10
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT - col0 DIV - col2 col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3531
SELECT - col0 / - col2 col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3532
SELECT col2 + 36 DIV + col0 AS col0 FROM tab2 AS cor0
----
26
32
38

skipif mysql # not compatible
query I rowsort label-3532
SELECT col2 + 36 / + col0 AS col0 FROM tab2 AS cor0
----
26
32
38

query I rowsort
SELECT ALL + - col0 - + col1 * + 38 FROM tab1 AS cor0
----
-444
-574
-991

query I rowsort
SELECT col2 + + col0 * - 80 FROM tab2
----
-533
-6214
-6282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3535
SELECT - col2 * + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT - col2 * + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT + - col1 DIV + ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3536
SELECT + - col1 / + ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + col1 + - col1 * col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + ( + 11 ) + - col2 FROM tab1 AS cor0
----
-43
-46
-85

query I rowsort
SELECT DISTINCT - + 91 AS col1 FROM tab2 cor0
----
-91

query I rowsort
SELECT ALL - ( + cor0.col2 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + cor0.col2 col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT ( ( col1 ) ) * + tab2.col0 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3543
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 52 / col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 52 / col0 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 24 + col1 FROM tab0
----
110
115
121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3545
SELECT DISTINCT - CAST( 53 AS SIGNED ) * + col2 + + 93 * col2 FROM tab1
----
2160
2280
3840

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - CAST ( 53 AS INTEGER ) * + col2 + + 93 * col2 FROM tab1
----
2160
2280
3840

query I rowsort
SELECT DISTINCT + col0 * 52 + col0 FROM tab1
----
159
3392
4240

query I rowsort
SELECT 34 * cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 2102b6be9062c8709d13b34f311d6ac0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col0 FROM tab1
----
-64

query I rowsort
SELECT col1 * cor0.col0 + - ( - ( col0 ) ) FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 + + cor0.col0 col0 FROM tab0 AS cor0
----
-45
-56
9

query I rowsort
SELECT + ( - col2 ) * - col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3552
SELECT CAST( NULL AS SIGNED ) * col1 - col0 * + col0 * ( + col2 * col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT CAST ( NULL AS INTEGER ) * col1 - col0 * + col0 * ( + col2 * col1 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + tab2.col2 - + col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ( - col0 ) + + col1 AS col1 FROM tab2
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3555
SELECT DISTINCT CAST( 15 AS SIGNED ) + + col2 * 60 AS col0 FROM tab2
----
1575
1635
2295

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT CAST ( 15 AS INTEGER ) + + col2 * 60 AS col0 FROM tab2
----
1575
1635
2295

query I rowsort
SELECT + 6 + 73 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3557
SELECT ALL + CAST( + col1 AS SIGNED ) + + col1 * - ( - col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL + CAST ( + col1 AS INTEGER ) + + col1 * - ( - col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 27 * col1 * col2 FROM tab2 AS cor0
----
17442
22599
41418

onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT - - col2 + + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-3559
SELECT - - col2 + + col0 / col1 AS col0 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT DISTINCT - ( col1 ) + - 6 * + col1 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT col1 * col2 + cor0.col1 AS col0 FROM tab1 cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col2 FROM tab1 cor0
----
93
93
93

query I rowsort
SELECT ALL col0 * - col1 * + cor0.col1 + - col1 FROM tab2 AS cor0
----
-22848
-271577
-6758

query I rowsort
SELECT DISTINCT 95 + col0 FROM tab2 cor0
----
102
173
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + col1 col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT col1 * col2 DIV col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3566
SELECT col1 * col2 / col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 32 + + col2 * 26 FROM tab0 cor0
----
2164
58
890

query I rowsort
SELECT col0 * tab2.col2 + - tab2.col0 * + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 - + col1 * - col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + col1 + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - - col0 * - 76 AS col1 FROM tab0 AS cor0
----
-1824
-2660
-6764

query I rowsort
SELECT DISTINCT col2 + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT 41 * - col0 FROM tab1
----
-123
-2624
-3280

query I rowsort
SELECT - cor0.col0 + - 39 FROM tab1 cor0
----
-103
-119
-42

query I rowsort
SELECT - - col1 - + 14 FROM tab0 AS cor0
----
72
77
83

query I rowsort
SELECT + col0 * - 90 + 69 FROM tab1 cor0
----
-201
-5691
-7131

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3577
SELECT ALL - col1 + - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - col1 + - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3578
SELECT ALL col2 * + CAST( - col0 AS SIGNED ) * - col0 - + cor0.col1 FROM tab0 AS cor0
----
1128
18922
649431

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL col2 * + CAST ( - col0 AS INTEGER ) * - col0 - + cor0.col1 FROM tab0 AS cor0
----
1128
18922
649431

query I rowsort
SELECT ALL + 46 * + cor0.col0 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT col1 * ( + tab1.col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col1 + - 51 + col2 * 32 FROM tab1 AS cor0
----
1703
1783
3034

query I rowsort
SELECT DISTINCT + 9 * + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
117
234
90

query I rowsort
SELECT ALL - col0 * col1 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col2 * col0 col2 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT DISTINCT 65 + col0 FROM tab0 AS cor0
----
100
154
89

query I rowsort
SELECT DISTINCT - - col2 * col2 + - col2 FROM tab0 cor0
----
0
1056
6642

query I rowsort
SELECT 31 AS col2 FROM tab0 cor0
----
31
31
31

query I rowsort
SELECT ALL cor0.col0 * + col1 - - col2 * 60 * col0 FROM tab0 AS cor0
----
445979
49584
5495

onlyif mysql # use DIV operator for integer division
query I rowsort label-3589
SELECT - + col1 + - col2 DIV col0 FROM tab1 AS cor0
----
-10
-14
-44

skipif mysql # not compatible
query I rowsort label-3589
SELECT - + col1 + - col2 / col0 FROM tab1 AS cor0
----
-10
-14
-44

query I rowsort
SELECT ALL 19 * + col2 FROM tab0 AS cor0
----
1558
19
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 + 25 col2 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT ALL ( col2 ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col1 + - col0 * 13 * col2 - - col2 FROM tab2
----
-2461
-26397
-39005

onlyif mysql # use DIV operator for integer division
query I rowsort label-3594
SELECT ALL col1 + + col2 DIV ( col0 ) FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL col1 + + col2 / ( col0 ) FROM tab0
----
87
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3595
SELECT + + CAST( ( col1 ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT + + CAST ( ( col1 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 - - 1 * - col0 * + 55 FROM tab1 AS cor0
----
-219
-3577
-4496

query I rowsort
SELECT ALL + ( + cor1.col2 ) - 65 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9cdc0dc33a54fab7cc09f96e04bbf03c

query I rowsort
SELECT ALL 75 * 20 + + col2 * col0 FROM tab0
----
1535
2292
8798

query I rowsort
SELECT tab1.col1 * + col1 - col1 * ( col1 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3600
SELECT ALL - CAST( - col2 AS SIGNED ) + col2 FROM tab0 cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - CAST ( - col2 AS INTEGER ) + col2 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT - col0 DIV - 18 + col1 AS col2 FROM tab2 AS cor0
----
21
31
63

skipif mysql # not compatible
query I rowsort label-3601
SELECT - col0 / - 18 + col1 AS col2 FROM tab2 AS cor0
----
21
31
63

query I rowsort
SELECT ALL + cor0.col2 * 86 AS col1 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT ALL + - ( + cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3604
SELECT ALL ( cor0.col1 ) DIV 76 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL ( cor0.col1 ) / 76 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT col1 + col0 * - 45 * - col0 AS col0 FROM tab0 AS cor0
----
26006
356536
55222

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3606
SELECT ALL col2 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL col2 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + col1 * - 95 AS col0 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT DISTINCT - col1 * + 36 AS col1 FROM tab0 AS cor0
----
-3096
-3276
-3492

onlyif mysql # use DIV operator for integer division
query I rowsort label-3609
SELECT ALL cor0.col0 + col0 DIV 6 FROM tab0 AS cor0
----
103
28
40

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL cor0.col0 + col0 / 6 FROM tab0 AS cor0
----
103
28
40

query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 94 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT col2 + + 73 + - 79 FROM tab0
----
-5
27
76

query I rowsort
SELECT ALL - + col1 * 38 FROM tab0 AS cor0
----
-3268
-3458
-3686

query I rowsort
SELECT DISTINCT - col0 * ( 47 ) * - col1 FROM tab0 cor0
----
159565
380653
97008

query I rowsort
SELECT - cor0.col2 - col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT + + col1 - - ( 30 ) FROM tab0 AS cor0
----
116
121
127

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3617
SELECT DISTINCT - col1 + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - col1 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 7 col2 FROM tab2 AS cor0
----
-10
-24
-52

query I rowsort
SELECT - + cor0.col0 + - col1 * + col2 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT col1 * col1 + - 14 * + 91 FROM tab1
----
-1105
-1174
-598

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3622
SELECT CAST( NULL AS SIGNED ) col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3622
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + + col2 + - col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col0 * - col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT - + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT - + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( col1 - - col1 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col1 col0 FROM tab2
----
-33
-4
21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col1 - - col2 * - tab0.col2 )
----

query I rowsort
SELECT - col2 + col0 * col2 - col0 * - col0 AS col0 FROM tab2
----
211
8086
9205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col0 FROM tab1
----
162
3648
7680

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - col1 IN ( col1 + tab0.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT col1 DIV + col2 + + col0 AS col1 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-3633
SELECT col1 / + col2 + + col0 AS col1 FROM tab0
----
132
26
90

onlyif mysql # use DIV operator for integer division
query III rowsort label-3634
SELECT * FROM tab0 WHERE + col2 IN ( + col2 DIV col1 + col2 * col2 * col2 )
----
35
97
1

skipif mysql # not compatible
query III rowsort label-3634
SELECT * FROM tab0 WHERE + col2 IN ( + col2 / col1 + col2 * col2 * col2 )
----
35
97
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3635
SELECT ALL col0 + + col0 DIV - tab1.col1 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL col0 + + col0 / - tab1.col1 FROM tab1
----
3
58
74

query I rowsort
SELECT + col2 - + col1 * - col2 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT - col0 / col1 + + col2 * col2 AS col2 FROM tab0 WHERE NOT NULL >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col2 FROM tab1 WHERE - col1 * col0 NOT IN ( + col0 - - col2 )
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * + col2 col0 FROM tab0 cor0
----
246
3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * - col2 + 33 col0 FROM tab0 cor0
----
-2805
-53
-7019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3641
SELECT DISTINCT - col1 * col0 * + CAST( - 75 + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-56693
251230
86688

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT - col1 * col0 * + CAST ( - 75 + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-56693
251230
86688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3642
SELECT ( col2 ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT ( col2 ) * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + tab0.col0 * tab0.col2 - 11 FROM tab0
----
24
7287
781

onlyif mysql # use DIV operator for integer division
query I rowsort label-3644
SELECT - col2 * col2 DIV ( 89 * col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT - col2 * col2 / ( 89 * col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 90 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col0 * - ( col1 + col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-1401127
-245616
-332710

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT - col0 + - col0 + + 19 DIV + col2 FROM tab1 AS cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-3648
SELECT - col0 + - col0 + + 19 / + col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + col2 * + 67 FROM tab2 AS cor0
----
1742
1809
2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-3650
SELECT + 38 * col1 DIV col1 - 64 FROM tab2 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-3650
SELECT + 38 * col1 / col1 - 64 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + ( 25 ) - - col1 FROM tab0 AS cor0
----
111
116
122

query I rowsort
SELECT - 85 * + col1 FROM tab1 cor0
----
-1105
-2210
-850

query I rowsort
SELECT DISTINCT - + col2 * col1 + cor0.col0 * ( + col2 ) FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT - + 24 AS col0 FROM tab2 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - col0 - + cor0.col1 * ( col2 * + col1 ) AS col0 FROM tab0 AS cor0
----
-244092
-679131
-9444

query I rowsort
SELECT DISTINCT 71 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
201498
529802
6887

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3657
SELECT ALL + ( - ( col2 ) + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + ( - ( col2 ) + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + ( - col1 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT 42 + col0 AS col2 FROM tab0 AS cor0
----
131
66
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT - cor0.col1 DIV + col1 - 0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3660
SELECT - cor0.col1 / + col1 - 0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT CAST( + col2 AS SIGNED ) DIV tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3661
SELECT CAST ( + col2 AS INTEGER ) / tab0.col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3662
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3662
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col2 * - col1 + tab0.col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT + col1 + - col1 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - col1 + col2 * col1 + tab1.col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + tab1.col2 + - col1 * col1 - col1 AS col1 FROM tab1
----
-53
-648
-86

query I rowsort
SELECT - tab2.col2 + tab2.col0 * col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT col2 + + col1 * + col2 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT ALL col2 + + col1 DIV - col0 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL col2 + + col1 / - col0 FROM tab2
----
23
26
38

query I rowsort
SELECT + col0 * - col2 * + col2 + col2 FROM tab1
----
-207879
-737184
-8694

query I rowsort
SELECT DISTINCT + col0 + + col2 + + tab1.col1 FROM tab1
----
131
189
83

query I rowsort
SELECT ALL + col2 + + col1 * col1 * col0 FROM tab1 AS cor0
----
13616
2082
6457

query I rowsort
SELECT ALL - ( + col0 + col0 ) FROM tab2
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - ( + col1 + - col2 ) FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3675
SELECT 77 DIV - 73 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3675
SELECT 77 / - 73 AS col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 78 * col2 FROM tab1
----
-4212
-4446
-7488

query I rowsort
SELECT DISTINCT + ( col2 ) + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col0 + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT DISTINCT + col1 + - tab0.col2 + + tab0.col1 FROM tab0
----
100
139
193

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + - col1 col0 FROM tab0 cor0
----
-34
-39
-45

query I rowsort
SELECT + + cor0.col2 * cor0.col2 - col0 AS col1 FROM tab0 cor0
----
-34
1065
6635

query I rowsort
SELECT col0 * col0 + - col2 + col1 AS col0 FROM tab1 AS cor0
----
-19
4049
6317

query I rowsort
SELECT 78 * + col1 * col2 FROM tab0
----
221364
582036
7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 + + col1 * - col2 - - col0 AS col2 FROM tab1 cor0
----
-1088
-1398
-442

query I rowsort
SELECT ALL - + ( + col1 ) * cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 * col1 col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 FROM tab2
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * - col1 col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT col1 + col0 FROM tab0 WHERE col2 * + col1 + - col1 <= ( - col1 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND col0 + col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 + + col2 * col1 * + col0 FROM tab1 AS cor0
----
36500
4264
99866

query I rowsort
SELECT ALL - col0 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3696
SELECT ALL + col2 DIV col1 + col2 * col1 * - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
-10942
-25920
-90480

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL + col2 / col1 + col2 * col1 * - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
-10942
-25920
-90480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3697
SELECT DISTINCT - col0 + + col2 DIV tab0.col2 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT - col0 + + col2 / tab0.col2 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT - col2 + + tab1.col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT ALL - col0 DIV + tab1.col0 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL - col0 / + tab1.col0 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 + col1 + + tab0.col0 FROM tab0
----
134
167
269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * col1 col0 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT col1 + - col1 + col0 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3703
SELECT col0 * - col0 DIV - col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3703
SELECT col0 * - col0 / - col0 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3704
SELECT + col0 * + tab0.col2 - - col2 DIV + col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3704
SELECT + col0 * + tab0.col2 - - col2 / + col1 FROM tab0
----
35
7298
792

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * - col2 IN ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col0 / - col1
----

query I rowsort
SELECT DISTINCT tab2.col0 + + col2 + tab2.col1 * - col2 FROM tab2
----
-1430
-529
-803

query I rowsort
SELECT ALL - col2 + col0 + col2 AS col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT + col0 * + col2 DIV col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3709
SELECT + col0 * + col2 / col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col2 + - tab1.col2 * col2 + col2 AS col2 FROM tab1
----
-2808
-3135
-9024

query I rowsort
SELECT tab0.col2 * col0 * col1 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col2 col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col2 col1 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL col1 - - col0 * col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col1 * - cor0.col0 col2 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3717
SELECT ALL col0 DIV col2 - - col0 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL col0 / col2 - - col0 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT DISTINCT - col1 * + col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL - col2 * col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col1 + - col2 + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1449
591
779

query I rowsort
SELECT ALL - col0 - - cor0.col1 * - col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-11061
-25954
-90584

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 + + col2 * col1 AS col1 FROM tab2
----
1508
608
810

query I rowsort
SELECT + col1 * col0 * col0 + tab1.col0 * col1 FROM tab1
----
312
41600
84240

query I rowsort
SELECT DISTINCT cor0.col0 * col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 + col0 ) OR NOT + col2 IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col1 * col0 + + col0 + tab0.col2 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL <> + cor0.col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT - 90 DIV - col0 + - col0 + col0 * + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-119729
-51112
-5854

skipif mysql # not compatible
query I rowsort label-3729
SELECT - 90 / - col0 + - col0 + col0 * + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-119729
-51112
-5854

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3730
SELECT + CAST( NULL AS SIGNED ) + 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT + CAST ( NULL AS INTEGER ) + 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 82 + + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1452
564
755

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + cor0.col1 AS REAL ) + - col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT ALL - ( - 29 ) * + col2 DIV cor0.col2 - + 33 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL - ( - 29 ) * + col2 / cor0.col2 - + 33 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3734
SELECT DISTINCT - ( col0 ) DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT - ( col0 ) / + col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT 11 * - col0 FROM tab0 AS cor0
----
-264
-385
-979

query I rowsort
SELECT ALL + cor0.col1 + - col2 * + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + + ( 52 ) + - col0 AS col0 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT cor0.col2 + + ( - col1 ) AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col0 * tab2.col1 + - col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT + 97 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
97

query I rowsort
SELECT + col2 * 85 AS col2 FROM tab2
----
2210
2295
3230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3742
SELECT CAST( - 43 AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

skipif mysql # not compatible
query I rowsort label-3742
SELECT CAST ( - 43 AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT col1 + col1 + + ( col2 ) * + 72 AS col1 FROM tab1
----
3940
4124
6938

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col1 * 43 AS col1 FROM tab2
----
1333
2537
731

query I rowsort
SELECT ALL + + 46 FROM tab0 cor0
----
46
46
46

query I rowsort
SELECT - col2 + - 33 + col2 * + col0 FROM tab0
----
1
7183
726

onlyif mysql # use DIV operator for integer division
query I rowsort label-3748
SELECT col2 * ( - 10 ) DIV + col1 FROM tab0
----
-3
-9
0

skipif mysql # not compatible
query I rowsort label-3748
SELECT col2 * ( - 10 ) / + col1 FROM tab0
----
-3
-9
0

query I rowsort
SELECT - col2 + + 74 + col0 FROM tab1
----
23
58
81

query I rowsort
SELECT + col0 * + 82 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT DISTINCT 42 + + col0 * - col0 AS col0 FROM tab2
----
-6042
-6199
-7

query I rowsort
SELECT + col2 * 35 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT col1 + - col2 * - 93 AS col1 FROM tab0 AS cor0
----
190
3155
7717

query I rowsort
SELECT col2 + + ( ( cor0.col2 ) ) * 77 AS col0 FROM tab1 AS cor0
----
4212
4446
7488

query I rowsort
SELECT + + col0 + col0 + - 59 * cor0.col1 * col2 FROM tab0 AS cor0
----
-167394
-440080
-5653

query I rowsort
SELECT + - col0 * ( + col2 ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - cor0.col1 * 84 AS col2 FROM tab2, tab2 AS cor0
----
-1428
-2604
-4956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3758
SELECT - - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT - - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + col1 * + col2 * col2 FROM tab0 AS cor0
----
611802
93621
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - cor0.col0 ) col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col0 + col0 * ( ( col1 ) ) * col2 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT DISTINCT col0 * - col0 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL + 59 * col0 FROM tab0 AS cor0
----
1416
2065
5251

query I rowsort
SELECT DISTINCT 11 * + cor0.col0 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT ALL - 31 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

query I rowsort
SELECT DISTINCT col0 - - col0 * + ( - 83 ) FROM tab0
----
-1968
-2870
-7298

query I rowsort
SELECT DISTINCT 53 - + tab0.col2 FROM tab0
----
-29
20
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col1 col1 FROM tab2
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3769
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) + + col1 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) + + col1 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 31 AS col2 FROM tab2 AS cor0
----
217
2418
2449

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3771
SELECT ALL + ( + col0 * - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + ( + col0 * - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT DISTINCT + 85 + + tab0.col0 DIV 21 AS col1 FROM tab0
----
86
89

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT + 85 + + tab0.col0 / 21 AS col1 FROM tab0
----
86
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3773
SELECT DISTINCT 42 + col0 * CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT 42 + col0 * CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 75 * cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to b71f29d713903c700e8fcb7b370e3599

onlyif mysql # use DIV operator for integer division
query I rowsort label-3775
SELECT col0 DIV + col0 + 22 AS col1 FROM tab2
----
23
23
23

skipif mysql # not compatible
query I rowsort label-3775
SELECT col0 / + col0 + 22 AS col1 FROM tab2
----
23
23
23

query I rowsort
SELECT DISTINCT + tab2.col1 + col0 * col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT 67 * - tab1.col1 AS col1 FROM tab1
----
-1742
-670
-871

onlyif mysql # use DIV operator for integer division
query I rowsort label-3778
SELECT tab0.col0 DIV col1 - - col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3778
SELECT tab0.col0 / col1 - - col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - col1 + + col0 * - col2 FROM tab1
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT DISTINCT col0 DIV col0 AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT col0 / col0 AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT col0 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - + 42 + 90 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT + col0 + + col1 * - tab1.col2 * col2 AS col2 FROM tab1
----
-119728
-32426
-75813

query I rowsort
SELECT DISTINCT col0 * col0 * + col1 AS col0 FROM tab1
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3785
SELECT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + 14 * 94 FROM tab0 AS cor0
----
1316

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3787
SELECT + CAST( NULL AS SIGNED ) / col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT + CAST ( NULL AS INTEGER ) / col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 6 FROM tab1 cor0
----
6
6
6

query I rowsort
SELECT - + col0 + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3790
SELECT + CAST( NULL AS SIGNED ) + + 13 AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3790
SELECT + CAST ( NULL AS INTEGER ) + + 13 AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT DISTINCT - - CAST( 31 AS SIGNED ) - + tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
-55
-60
-66

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT - - CAST ( 31 AS INTEGER ) - + tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
-55
-60
-66

query I rowsort
SELECT 32 + - col2 AS col2 FROM tab1
----
-22
-25
-64

query I rowsort
SELECT - col0 * - col0 + tab1.col0 * col2 AS col0 FROM tab1
----
14080
171
7744

query I rowsort
SELECT + 26 AS col2 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - + 43 AS col1 FROM tab0 AS cor0
----
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3796
SELECT CAST( NULL AS SIGNED ) + ( - col0 ) 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-3796
SELECT CAST ( NULL AS INTEGER ) + ( - col0 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( cor0.col0 ) * + col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT + 7 FROM tab0 cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3800
SELECT ALL + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col0 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT + col2 + - cor0.col2 * ( col2 ) AS col0 FROM tab1 cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3803
SELECT DISTINCT 73 DIV - col0 FROM tab1 AS cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT 73 / - col0 FROM tab1 AS cor0
----
-1
-24
0

query I rowsort
SELECT DISTINCT col2 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3805
SELECT ALL cor0.col1 DIV - col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3805
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-3806
SELECT DISTINCT col2 + CAST( - col1 AS SIGNED ) + col0 col0 FROM tab0 AS cor0
----
-29
-61
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT col2 + CAST ( - col1 AS INTEGER ) + col0 col0 FROM tab0 AS cor0
----
-29
-61
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( col2 ) - + col1 * 1 * - 54 col2 FROM tab1 AS cor0
----
3789
4320
9918

query I rowsort
SELECT DISTINCT col0 + - 54 FROM tab0 AS cor0
----
-19
-30
35

query I rowsort
SELECT ALL + col2 * col0 * col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + 39 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL col0 * ( col0 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3812
SELECT DISTINCT col1 + - ( + col2 ) * cor0.col1 DIV 3 FROM tab0 AS cor0
----
-2396
-860
65

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT col1 + - ( + col2 ) * cor0.col1 / 3 FROM tab0 AS cor0
----
-2396
-860
65

query I rowsort
SELECT DISTINCT + + col0 * 68 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
507
5363
5389

query I rowsort
SELECT - + col2 + + col1 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - col0 + ( cor0.col1 ) FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3816
SELECT - col0 DIV col2 + col1 DIV - col0 FROM tab1 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-3816
SELECT - col0 / col2 + col1 / - col0 FROM tab1 AS cor0
----
-1
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3817
SELECT ALL col2 + 44 + - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
126
45
77

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL col2 + 44 + - col0 / col1 AS col0 FROM tab0 AS cor0
----
126
45
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3818
SELECT ALL + col0 * ( col2 ) DIV cor0.col2 - 88 * - 9 AS col1 FROM tab1 AS cor0
----
795
856
872

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + col0 * ( col2 ) / cor0.col2 - 88 * - 9 AS col1 FROM tab1 AS cor0
----
795
856
872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3819
SELECT col1 * CAST( col0 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-3819
SELECT col1 * CAST ( col0 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3820
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) * - 72 / col2 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) * - 72 / col2 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + + col0 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-114114
-5130
-52754

query I rowsort
SELECT DISTINCT + col0 + col0 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1501
231
4758

onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT cor0.col0 DIV + col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-3823
SELECT cor0.col0 / + col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT ALL col2 * + 16 + col1 FROM tab2 AS cor0
----
463
475
625

query I rowsort
SELECT ALL + col2 * + col2 * + col2 AS col2 FROM tab2 cor0
----
17576
19683
54872

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) * cor0.col0 * cor0.col2 + - col1 * - col1 FROM tab2 AS cor0
----
-116171
-4898
-50745

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT ALL + cor0.col1 + + cor0.col0 DIV cor0.col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + cor0.col1 + + cor0.col0 / cor0.col1 FROM tab0 AS cor0
----
86
91
97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f

query I rowsort
SELECT - col0 * - 96 FROM tab0
----
2304
3360
8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT col1 + + cor0.col2 DIV col0 - + col0 FROM tab1 AS cor0
----
-54
-66
41

skipif mysql # not compatible
query I rowsort label-3830
SELECT col1 + + cor0.col2 / col0 - + col0 FROM tab1 AS cor0
----
-54
-66
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT - col2 + + col0 * - ( col2 ) - col1 DIV + col0 FROM tab1 AS cor0
----
-224
-3705
-7776

skipif mysql # not compatible
query I rowsort label-3831
SELECT - col2 + + col0 * - ( col2 ) - col1 / + col0 FROM tab1 AS cor0
----
-224
-3705
-7776

query I rowsort
SELECT ALL - col2 + cor0.col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + 50 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT + + col2 DIV ( - 26 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3834
SELECT + + col2 / ( - 26 ) FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT - col0 DIV 66 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT - col0 / 66 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + - col0 * col1 + - col0 + + col1 * 44 FROM tab1 AS cor0
----
-264
-548
1063

query I rowsort
SELECT DISTINCT + 9 * + 35 AS col2 FROM tab2, tab1 AS cor0
----
315

query I rowsort
SELECT col0 * + 11 * cor0.col0 AS col0 FROM tab1 AS cor0
----
45056
70400
99

query I rowsort
SELECT col1 * + col1 * - 52 FROM tab0
----
-384592
-430612
-489268

query I rowsort
SELECT ALL - 84 * + col0 + + col0 FROM tab0 AS cor0
----
-1992
-2905
-7387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * col2 col1 FROM tab1 cor0
----
-4860
-5130
-8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT ALL - + col0 DIV 56 + - col1 AS col1 FROM tab0 cor0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - + col0 / 56 + - col1 AS col1 FROM tab0 cor0
----
-86
-92
-97

query I rowsort
SELECT DISTINCT - + ( - 7 ) - - col1 * + col0 FROM tab0 AS cor0
----
2071
3402
8106

query I rowsort
SELECT - 86 * - col0 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT + col2 + - col0 * col0 AS col2 FROM tab0 cor0
----
-1224
-543
-7839

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - 76 AS REAL ) FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3847
SELECT - CAST( - ( + col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3847
SELECT - CAST ( - ( + col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - col2 col2 FROM tab0 AS cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + col2 - - col2 * col0 col2 FROM tab0 AS cor0
----
-6571
-901
-9373

query I rowsort
SELECT DISTINCT - - cor1.col2 * + 15 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
1230
15
495

query I rowsort
SELECT DISTINCT 65 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3852
SELECT CAST( 37 AS SIGNED ) FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-3852
SELECT CAST ( 37 AS INTEGER ) FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT - 32 FROM tab0, tab1 AS cor0
----
-32

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917

query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + + cor0.col2 + - cor0.col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 + col1 + 65 AS col0 FROM tab2 cor0
----
103
161
202

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 * - 88 FROM tab2 AS cor0
----
127072
59488
64152

query I rowsort
SELECT ALL col2 * - col2 + 91 AS col1 FROM tab0 AS cor0
----
-6633
-998
90

query I rowsort
SELECT ALL + 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - col0 * 57 + - col1 AS col2 FROM tab1 AS cor0
----
-197
-3658
-4573

query I rowsort
SELECT - 71 - col2 AS col2 FROM tab0
----
-104
-153
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * col2 col2 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT DISTINCT + col0 DIV + tab2.col0 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + col0 / + tab2.col0 AS col0 FROM tab2
----
1

query I rowsort
SELECT cor0.col1 * + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ae5946db6904798b8afac35f5777bb79

query I rowsort
SELECT DISTINCT col0 * 63 FROM tab2
----
441
4914
4977

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 43 * + 14 AS col2 FROM tab1
----
602

query I rowsort
SELECT + ( 22 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL - - col1 * col1 + + 58 AS col2 FROM tab1 AS cor0
----
158
227
734

query I rowsort
SELECT col0 * cor0.col2 * + 4 AS col0 FROM tab0 cor0
----
140
29192
3168

query I rowsort
SELECT ALL - col0 * 44 AS col1 FROM tab0 AS cor0
----
-1056
-1540
-3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-3873
SELECT ALL - - col0 * col0 + + col0 DIV col1 + 14 AS col2 FROM tab1 AS cor0
----
23
4116
6420

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - - col0 * col0 + + col0 / col1 + 14 AS col2 FROM tab1 AS cor0
----
23
4116
6420

query I rowsort
SELECT DISTINCT col0 * col1 + col2 * + col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT - col1 * 47 AS col2 FROM tab1 AS cor0
----
-1222
-470
-611

query I rowsort
SELECT ALL col0 + - col0 * + cor0.col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT - col0 + + 74 * + cor0.col2 AS col1 FROM tab0 cor0
----
2418
39
5979

query I rowsort
SELECT DISTINCT + - col1 * - ( col0 ) FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 * CAST ( + ( + col2 ) AS REAL ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3880
SELECT - CAST( NULL AS SIGNED ) * + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3880
SELECT - CAST ( NULL AS INTEGER ) * + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 * + 44 FROM tab0 AS cor0
----
-149380
-356356
-90816

query I rowsort
SELECT ALL - + col0 * ( - col0 ) FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + 93 + col1 * col0 * - col1 FROM tab1 AS cor0
----
-13427
-1935
-6307

query I rowsort
SELECT ALL + 78 AS col1 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - + ( col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0, tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 18 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT + 35 FROM tab2 cor0
----
35

query I rowsort
SELECT DISTINCT + col2 * + col0 + - cor0.col1 * col1 AS col2 FROM tab0 cor0
----
-6604
-9374
-983

query I rowsort
SELECT - + col2 * - cor0.col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 93 * - col0 * 67 + col2 FROM tab2 AS cor0
----
-43590
-485992
-492211

query I rowsort
SELECT + col0 * + 67 + 57 AS col1 FROM tab1 AS cor0
----
258
4345
5417

query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3894
SELECT ALL col2 * CAST( col0 * col0 AS SIGNED ) + - col2 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
1128
16170
642060

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL col2 * CAST ( col0 * col0 AS INTEGER ) + - col2 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
1128
16170
642060

query I rowsort
SELECT ALL - col1 + 6 AS col2 FROM tab1 AS cor0
----
-20
-4
-7

query I rowsort
SELECT ALL col0 * - col2 + + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * col2 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + col2 * + col0 + col2 + col2 FROM tab0 AS cor0
----
37
7462
858

query I rowsort
SELECT DISTINCT 5 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
5

query I rowsort
SELECT col2 * col1 + ( col1 ) AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT ( col1 ) - + ( col0 ) FROM tab0
----
2
62
62

query I rowsort
SELECT col2 * + tab2.col0 * col0 + + ( + col1 ) AS col1 FROM tab2
----
1354
158243
237175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 88 ) col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT DISTINCT - col0 + - col1 * + 87 AS col0 FROM tab1
----
-1211
-2265
-934

query I rowsort
SELECT col2 + - 35 AS col0 FROM tab0 AS cor0
----
-2
-34
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3906
SELECT + col2 + CAST( - ( col1 ) AS SIGNED ) col2 FROM tab2 cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3906
SELECT + col2 + CAST ( - ( col1 ) AS INTEGER ) col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT + ( tab0.col2 ) * + tab0.col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - col2 * - col0 + col1 AS col0 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT + tab0.col2 DIV + 12 + + 44 * col2 FROM tab0
----
1454
3614
44

skipif mysql # not compatible
query I rowsort label-3909
SELECT + tab0.col2 / + 12 + + 44 * col2 FROM tab0
----
1454
3614
44

query I rowsort
SELECT ALL + col2 * - col1 * - 31 FROM tab2 AS cor0
----
20026
25947
47554

query I rowsort
SELECT 5 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT DISTINCT - + col2 + ( + col1 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + ( 76 ) + col0 FROM tab1
----
140
156
79

query I rowsort
SELECT DISTINCT + ( + col2 ) - - col0 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL + col0 + 68 * - col0 AS col2 FROM tab1
----
-201
-4288
-5360

query I rowsort
SELECT + 40 * col1 FROM tab0
----
3440
3640
3880

query I rowsort
SELECT + 33 FROM tab1, tab1 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT col1 + - col2 + col0 AS col0 FROM tab1 AS cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * 54 col1 FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT DISTINCT - col0 + col0 * col0 FROM tab0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3921
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * tab2.col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * tab2.col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col2 + - col1 + - 90 AS col2 FROM tab0 AS cor0
----
-143
-186
-99

query I rowsort
SELECT DISTINCT col1 * col0 * col1 AS col2 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT col0 * - col1 - + col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT ALL - ( col1 ) + CAST( + 20 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
109
1501
1563

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - ( col1 ) + CAST ( + 20 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
109
1501
1563

query I rowsort
SELECT DISTINCT - 86 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT + - 37 + + col2 AS col0 FROM tab1 AS cor0
----
17
20
59

query I rowsort
SELECT DISTINCT + + 57 AS col1 FROM tab0 AS cor0
----
57

query I rowsort
SELECT ALL - col0 * + col0 + col1 + - col0 FROM tab0 AS cor0
----
-1163
-514
-7919

query I rowsort
SELECT - 52 + col1 * + col2 * + col2 + + col0 FROM tab2 AS cor0
----
22554
24575
39910

query I rowsort
SELECT DISTINCT - + ( + col2 ) * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3933
SELECT - col2 + col1 * CAST( + 90 + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1243
2962
943

skipif mysql # not compatible
query I rowsort label-3933
SELECT - col2 + col1 * CAST ( + 90 + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1243
2962
943

query I rowsort
SELECT DISTINCT - 30 * col2 - + 78 FROM tab1 AS cor0
----
-1698
-1788
-2958

query I rowsort
SELECT ALL 14 + - cor0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 16a1554c6ac6274b2528167d7716a527

query I rowsort
SELECT - col1 + + 56 AS col0 FROM tab2 cor0
----
-3
25
39

query I rowsort
SELECT ALL - tab2.col1 * + 64 AS col0 FROM tab2
----
-1088
-1984
-3776

query I rowsort
SELECT + ( + col1 ) + cor0.col2 * col2 + - col2 FROM tab0 cor0
----
1142
6733
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3939
SELECT - CAST( NULL AS SIGNED ) - + 62 * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT - CAST ( NULL AS INTEGER ) - + 62 * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 30 * - col2 + col2 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT - 22 * - col0 AS col1 FROM tab0 cor0
----
1958
528
770

query I rowsort
SELECT col2 * + col1 - + cor0.col0 * 83 AS col1 FROM tab2 AS cor0
----
-4940
-5911
256

query I rowsort
SELECT DISTINCT - 21 + - 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-100

query I rowsort
SELECT ALL + 21 * + cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
1951
537
736

query I rowsort
SELECT + - col0 * cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL + 57 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-105
-3591
-7623

onlyif mysql # use DIV operator for integer division
query I rowsort label-3947
SELECT - col0 + + col0 DIV - col2 AS col1 FROM tab0 cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-3947
SELECT - col0 + + col0 / - col2 AS col1 FROM tab0 cor0
----
-24
-70
-90

query I rowsort
SELECT DISTINCT - + col2 * - col0 AS col1 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * + col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3950
SELECT DISTINCT + + 25 DIV + col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT + + 25 / + col1 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT + col2 * + col0 + 3 + col1 * cor0.col2 AS col0 FROM tab0 cor0
----
135
14763
3633

query I rowsort
SELECT + + col0 * col2 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT col0 * - 64 FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT cor0.col2 + 71 * - col1 AS col2 FROM tab1 AS cor0
----
-1792
-653
-827

query I rowsort
SELECT col1 * + col2 * 99 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
114336
136080
53181

query I rowsort
SELECT col0 * + ( cor0.col2 ) + col0 + + col2 * col0 * + col2 AS col0 FROM tab0 AS cor0
----
105
26952
605823

query I rowsort
SELECT - cor0.col2 + 74 FROM tab0 AS cor0
----
-8
41
73

query I rowsort
SELECT DISTINCT - col1 + + 22 AS col0 FROM tab2 AS cor0
----
-37
-9
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + + ( col1 ) * + col0 col2 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3960
SELECT ALL + + col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + + col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 + - cor0.col2 - col2 AS col1 FROM tab2 cor0
----
-47
26
3

query I rowsort
SELECT col0 * ( ( - col0 ) ) + col1 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT col2 + + col2 * 6 AS col2 FROM tab2 AS cor0
----
182
189
266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 + col1 * col1 * col2 col1 FROM tab0 AS cor0
----
244133
679107
9474

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3965
SELECT CAST( NULL AS SIGNED ) * + 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT CAST ( NULL AS INTEGER ) * + 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + ( col0 * col0 + - col0 ) FROM tab1 AS cor0
----
-20
4022
6307

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3967
SELECT ALL CAST( + 35 AS SIGNED ) + cor0.col1 * col1 FROM tab2 AS cor0
----
324
3516
996

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL CAST ( + 35 AS INTEGER ) + cor0.col1 * col1 FROM tab2 AS cor0
----
324
3516
996

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3968
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 + - cor0.col0 AS col2 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL tab2.col0 * 42 + col2 AS col1 FROM tab2
----
321
3302
3356

query I rowsort
SELECT DISTINCT col1 * + 73 + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
2685
2992
4983

query I rowsort
SELECT ALL 77 + col2 AS col2 FROM tab0
----
110
159
78

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + cor0.col0 AS REAL ) FROM tab2, tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3974
SELECT col1 + + col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT col1 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3975
SELECT DISTINCT + 63 DIV col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT + 63 / col1 FROM tab2
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * + col1 col0 FROM tab1
----
-130
-169
-338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 24 col1 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT - - col2 + col2 * col0 AS col0 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT - 76 * 67 * + cor0.col0 + 81 FROM tab1 AS cor0
----
-15195
-325807
-407279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( cor0.col1 AS REAL ) + - cor0.col1 * col0 * col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT + + 30 FROM tab0 AS cor0
----
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-3983
SELECT DISTINCT - col2 * + cor0.col0 + + col0 DIV col1 FROM tab2 AS cor0
----
-189
-2027
-2998

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - col2 * + cor0.col0 + + col0 / col1 FROM tab2 AS cor0
----
-189
-2027
-2998

query I rowsort
SELECT 45 * - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e4d5c63cd450f2b33efe605cd738029d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 - cor0.col1 col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - + 73 * + col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
-1
-33
-82

query I rowsort
SELECT + col1 + col2 * col1 AS col0 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - + cor0.col0 * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col2 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3991
SELECT DISTINCT + col1 + - CAST( NULL AS DECIMAL ) / 95 + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT + col1 + - CAST ( NULL AS REAL ) / 95 + + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * ( 53 ) + col1 AS col0 FROM tab2 AS cor0
----
1437
1462
2031

query I rowsort
SELECT - col2 + + 80 AS col0 FROM tab1 AS cor0
----
-16
23
26

query I rowsort
SELECT ALL + + 66 AS col2 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT cor0.col2 * - ( cor0.col0 * col1 ) AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL 27 + + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
2091
3422
8126

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT ALL - 49 DIV cor0.col1 + + col0 * 94 FROM tab2 AS cor0
----
657
7332
7424

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL - 49 / cor0.col1 + + col0 * 94 FROM tab2 AS cor0
----
657
7332
7424

query I rowsort
SELECT DISTINCT - 91 * col2 FROM tab1 AS cor0
----
-4914
-5187
-8736

query I rowsort
SELECT ( + 8 ) + col0 AS col2 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT DISTINCT + 83 + col1 * col0 FROM tab0 AS cor0
----
2147
3478
8182

query I rowsort
SELECT - col2 * - 96 + + col2 AS col2 FROM tab1 AS cor0
----
5238
5529
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 53 col0 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT DISTINCT + + ( col0 ) * col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4004
SELECT ALL - 33 * col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - 33 * col0 / col0 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 90 col1 FROM tab0 AS cor0
----
2160
3150
8010

query I rowsort
SELECT 58 * 93 FROM tab1 AS cor0
----
5394
5394
5394

query I rowsort
SELECT DISTINCT cor0.col0 - + cor0.col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - ( - 87 ) - col0 * col1 FROM tab2 AS cor0
----
-1256
-130
-4515

query I rowsort
SELECT DISTINCT + 74 * + 43 * + col0 FROM tab2 AS cor0
----
22274
248196
251378

query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab1
----
48

query I rowsort
SELECT DISTINCT + col1 + col2 * + cor0.col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - + 11 * + col2 FROM tab2 AS cor0
----
-286
-297
-418

query I rowsort
SELECT ALL ( 9 ) AS col1 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT ALL + 26 + + 25 FROM tab0
----
51
51
51

query I rowsort
SELECT - ( + 31 ) * - col2 AS col1 FROM tab2
----
1178
806
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4016
SELECT DISTINCT tab1.col1 + tab1.col2 DIV - col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT tab1.col1 + tab1.col2 / - col2 FROM tab1
----
12
25
9

query I rowsort
SELECT + ( + cor0.col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col2 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab2
----
-69

query I rowsort
SELECT 12 * col2 FROM tab2
----
312
324
456

query I rowsort
SELECT ALL - tab0.col2 + 64 FROM tab0
----
-18
31
63

query I rowsort
SELECT DISTINCT ( ( col0 ) ) * col1 + + 54 FROM tab1
----
1094
132
694

query I rowsort
SELECT DISTINCT col2 * + cor0.col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT + col0 * + ( col0 ) + - col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL + - col2 * 96 FROM tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT DISTINCT - ( col0 ) * - ( col0 ) * - col0 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT + 4 + col0 FROM tab0
----
28
39
93

query I rowsort
SELECT col2 * - tab1.col0 + col1 AS col2 FROM tab1
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT - 6 - - col1 AS col0 FROM tab2
----
11
25
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4031
SELECT DISTINCT - col2 + - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT - col2 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4032
SELECT tab1.col0 DIV 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT tab1.col0 / 98 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + + cor0.col0 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + + cor0.col1 * ( + cor0.col0 ) FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( - 89 ) col1 FROM tab2 AS cor0
----
-10
-11
-82

query I rowsort
SELECT - + col1 + col1 * - col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL - + col2 - 93 AS col2 FROM tab2 cor0
----
-119
-120
-131

query I rowsort
SELECT + col2 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-96
1003
6633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4039
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 - - 55 FROM tab2 AS cor0
----
17
28
29

query I rowsort
SELECT + cor0.col1 + 77 * - col1 FROM tab0 AS cor0
----
-6536
-6916
-7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-4042
SELECT DISTINCT col2 * ( - col1 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT col2 * ( - col1 ) / + col0 AS col0 FROM tab2 AS cor0
----
-119
-19
-8

query I rowsort
SELECT - ( 13 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT cor0.col1 + - cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5fc5fcec216468c99d1c0eaf371b3149

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4045
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4045
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 87 + + 57 col0 FROM tab1 AS cor0
----
144
144
144

query I rowsort
SELECT + tab1.col2 + col2 * - col0 AS col0 FROM tab1
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4048
SELECT tab0.col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT tab0.col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + ( - col0 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT - col1 - 70 DIV + 20 FROM tab1
----
-13
-16
-29

skipif mysql # not compatible
query I rowsort label-4050
SELECT - col1 - 70 / + 20 FROM tab1
----
-13
-16
-29

query I rowsort
SELECT + - 6 * - cor0.col1 + 90 * 63 AS col0 FROM tab0 AS cor0
----
6186
6216
6252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * 47 col1 FROM tab2
----
4512
4512
4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 37 * col0 + + col0 * 82 col0 FROM tab0
----
10680
2880
4200

query I rowsort
SELECT - 76 * + col0 + + ( cor0.col0 ) FROM tab2 AS cor0
----
-525
-5850
-5925

query I rowsort
SELECT col2 * col1 * tab1.col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT 8 * col1 AS col0 FROM tab0
----
688
728
776

query I rowsort
SELECT DISTINCT + 48 * col1 AS col1 FROM tab1
----
1248
480
624

query I rowsort
SELECT 18 * + col0 FROM tab2
----
126
1404
1422

query I rowsort
SELECT + - 6 + + 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL 11 * col1 AS col1 FROM tab1
----
110
143
286

query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * + col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT + col0 + + col0 * ( col1 ) AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + col2 + - 50 FROM tab2 AS cor0
----
-12
-23
-24

query I rowsort
SELECT ALL + col0 * ( col0 ) FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - cor0.col0 * ( 22 ) FROM tab1, tab2 AS cor0
----
9 values hashing to b3ab2acafc3b608f11d60d7dbf0748d1

query I rowsort
SELECT ALL col2 * col0 + col1 AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT col1 * col2 + ( col0 ) FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + 3 FROM tab1, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL - 63 + col2 AS col2 FROM tab2
----
-25
-36
-37

query I rowsort
SELECT ALL + col1 * + col1 + 45 * col0 FROM tab2
----
1276
3844
6991

query I rowsort
SELECT col2 * - 34 * col2 AS col0 FROM tab0 AS cor0
----
-228616
-34
-37026

query I rowsort
SELECT + col2 + + 12 * cor0.col0 AS col1 FROM tab2 AS cor0
----
111
962
986

query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + + col1 * - ( cor0.col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - cor0.col0 - + 33 FROM tab2 AS cor0
----
-111
-112
-40

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT ALL col2 * 13 DIV 61 col2 FROM tab0 cor0
----
0
17
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL col2 * 13 / 61 col2 FROM tab0 cor0
----
0
17
7

query I rowsort
SELECT + col1 + col2 * 95 * col2 FROM tab2 AS cor0
----
137197
64279
69286

query I rowsort
SELECT DISTINCT + cor0.col2 + - 51 AS col2 FROM tab1 AS cor0
----
3
45
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT cor0.col1 + - col0 DIV col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4080
SELECT cor0.col1 + - col0 / col0 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4081
SELECT ALL col2 * CAST( - col0 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL col2 * CAST ( - col0 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col0 + + 56 AS col1 FROM tab2 AS cor0
----
134
135
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4083
SELECT ALL + col1 + col2 DIV + 72 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + col1 + col2 / + 72 FROM tab0 AS cor0
----
86
92
97

query I rowsort
SELECT ( + cor0.col0 ) + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + - col2 + - 10 * cor0.col0 FROM tab1 cor0
----
-697
-84
-896

query I rowsort
SELECT + 18 + cor0.col1 AS col0 FROM tab2 cor0
----
35
49
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT - - ( cor0.col1 ) DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4087
SELECT - - ( cor0.col1 ) / - col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT DISTINCT + + 95 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-95

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT + + 95 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-95

query I rowsort
SELECT ALL + 82 + col0 AS col2 FROM tab2 cor0
----
160
161
89

query I rowsort
SELECT ALL 95 * + col2 AS col1 FROM tab0
----
3135
7790
95

query I rowsort
SELECT ALL tab1.col1 * ( - 8 ) + - tab1.col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 251d5255d005be1d20b821d3158e8a7a

query I rowsort
SELECT ALL 87 * col0 AS col0 FROM tab2
----
609
6786
6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-4093
SELECT ALL + col2 DIV 8 + + col2 FROM tab0 AS cor0
----
1
37
92

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + col2 / 8 + + col2 FROM tab0 AS cor0
----
1
37
92

query I rowsort
SELECT DISTINCT - col0 * col1 - + col1 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - ( + cor0.col0 ) + col1 * 67 AS col0 FROM tab2 AS cor0
----
1060
2070
3875

query I rowsort
SELECT ( col0 ) + + col0 AS col0 FROM tab1 cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - col0 AS REAL ) * + col1 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + 70 * col1 + col2 AS col0 FROM tab1 AS cor0
----
1006
1874
757

query I rowsort
SELECT ALL + ( col1 ) + col2 * - col2 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 - - col1 col1 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT + cor0.col2 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - ( col2 ) + - col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + 92 + cor0.col0 * - col2 + cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
1364
3452
893

query I rowsort
SELECT + + 61 * col2 AS col2 FROM tab0 AS cor0
----
2013
5002
61

query I rowsort
SELECT ALL - 52 * 97 * col0 + 38 AS col0 FROM tab0 AS cor0
----
-121018
-176502
-448878

query I rowsort
SELECT - col0 + 41 AS col2 FROM tab2 AS cor0
----
-37
-38
34

query I rowsort
SELECT DISTINCT + + ( + col0 ) FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col0 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col2 + + 12 + cor0.col0 FROM tab1 AS cor0
----
133
188
69

query I rowsort
SELECT ALL + col1 + 99 AS col1 FROM tab1
----
109
112
125

query I rowsort
SELECT ALL + 29 + col2 AS col2 FROM tab1 AS cor0
----
125
83
86

query I rowsort
SELECT tab1.col1 + - 53 * col0 + - col1 FROM tab1
----
-159
-3392
-4240

query I rowsort
SELECT ALL + tab0.col0 * - 59 - 22 * + col2 FROM tab0
----
-2087
-2142
-7055

onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT ALL - col1 DIV - col1 + col1 * col0 DIV col2 AS col2 FROM tab0
----
3396
63
99

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - col1 / - col1 + col1 * col0 / col2 AS col2 FROM tab0
----
3396
63
99

query I rowsort
SELECT DISTINCT - 81 * + 73 FROM tab1, tab2 AS cor0, tab1 cor1
----
-5913

query I rowsort
SELECT DISTINCT tab1.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
54
57
96

query I rowsort
SELECT - col1 + + col0 * col1 AS col0 FROM tab1
----
1027
52
630

query I rowsort
SELECT ALL + 79 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT - col1 * col0 + - col2 FROM tab0 cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + - col0 * ( + col1 + col1 * + col2 ) AS col2 FROM tab0 AS cor0
----
-672217
-6790
-70176

query I rowsort
SELECT DISTINCT tab2.col1 - - 81 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
112
140
98

query I rowsort
SELECT ALL - col1 - + col0 AS col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT + col0 * col2 - ( + col1 ) FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - col2 + - cor0.col0 * - col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - - col0 - ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + ( - col0 * - col0 ) FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + ( col1 * col2 ) + + ( + col0 + tab0.col0 ) * col0 FROM tab0
----
23304
2547
3990

onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT DISTINCT col1 DIV 57 + 93 col2 FROM tab2
----
93
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT col1 / 57 + 93 col2 FROM tab2
----
93
94

query I rowsort
SELECT col1 + - ( + col0 ) + + col0 AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + col0 + + tab0.col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL - col2 + - col1 * col1 AS col1 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT ALL - col1 - col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT 26 * 79 FROM tab1, tab2 AS cor0
----
9 values hashing to 44796e79bc90376873596363462b6516

query I rowsort
SELECT + - col1 + + ( col2 ) * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT + + col2 DIV col0 + - col1 FROM tab0 cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-4135
SELECT + + col2 / col0 + - col1 FROM tab0 cor0
----
-85
-91
-97

query I rowsort
SELECT ALL + col1 + - col1 * - col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - - col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4138
SELECT DISTINCT + cor0.col0 * + CAST( - col0 AS SIGNED ) + - col2 * col0 * + col2 AS col0 FROM tab0 AS cor0
----
-1260
-26712
-606357

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT + cor0.col0 * + CAST ( - col0 AS INTEGER ) + - col2 * col0 * + col2 AS col0 FROM tab0 AS cor0
----
-1260
-26712
-606357

query I rowsort
SELECT ALL cor0.col0 * + cor0.col2 AS col1 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4140
SELECT - - col2 - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT - - col2 - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col0 * ( - col0 ) FROM tab0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL - + col1 * + ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - ( ( cor0.col0 ) ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 60 col0 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT - col0 * col1 - col1 * col1 AS col0 FROM tab2 AS cor0
----
-1178
-1632
-8083

query I rowsort
SELECT ALL - cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT col0 + - ( + tab1.col1 ) AS col1 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) * + col0 * + 54 + col2 col0 FROM tab1 AS cor0
----
-196935
-414624
-8694

query I rowsort
SELECT 12 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c60b9398e29d6382e0d15363f9325811

query I rowsort
SELECT ALL + ( cor0.col1 ) + col1 * col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT cor0.col2 * 63 FROM tab0, tab2 AS cor0
----
1638
1701
2394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 + col0 col2 FROM tab0 AS cor0
----
-23
-34
31

query I rowsort
SELECT - - col0 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + + 75 * + col2 FROM tab2 AS cor0
----
1976
2052
2888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + 52 col1 FROM tab1 AS cor0
----
1352
520
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4160
SELECT + col0 DIV ( + 82 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4160
SELECT + col0 / ( + 82 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - col2 * ( 20 ) * - col2 FROM tab1 AS cor0
----
184320
58320
64980

query I rowsort
SELECT + col0 + tab0.col0 * 25 AS col2 FROM tab0
----
2314
624
910

query I rowsort
SELECT + ( 88 ) * + col0 AS col1 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT + ( cor0.col0 ) + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT 18 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-4165
SELECT 18 / col0 AS col0 FROM tab1 AS cor0
----
0
0
6

query I rowsort
SELECT ALL - + ( col2 ) + + 67 FROM tab0 AS cor0
----
-15
34
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT + - col1 DIV col2 AS col1 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4167
SELECT + - col1 / col2 AS col1 FROM tab0 cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4168
SELECT col2 DIV + col2 + + ( - cor0.col1 ) + col2 AS col0 FROM tab1 AS cor0
----
29
48
84

skipif mysql # not compatible
query I rowsort label-4168
SELECT col2 / + col2 + + ( - cor0.col1 ) + col2 AS col0 FROM tab1 AS cor0
----
29
48
84

skipif mysql # not compatible
query I rowsort
SELECT col0 + + col2 * - CAST ( col1 AS REAL ) / - col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col1 * + 0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 84 + col0 AS col1 FROM tab1 AS cor0
----
148
164
87

query I rowsort
SELECT DISTINCT 84 * col2 * col2 AS col2 FROM tab0
----
564816
84
91476

query I rowsort
SELECT - cor0.col1 + cor0.col2 * - cor0.col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - - cor0.col2 * + 81 AS col1 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT ALL - col0 + - cor0.col0 AS col2 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT + cor0.col0 - + 98 AS col1 FROM tab2 AS cor0
----
-19
-20
-91

query I rowsort
SELECT ALL - 42 + + col0 FROM tab2
----
-35
36
37

query I rowsort
SELECT + col2 * + ( + col1 ) FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4179
SELECT ALL col0 * CAST( col2 * + col2 AS SIGNED ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
114093
5134
52787

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL col0 * CAST ( col2 * + col2 AS INTEGER ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT + - col1 * - 11 * + col0 - - col1 AS col0 FROM tab2 AS cor0
----
14790
2418
50681

query I rowsort
SELECT ALL + col1 * 87 FROM tab0 AS cor0
----
7482
7917
8439

query I rowsort
SELECT + ( + ( cor0.col0 ) ) * - col2 - cor0.col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT ALL 22 * col2 + - cor0.col0 * - cor0.col0 + + 1 FROM tab2 AS cor0
----
644
6657
7078

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4184
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4185
SELECT - + CAST( + 21 AS SIGNED ) + + col1 * 96 AS col1 FROM tab2 AS cor0
----
1611
2955
5643

skipif mysql # not compatible
query I rowsort label-4185
SELECT - + CAST ( + 21 AS INTEGER ) + + col1 * 96 AS col1 FROM tab2 AS cor0
----
1611
2955
5643

query I rowsort
SELECT DISTINCT - col1 + 67 AS col1 FROM tab1 AS cor0
----
41
54
57

query I rowsort
SELECT ALL ( col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4188
SELECT tab2.col2 * CAST( col0 AS SIGNED ) * col2 FROM tab2
----
114076
5103
52728

skipif mysql # not compatible
query I rowsort label-4188
SELECT tab2.col2 * CAST ( col0 AS INTEGER ) * col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT col1 * col1 - 4 * col2 FROM tab1
----
-128
-215
460

query I rowsort
SELECT DISTINCT tab2.col0 - + 88 AS col2 FROM tab2
----
-10
-81
-9

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 52 FROM tab0, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT col1 * ( + col2 * - col1 ) AS col1 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4195
SELECT + CAST( 68 AS SIGNED ) * + col0 AS col2 FROM tab0
----
1632
2380
6052

skipif mysql # not compatible
query I rowsort label-4195
SELECT + CAST ( 68 AS INTEGER ) * + col0 AS col2 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT - 99 * + 71 * col1 AS col0 FROM tab2
----
-119493
-217899
-414711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 * col1 + - col0 col0 FROM tab1 AS cor0
----
-1004
-1302
-2447

onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT col2 DIV cor0.col1 + col0 DIV 96 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4198
SELECT col2 / cor0.col1 + col0 / 96 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + 72 * col0 + col0 FROM tab2 AS cor0
----
511
5694
5767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4200
SELECT CAST( NULL AS DECIMAL ) + 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4200
SELECT CAST ( NULL AS REAL ) + 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 12 * + col0 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT 84 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL cor0.col1 * - ( - col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col2 * - 9 FROM tab2 AS cor0
----
234
243
342

query I rowsort
SELECT ALL - + col2 + - col0 * 15 FROM tab1 AS cor0
----
-1017
-1296
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4206
SELECT + - 98 + col2 DIV - 45 AS col0 FROM tab0 AS cor0
----
-98
-98
-99

skipif mysql # not compatible
query I rowsort label-4206
SELECT + - 98 + col2 / - 45 AS col0 FROM tab0 AS cor0
----
-98
-98
-99

query I rowsort
SELECT DISTINCT + - col2 * - col0 + 12 AS col1 FROM tab1 cor0
----
174
3660
7692

onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT ALL + 39 DIV - col2 + col2 FROM tab0 cor0
----
-38
32
82

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + 39 / - col2 + col2 FROM tab0 cor0
----
-38
32
82

query I rowsort
SELECT ALL - cor0.col0 * - col2 + - col2 * + 16 FROM tab1 AS cor0
----
-702
2736
6144

query I rowsort
SELECT DISTINCT - 71 * + col1 + col0 * - col2 FROM tab0 AS cor0
----
-13759
-6898
-6922

query I rowsort
SELECT + ( - col2 ) * + col0 + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4212
SELECT ALL - col1 + col1 + ( col2 ) DIV col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - col1 + col1 + ( col2 ) / col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 92 * col0 AS col1 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT ALL + 20 + col1 FROM tab2 AS cor0
----
37
51
79

query I rowsort
SELECT + - 22 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL - - 40 + col0 AS col2 FROM tab0 cor0
----
129
64
75

query I rowsort
SELECT - col2 + col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT + - col2 - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - cor0.col2 * col1 + 71 FROM tab0 AS cor0
----
-26
-2767
-7391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col2 col0 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4221
SELECT DISTINCT col2 DIV col0 + col2 * - ( col1 ) + 75 FROM tab0
----
-22
-2762
-7387

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT col2 / col0 + col2 * - ( col1 ) + 75 FROM tab0
----
-22
-2762
-7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-4222
SELECT - col0 + col2 DIV ( 70 ) + col1 FROM tab0
----
3
62
62

skipif mysql # not compatible
query I rowsort label-4222
SELECT - col0 + col2 / ( 70 ) + col1 FROM tab0
----
3
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT ALL 62 + col1 + 49 DIV + col0 FROM tab0
----
150
153
160

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL 62 + col1 + 49 / + col0 FROM tab0
----
150
153
160

query I rowsort
SELECT ALL + col2 * - 16 - col0 AS col0 FROM tab0 AS cor0
----
-1401
-51
-552

query I rowsort
SELECT + 29 * + 15 + col0 * - 57 FROM tab0 AS cor0
----
-1560
-4638
-933

query I rowsort
SELECT ALL + 25 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT DISTINCT - col2 + + 28 AS col2 FROM tab2 AS cor0
----
-10
1
2

query I rowsort
SELECT DISTINCT + 10 - col2 FROM tab1 AS cor0
----
-44
-47
-86

query I rowsort
SELECT - 21 FROM tab1, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL - 94 FROM tab1, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT + 30 DIV - 55 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 30 / - 55 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4233
SELECT ( - tab1.col2 ) + - col1 DIV - tab1.col2 col1 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4233
SELECT ( - tab1.col2 ) + - col1 / - tab1.col2 col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT ( - 39 * col1 ) AS col1 FROM tab1
----
-1014
-390
-507

query I rowsort
SELECT ( - tab0.col2 ) + col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-20
-95
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4237
SELECT ALL - - col1 DIV + 62 + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - - col1 / + 62 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col2 + col2 + - col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - tab2.col0 FROM tab2, tab0 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL 44 FROM tab1, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL - 90 * tab0.col2 FROM tab0
----
-2970
-7380
-90

query I rowsort
SELECT tab2.col0 * + tab2.col0 + col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL - 75 * col2 AS col1 FROM tab2
----
-1950
-2025
-2850

query I rowsort
SELECT DISTINCT + - 49 + - cor0.col1 FROM tab2 AS cor0
----
-108
-66
-80

query I rowsort
SELECT ALL 15 * col1 + col0 FROM tab0 AS cor0
----
1314
1454
1490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4246
SELECT tab1.col0 * - col1 + col0 + + col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT tab1.col0 * - col1 + col0 + + col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * tab0.col0 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col1 * tab0.col2 + 21 * + col1 AS col2 FROM tab0
----
2134
4644
9373

query I rowsort
SELECT - 68 + - 65 FROM tab2, tab2 AS cor0
----
9 values hashing to e3b868e41a1e1492f8e943f834b42803

query I rowsort
SELECT + - col2 * 62 * col0 FROM tab2 AS cor0
----
-11718
-125736
-186124

onlyif mysql # use DIV operator for integer division
query I rowsort label-4251
SELECT DISTINCT + col1 * 1 DIV 97 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT + col1 * 1 / 97 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + - col0 * ( + 11 ) AS col2 FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT ALL - + col0 * col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4254
SELECT DISTINCT - ( col2 ) + col0 DIV col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - ( col2 ) + col0 / col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT ALL - + ( - col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - 42 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
2058
255528
262122

onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT + col0 DIV + 47 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4257
SELECT + col0 / + 47 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab0 cor0
----
-36

query I rowsort
SELECT DISTINCT + - ( - col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 * 46 + + col1 FROM tab1 AS cor0
----
1222
470
611

onlyif mysql # use DIV operator for integer division
query I rowsort label-4261
SELECT ALL - + col2 DIV - 63 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL - + col2 / - 63 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - - 69 + col0 FROM tab1 AS cor0
----
133
149
72

query I rowsort
SELECT ( - 72 ) + - col2 AS col2 FROM tab0 AS cor0
----
-105
-154
-73

query I rowsort
SELECT DISTINCT + + 28 AS col0 FROM tab2 AS cor0
----
28

query I rowsort
SELECT DISTINCT + ( 66 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1716
-660
-858

query I rowsort
SELECT + + ( - col0 ) * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT + col1 DIV 20 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4267
SELECT + col1 / 20 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT ALL - + ( + 36 ) * - col2 FROM tab0 cor0
----
1188
2952
36

query I rowsort
SELECT ALL + col1 + col2 * - col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT ALL - 86 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ( col2 ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4272
SELECT + + CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT + + CAST ( NULL AS REAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - 9 FROM tab0 AS cor0
----
-33
-44
-98

query I rowsort
SELECT DISTINCT - col1 * + col1 + col1 + col0 AS col2 FROM tab2 AS cor0
----
-193
-3344
-923

query I rowsort
SELECT ALL 54 * + col2 * 76 AS col0 FROM tab1
----
221616
233928
393984

query I rowsort
SELECT + col2 * - 92 * - col2 FROM tab2
----
132848
62192
67068

query I rowsort
SELECT ALL col2 + + 30 FROM tab0
----
112
31
63

query I rowsort
SELECT ALL - tab0.col2 + 27 FROM tab0
----
-55
-6
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4279
SELECT DISTINCT CAST( 97 AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT CAST ( 97 AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT DISTINCT - col0 * ( 9 ) DIV col2 + - ( 38 ) AS col1 FROM tab0 AS cor0
----
-353
-44
-47

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - col0 * ( 9 ) / col2 + - ( 38 ) AS col1 FROM tab0 AS cor0
----
-353
-44
-47

query I rowsort
SELECT DISTINCT - ( + tab1.col1 + - col0 ) FROM tab1
----
-23
54
67

query I rowsort
SELECT ( ( col0 ) ) AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - 79 * col2 FROM tab2
----
-2054
-2133
-3002

query I rowsort
SELECT cor0.col2 * + cor0.col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + col2 * - col2 * 20 + col0 * col1 FROM tab0 AS cor0
----
-126381
-19716
3375

query I rowsort
SELECT - cor0.col2 + col1 * + ( - col0 ) + - col0 * ( + col2 ) * col1 FROM tab0 AS cor0
----
-672299
-6791
-70209

query I rowsort
SELECT col2 * - col0 + - cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + col2 * - tab0.col1 + col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - + 54 + - col1 FROM tab2 AS cor0
----
-113
-71
-85

query I rowsort
SELECT ALL - col0 * col0 - 9 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-328
-6394
-6615

query I rowsort
SELECT col2 * - col0 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4292
SELECT DISTINCT col0 * + CAST( - 6 AS SIGNED ) + cor0.col1 * col2 FROM tab1 AS cor0
----
1386
186
768

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT col0 * + CAST ( - 6 AS INTEGER ) + cor0.col1 * col2 FROM tab1 AS cor0
----
1386
186
768

query I rowsort
SELECT ALL + cor0.col0 + ( col2 ) + col0 * + col0 FROM tab2 cor0
----
6188
6358
83

query I rowsort
SELECT ALL + col2 + 85 * + ( + cor0.col2 ) FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT col0 + - col0 * + col0 + - col1 FROM tab1 AS cor0
----
-32
-4042
-6333

query I rowsort
SELECT DISTINCT - - col2 + - ( + col2 ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT ALL + col1 DIV - cor0.col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + col1 / - cor0.col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * col1 + + col2 AS col0 FROM tab1
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4299
SELECT ( col1 ) - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT ( col1 ) - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 79 * - col2 FROM tab2
----
-2054
-2133
-3002

query I rowsort
SELECT 40 - tab2.col0 AS col1 FROM tab2
----
-38
-39
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4302
SELECT - tab1.col0 * tab1.col0 + - CAST( 24 AS SIGNED ) FROM tab1
----
-33
-4120
-6424

skipif mysql # not compatible
query I rowsort label-4302
SELECT - tab1.col0 * tab1.col0 + - CAST ( 24 AS INTEGER ) FROM tab1
----
-33
-4120
-6424

query I rowsort
SELECT ALL - + col0 + 75 AS col0 FROM tab1 AS cor0
----
-5
11
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col2 - + col2 col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT col1 + + 91 AS col0 FROM tab0 AS cor0
----
177
182
188

query I rowsort
SELECT DISTINCT 44 - 40 AS col0 FROM tab0 AS cor0
----
4

query I rowsort
SELECT + - ( col2 ) * - col2 + ( col2 ) AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + col2 + - 13 FROM tab2 AS cor0
----
13
14
25

query I rowsort
SELECT ALL + 6 + + col2 AS col1 FROM tab2 AS cor0
----
32
33
44

query I rowsort
SELECT ALL + col1 * + 59 * col1 AS col2 FROM tab1
----
39884
5900
9971

query I rowsort
SELECT DISTINCT + cor0.col2 * + 12 - col1 FROM tab0 AS cor0
----
-85
310
893

onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT + - col2 * - col2 + - col0 DIV ( - 54 + + cor0.col2 ) col2 FROM tab0 AS cor0
----
1
1090
6721

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4312
SELECT + - col2 * - col2 + - col0 / ( - 54 + + cor0.col2 ) col2 FROM tab0 AS cor0
----
1
1090
6721

query I rowsort
SELECT + ( col0 ) + + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL - 70 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT col0 * 40 FROM tab1
----
120
2560
3200

query I rowsort
SELECT DISTINCT - + col2 * - 34 AS col0 FROM tab0 AS cor0
----
1122
2788
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT ALL 74 DIV + cor0.col1 FROM tab1, tab2 cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL 74 / + cor0.col1 FROM tab1, tab2 cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb

query I rowsort
SELECT DISTINCT + 72 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 27 ) col1 FROM tab2, tab2 cor0
----
-27

query I rowsort
SELECT ALL - 87 * - cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT DISTINCT - - 92 AS col0 FROM tab1 AS cor0
----
92

query I rowsort
SELECT ALL cor0.col1 * 51 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT ALL 86 * col0 + col2 AS col2 FROM tab0
----
2097
3011
7736

query I rowsort
SELECT DISTINCT + col2 * 99 - col2 AS col0 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT DISTINCT - ( - 22 ) FROM tab0 AS cor0
----
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4326
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 3 AS col0 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT + CAST( + 66 AS SIGNED ) DIV - col0 FROM tab1 AS cor0
----
-1
-22
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT + CAST ( + 66 AS INTEGER ) / - col0 FROM tab1 AS cor0
----
-1
-22
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT ALL - col0 DIV col0 + 31 col1 FROM tab1 AS cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - col0 / col0 + 31 col1 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT col2 + cor0.col2 * col0 * + 13 FROM tab2 AS cor0
----
2484
26390
39064

query I rowsort
SELECT + 69 * - cor0.col1 * - col0 FROM tab1 AS cor0
----
44160
5382
71760

query I rowsort
SELECT ALL - - cor0.col0 + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT 74 * col2 AS col2 FROM tab0 cor0
----
2442
6068
74

query I rowsort
SELECT col0 * col1 * ( + 72 ) FROM tab2 AS cor0
----
15624
331344
96696

query I rowsort
SELECT + - 61 + col2 AS col2 FROM tab0 AS cor0
----
-28
-60
21

query I rowsort
SELECT col1 + cor0.col1 * 54 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT DISTINCT + + col1 + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 * 37 FROM tab2 AS cor0
----
286
2912
2961

query I rowsort
SELECT ALL + ( cor0.col2 ) + - col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - 5 * - col1 + + 87 AS col2 FROM tab2 cor0
----
172
242
382

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + 84 col2 FROM tab1 AS cor0
----
1124
162
724

query I rowsort
SELECT ALL col1 + - col1 * col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT + col0 * + 11 AS col1 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT DISTINCT - col1 * ( - 58 ) FROM tab1 AS cor0
----
1508
580
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT col2 + + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4345
SELECT col2 + + col0 / + col0 AS col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL - col0 * 78 FROM tab2 AS cor0
----
-546
-6084
-6162

query I rowsort
SELECT ALL - + col2 * 44 FROM tab0 cor0
----
-1452
-3608
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4350
SELECT + tab2.col1 DIV col0 + ( + col2 * col0 + + 26 * - tab2.col2 ) FROM tab2
----
-509
1352
2014

skipif mysql # not compatible
query I rowsort label-4350
SELECT + tab2.col1 / col0 + ( + col2 * col0 + + 26 * - tab2.col2 ) FROM tab2
----
-509
1352
2014

query I rowsort
SELECT - col1 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + col1 * + col1 + ( col0 ) FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col2 * cor0.col1 + - col2 + - col2 AS col1 FROM tab2 cor0
----
1482
570
783

query I rowsort
SELECT ALL - + col0 * - 27 AS col0 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT - col0 * + col1 + 81 FROM tab2 AS cor0
----
-1262
-136
-4521

query I rowsort
SELECT - col0 + ( - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col1 + ( + 43 + col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
181
3382
4467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 46 + 81 * - col0 col2 FROM tab2 AS cor0
----
-582
-6305
-6428

query I rowsort
SELECT ALL - col1 * + col1 + - col0 AS col1 FROM tab1
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT ALL col0 * ( - col0 ) DIV - col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL col0 * ( - col0 ) / - col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4361
SELECT - 21 DIV - col2 AS col0 FROM tab0 cor0
----
0
0
21

skipif mysql # not compatible
query I rowsort label-4361
SELECT - 21 / - col2 AS col0 FROM tab0 cor0
----
0
0
21

query I rowsort
SELECT col2 + col2 * 93 * col2 FROM tab1 AS cor0
----
271242
302214
857184

query I rowsort
SELECT ( cor0.col1 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( col1 ) + + 45 * + col0 col2 FROM tab1
----
164
2954
3693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4365
SELECT DISTINCT - ( + 57 ) DIV + col1 + col0 FROM tab1
----
1
59
76

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT - ( + 57 ) / + col1 + col0 FROM tab1
----
1
59
76

query I rowsort
SELECT ALL tab2.col0 * + 65 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8d54786c2c041d305c28e3a564e468a2

query I rowsort
SELECT + ( - col2 ) * 64 AS col0 FROM tab1
----
-3456
-3648
-6144

query I rowsort
SELECT 91 * - col1 AS col0 FROM tab0
----
-7826
-8281
-8827

query I rowsort
SELECT + 47 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL + 76 + + col0 FROM tab1 AS cor0
----
140
156
79

query I rowsort
SELECT ALL + + 51 AS col2 FROM tab0 AS cor0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * + tab2.col2 col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL + col0 * cor0.col1 - cor0.col1 AS col2 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL - - 99 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-6625
-990
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * - tab0.col2 col1 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT col2 - - col2 DIV col2 AS col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4376
SELECT col2 - - col2 / col2 AS col2 FROM tab1
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT ALL - col1 DIV col1 - - 64 FROM tab1
----
63
63
63

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - col1 / col1 - - 64 FROM tab1
----
63
63
63

query I rowsort
SELECT ( tab0.col1 * - col0 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col2 - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + - tab2.col0 * tab2.col2 - col2 * + col2 AS col2 FROM tab2
----
-2678
-4408
-891

query I rowsort
SELECT col2 - tab2.col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * - col2 + + col0 * + col1 AS col2 FROM tab0
----
1272
3360
801

query I rowsort
SELECT ALL tab1.col2 * + col2 * col0 + col1 * col0 * + tab1.col0 AS col1 FROM tab1
----
248896
820480
8982

query I rowsort
SELECT - col0 * + col1 + - col2 * + col2 FROM tab1
----
-10256
-2994
-3889

query I rowsort
SELECT DISTINCT tab0.col0 + col0 * col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT col0 + col0 FROM tab1 WHERE - col1 * col1 NOT BETWEEN NULL AND - col1 * col1
----

query I rowsort
SELECT ALL - col2 * col1 + - col1 AS col0 FROM tab1
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT - col0 * - col2 + col1 DIV tab2.col1 AS col0 FROM tab2
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-4388
SELECT - col0 * - col2 + col1 / tab2.col1 AS col0 FROM tab2
----
190
2029
3003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - tab1.col1 col0 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT + col2 + tab0.col2 * + col0 + col0 AS col1 FROM tab0
----
71
7469
849

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - col2 * col2
----

query I rowsort
SELECT col2 + col2 - col1 AS col2 FROM tab2
----
-7
23
59

query I rowsort
SELECT ALL col2 * col0 * - col2 - - col2 FROM tab2 WHERE col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 < - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL - col0 * tab2.col0 + - col0 AS col2 FROM tab2
----
-56
-6162
-6320

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 * - col2 ) >= ( NULL )
----

query I rowsort
SELECT ALL col1 * col2 FROM tab0 WHERE ( NULL ) IN ( - col0 )
----

query I rowsort
SELECT + col0 * col1 + col0 FROM tab1 WHERE ( + col0 ) >= ( NULL )
----

query I rowsort
SELECT ALL + col2 * col1 * col0 + + col2 AS col0 FROM tab2
----
119678
51072
5886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4400
SELECT ALL ( col1 * + tab2.col0 + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL ( col1 * + tab2.col0 + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 33 FROM tab2
----
59
60
71

query I rowsort
SELECT DISTINCT ( - col0 + + col2 ) AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL + 38 * col2 FROM tab0
----
1254
3116
38

query I rowsort
SELECT - - 97 + 18 * col0 * - ( col1 ) AS col2 FROM tab0 cor0
----
-145685
-37055
-61013

query I rowsort
SELECT ALL - - 75 FROM tab1 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - - ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - 42 FROM tab2 cor0
----
-42
-42
-42

query I rowsort
SELECT + - 18 * + col2 AS col2 FROM tab2 AS cor0
----
-468
-486
-684

query I rowsort
SELECT DISTINCT - - 73 * - col0 AS col1 FROM tab0 AS cor0
----
-1752
-2555
-6497

query I rowsort
SELECT col1 + + cor0.col1 * 43 AS col0 FROM tab2 AS cor0
----
1364
2596
748

query I rowsort
SELECT ALL + + col2 + + col2 * col0 + + col2 * col2 * col0 AS col1 FROM tab0 AS cor0
----
26961
605816
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4413
SELECT col1 DIV - col2 AS col0 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4413
SELECT col1 / - col2 AS col0 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT ALL + - cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - - 35 FROM tab2 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 + - col0 col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + col0 + 80 AS col2 FROM tab1 cor0
----
144
160
83

query I rowsort
SELECT + col2 * col0 * - col1 + + col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ALL col0 * - 56 FROM tab0 AS cor0
----
-1344
-1960
-4984

onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT ALL - col2 + 48 + - col0 * col2 DIV col1 FROM tab0 cor0
----
-114
47
6

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - col2 + 48 + - col0 * col2 / col1 FROM tab0 cor0
----
-114
47
6

query I rowsort
SELECT ALL - col1 + + col0 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL + col2 + + ( col1 * + col0 ) FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * cor0.col0 col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - col1 * - col2 + - 33 AS col0 FROM tab0 AS cor0
----
2805
64
7429

query I rowsort
SELECT - cor0.col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 + cor0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1482
702
756

query I rowsort
SELECT + - 6 * col2 + col2 * 76 + + col1 AS col0 FROM tab2 AS cor0
----
1879
1921
2677

onlyif mysql # use DIV operator for integer division
query I rowsort label-4429
SELECT DISTINCT - ( col1 ) + - col0 DIV - ( col1 ) FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT - ( col1 ) + - col0 / - ( col1 ) FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT DISTINCT + col0 + + 13 * col0 FROM tab2 AS cor0
----
1092
1106
98

query I rowsort
SELECT + 14 + + 79 FROM tab0, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4432
SELECT col1 * CAST( col2 AS SIGNED ) FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4432
SELECT col1 * CAST ( col2 AS INTEGER ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - ( + tab0.col0 ) * col0 + + col2 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - col0 * col0 * - col1 + cor0.col1 AS col1 FROM tab0 cor0
----
118922
49622
720902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col2 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + - col1 * col1 col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT + col2 * + 51 + tab0.col1 AS col2 FROM tab0
----
148
1769
4273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 * col1 col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT col2 * - 73 FROM tab2
----
-1898
-1971
-2774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 + + col0 col0 FROM tab1
----
102
25
86

query I rowsort
SELECT ALL + + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - col2 * - col2 + col0 * - col1 * + col2 FROM tab0
----
-3394
-657394
-67023

query I rowsort
SELECT DISTINCT col0 * cor0.col2 - cor0.col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - col2 + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 63 + cor0.col0 col2 FROM tab1 AS cor0
----
127
143
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT DISTINCT - + 29 + - col0 DIV col1 FROM tab0 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - + 29 + - col0 / col1 FROM tab0 cor0
----
-29

query I rowsort
SELECT ALL col2 + + col2 + - col0 AS col1 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT DISTINCT - ( - col2 ) * col1 - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL - 19 * + col1 AS col1 FROM tab0 cor0
----
-1634
-1729
-1843

query I rowsort
SELECT - - 72 * + col1 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT ALL + 22 * col2 AS col1 FROM tab1 cor0
----
1188
1254
2112

query I rowsort
SELECT ALL col2 * + col2 + + col1 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT + col0 + col0 * + tab2.col1 + col0 FROM tab2
----
1501
231
4758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 55 col1 FROM tab2
----
385
4290
4345

query I rowsort
SELECT ALL + + col1 * 34 FROM tab2 AS cor0
----
1054
2006
578

onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT DISTINCT - - col0 + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - - col0 + col1 / + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT DISTINCT + col0 + ( + 62 ) + - tab2.col1 FROM tab2
----
124
38
81

query I rowsort
SELECT ALL col0 * ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - col1 + 38 * + cor0.col0 FROM tab2 AS cor0
----
297
3019
3023

query I rowsort
SELECT DISTINCT - col0 * 73 AS col0 FROM tab0 cor0
----
-1752
-2555
-6497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * + 98 col0 FROM tab0 AS cor0
----
-7448
-7448
-7448

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4462
SELECT DISTINCT CAST( + col0 AS SIGNED ) * col2 * - cor0.col2 FROM tab0 cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * col2 * - cor0.col2 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + + 60 AS col0 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL + col1 + - cor0.col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL 75 * - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-251
-4810
-6013

query I rowsort
SELECT ALL + col1 * - col0 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - col2 / col1 - col1 AS col0 FROM tab0 WHERE ( NULL ) NOT IN ( col1 / - col1 )
----

query I rowsort
SELECT tab1.col0 + + tab1.col1 / col2 AS col0 FROM tab1 WHERE NOT col1 * + col2 - col1 * col2 <= ( NULL )
----

query I rowsort
SELECT + col1 * col1 + col1 - + col0 FROM tab1 AS cor0
----
102
46
699

query I rowsort
SELECT + + col0 + col2 * - col1 + - cor0.col2 FROM tab1 AS cor0
----
-1264
-1455
-563

query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 * col1 * cor0.col2 + col2 AS col0 FROM tab2 cor0
----
-11023
-25927
-90558

query I rowsort
SELECT + + cor0.col2 * cor0.col0 - col0 FROM tab0 cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT ALL + col1 + + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + col1 + + col0 / - col1 AS col2 FROM tab2 AS cor0
----
13
31
58

query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + col0 * + col1 + + col0 * col1 FROM tab2 AS cor0
----
2686
434
9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col0 / col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4477
SELECT col1 DIV col2 col2 FROM tab0 cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4477
SELECT col1 / col2 col2 FROM tab0 cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4478
SELECT + col0 * col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-4478
SELECT + col0 * col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col2 / - col2 )
----

query I rowsort
SELECT ALL + col0 + col0 * col1 AS col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - col2 - cor0.col2 FROM tab2 cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4482
SELECT ALL - cor0.col1 DIV col0 + + col0 + col0 FROM tab1 AS cor0
----
-2
128
160

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - cor0.col1 / col0 + + col0 + col0 FROM tab1 AS cor0
----
-2
128
160

query I rowsort
SELECT DISTINCT - + col1 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + col1 * col2 + col2 + - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col2 + - col2 * col2 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT + col0 * tab1.col0 + - col2 DIV - col1 + + tab1.col1 AS col2 FROM tab1
----
37
4111
6420

skipif mysql # not compatible
query I rowsort label-4486
SELECT + col0 * tab1.col0 + - col2 / - col1 + + tab1.col1 AS col2 FROM tab1
----
37
4111
6420

query I rowsort
SELECT ALL - 87 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to edb5a8bbcb3204ac8254e54507073328

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL + col2 * + ( + col1 + - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4490
SELECT ALL - col0 + + ( col2 ) DIV col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - col0 + + ( col2 ) / col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + ( - col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - col2 + col1 * - col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + ( - ( cor0.col1 ) ) * + ( - 37 ) AS col2 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT + + cor0.col0 * 55 AS col1 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT col1 * col0 * + col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ( 52 ) AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + 10 * col1 col0 FROM tab2 AS cor0
----
2618
3172
499

query I rowsort
SELECT col2 * ( - col1 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - + 56 + col2 FROM tab1 cor0
----
-2
1
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT DISTINCT - cor0.col0 DIV col0 + - 49 AS col1 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - cor0.col0 / col0 + - 49 AS col1 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT DISTINCT col1 * 90 AS col1 FROM tab2 cor0
----
1530
2790
5310

query I rowsort
SELECT ALL + col1 * col2 + 46 * - col2 FROM tab1 AS cor0
----
-1080
-2052
-3168

onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT - - col2 + col0 DIV - 47 FROM tab1 AS cor0
----
54
56
95

skipif mysql # not compatible
query I rowsort label-4503
SELECT - - col2 + col0 / - 47 FROM tab1 AS cor0
----
54
56
95

query I rowsort
SELECT - + 34 * cor0.col2 FROM tab2 AS cor0
----
-1292
-884
-918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4505
SELECT + - 71 + + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT + - 71 + + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 0 * - col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT ALL - cor0.col1 + + col0 DIV ( - cor0.col2 ) FROM tab0 AS cor0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - cor0.col1 + + col0 / ( - cor0.col2 ) FROM tab0 AS cor0
----
-132
-86
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4508
SELECT ALL + col0 * col2 + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + col0 * col2 + cor0.col1 / + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL cor0.col0 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT tab0.col0 * col0 + - col0 DIV - col1 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-4510
SELECT tab0.col0 * col0 + - col0 / - col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + col0 + + 92 AS col2 FROM tab2
----
170
171
99

query I rowsort
SELECT ALL col0 + - 6 FROM tab2
----
1
72
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * col0 col0 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - 52 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT - col2 + col0 * - 53 AS col2 FROM tab0 AS cor0
----
-1305
-1856
-4799

query I rowsort
SELECT DISTINCT - col1 + 1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT DISTINCT 48 * + col1 - + tab2.col2 * - col0 FROM tab2
----
1677
3818
4860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4518
SELECT CAST( col2 AS SIGNED ) * col2 - + ( 14 ) * + col2 col0 FROM tab0
----
-13
5576
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4518
SELECT CAST ( col2 AS INTEGER ) * col2 - + ( 14 ) * + col2 col0 FROM tab0
----
-13
5576
627

query I rowsort
SELECT - col1 * 41 + - col0 - + col2 FROM tab0
----
-3583
-3902
-4013

query I rowsort
SELECT ALL ( - col0 ) * + col0 - + ( - tab1.col2 ) AS col1 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT + 42 * - col0 AS col2 FROM tab1
----
-126
-2688
-3360

query I rowsort
SELECT + ( tab1.col0 ) + col2 + + 72 FROM tab1
----
129
193
248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + col0 * + 82 AS col2 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT ALL + + 41 * col0 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab1 cor0
----
64

query I rowsort
SELECT - col1 * - col0 + - ( col2 * - col0 ) AS col1 FROM tab1 cor0
----
240
4288
8720

query I rowsort
SELECT - - 25 - + col1 FROM tab1 AS cor0
----
-1
12
15

query I rowsort
SELECT DISTINCT 92 + - col1 FROM tab0
----
-5
1
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4530
SELECT + col1 * - col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT + col1 * - col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col1 - col0 col2 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT DISTINCT - col0 + col1 * CAST( NULL AS SIGNED ) / ( col2 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT - col0 + col1 * CAST ( NULL AS INTEGER ) / ( col2 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * + cor0.col0 + ( col0 ) col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + col1 * - col1 * - 58 + 69 + - col1 FROM tab2 cor0
----
16814
201908
55776

query I rowsort
SELECT ALL - 77 + + cor0.col2 FROM tab1 AS cor0
----
-20
-23
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 78 * + col0 * col1 FROM tab0 AS cor0
----
160992
264810
631722

query I rowsort
SELECT ALL + - ( col1 ) + - 57 * + col1 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT - 8 * col0 FROM tab0 cor0
----
-192
-280
-712

query I rowsort
SELECT - col1 + - col2 + + col0 FROM tab2 cor0
----
-51
-7
24

query I rowsort
SELECT ALL + ( 98 ) * + col0 AS col1 FROM tab0 AS cor0
----
2352
3430
8722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4542
SELECT ALL CAST( + col0 AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL CAST ( + col0 AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + - ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - 70 * col0 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - + col2 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - col2 + ( ( col2 ) ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + 2 * col2 FROM tab1 AS cor0
----
54
57
96

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT DISTINCT ( col1 ) * - col2 * - col1 + col2 DIV col0 FROM tab1
----
16225
36522
5700

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT ( col1 ) * - col2 * - col1 + col2 / col0 FROM tab1
----
16225
36522
5700

query I rowsort
SELECT col2 + - cor0.col2 * col2 AS col1 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT - 58 * col1 + + ( - 95 ) FROM tab0 cor0
----
-5083
-5373
-5721

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4553
SELECT CAST( - tab0.col0 AS SIGNED ) * - col2 + + 24 col2 FROM tab0
----
59
7322
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4553
SELECT CAST ( - tab0.col0 AS INTEGER ) * - col2 + + 24 col2 FROM tab0
----
59
7322
816

query I rowsort
SELECT DISTINCT + col0 * - 71 + + col2 AS col1 FROM tab2 AS cor0
----
-470
-5512
-5571

query I rowsort
SELECT ALL - cor0.col0 * - col2 + 56 + + col0 * col0 FROM tab0 AS cor0
----
1316
1424
15275

query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab0
----
91

query I rowsort
SELECT - 70 + col0 AS col2 FROM tab1
----
-6
-67
10

query I rowsort
SELECT tab0.col2 * + col1 + - col0 * + tab0.col2 AS col2 FROM tab0
----
164
2046
62

query I rowsort
SELECT ALL - 67 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT ALL + tab0.col0 * - tab0.col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 8e23e17c36b823f4c429aaf1de1c2457

query I rowsort
SELECT DISTINCT + col0 * - 20 * + col0 + col0 AS col2 FROM tab1
----
-127920
-177
-81856

query I rowsort
SELECT - ( 40 ) FROM tab2, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + col2 + 42 FROM tab2
----
68
69
80

query I rowsort
SELECT ALL - col2 + - 7 FROM tab2 cor0
----
-33
-34
-45

query I rowsort
SELECT DISTINCT - + col2 * col2 + cor0.col1 + + col0 FROM tab2 AS cor0
----
-1348
-539
-691

query I rowsort
SELECT - + col1 * col1 + + 66 AS col1 FROM tab1 AS cor0
----
-103
-34
-610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col2 * col2 col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT + - col2 * + col2 - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT + 28 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT ( 90 ) FROM tab2, tab1 cor0
----
90

query I rowsort
SELECT ALL col1 * ( + 79 ) FROM tab2
----
1343
2449
4661

query I rowsort
SELECT + col0 - col2 * col1 AS col1 FROM tab0 cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - cor0.col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - + col1 * 87 FROM tab2 cor0
----
-1479
-2697
-5133

query I rowsort
SELECT col2 * col0 + + 22 FROM tab1 AS cor0
----
184
3670
7702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4576
SELECT ALL + + col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + + col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + col0 * + 83 AS col0 FROM tab1 AS cor0
----
249
5312
6640

query I rowsort
SELECT ALL + + col2 + + col0 * 79 AS col2 FROM tab0 AS cor0
----
1929
2766
7113

query I rowsort
SELECT - - col2 * - 94 AS col0 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT tab2.col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab2, tab1 cor0
----
30

query I rowsort
SELECT + + 71 + col1 AS col0 FROM tab0 AS cor0
----
157
162
168

query I rowsort
SELECT - 71 * + col0 AS col2 FROM tab2 AS cor0
----
-497
-5538
-5609

query I rowsort
SELECT cor0.col0 * + col0 + + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ( 80 ) - + tab2.col1 * - 35 FROM tab2
----
1165
2145
675

query I rowsort
SELECT - 76 + col1 FROM tab0 AS cor0
----
10
15
21

query I rowsort
SELECT - col2 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + 92 + col0 * ( + col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
118917
49628
720903

query I rowsort
SELECT DISTINCT 41 + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
130
65
76

query I rowsort
SELECT ALL cor0.col2 * - col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col0 * - 65 AS col0 FROM tab2
----
455
5070
5135

query I rowsort
SELECT ALL + col2 - + 62 * col1 AS col1 FROM tab1
----
-1558
-563
-710

onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT - col0 * 68 DIV col2 AS col1 FROM tab0
----
-2380
-49
-73

skipif mysql # not compatible
query I rowsort label-4593
SELECT - col0 * 68 / col2 AS col1 FROM tab0
----
-2380
-49
-73

query I rowsort
SELECT col0 - 44 * col2 * col1 AS col1 FROM tab0
----
-124848
-328239
-4233

query I rowsort
SELECT - + cor0.col1 * - col0 - - col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + + ( cor0.col1 ) + col1 AS col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL + ( + col1 ) * col1 * ( col2 ) AS col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL 33 AS col0 FROM tab2 cor0
----
33
33
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4599
SELECT DISTINCT ( col2 ) + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT ( col2 ) + col1 / - col0 AS col0 FROM tab0 AS cor0
----
-1
30
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT DISTINCT col0 DIV + tab0.col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT col0 / + tab0.col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT + - 37 * 42 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1475
-1476
-1547

query I rowsort
SELECT + col0 * col0 + col1 * col0 AS col0 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT ALL - + col2 + 5 AS col2 FROM tab1 AS cor0
----
-49
-52
-91

query I rowsort
SELECT ALL - - col1 * ( + col1 * 80 ) + col0 - col0 AS col2 FROM tab0 AS cor0
----
591680
662480
752720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT + col1 DIV col2 - + cor0.col1 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT + col1 / col2 - + cor0.col1 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT DISTINCT col2 + + ( + col0 + - col2 ) * + col2 FROM tab2 cor0
----
-513
1378
1596

query I rowsort
SELECT ALL - - ( 48 ) + col2 * 66 FROM tab1 AS cor0
----
3612
3810
6384

query I rowsort
SELECT - 99 - - 60 * col2 FROM tab2 AS cor0
----
1461
1521
2181

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT 46 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 98b9079d8e7ebeee3dfa151aa77bacc3

query I rowsort
SELECT + - 93 * 41 + col2 AS col0 FROM tab0 AS cor0
----
-3731
-3780
-3812

query I rowsort
SELECT DISTINCT + - col2 + 75 * col1 AS col2 FROM tab2 AS cor0
----
1237
2298
4399

onlyif mysql # use DIV operator for integer division
query I rowsort label-4613
SELECT ALL col1 DIV ( col0 ) + col2 col1 FROM tab2
----
26
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL col1 / ( col0 ) + col2 col1 FROM tab2
----
26
31
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4614
SELECT + 45 * - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT + 45 * - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 55 + cor0.col0 AS col1 FROM tab2 AS cor0
----
133
134
62

query I rowsort
SELECT ALL cor0.col1 * col1 * col1 AS col0 FROM tab2 cor0
----
205379
29791
4913

query I rowsort
SELECT ALL - 68 - col2 AS col2 FROM tab2
----
-106
-94
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4618
SELECT - CAST( ( col2 ) AS SIGNED ) + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-4618
SELECT - CAST ( ( col2 ) AS INTEGER ) + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT - col2 DIV 2 FROM tab2 AS cor0
----
-13
-13
-19

skipif mysql # not compatible
query I rowsort label-4619
SELECT - col2 / 2 FROM tab2 AS cor0
----
-13
-13
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - 67 + ( + col2 + col2 ) FROM tab2
----
-13
-15
9

query I rowsort
SELECT ALL col0 + + 60 * col1 + - col2 FROM tab1 AS cor0
----
1509
607
764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 10 col1 FROM tab1 AS cor0
----
44
47
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4624
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + - cor0.col0 * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + - cor0.col0 * col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT DISTINCT + + col2 + - ( + col0 ) - col2 DIV - cor0.col2 FROM tab1 AS cor0
----
-6
17
52

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + + col2 + - ( + col0 ) - col2 / - cor0.col2 FROM tab1 AS cor0
----
-6
17
52

query I rowsort
SELECT 1 + - col1 AS col0 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT + ( + col2 * 33 ) AS col1 FROM tab0
----
1089
2706
33

query I rowsort
SELECT DISTINCT - col2 * col0 * - 59 AS col2 FROM tab1
----
215232
453120
9558

query I rowsort
SELECT + col1 * - col2 + 6 FROM tab2
----
-1528
-640
-831

query I rowsort
SELECT ALL - col2 + - ( col0 ) + col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4631
SELECT ALL - col1 + + CAST( col2 + - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - col1 + + CAST ( col2 + - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + - 35 + + col2 AS col0 FROM tab2 cor0
----
41
6075
6244

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4633
SELECT col1 + + CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT col1 + + CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 * + col2 * - 74 AS col0 FROM tab0
----
-146520
-364080
-4440

onlyif mysql # use DIV operator for integer division
query I rowsort label-4635
SELECT DISTINCT col2 + + col0 DIV + col2 + + 55 col0 FROM tab0
----
138
88
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT col2 + + col0 / + col2 + + 55 col0 FROM tab0
----
138
88
91

query I rowsort
SELECT + - col0 - - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 85 + cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
118
167
86

query I rowsort
SELECT ALL - 92 AS col1 FROM tab2 AS cor0
----
-92
-92
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT col2 - - col2 DIV - col0 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-4639
SELECT col2 - - col2 / - col0 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT DISTINCT cor0.col0 * - col1 + ( col2 ) FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + col1 + col1 + + 14 AS col2 FROM tab2 AS cor0
----
132
48
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4642
SELECT DISTINCT + 5 * col2 + col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
130
132
190

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT + 5 * col2 + col2 / - col0 AS col1 FROM tab2 AS cor0
----
130
132
190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4643
SELECT ALL - ( col2 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - ( col2 ) + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + - ( 92 ) FROM tab0 cor0
----
-1
-6
5

query I rowsort
SELECT col2 + cor0.col0 * + col0 - col2 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT col2 + + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col2 + - 6 * 42 * + col0 FROM tab1 AS cor0
----
-16185
-20256
-810

query I rowsort
SELECT ALL col2 + - col0 * + 84 AS col2 FROM tab1 AS cor0
----
-198
-5319
-6624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4649
SELECT ALL - col2 * - CAST( - 61 * col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-410164
-61
-66429

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - col2 * - CAST ( - 61 * col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-410164
-61
-66429

query I rowsort
SELECT - 45 + col2 FROM tab0
----
-12
-44
37

query I rowsort
SELECT col1 + col2 + col1 * col1 FROM tab0
----
7515
8454
9507

query I rowsort
SELECT DISTINCT - tab1.col1 AS col0 FROM tab1, tab2, tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + 78 + col1 AS col2 FROM tab2
----
109
137
95

query I rowsort
SELECT - + col2 + - ( + col1 ) * cor0.col2 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
3429
664125
68103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 35 col2 FROM tab0 cor0
----
1225
3115
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + cor0.col2 + + 92 * col0 col1 FROM tab2 AS cor0
----
1481
7914
8710

query I rowsort
SELECT + cor0.col1 * col2 + col2 * + col1 * col2 + + col0 * - col0 FROM tab1 AS cor0
----
114656
28964
77211

onlyif mysql # use DIV operator for integer division
query I rowsort label-4658
SELECT ALL - col0 DIV col0 + - col0 + - col2 AS col1 FROM tab0
----
-172
-37
-58

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - col0 / col0 + - col0 + - col2 AS col1 FROM tab0
----
-172
-37
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 + col1 * cor0.col1 col2 FROM tab0 AS cor0
----
7408
8293
9421

query I rowsort
SELECT ALL + - 5 * + 16 + + col2 AS col1 FROM tab1 AS cor0
----
-23
-26
16

query I rowsort
SELECT ALL + - cor0.col0 + col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col2 * 92 + col2 * 90 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - 18 + - 34 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT ALL - - col2 * col1 + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT col2 * 55 AS col0 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT DISTINCT + - 67 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7463
-8348
-9476

query I rowsort
SELECT ALL - + ( 10 ) AS col0 FROM tab2 cor0
----
-10
-10
-10

query I rowsort
SELECT + - 60 * col0 AS col1 FROM tab1 AS cor0
----
-180
-3840
-4800

query I rowsort
SELECT ALL col1 * - col1 + + col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL + col2 + col0 + - ( - col1 + + 58 ) AS col2 FROM tab1
----
131
25
73

query I rowsort
SELECT ALL col2 + - col0 + col0 * - col2 FROM tab2
----
-169
-2080
-3043

query I rowsort
SELECT ALL - 9 * - cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
175
212
325

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4673
SELECT CAST( NULL AS DECIMAL ) * 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT CAST ( NULL AS REAL ) * 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( - 32 ) + col2 * col2 * col1 AS col0 FROM tab2 AS cor0
----
22567
24516
39852

query I rowsort
SELECT ALL 90 * + col2 + - col2 - + ( 2 ) FROM tab1 AS cor0
----
4804
5071
8542

query I rowsort
SELECT DISTINCT + col0 + 84 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7248
7733
8183

query I rowsort
SELECT + col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + ( col0 ) * col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL 87 + + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to da94ea76a8ee860f91cae444884a1771

query I rowsort
SELECT + 58 * col2 AS col1 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT DISTINCT ( - ( tab1.col1 ) ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - col1 + 59 FROM tab0
----
-27
-32
-38

query I rowsort
SELECT + 0 + - ( col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + + col2 + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + 55 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
144
79
90

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab0, tab0 AS cor0
----
-23

query I rowsort
SELECT + cor0.col2 + - ( cor0.col2 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + 2 - col0 AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT + tab1.col0 * 89 AS col0 FROM tab1, tab0 cor0
----
267
5696
7120

query I rowsort
SELECT + col0 + + col2 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
17654
19690
54951

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 * - col0 AS col0 FROM tab2
----
238
8112
9243

query I rowsort
SELECT ALL + col0 * + tab2.col2 + + col1 * - col1 FROM tab2
----
-1453
-772
2713

query I rowsort
SELECT tab1.col2 * col1 + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE - tab2.col0 <> + col0
----
7
78
79

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col1 * - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4698
SELECT - tab2.col1 * col2 DIV - col0 AS col2 FROM tab2
----
119
19
8

skipif mysql # not compatible
query I rowsort label-4698
SELECT - tab2.col1 * col2 / - col0 AS col2 FROM tab2
----
119
19
8

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT col0 * tab1.col1 + col1 + col0 * col0 FROM tab1
----
113
4746
7453

onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT + col1 DIV col1 col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4701
SELECT + col1 / col1 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col0 * - col0 * col0 AS col0 FROM tab1
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT + col1 * - col2 DIV col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4703
SELECT + col1 * - col2 / col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL col1 * - tab1.col0 AS col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4705
SELECT col2 DIV col0 - - col2 AS col1 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-4705
SELECT col2 / col0 - - col2 AS col1 FROM tab2
----
26
30
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4706
SELECT ALL col2 DIV - col0 + col1 + tab0.col2 AS col2 FROM tab0
----
118
173
98

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL col2 / - col0 + col1 + tab0.col2 AS col2 FROM tab0
----
118
173
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * tab1.col2 * col0 FROM tab1
----
233472
486
614400

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4710
SELECT + col0 DIV col0 + col0 * - col1 FROM tab2 AS cor0
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-4710
SELECT + col0 / col0 + col0 * - col1 FROM tab2 AS cor0
----
-1342
-216
-4601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - col1 - col1 BETWEEN ( col2 * - col0 - col0 * col0 ) AND NULL
----

query I rowsort
SELECT ALL + tab0.col1 + col0 * + col2 + + tab0.col1 FROM tab0
----
229
7480
964

query I rowsort
SELECT + col2 + col0 FROM tab1 WHERE NOT NULL IN ( + tab1.col0 + col0 )
----

query I rowsort
SELECT col1 * + col2 - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT DISTINCT col1 + tab2.col2 + col1 DIV + tab2.col1 FROM tab2
----
56
59
86

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT col1 + tab2.col2 + col1 / + tab2.col1 FROM tab2
----
56
59
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE NOT col0 + col0 <= col2 + - col0
----
1
33
82

query I rowsort
SELECT DISTINCT col1 * 74 FROM tab0
----
6364
6734
7178

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT - - cor0.col1 DIV - col0 AS col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4720
SELECT - - cor0.col1 / - col0 AS col0 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT + col1 * ( col2 ) * + col1 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT - - col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4722
SELECT - - col1 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - cor0.col2 + 24 * col0 FROM tab0 AS cor0
----
2218
609
841

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4724
SELECT + + CAST( - col1 AS SIGNED ) * + col0 - 27 FROM tab0 AS cor0
----
-2091
-3422
-8126

skipif mysql # not compatible
query I rowsort label-4724
SELECT + + CAST ( - col1 AS INTEGER ) * + col0 - 27 FROM tab0 AS cor0
----
-2091
-3422
-8126

query I rowsort
SELECT ALL + ( - 90 ) FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4726
SELECT ALL col0 DIV - col1 - col2 AS col0 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL col0 / - col1 - col2 AS col0 FROM tab1 AS cor0
----
-102
-54
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT + 36 - - col1 DIV col0 FROM tab1 AS cor0
----
36
36
44

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 36 - - col1 / col0 FROM tab1 AS cor0
----
36
36
44

query I rowsort
SELECT - ( - 88 ) * - col2 - col0 FROM tab0 AS cor0
----
-123
-2928
-7305

query I rowsort
SELECT DISTINCT col1 * - ( col2 * - col1 ) - ( col1 ) * + 36 AS col0 FROM tab2 AS cor0
----
10370
24831
88382

query I rowsort
SELECT 45 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT cor0.col0 + + 78 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
142
158
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4732
SELECT DISTINCT + ( 43 ) DIV col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT + ( 43 ) / col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT - col1 * cor0.col1 * + col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL 47 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT + - col0 * - col1 * ( col1 * col1 ) FROM tab1 AS cor0
----
175760
52728
64000

query I rowsort
SELECT - col0 + + col2 + col1 * col0 FROM tab2 AS cor0
----
1302
237
4550

query I rowsort
SELECT + 45 * tab2.col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 247e7c5226bbd4c4bf42be4f4de14158

query I rowsort
SELECT ALL - col1 * + col2 + - cor0.col0 FROM tab0 cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT ALL col0 + col0 DIV 69 + 10 DIV - col2 FROM tab1 AS cor0
----
3
64
81

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL col0 + col0 / 69 + 10 / - col2 FROM tab1 AS cor0
----
3
64
81

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab0 WHERE + col1 * col2 > + col1
----
-1089
-6724

query I rowsort
SELECT 59 + col2 FROM tab0 AS cor0
----
141
60
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 10 + - col1 col2 FROM tab0 AS cor0
----
-326
-447
-981

onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT DISTINCT + col1 DIV tab1.col0 AS col0 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT + col1 / tab1.col0 AS col0 FROM tab1
----
0
8

query I rowsort
SELECT DISTINCT col2 + + col0 * col0 AS col1 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT ALL - + col2 * - 26 AS col2 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT DISTINCT col2 + - col1 * + col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + - col2 * - col2 * + 75 FROM tab0 AS cor0
----
504300
75
81675

query I rowsort
SELECT ( col1 ) * col0 * - 89 + + col2 AS col1 FROM tab1
----
-56903
-6888
-92464

query I rowsort
SELECT - col0 * col0 - col2 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT ALL 11 FROM tab2, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ( ( - col2 ) * col2 ) AS col2 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT ALL + + 3 DIV - ( + col2 * - col0 ) + col2 DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + + 3 / - ( + col2 * - col0 ) + col2 / - col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor1.col0 + + cor1.col2 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a206af99264e378e55b667df888459e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT DISTINCT + ( 9 ) DIV - col0 + - cor0.col1 * col2 - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-869

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT + ( 9 ) / - col0 + - cor0.col1 * col2 - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-869

query I rowsort
SELECT DISTINCT - 87 + - col1 AS col1 FROM tab0 cor0
----
-173
-178
-184

query I rowsort
SELECT + - 38 + - cor0.col0 * - col1 FROM tab2 AS cor0
----
1305
179
4564

onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT DISTINCT + 88 - - 44 * col0 DIV - cor0.col2 FROM tab0 AS cor0
----
-1452
41
56

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT + 88 - - 44 * col0 / - cor0.col2 FROM tab0 AS cor0
----
-1452
41
56

query I rowsort
SELECT - + 81 FROM tab2 cor0
----
-81
-81
-81

query I rowsort
SELECT ( col1 ) + tab0.col2 * - col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT DISTINCT 20 DIV - col1 + - ( col2 ) AS col2 FROM tab2
----
-26
-27
-39

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT 20 / - col1 + - ( col2 ) AS col2 FROM tab2
----
-26
-27
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT col0 + col1 DIV col1 AS col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4761
SELECT col0 + col1 / col1 AS col1 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT + col0 * col0 * col1 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT ALL - tab2.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - col2 * - 46 + 54 AS col0 FROM tab1 AS cor0
----
2538
2676
4470

query I rowsort
SELECT ALL + col1 + col0 * + col1 + col0 FROM tab2 AS cor0
----
1439
255
4739

query I rowsort
SELECT - col0 + cor0.col1 * + 66 FROM tab2 AS cor0
----
1043
2039
3816

query I rowsort
SELECT ALL + col1 + - 96 FROM tab1 cor0
----
-70
-83
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 col1 FROM tab1, tab1 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * cor0.col1 + - col1 + cor0.col0 col1 FROM tab1 AS cor0
----
1107
55
694

query I rowsort
SELECT ALL - col0 - col1 AS col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL col0 - + cor0.col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col0 * 78 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
-14742
-158184
-234156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 + - ( + col0 ) col1 FROM tab1
----
29
3
77

query I rowsort
SELECT ALL - 86 + col1 * + tab1.col2 FROM tab1
----
1162
1318
484

query I rowsort
SELECT + - col2 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL col2 * - tab1.col1 + - col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT ALL col0 + + col0 + tab1.col0 FROM tab1
----
192
240
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * + col0 col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT - - cor0.col0 * col0 * - col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 71 + col0 AS col0 FROM tab0 cor0
----
106
160
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT + + ( - col2 ) + - col1 DIV col0 col0 FROM tab2 AS cor0
----
-26
-31
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4782
SELECT + + ( - col2 ) + - col1 / col0 col0 FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT + col1 + - col0 * - col0 - - cor0.col0 * + col2 FROM tab0 AS cor0
----
1357
1454
15310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + + col0 col1 FROM tab0
----
171
36
57

query I rowsort
SELECT - - col2 - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - ( - col0 ) - col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT 45 + col2 AS col0 FROM tab1 cor0
----
102
141
99

query I rowsort
SELECT col2 + col2 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82

query I rowsort
SELECT ALL + col0 * col2 + - 24 AS col0 FROM tab0 AS cor0
----
11
7274
768

query I rowsort
SELECT - - 45 * col0 * + col2 AS col2 FROM tab0 AS cor0
----
1575
328410
35640

onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT ALL col0 DIV 37 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL col0 / 37 FROM tab0
----
0
0
2

query I rowsort
SELECT - - 57 * + col2 FROM tab0 AS cor0
----
1881
4674
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4794
SELECT ALL col0 + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL col0 + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4796
SELECT DISTINCT - col2 * col2 + col2 DIV col1 col0 FROM tab1 AS cor0
----
-2914
-3244
-9209

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT - col2 * col2 + col2 / col1 col0 FROM tab1 AS cor0
----
-2914
-3244
-9209

query I rowsort
SELECT ALL cor0.col0 * - cor0.col1 * col2 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT 87 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + col1 + - col0 + - 7 AS col0 FROM tab0
----
-5
55
55

query I rowsort
SELECT DISTINCT 42 * tab1.col0 - 56 * 74 FROM tab1
----
-1456
-4018
-784

query I rowsort
SELECT ALL 12 - col2 AS col1 FROM tab2
----
-14
-15
-26

query I rowsort
SELECT - + 61 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL ( 46 ) + col2 FROM tab2 AS cor0
----
72
73
84

query I rowsort
SELECT ALL - + cor0.col2 * col2 - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL + 26 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - 47 - - 35 AS col1 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT ( - col2 ) * + cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4808
SELECT CAST( - col2 AS SIGNED ) + + tab2.col0 * + 65 AS col1 FROM tab2
----
428
5044
5097

skipif mysql # not compatible
query I rowsort label-4808
SELECT CAST ( - col2 AS INTEGER ) + + tab2.col0 * + 65 AS col1 FROM tab2
----
428
5044
5097

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col1 * - col2 AS REAL ) FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4810
SELECT ALL + 40 DIV col2 + col0 * col2 - - col1 * col2 AS col2 FROM tab1 AS cor0
----
1566
4218
8928

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL + 40 / col2 + col0 * col2 - - col1 * col2 AS col2 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL - col2 * col2 + ( - col2 ) + - col2 FROM tab2 AS cor0
----
-1520
-728
-783

onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT DISTINCT col2 + - col2 DIV + col2 + + col2 AS col2 FROM tab1 cor0
----
107
113
191

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT col2 + - col2 / + col2 + + col2 AS col2 FROM tab1 cor0
----
107
113
191

query I rowsort
SELECT ALL + 34 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT - 90 * col0 FROM tab1 AS cor0
----
-270
-5760
-7200

query I rowsort
SELECT DISTINCT + - col0 + - col1 AS col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL 0 * + col0 + - col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - - 44 AS col2 FROM tab1 AS cor0
----
44

query I rowsort
SELECT ALL - col0 * - ( - col0 ) + col0 AS col1 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT tab2.col1 * - ( ( + col2 ) ) FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT ALL col1 DIV + 48 + col0 + col2 * col1 AS col1 FROM tab0
----
134
2863
7552

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL col1 / + 48 + col0 + col2 * col1 AS col1 FROM tab0
----
134
2863
7552

onlyif mysql # use DIV operator for integer division
query I rowsort label-4821
SELECT ALL col0 + 53 * col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
117
133
56

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL col0 + 53 * col0 / + col0 AS col0 FROM tab1 AS cor0
----
117
133
56

query I rowsort
SELECT - 59 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4823
SELECT - col0 DIV + 79 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT - col0 / + 79 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4824
SELECT + col2 + + col1 + cor0.col1 DIV col0 FROM tab0 AS cor0
----
100
122
174

skipif mysql # not compatible
query I rowsort label-4824
SELECT + col2 + + col1 + cor0.col1 / col0 FROM tab0 AS cor0
----
100
122
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT DISTINCT - + 92 DIV cor0.col0 AS col0 FROM tab1 cor0
----
-1
-30

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT - + 92 / cor0.col0 AS col0 FROM tab1 cor0
----
-1
-30

query I rowsort
SELECT + 85 * - col1 FROM tab2 cor0
----
-1445
-2635
-5015

query I rowsort
SELECT ALL + - 31 * col2 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT - - ( cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col2 * 20 AS col1 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT + - ( col0 ) + + col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - 49 * cor0.col2 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT ALL + ( col2 ) + + col1 * 80 FROM tab1 cor0
----
1136
2134
857

query I rowsort
SELECT DISTINCT + 96 + col1 * col2 FROM tab1 AS cor0
----
1344
1500
666

query I rowsort
SELECT DISTINCT + col2 * col0 - - col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - - col1 * col0 + col0 + col0 FROM tab0 cor0
----
2112
3465
8277

query I rowsort
SELECT ALL - col1 * 94 AS col1 FROM tab1 AS cor0
----
-1222
-2444
-940

query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL 0 * col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4839
SELECT col0 DIV + col2 + ( + col2 ) AS col0 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-4839
SELECT col0 / + col2 + ( + col2 ) AS col0 FROM tab0
----
33
36
83

query I rowsort
SELECT - col2 + + col2 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col0 + col1 + 43 FROM tab0
----
153
175
223

query I rowsort
SELECT ALL + tab1.col0 * 26 + - col2 FROM tab1
----
1607
1984
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 * - col0 col1 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab1 cor0
----
46

query I rowsort
SELECT 2 + + col2 + - col2 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4846
SELECT DISTINCT CAST( NULL AS SIGNED ) + + cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + cor0.col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 93 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT col0 * ( + col2 ) * col0 + + ( + ( - col1 ) ) * col0 FROM tab0 AS cor0
----
-2170
16944
641423

query I rowsort
SELECT 65 * cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7711138caced17bf66c8cb5f4cf93a4e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4850
SELECT tab0.col0 + + tab0.col1 DIV col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-4850
SELECT tab0.col0 + + tab0.col1 / col0 FROM tab0
----
27
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT DISTINCT tab2.col0 DIV ( ( col1 ) ) FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT tab2.col0 / ( ( col1 ) ) FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT ALL + col2 * col0 + + col2 * + 21 FROM tab0
----
1485
56
9020

query I rowsort
SELECT ALL tab1.col0 + tab1.col2 * - col2 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + tab1.col1 + - 16 AS col2 FROM tab1
----
-3
-6
10

query I rowsort
SELECT ALL + 84 + col2 * - col2 + + tab2.col2 AS col1 FROM tab2
----
-1322
-566
-618

query I rowsort
SELECT ( + cor0.col0 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT col1 * 29 + - col0 AS col0 FROM tab0
----
2470
2550
2778

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT DISTINCT - 26 * col2 DIV + col1 + + 62 FROM tab0
----
39
53
62

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT - 26 * col2 / + col1 + + 62 FROM tab0
----
39
53
62

query I rowsort
SELECT - ( col0 ) + 60 FROM tab0 AS cor0
----
-29
25
36

query I rowsort
SELECT ALL + 78 - cor0.col1 AS col2 FROM tab2 AS cor0
----
19
47
61

query I rowsort
SELECT DISTINCT 26 * + col1 AS col1 FROM tab2 AS cor0
----
1534
442
806

query I rowsort
SELECT + col2 + col0 + cor0.col1 FROM tab2 cor0
----
134
163
65

query I rowsort
SELECT - 86 + - col1 AS col1 FROM tab2 AS cor0
----
-103
-117
-145

query I rowsort
SELECT DISTINCT 45 + + col2 FROM tab1 AS cor0
----
102
141
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT DISTINCT - ( - col2 ) DIV + col1 + - col1 * - cor0.col2 * col0 + - col1 FROM tab2 AS cor0
----
119593
51019
5828

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - ( - col2 ) / + col1 + - col1 * - cor0.col2 * col0 + - col1 FROM tab2 AS cor0
----
119593
51019
5828

query I rowsort
SELECT ALL - 19 + col0 - col1 * + 20 AS col2 FROM tab2 AS cor0
----
-1121
-280
-632

query I rowsort
SELECT ALL + cor0.col2 + - col1 * 19 FROM tab1 AS cor0
----
-133
-151
-440

query I rowsort
SELECT - tab2.col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5

query I rowsort
SELECT DISTINCT - 83 FROM tab0, tab1 cor0, tab2 cor1
----
-83

query I rowsort
SELECT ALL 66 + + 55 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to caef24c3af92e31c3c63f6930ea05b46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4872
SELECT DISTINCT 4 * col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT 4 * col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - - col2 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col0 + - ( 51 ) AS col1 FROM tab1 AS cor0
----
-48
13
29

query I rowsort
SELECT - + col0 * - ( col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 + - 37 * + ( + col1 * col0 ) AS col2 FROM tab1
----
-23670
-2860
-38467

query I rowsort
SELECT col0 * 96 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab2, tab1, tab2 AS cor0
----
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4879
SELECT col0 * CAST( NULL AS SIGNED ) + + ( cor0.col0 * cor0.col2 + 71 * col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4879
SELECT col0 * CAST ( NULL AS INTEGER ) + + ( cor0.col0 * cor0.col2 + 71 * col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT cor0.col2 + col1 DIV ( col2 ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4880
SELECT cor0.col2 + col1 / ( col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col0 * col2 + cor0.col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT + col2 + + ( col0 * col2 ) AS col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT ALL + cor0.col2 * + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + cor0.col2 * + col2 / + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4884
SELECT + - ( + col1 ) DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4884
SELECT + - ( + col1 ) / + col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + ( 89 ) AS col0 FROM tab0 cor0
----
89
89
89

query I rowsort
SELECT - col0 + - cor0.col1 * col2 FROM tab0 AS cor0
----
-132
-2862
-7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col0 col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - 10 * + col1 * col1 AS col2 FROM tab1
----
-1000
-1690
-6760

query I rowsort
SELECT DISTINCT + 0 FROM tab2, tab1 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4890
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 cor0
----
NULL

query I rowsort
SELECT ALL tab2.col2 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT - col0 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT DISTINCT + col1 DIV 79 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT + col1 / 79 FROM tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4894
SELECT - col0 DIV col1 col2 FROM tab1 cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4894
SELECT - col0 / col1 col2 FROM tab1 cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 * - col1 + col1 col0 FROM tab2
----
-10965
-25916
-90447

query I rowsort
SELECT DISTINCT 93 + + 61 AS col1 FROM tab2 AS cor0
----
154

query I rowsort
SELECT - col1 * + 40 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT 92 AS col2 FROM tab2 cor0
----
92
92
92

query I rowsort
SELECT DISTINCT - 36 + - col0 AS col2 FROM tab0 AS cor0
----
-125
-60
-71

query I rowsort
SELECT ALL + - ( - col0 ) + col0 - col0 AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4901
SELECT ALL + + cor0.col1 * + ( - col1 ) + - CAST( NULL AS SIGNED ) + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL + + cor0.col1 * + ( - col1 ) + - CAST ( NULL AS INTEGER ) + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4902
SELECT ALL - - ( 9 ) + + col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - - ( 9 ) + + col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4903
SELECT - + CAST( col1 AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT - + CAST ( col1 AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 + - 8 FROM tab1 AS cor0
----
18
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( 67 ) * - col2 + cor0.col1 + col0 col1 FROM tab2 AS cor0
----
1847
1879
2642

onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT ALL col0 DIV - 22 + col0 - - col2 FROM tab0 cor0
----
167
35
56

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL col0 / - 22 + col0 - - col2 FROM tab0 cor0
----
167
35
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4907
SELECT DISTINCT 53 * col1 + - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT 53 * col1 + - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4908
SELECT DISTINCT + + 97 DIV col0 AS col2 FROM tab1 AS cor0
----
1
32

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + + 97 / col0 AS col2 FROM tab1 AS cor0
----
1
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4909
SELECT ALL CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 17 col2 FROM tab2 cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - - cor0.col2 + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - - 65 * col0 + - col2 * - col2 FROM tab2 AS cor0
----
1184
5746
6579

query I rowsort
SELECT + 69 * - col2 AS col1 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT - + 42 * col2 AS col0 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT - col2 + col1 * - 3 AS col0 FROM tab1 AS cor0
----
-132
-135
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4916
SELECT + col1 * col1 DIV ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
137
3
44

skipif mysql # not compatible
query I rowsort label-4916
SELECT + col1 * col1 / ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
137
3
44

query I rowsort
SELECT + 24 + - col0 AS col2 FROM tab2
----
-54
-55
17

query I rowsort
SELECT ALL cor0.col2 * + ( 21 ) FROM tab0, tab2 AS cor0
----
9 values hashing to d72e70f7bd7bd6904a82beaee2e45aad

onlyif mysql # use DIV operator for integer division
query I rowsort label-4919
SELECT - col1 + - col2 DIV + cor0.col2 col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4919
SELECT - col1 + - col2 / + cor0.col2 col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT - 59 FROM tab2 cor0
----
-59

query I rowsort
SELECT + + col1 + + cor0.col1 * + col1 AS col0 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT ALL - col0 * col0 + 69 * col2 * 23 + 13 FROM tab2 AS cor0
----
35191
42813
54078

query I rowsort
SELECT - + col1 * col1 * + col0 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + col1 + ( - cor0.col1 ) * cor0.col1 * 44 FROM tab1 AS cor0
----
-29718
-4390
-7423

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT ALL tab2.col2 + col1 * CAST( 51 AS SIGNED ) * + col2 + - 37 AS col1 FROM tab2
----
32947
42677
78223

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL tab2.col2 + col1 * CAST ( 51 AS INTEGER ) * + col2 + - 37 AS col1 FROM tab2
----
32947
42677
78223

query I rowsort
SELECT ALL - cor0.col1 + - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - col1 + ( + col1 ) * + cor0.col0 * ( + col2 * + col2 ) AS col0 FROM tab1 AS cor0
----
2079350
227422
9584627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT ALL + col0 DIV + 32 FROM tab1 cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL + col0 / + 32 FROM tab1 cor0
----
0
2
2

query I rowsort
SELECT ALL + col0 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - col2 * + 9 FROM tab1 AS cor0
----
-486
-513
-864

query I rowsort
SELECT DISTINCT - cor0.col1 * - ( ( col2 ) ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col1 * 19 + - col2 AS col2 FROM tab1 AS cor0
----
-247
-343
-548

query I rowsort
SELECT ALL ( - col0 ) + col2 * + 97 * col1 FROM tab2
----
148720
62583
81182

query I rowsort
SELECT 37 + col1 * + col1 FROM tab0
----
7433
8318
9446

onlyif mysql # use DIV operator for integer division
query I rowsort label-4936
SELECT + col2 DIV - tab1.col1 AS col2 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4936
SELECT + col2 / - tab1.col1 AS col2 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT + 19 - col2 AS col1 FROM tab0
----
-14
-63
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * - col2 + + col1 col1 FROM tab0
----
-2917
-7371
6

query I rowsort
SELECT - 97 * 15 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 097f5d3bcd6da4901dcabc18e7acb29d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT DISTINCT + cor0.col0 DIV col0 + col0 * + col2 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT + cor0.col0 / col0 + col0 * + col2 FROM tab1 AS cor0
----
163
3649
7681

onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT DISTINCT - 37 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - 37 / - col1 AS col2 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT ALL + - col1 * col2 * + cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - 71 * col0 * col2 FROM tab2
----
-13419
-143988
-213142

query I rowsort
SELECT ALL + 65 * col2 + - col1 * + col1 FROM tab0 cor0
----
-2951
-5251
-9344

query I rowsort
SELECT DISTINCT - cor0.col0 - + col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + 83 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT ALL + + 5 * col2 FROM tab0 cor0
----
165
410
5

query I rowsort
SELECT ALL + col1 * - cor0.col1 * ( col1 ) + col1 * 70 * col1 AS col2 FROM tab2 AS cor0
----
15317
37479
38291

query I rowsort
SELECT ALL + cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - cor0.col1 + col0 col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT col0 * col0 * col2 + + 0 + col1 * + col2 * + col2 AS col0 FROM tab2 AS cor0
----
198068
23922
261706

query I rowsort
SELECT ALL - col2 + + cor0.col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - + cor0.col1 + col2 * - col2 * 95 AS col0 FROM tab1 AS cor0
----
-277046
-308665
-875533

query I rowsort
SELECT + + col1 * - ( + col2 ) + ( 7 ) + col0 AS col0 FROM tab2 AS cor0
----
-1449
-560
-823

query I rowsort
SELECT 82 + + 5 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT ALL + col2 * + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 37 * + 98 AS col0 FROM tab1
----
3626

query I rowsort
SELECT cor0.col2 * - col0 + - 58 AS col0 FROM tab2 AS cor0
----
-2086
-247
-3060

query I rowsort
SELECT ( + 83 ) * - col1 AS col2 FROM tab2
----
-1411
-2573
-4897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4961
SELECT col0 * - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4961
SELECT col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - ( - cor0.col2 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT 34 + 98 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
132

query I rowsort
SELECT DISTINCT col1 + ( col1 ) + col0 AS col0 FROM tab1
----
106
55
84

query I rowsort
SELECT ALL tab0.col1 + col2 * - col1 + col0 AS col0 FROM tab0
----
-2728
-7282
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 9 col0 FROM tab2
----
16
87
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4967
SELECT + CAST( - 58 AS SIGNED ) * + col2 + + 29 * - 67 FROM tab2 AS cor0
----
-3451
-3509
-4147

skipif mysql # not compatible
query I rowsort label-4967
SELECT + CAST ( - 58 AS INTEGER ) * + col2 + + 29 * - 67 FROM tab2 AS cor0
----
-3451
-3509
-4147

query I rowsort
SELECT + col0 + + col1 * cor0.col1 AS col2 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT ALL - 46 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT - - col0 * col2 + + 26 * col1 AS col0 FROM tab1 AS cor0
----
3908
8018
838

query I rowsort
SELECT ALL col0 + 53 AS col0 FROM tab0
----
142
77
88

query I rowsort
SELECT ALL col2 + - ( - col0 ) FROM tab1
----
121
176
57

query I rowsort
SELECT - 6 + - 58 FROM tab0, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT - 65 * col0 AS col1 FROM tab1 AS cor0
----
-195
-4160
-5200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4975
SELECT DISTINCT - cor0.col1 DIV - 54 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT - cor0.col1 / - 54 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1088
-6723
0

query I rowsort
SELECT - col0 * col2 + col1 - cor0.col0 FROM tab1 AS cor0
----
-139
-3702
-7747

query I rowsort
SELECT + 23 - ( - cor0.col2 * + 48 ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to 38dc280fc9da39c67246b409a2275cf2

query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab2
----
-57

query I rowsort
SELECT DISTINCT 94 + col1 - tab1.col0 AS col2 FROM tab1
----
117
27
40

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 + - col2 AS REAL ) FROM tab0
----
0
0
0

query I rowsort
SELECT - - ( col1 ) - + col1 * + col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT 52 - + ( - col0 ) FROM tab2
----
130
131
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + tab0.col1 col0 FROM tab0
----
122
127
133

query I rowsort
SELECT 1 + + 11 * + tab2.col1 - col2 * tab2.col1 FROM tab2
----
-458
-495
-884

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2, tab1, tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT - cor0.col0 * + 72 + col0 FROM tab0 cor0
----
-1704
-2485
-6319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT 38 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT + col0 + + col2 * 86 FROM tab2 AS cor0
----
2314
2329
3347

query I rowsort
SELECT + 0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 6 FROM tab2, tab2 cor0, tab2 cor1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( ( + col0 ) ) col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + - col0 * 98 FROM tab1 AS cor0
----
-294
-6272
-7840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4994
SELECT - CAST( NULL AS SIGNED ) - 0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT - CAST ( NULL AS INTEGER ) - 0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col1 * + col1 ) + - col2 AS col0 FROM tab2
----
251
3455
934

query I rowsort
SELECT - 39 + - col1 AS col2 FROM tab1
----
-49
-52
-65

query I rowsort
SELECT ( 15 ) + - tab2.col2 * + ( - 4 ) AS col0 FROM tab2
----
119
123
167

query I rowsort
SELECT ALL 95 FROM tab0, tab0 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT 86 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT DISTINCT ( col1 ) * + 80 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT ALL + cor0.col0 + - cor0.col0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + 21 + + col0 * 0 FROM tab0 AS cor0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * + col1 col2 FROM tab2 AS cor0
----
1462
2666
5074

onlyif mysql # use DIV operator for integer division
query I rowsort label-5004
SELECT DISTINCT col1 * cor0.col2 DIV + col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT col1 * cor0.col2 / + col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 * - col2 + ( - col0 ) * col2 * cor0.col1 FROM tab2 AS cor0
----
-121680
-54036
-6048

query I rowsort
SELECT - 31 AS col1 FROM tab0 cor0
----
-31
-31
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT ALL + + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + + col0 / - col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT + col1 * col2 + + col1 FROM tab2 cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 - col2 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col1 * tab2.col2 - tab2.col0 AS col2 FROM tab2
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + 30 ) col1 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT + cor0.col0 * col0 * 37 FROM tab1 cor0
----
151552
236800
333

query I rowsort
SELECT - col0 * + ( col1 ) * col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col2 - col1 * + col0 * col2 AS col0 FROM tab2 AS cor0
----
-119678
-51072
-5886

query I rowsort
SELECT - + col2 * + 48 AS col0 FROM tab2 AS cor0
----
-1248
-1296
-1824

query I rowsort
SELECT - col0 + 24 + + col1 FROM tab2 AS cor0
----
-38
48
5

query I rowsort
SELECT col2 * + 60 AS col1 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT + cor0.col1 + + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col1 - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a4466d4505c6def6c0b7280648471148

query I rowsort
SELECT + ( 50 ) FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT - - 72 * ( col0 ) FROM tab2 AS cor0
----
504
5616
5688

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to f464d40c605db608927f2c4d66190a23

query I rowsort
SELECT - + ( + col1 ) * col0 * + col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + ( + tab2.col0 ) FROM tab2, tab1 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT ALL col1 DIV - 28 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL col1 / - 28 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + col1 * + col1 * col1 FROM tab0 AS cor0
----
636056
753571
912673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5027
SELECT ALL - 65 * - col0 / - col0 + + CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - 65 * - col0 / - col0 + + CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 70 + - 43 FROM tab2 cor0
----
27
27
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT + col0 * - col0 - - col0 DIV - col2 FROM tab1 cor0
----
-4097
-6400
-9

skipif mysql # not compatible
query I rowsort label-5029
SELECT + col0 * - col0 - - col0 / - col2 FROM tab1 cor0
----
-4097
-6400
-9

query I rowsort
SELECT DISTINCT + ( - col0 ) * cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5031
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 93 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 93 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + col2 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
2240
3149
9047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 * col2 + col0 col1 FROM tab2 AS cor0
----
-1137
-754
-857

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT ALL + - 58 DIV col1 + col1 FROM tab2 AS cor0
----
14
30
59

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL + - 58 / col1 + col1 FROM tab2 AS cor0
----
14
30
59

query I rowsort
SELECT ALL col0 + - col0 * + col1 * 44 AS col0 FROM tab1 AS cor0
----
-28096
-3429
-45680

query I rowsort
SELECT DISTINCT - ( - 80 ) * - col1 * ( + cor0.col1 * - col0 ) + cor0.col0 + col0 FROM tab1 AS cor0
----
1081760
162246
512128

query I rowsort
SELECT - cor0.col1 - - col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col1 * cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + col0 * - col2 + 98 AS col2 FROM tab1 AS cor0
----
-3550
-64
-7582

query I rowsort
SELECT ( - ( - col0 ) ) * - col0 * - col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT DISTINCT - 67 * - 32 + col1 + + 56 * col0 FROM tab2
----
2567
6571
6585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col0 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 27 col2 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT ALL + - col2 + 80 FROM tab1 AS cor0
----
-16
23
26

query I rowsort
SELECT DISTINCT - + cor0.col0 * - 93 AS col2 FROM tab2 AS cor0
----
651
7254
7347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5046
SELECT ALL col2 * + CAST( NULL AS SIGNED ) + + 11 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) + + 11 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 66 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT - tab0.col2 + + 78 FROM tab0
----
-4
45
77

query I rowsort
SELECT col1 + - ( + col1 ) * + col0 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + col2 + ( + col2 ) * col1 AS col0 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT ALL + - col2 DIV CAST( col1 * + cor0.col1 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL + - col2 / CAST ( col1 * + cor0.col1 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col2 + - 17 * col2 AS col0 FROM tab0 AS cor0
----
-1312
-16
-528

query I rowsort
SELECT 40 * col1 AS col1 FROM tab1
----
1040
400
520

query I rowsort
SELECT 67 * col0 * tab1.col0 FROM tab1
----
274432
428800
603

query I rowsort
SELECT DISTINCT - + col2 * col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - 51 * col2 FROM tab2 AS cor0
----
-1326
-1377
-1938

query I rowsort
SELECT col0 + + col1 * + ( - col1 * col0 + 61 ) FROM tab2 AS cor0
----
-21715
-267841
-4829

query I rowsort
SELECT DISTINCT + + 13 * + col1 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT - 50 * col2 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT - - 5 + col0 FROM tab2 AS cor0
----
12
83
84

query I rowsort
SELECT - 69 * - col0 FROM tab2 AS cor0
----
483
5382
5451

query I rowsort
SELECT + col0 + ( col1 + + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 99 col2 FROM tab2 AS cor0
----
-61
-72
-73

query I rowsort
SELECT DISTINCT + col1 * - ( + ( col1 ) ) + ( + col2 ) AS col1 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - col1 * 38 * - col1 AS col1 FROM tab0
----
281048
314678
357542

query I rowsort
SELECT - + col2 + ( col0 ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + 5 * col1 FROM tab1 AS cor0
----
130
50
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT DISTINCT CAST( + col0 + col2 AS SIGNED ) FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT CAST ( + col0 + col2 AS INTEGER ) FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5070
SELECT ( - ( col1 ) ) + - CAST( NULL AS SIGNED ) / + 12 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT ( - ( col1 ) ) + - CAST ( NULL AS INTEGER ) / + 12 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * col0 + col1 * - col0 * col1 col2 FROM tab0 AS cor0
----
-179568
-332710
-745108

query I rowsort
SELECT DISTINCT col1 * + col1 * col0 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col0 col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT ALL col0 + + col1 DIV cor0.col1 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL col0 + + col1 / cor0.col1 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT ( col0 ) + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT - col1 * 77 + col0 FROM tab2
----
-1230
-2380
-4465

query I rowsort
SELECT + ( - col0 ) + + col1 * + col0 FROM tab1
----
576
75
960

query I rowsort
SELECT 88 * - col0 AS col1 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT + 74 + + col1 FROM tab2
----
105
133
91

query I rowsort
SELECT DISTINCT - col1 * ( + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + + cor0.col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - + col1 * 26 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-210574
-53664
-88270

query I rowsort
SELECT DISTINCT + cor0.col0 + ( cor0.col2 ) * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5084
SELECT DISTINCT col2 DIV - 33 AS col2 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT col2 / - 33 AS col2 FROM tab1 AS cor0
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 72 col1 FROM tab0 AS cor0
----
-1728
-2520
-6408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT ALL + 22 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + 22 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * col0 + col2 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col0 * - col0 * col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - - 42 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT - 19 * col1 AS col1 FROM tab1 AS cor0
----
-190
-247
-494

query I rowsort
SELECT - ( - 68 ) + - col0 AS col1 FROM tab2 cor0
----
-10
-11
61

query I rowsort
SELECT - col2 * ( - col2 + col1 ) FROM tab2
----
-108
-858
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-5093
SELECT + col0 DIV ( col0 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5093
SELECT + col0 / ( col0 ) FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - 92 FROM tab0, tab2 AS cor0
----
-92

query I rowsort
SELECT ALL 51 AS col2 FROM tab0, tab1, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to c9771396949659773ab2fa2a1ac228de

query I rowsort
SELECT - tab1.col1 + 30 AS col1 FROM tab1
----
17
20
4

query I rowsort
SELECT - col0 * - ( - 38 ) * col1 FROM tab2
----
-174876
-51034
-8246

query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab0.col1 * col1 + + 66 * col1 ) col1 FROM tab0
----
-1720
-2275
-3007

query I rowsort
SELECT + 58 * + col0 + + cor0.col2 FROM tab1 AS cor0
----
228
3769
4736

onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT + 24 DIV col0 + - col1 AS col2 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-5101
SELECT + 24 / col0 + - col1 AS col2 FROM tab0 AS cor0
----
-85
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT - + col1 * + col2 DIV col2 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5102
SELECT - + col1 * + col2 / col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col2 * col2 + col1 AS col0 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + - col0 + - 14 FROM tab1 AS cor0
----
-17
-78
-94

query I rowsort
SELECT DISTINCT - ( + 19 ) + - col0 FROM tab1 AS cor0
----
-22
-83
-99

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 + + col0 FROM tab1
----
185
256
60

query I rowsort
SELECT ALL 34 * - 25 + - col2 * col2 FROM tab2
----
-1526
-1579
-2294

query I rowsort
SELECT DISTINCT - col1 + 30 * - col1 FROM tab0
----
-2666
-2821
-3007

query I rowsort
SELECT col2 * - col0 * 31 FROM tab0 AS cor0
----
-1085
-226238
-24552

query I rowsort
SELECT ALL - col1 + col0 * ( col2 ) FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT ALL col2 * - col0 + - col2 * + ( + col1 ) AS col2 FROM tab1
----
-1566
-4218
-8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + cor0.col2 * ( - 32 ) col0 FROM tab0 AS cor0
----
-2533
-970
65

query I rowsort
SELECT - 84 + col2 AS col0 FROM tab1 AS cor0
----
-27
-30
12

query I rowsort
SELECT col1 + + col0 - + col2 * + ( col0 ) FROM tab2
----
-151
-1891
-2906

query I rowsort
SELECT ALL 18 + + col2 + col0 AS col0 FROM tab2
----
122
135
52

query I rowsort
SELECT DISTINCT - 44 + cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
10
13
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT ALL - col0 DIV col2 + - cor0.col2 * col1 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-36424
-4158
-99744

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL - col0 / col2 + - cor0.col2 * col1 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-36424
-4158
-99744

query I rowsort
SELECT col0 * ( cor0.col2 ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - cor0.col1 - 5 FROM tab1 AS cor0
----
-15
-18
-31

query I rowsort
SELECT DISTINCT - col1 * + ( 70 ) FROM tab1 cor0
----
-1820
-700
-910

onlyif mysql # use DIV operator for integer division
query I rowsort label-5121
SELECT DISTINCT - col2 DIV 29 - 71 col1 FROM tab2 AS cor0
----
-71
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT - col2 / 29 - 71 col1 FROM tab2 AS cor0
----
-71
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5122
SELECT DISTINCT + - cor0.col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT + - cor0.col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5123
SELECT ALL - col2 DIV - 79 AS col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL - col2 / - 79 AS col2 FROM tab0 cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5124
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 50 + 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * + cor0.col1 col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - col1 * + 94 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT DISTINCT + col1 * col1 + - 70 + - col1 * 41 AS col1 FROM tab0 AS cor0
----
3800
4480
5362

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + ( - ( - col1 ) ) * + col1 col2 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT ALL col1 DIV ( - col2 ) - cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL col1 / ( - col2 ) - cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - + col1 * col0 + + col2 * col0 AS col1 FROM tab2 cor0
----
-2574
-28
1659

query I rowsort
SELECT + col0 * 52 AS col1 FROM tab1 cor0
----
156
3328
4160

query I rowsort
SELECT DISTINCT + 42 + 61 AS col0 FROM tab2, tab0 AS cor0
----
103

query I rowsort
SELECT - - cor0.col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + cor0.col0 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT 75 + + 92 FROM tab0 AS cor0
----
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + ( col1 ) + col0 * 24 col2 FROM tab0 AS cor0
----
2136
576
840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5138
SELECT + CAST( - 11 AS SIGNED ) * - col2 + ( + col0 ) FROM tab1 AS cor0
----
1136
597
691

skipif mysql # not compatible
query I rowsort label-5138
SELECT + CAST ( - 11 AS INTEGER ) * - col2 + ( + col0 ) FROM tab1 AS cor0
----
1136
597
691

query I rowsort
SELECT DISTINCT - + 35 FROM tab0 cor0
----
-35

query I rowsort
SELECT ALL - + 36 + + col0 FROM tab1 AS cor0
----
-33
28
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT - tab1.col0 DIV col2 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT - tab1.col0 / col2 AS col2 FROM tab1
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5142
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col0 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col0 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - 45 * + ( - col1 ) AS col1 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT ALL - - ( + 32 ) + col2 * + 27 FROM tab1 AS cor0
----
1490
1571
2624

query I rowsort
SELECT DISTINCT - 96 + - 98 - col1 AS col0 FROM tab1 AS cor0
----
-204
-207
-220

query I rowsort
SELECT DISTINCT - 5 + - col1 * - cor0.col1 FROM tab0 AS cor0
----
7391
8276
9404

onlyif mysql # use DIV operator for integer division
query I rowsort label-5148
SELECT DISTINCT + 99 DIV col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT + 99 / col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + cor0.col0 + col1 * ( col1 * + col2 ) AS col1 FROM tab2 AS cor0
----
11061
25954
90584

query I rowsort
SELECT + col2 * cor0.col0 + + 66 AS col0 FROM tab1 AS cor0
----
228
3714
7746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col1 * + cor0.col2 col0 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT DISTINCT - + cor0.col1 DIV col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT - + cor0.col1 / col1 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5154
SELECT + + ( col0 ) DIV - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT + + ( col0 ) / - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT 52 * - col0 + - 7 AS col2 FROM tab1 AS cor0
----
-163
-3335
-4167

query I rowsort
SELECT 68 + col0 AS col1 FROM tab2 AS cor0
----
146
147
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 * ( - col2 ) col2 FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT - + col2 + cor0.col1 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + col1 + + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - 65 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

query I rowsort
SELECT - - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + + 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + col2 col1 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT - + 99 * col1 FROM tab1 AS cor0
----
-1287
-2574
-990

query I rowsort
SELECT ALL - ( + 22 ) AS col1 FROM tab0
----
-22
-22
-22

onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT DISTINCT - 3 DIV - 29 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT - 3 / - 29 FROM tab0
----
0

query I rowsort
SELECT - 63 + col2 * + col2 * + 42 FROM tab0 AS cor0
----
-21
282345
45675

query I rowsort
SELECT 93 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - - col0 * + col0 + + col2 * - ( + col0 ) FROM tab1 AS cor0
----
-1280
-153
448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + + cor0.col0 * - 1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * tab1.col2 col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col2 * 98 AS col1 FROM tab1
----
5292
5586
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5175
SELECT ALL + CAST( ( + col1 ) + 73 AS SIGNED ) AS col2 FROM tab1
----
83
86
99

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + CAST ( ( + col1 ) + 73 AS INTEGER ) AS col2 FROM tab1
----
83
86
99

query I rowsort
SELECT 95 + + col2 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT - 87 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT 65 * + col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT - ( 70 ) AS col0 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5180
SELECT ( col2 ) + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5180
SELECT ( col2 ) + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - + col1 * col2 + - ( ( - col0 ) ) FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT 10 + 97 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6f26a03989006af44e1b70d584e50047

query I rowsort
SELECT + col2 - ( - ( cor0.col2 ) ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - + col2 + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT + col0 * + CAST( NULL AS SIGNED ) - + ( col0 ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT + col0 * + CAST ( NULL AS INTEGER ) - + ( col0 ) * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5186
SELECT col2 * - col0 DIV - ( - col0 ) AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5186
SELECT col2 * - col0 / - ( - col0 ) AS col1 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col1 FROM tab0, tab1 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 52 FROM tab1, tab1 cor0
----
52

query I rowsort
SELECT + 4 * + cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 315f93d11152c2cf40009a8d4d7c678c

query I rowsort
SELECT - - col1 * - 15 FROM tab2 AS cor0
----
-255
-465
-885

query I rowsort
SELECT ALL - - 76 * - col0 + - col0 - + cor0.col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

query I rowsort
SELECT - 17 * col1 FROM tab0 AS cor0
----
-1462
-1547
-1649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5193
SELECT DISTINCT - CAST( 90 AS SIGNED ) - + col1 * - col1 FROM tab2 AS cor0
----
199
3391
871

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - CAST ( 90 AS INTEGER ) - + col1 * - col1 FROM tab2 AS cor0
----
199
3391
871

query I rowsort
SELECT ALL + + col2 * + 40 FROM tab2 AS cor0
----
1040
1080
1520

onlyif mysql # use DIV operator for integer division
query I rowsort label-5195
SELECT + ( col2 ) DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5195
SELECT + ( col2 ) / + col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col1 * - 25 AS col0 FROM tab0
----
-2150
-2275
-2425

query I rowsort
SELECT DISTINCT + col1 * - ( 83 ) * tab0.col1 FROM tab0
----
-613868
-687323
-780947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5199
SELECT + - col1 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5199
SELECT + - col1 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * cor0.col2 + cor0.col2 col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT 2 + + cor0.col2 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT col2 * - col1 * - col2 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5203
SELECT - col2 * + col1 DIV col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5203
SELECT - col2 * + col1 / col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 20 - 49 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-29

query I rowsort
SELECT col2 * cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + - col2 * + col0 * - 85 + + col2 FROM tab2 AS cor0
----
16092
172406
255208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 36 col2 FROM tab2 AS cor0
----
1368
936
972

query I rowsort
SELECT ALL col0 * + col0 + - ( - col1 ) FROM tab0 AS cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 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-5210
SELECT DISTINCT - col0 - - col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT - col0 - - col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5211
SELECT col1 DIV tab0.col2 - - 69 AS col1 FROM tab0
----
166
70
71

skipif mysql # not compatible
query I rowsort label-5211
SELECT col1 / tab0.col2 - - 69 AS col1 FROM tab0
----
166
70
71

query I rowsort
SELECT + ( + col2 ) * col0 + + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT + - tab0.col0 * + 5 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to c20d0a2c4e3987e594781853eb863f62

query I rowsort
SELECT - cor0.col2 + - ( + col0 ) + - 62 * - col0 FROM tab1 AS cor0
----
129
3847
4784

query I rowsort
SELECT DISTINCT + col1 * + col1 + col0 + col1 FROM tab1 AS cor0
----
174
262
705

query I rowsort
SELECT + - ( - cor0.col1 ) * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + 30 + - col1 FROM tab1 AS cor0
----
-40
-43
-56

query I rowsort
SELECT + + col2 * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + - 53 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT - col0 * ( col2 ) + cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - ( - ( + col0 ) ) FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-15

query I rowsort
SELECT ALL - 72 + 79 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT col2 * + 76 * col0 AS col2 FROM tab0
----
2660
554648
60192

query I rowsort
SELECT ALL - - 28 + col2 FROM tab0 AS cor0
----
110
29
61

query I rowsort
SELECT + 97 AS col1 FROM tab1 AS cor0
----
97
97
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT + cor0.col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5227
SELECT + cor0.col0 / + col2 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5228
SELECT 56 DIV col2 + col0 AS col2 FROM tab0
----
25
89
91

skipif mysql # not compatible
query I rowsort label-5228
SELECT 56 / col2 + col0 AS col2 FROM tab0
----
25
89
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5229
SELECT - CAST( NULL AS DECIMAL ) + + col2 * + col0 * + ( - col2 + tab2.col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT - CAST ( NULL AS REAL ) + + col2 * + col0 * + ( - col2 + tab2.col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col2 * - col0 * col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT col1 * 89 FROM tab0
----
7654
8099
8633

query I rowsort
SELECT tab2.col2 - 57 AS col2 FROM tab2
----
-19
-30
-31

query I rowsort
SELECT 22 + - col0 AS col2 FROM tab0
----
-13
-2
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 + - 8 * col1 * col0 col0 FROM tab0 AS cor0
----
-17088
-28385
-72713

query I rowsort
SELECT col0 + cor0.col1 * + 26 AS col2 FROM tab1 cor0
----
324
418
679

query I rowsort
SELECT ALL - + 34 + col1 * ( 49 ) AS col2 FROM tab0 AS cor0
----
4180
4425
4719

query I rowsort
SELECT DISTINCT - 84 + col0 FROM tab1 AS cor0
----
-20
-4
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5239
SELECT ALL cor0.col2 DIV + col0 + 20 FROM tab1 AS cor0
----
20
21
38

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL cor0.col2 / + col0 + 20 FROM tab1 AS cor0
----
20
21
38

query I rowsort
SELECT - col0 * + col0 + ( + 6 ) FROM tab1 AS cor0
----
-3
-4090
-6394

query I rowsort
SELECT ALL + + 93 + col0 AS col0 FROM tab0 AS cor0
----
117
128
182

query I rowsort
SELECT DISTINCT ( col2 ) * col0 - 52 FROM tab0 AS cor0
----
-17
7246
740

query I rowsort
SELECT ALL + + col0 + + col1 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - 65 * col1 + col1 AS col0 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT ALL - + col1 * - col2 + + 17 * col1 FROM tab1 AS cor0
----
1469
1846
740

query I rowsort
SELECT col0 + col0 + tab2.col0 AS col0 FROM tab2
----
21
234
237

query I rowsort
SELECT DISTINCT + tab0.col2 + 88 AS col0 FROM tab0
----
121
170
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT DISTINCT - tab1.col2 DIV + col0 + tab1.col2 * + col1 FROM tab1
----
1247
1386
570

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - tab1.col2 / + col0 + tab1.col2 * + col1 FROM tab1
----
1247
1386
570

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 19a23ac6b759f8988954bf75ba7c431a

query I rowsort
SELECT ALL col1 + col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + - col2 + - cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + - col1 - ( + 89 ) AS col0 FROM tab2 AS cor0
----
-106
-120
-148

onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT ALL - + col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - + col1 / + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 * 88 AS col1 FROM tab2 AS cor0
----
-1496
-2728
-5192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5255
SELECT col2 + - col0 + 85 DIV + col1 AS col0 FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-5255
SELECT col2 + - col0 + 85 / + col1 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT 94 * col1 AS col2 FROM tab1 AS cor0
----
1222
2444
940

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 / - 40 + - col0 * + CAST ( - col0 AS REAL ) * col2 FROM tab0 AS cor0
----
1225
19008
649520

query I rowsort
SELECT + cor0.col2 + 4 FROM tab0 AS cor0
----
37
5
86

query I rowsort
SELECT - + tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL + 86 * cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
1105
2210
850

query I rowsort
SELECT - ( 91 ) FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT 35 + + 81 AS col2 FROM tab0 AS cor0
----
116

query I rowsort
SELECT - ( + 88 ) AS col1 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - col2 * + 96 AS col0 FROM tab2 AS cor0
----
-2496
-2592
-3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5265
SELECT DISTINCT + + col1 + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT + + col1 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5266
SELECT col2 * CAST( NULL AS SIGNED ) * - col1 + - col2 + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT col2 * CAST ( NULL AS INTEGER ) * - col1 + - col2 + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 50 * 38 AS col2 FROM tab2 AS cor0
----
1821
1822
1893

query I rowsort
SELECT + - col0 * - col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT + - col0 + col0 DIV 47 AS col1 FROM tab1 AS cor0
----
-3
-63
-79

skipif mysql # not compatible
query I rowsort label-5269
SELECT + - col0 + col0 / 47 AS col1 FROM tab1 AS cor0
----
-3
-63
-79

query I rowsort
SELECT - col0 + - col1 * 96 AS col2 FROM tab1 cor0
----
-1024
-1328
-2499

query I rowsort
SELECT + ( + col2 ) * col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5273
SELECT DISTINCT 86 DIV col0 FROM tab1
----
1
28

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT 86 / col0 FROM tab1
----
1
28

query I rowsort
SELECT ALL + 89 FROM tab1
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab0
----
65

query I rowsort
SELECT DISTINCT + col1 * - col1 * - cor0.col1 FROM tab2 cor0
----
205379
29791
4913

query I rowsort
SELECT ALL - - 20 AS col0 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT ALL col1 * + col1 * - 47 FROM tab0
----
-347612
-389207
-442223

query I rowsort
SELECT ALL - col1 + col2 * col1 * - col2 FROM tab1 AS cor0
----
-119821
-32500
-75842

query I rowsort
SELECT - 41 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT col0 + col2 * - col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - col1 * - cor0.col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL col2 + + 92 * 28 AS col1 FROM tab2 AS cor0
----
2602
2603
2614

query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab1, tab1 cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5285
SELECT ALL col1 + + CAST( - col2 AS SIGNED ) + - tab0.col1 * col0 col1 FROM tab0
----
-2011
-3299
-8090

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL col1 + + CAST ( - col2 AS INTEGER ) + - tab0.col1 * col0 col1 FROM tab0
----
-2011
-3299
-8090

query I rowsort
SELECT ALL - - col2 * - cor0.col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT + 53 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT DISTINCT + tab0.col2 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + ( col2 ) * + col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ( - 10 ) * + col1 FROM tab1 cor0
----
-100
-130
-260

query I rowsort
SELECT ( + col1 ) * + col2 * - 51 AS col2 FROM tab2 AS cor0
----
-32946
-42687
-78234

query I rowsort
SELECT - 39 * - col0 FROM tab1 cor0
----
117
2496
3120

query I rowsort
SELECT 23 + + col0 * - col1 FROM tab1
----
-1017
-55
-617

query I rowsort
SELECT + 38 + - col0 * + col1 * + col0 FROM tab2 cor0
----
-106059
-1481
-358918

query I rowsort
SELECT ( cor0.col1 ) * - col2 + 54 AS col0 FROM tab0 AS cor0
----
-2784
-43
-7408

query I rowsort
SELECT + col0 - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 - - col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT + 69 + + col1 AS col0 FROM tab2 AS cor0
----
100
128
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 35 * cor0.col1 FROM tab0 AS cor0
----
-3010
-3185
-3395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5301
SELECT col2 * - CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT col2 * - CAST ( NULL AS INTEGER ) + col2 FROM tab0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

query I rowsort
SELECT ALL col1 + 14 FROM tab1 AS cor0
----
24
27
40

query I rowsort
SELECT DISTINCT - col2 * 57 AS col1 FROM tab2 AS cor0
----
-1482
-1539
-2166

query I rowsort
SELECT tab2.col0 + + 33 * tab2.col2 AS col2 FROM tab2
----
1333
898
936

query I rowsort
SELECT ALL - - 18 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1266
1422
588

query I rowsort
SELECT ALL + - col1 + 85 + + col0 AS col0 FROM tab2 AS cor0
----
104
147
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col0 FROM tab0 cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 + cor0.col2 col1 FROM tab1 cor0
----
132
135
174

query I rowsort
SELECT ALL col1 * + 79 - - cor0.col0 FROM tab1 AS cor0
----
1107
2057
854

query I rowsort
SELECT ALL + + 87 + col2 AS col0 FROM tab2 AS cor0
----
113
114
125

query I rowsort
SELECT ALL ( - col1 ) + col2 * col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL - 48 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-58
-61
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + + cor0.col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT ALL col2 DIV + col0 + - col2 * + tab0.col0 FROM tab0
----
-35
-7298
-791

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL col2 / + col0 + - col2 * + tab0.col0 FROM tab0
----
-35
-7298
-791

query I rowsort
SELECT ALL + 7 + - tab0.col2 FROM tab0
----
-26
-75
6

query I rowsort
SELECT 96 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - + 19 * col0 + 83 AS col1 FROM tab0 AS cor0
----
-1608
-373
-582

onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT ALL + - ( - col0 ) DIV + cor0.col0 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + - ( - col0 ) / + cor0.col0 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - - col1 + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5323
SELECT ALL cor0.col2 + + CAST( + 71 AS SIGNED ) FROM tab1 AS cor0
----
125
128
167

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL cor0.col2 + + CAST ( + 71 AS INTEGER ) FROM tab1 AS cor0
----
125
128
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + + 29 * 61 col1 FROM tab1 AS cor0
----
1823
1826
1865

onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT DISTINCT col1 DIV ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT col1 / ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5326
SELECT DISTINCT + - col2 DIV + cor0.col1 col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT + - col2 / + cor0.col1 col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL + col0 * 99 FROM tab1 AS cor0
----
297
6336
7920

query I rowsort
SELECT + col1 * 0 + col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * + ( + 15 ) col2 FROM tab0
----
109470
11880
525

query I rowsort
SELECT ALL 72 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT ALL col1 + + col0 * 71 FROM tab2
----
528
5597
5626

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5333
SELECT + + col1 + + col1 DIV - col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5333
SELECT + + col1 + + col1 / - col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 - CAST ( ( - col1 ) AS REAL ) AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col2 * + 7 * - 54 + col1 AS col0 FROM tab0 cor0
----
-12388
-281
-30905

query I rowsort
SELECT + col2 * ( - ( col2 ) * ( - 34 ) ) + + cor0.col1 FROM tab1 AS cor0
----
110476
313357
99170

query I rowsort
SELECT ALL + col1 + 25 AS col0 FROM tab0 AS cor0
----
111
116
122

query I rowsort
SELECT DISTINCT col1 + - 62 * col2 FROM tab2 AS cor0
----
-1553
-1643
-2339

query I rowsort
SELECT ALL + 71 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT + col0 * 78 * 67 AS col1 FROM tab2 AS cor0
----
36582
407628
412854

query I rowsort
SELECT DISTINCT - cor0.col0 * 65 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT ALL - - cor0.col1 * 5 FROM tab2 cor0
----
155
295
85

query I rowsort
SELECT + - col0 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT - col1 * + 59 FROM tab1
----
-1534
-590
-767

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT - col2 + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT - col2 + col0 / + col0 AS col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT 57 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT + - col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5347
SELECT + - col1 / + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - ( cor0.col2 ) + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + col0 * 56 AS col0 FROM tab0 cor0
----
1344
1960
4984

onlyif mysql # use DIV operator for integer division
query I rowsort label-5350
SELECT DISTINCT + col2 DIV 39 AS col2 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT + col2 / 39 AS col2 FROM tab0
----
0
2

query I rowsort
SELECT - 53 + cor0.col2 * 46 AS col2 FROM tab2 AS cor0
----
1143
1189
1695

query I rowsort
SELECT ALL - 22 * - col0 + ( - col0 + - col0 * col2 ) FROM tab1 cor0
----
-2304
-6000
-99

query I rowsort
SELECT + col2 * - col0 - 53 FROM tab2 AS cor0
----
-2081
-242
-3055

onlyif mysql # use DIV operator for integer division
query I rowsort label-5354
SELECT ALL 22 DIV + col2 + + 83 AS col2 FROM tab1 cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL 22 / + col2 + + 83 AS col2 FROM tab1 cor0
----
83
83
83

query I rowsort
SELECT 85 * + 12 + - col1 * - col2 * + 51 FROM tab1
----
30090
64668
72624

query I rowsort
SELECT + 5 * + col1 + - col2 * - col2 AS col1 FROM tab1
----
3046
3299
9281

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT ALL 50 DIV - col0 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL 50 / - col0 AS col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT - 27 + + col1 FROM tab1
----
-1
-14
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-5359
SELECT + col2 * col1 + - col2 DIV - tab2.col0 AS col2 FROM tab2
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-5359
SELECT + col2 * col1 + - col2 / - tab2.col0 AS col2 FROM tab2
----
1534
646
840

query I rowsort
SELECT - col1 + - col2 * tab1.col0 AS col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL + ( col2 ) * - col2 + - col1 AS col2 FROM tab2
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT 6 * - col2 + tab2.col1 + + col0 AS col1 FROM tab2
----
-124
-132
-19

query I rowsort
SELECT 24 * col0 + - ( col1 + col0 ) FROM tab2 AS cor0
----
130
1735
1800

query I rowsort
SELECT + cor0.col0 + col1 + - col2 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
-1348
-539
-691

query I rowsort
SELECT DISTINCT + 73 + + col1 FROM tab0 AS cor0
----
159
164
170

query I rowsort
SELECT 64 + + col1 FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT DISTINCT + 75 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
100725
16275
345150

query I rowsort
SELECT ALL + 75 * + col0 + cor0.col0 + col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
14226
2757
4662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 93 + - col2 + + col2 col0 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT col1 * + cor0.col0 + + ( + 79 ) * col2 + col2 DIV + col1 col2 FROM tab0 AS cor0
----
14577
3474
4671

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5370
SELECT col1 * + cor0.col0 + + ( + 79 ) * col2 + col2 / + col1 col2 FROM tab0 AS cor0
----
14577
3474
4671

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT ( - ( + tab1.col2 ) ) AS col2 FROM tab1
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5373
SELECT DISTINCT + CAST( 88 AS SIGNED ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT + CAST ( 88 AS INTEGER ) FROM tab2
----
88

query I rowsort
SELECT ALL 69 * 33 FROM tab1
----
2277
2277
2277

query I rowsort
SELECT - col0 * 77 FROM tab0
----
-1848
-2695
-6853

query I rowsort
SELECT + 84 * tab0.col2 FROM tab0
----
2772
6888
84

query I rowsort
SELECT + - 71 + + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
1177
1333
499

query I rowsort
SELECT + col2 * col1 * - col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + ( 65 ) AS col2 FROM tab2
----
65
65
65

query I rowsort
SELECT col2 * + ( + col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 + cor0.col1 AS col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT - - col0 * - col0 + 51 * col1 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
-3016
-4489
2721

query I rowsort
SELECT - 85 + - col1 AS col2 FROM tab1 AS cor0
----
-111
-95
-98

query I rowsort
SELECT ALL - col0 + cor0.col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL cor0.col0 * ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 19 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT col2 * 45 * col2 FROM tab1 AS cor0
----
131220
146205
414720

query I rowsort
SELECT + col2 + ( col0 ) * col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - col1 + + 77 FROM tab0 cor0
----
-14
-20
-9

query I rowsort
SELECT + col0 * 64 FROM tab1
----
192
4096
5120

query I rowsort
SELECT - tab2.col0 * - ( - col1 + col0 ) AS col2 FROM tab2
----
-168
1482
4898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 77 col2 FROM tab2
----
39
50
51

query I rowsort
SELECT + col2 * 28 AS col1 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT - ( col1 ) + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - ( 55 ) AS col1 FROM tab2 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + 55 + cor0.col1 AS col0 FROM tab2 AS cor0
----
114
72
86

query I rowsort
SELECT - ( - col2 ) - col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5400
SELECT + 59 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT + 59 / col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col0 FROM tab0, tab0 cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT ALL col2 DIV - col1 col0 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL col2 / - col1 col0 FROM tab2
----
-2
0
0

query I rowsort
SELECT + - col0 * 83 AS col0 FROM tab0 AS cor0
----
-1992
-2905
-7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-5405
SELECT DISTINCT + col0 DIV + cor0.col1 AS col0 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + col0 / + cor0.col1 AS col0 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT - col1 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 36 * col0 FROM tab0 cor0
----
1260
3204
864

query I rowsort
SELECT ALL + 60 * - 35 + + col2 AS col2 FROM tab2 AS cor0
----
-2062
-2073
-2074

query I rowsort
SELECT - col1 * + 76 FROM tab0
----
-6536
-6916
-7372

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab0, tab1 AS cor0
----
47

query I rowsort
SELECT - + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL cor0.col2 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 - + ( + col2 ) AS col1 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT ALL - cor0.col0 * + ( cor0.col1 + col1 ) AS col0 FROM tab2 AS cor0
----
-2686
-434
-9204

query I rowsort
SELECT + + 29 + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b4b0118f654dbe56b13160c4ca3f0c68

query I rowsort
SELECT - col2 + + col1 * col1 + - col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
1298
143
242

query I rowsort
SELECT ALL - col1 * + col2 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT col2 * col1 + col1 + col2 FROM tab1 AS cor0
----
1357
1484
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT + cor0.col1 + + col0 * col0 + - col1 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col0 + col1 * + col0 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT tab2.col2 + col0 + col1 FROM tab2
----
134
163
65

query I rowsort
SELECT - col0 + col2 * col2 + - tab0.col1 FROM tab0
----
-131
6544
979

query I rowsort
SELECT DISTINCT - col1 + - tab1.col0 AS col2 FROM tab1
----
-29
-74
-93

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - col2 + col2 * - col2 AS col1 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT - col2 * col2 FROM tab0 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT DISTINCT col2 * col2 + + tab2.col2 AS col0 FROM tab2
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 col1 FROM tab1
----
29
74
93

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT ( NULL ) < + col1
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + col0 * - col2 > NULL
----

query I rowsort
SELECT DISTINCT col0 - col1 * col1 * + col0 AS col0 FROM tab2
----
-22752
-271440
-6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5433
SELECT col0 + col1 DIV + col0 + + tab1.col2 FROM tab1
----
121
176
65

skipif mysql # not compatible
query I rowsort label-5433
SELECT col0 + col1 / + col0 + + tab1.col2 FROM tab1
----
121
176
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5434
SELECT tab0.col0 DIV col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5434
SELECT tab0.col0 / col0 AS col0 FROM tab0
----
1
1
1

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - tab0.col1 - col0 * col0 * - col2 AS col2 FROM tab0
----
1128
18922
649431

query I rowsort
SELECT - + col0 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT ALL + col2 * - col1 * + col2 - tab2.col0 FROM tab2
----
-22606
-24627
-39962

query I rowsort
SELECT ALL - col1 * col1 - + col1 AS col1 FROM tab1
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + + col2 col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + - col2 * col1 - col0 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT - - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col2 * + col2 + - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT ALL col1 + + col1 * + col1 AS col0 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - col1 * - col0 - col1 * col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col0 - - col2 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5447
SELECT + - col0 DIV + col1 + - cor0.col2 * - col0 FROM tab1 AS cor0
----
162
3642
7674

skipif mysql # not compatible
query I rowsort label-5447
SELECT + - col0 / + col1 + - cor0.col2 * - col0 FROM tab1 AS cor0
----
162
3642
7674

query I rowsort
SELECT ALL - col1 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT + cor0.col2 + 63 FROM tab2, tab2 AS cor0
----
101
89
90

query I rowsort
SELECT - 15 * - 3 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL + cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT ALL 96 DIV + col1 + ( + 45 ) * tab0.col1 * - ( col2 ) + col0 AS col1 FROM tab0
----
-127685
-335700
-4330

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL 96 / + col1 + ( + 45 ) * tab0.col1 * - ( col2 ) + col0 AS col1 FROM tab0
----
-127685
-335700
-4330

query I rowsort
SELECT col2 + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5454
SELECT - + cor0.col2 - - col2 DIV cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5454
SELECT - + cor0.col2 - - col2 / cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col1 + - col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - 6 * + col1 AS col0 FROM tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT + col2 + + 80 AS col1 FROM tab1 cor0
----
134
137
176

query I rowsort
SELECT + - cor0.col1 + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - - col1 + - 90 AS col0 FROM tab1 AS cor0
----
-64
-77
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 + + col1 col2 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT ALL + col1 * - col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col1 * - col1 * col2 - - col2 AS col1 FROM tab0 cor0
----
244101
679124
9410

query I rowsort
SELECT ALL col0 + + col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL + 0 + tab2.col1 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT + col0 + - 43 AS col2 FROM tab0 AS cor0
----
-19
-8
46

query I rowsort
SELECT col1 * + col1 * 40 + col0 FROM tab0 cor0
----
295864
331329
376395

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < col1
----

query I rowsort
SELECT col0 * - col0 - - col1 AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + col0 * - col1 IN ( + col1 )
----
26
27
38

query I rowsort
SELECT - col2 + + col2 * + tab1.col1 AS col1 FROM tab1
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT + col2 DIV + col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5471
SELECT + col2 / + col2 AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( tab2.col1 * col0 )
----

query I rowsort
SELECT tab1.col2 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1 WHERE NOT - col2 * + col1 NOT BETWEEN ( col1 * col2 ) AND col2
----

query I rowsort
SELECT + col0 * col2 * col0 FROM tab0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + cor0.col1 * cor0.col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - 17 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT col0 + - col1 DIV - col0 AS col2 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-5478
SELECT col0 + - col1 / - col0 AS col2 FROM tab1
----
11
64
80

query I rowsort
SELECT tab2.col0 + tab2.col0 + col1 * col2 AS col1 FROM tab2
----
1690
804
851

query I rowsort
SELECT DISTINCT 17 + col2 FROM tab0
----
18
50
99

query I rowsort
SELECT ALL ( col2 ) + - tab1.col1 + 15 AS col1 FROM tab1
----
43
62
98

query I rowsort
SELECT DISTINCT tab0.col0 + - col2 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT col2 * ( col1 ) + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT col0 + 69 FROM tab2 cor0
----
147
148
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5485
SELECT - col0 DIV col2 + + 13 AS col1 FROM tab1 AS cor0
----
12
13
13

skipif mysql # not compatible
query I rowsort label-5485
SELECT - col0 / col2 + + 13 AS col1 FROM tab1 AS cor0
----
12
13
13

query I rowsort
SELECT + col1 * - col1 - - cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT 33 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT - 14 * - col0 AS col2 FROM tab0 AS cor0
----
1246
336
490

query I rowsort
SELECT + - 63 * - ( - col0 * - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
258048
403200
567

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5490
SELECT ALL col2 * - col0 + col1 + CAST( cor0.col1 + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-587
-7034
160

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL col2 * - col0 + col1 + CAST ( cor0.col1 + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-587
-7034
160

query I rowsort
SELECT DISTINCT + col1 * 18 - - col0 FROM tab1 cor0
----
244
314
471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * col2 col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - col0 + + col2 col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL - + 32 + col0 - 47 FROM tab0 AS cor0
----
-44
-55
10

query I rowsort
SELECT ALL 89 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT DISTINCT + 88 * col1 AS col0 FROM tab1
----
1144
2288
880

query I rowsort
SELECT DISTINCT + 0 * + col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + col2 * col0 * cor0.col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT 23 AS col1 FROM tab0 cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT DISTINCT - - col0 DIV col2 + + cor0.col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT - - col0 / col2 + + cor0.col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT 4 + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-45
-6080
-6237

query I rowsort
SELECT - - 6 * - 52 AS col2 FROM tab0 cor0
----
-312
-312
-312

query I rowsort
SELECT - col1 * + col2 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT 23 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + - 27 * col2 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT ( - ( col1 ) ) * col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + 89 * + col0 AS col0 FROM tab1
----
267
5696
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT DISTINCT + col1 + - col0 DIV + col1 AS col1 FROM tab2 cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT + col1 + - col0 / + col1 AS col1 FROM tab2 cor0
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + + col0 col2 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL col2 * col1 * - col0 + + col1 * tab2.col2 FROM tab2
----
-118118
-5022
-50388

query I rowsort
SELECT col1 + + col1 + + col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT ALL ( + 49 ) * col0 AS col0 FROM tab1 AS cor0
----
147
3136
3920

query I rowsort
SELECT - 37 * col0 AS col2 FROM tab0 AS cor0
----
-1295
-3293
-888

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT DISTINCT ( - 90 ) DIV + col1 - col1 col1 FROM tab0 AS cor0
----
-87
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT ( - 90 ) / + col1 - col1 col1 FROM tab0 AS cor0
----
-87
-91
-97

query I rowsort
SELECT 35 - - 49 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT - + col2 + + 22 - col0 AS col2 FROM tab1 cor0
----
-154
-35
-99

query I rowsort
SELECT DISTINCT - col2 * - 41 AS col1 FROM tab0 cor0
----
1353
3362
41

query I rowsort
SELECT col0 * 90 + + cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
327
5881
7376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5520
SELECT ALL + CAST( col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL + CAST ( col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + - 11 + col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1236
-587
-7932

query I rowsort
SELECT + - col1 * - 58 * - col0 AS col0 FROM tab2 AS cor0
----
-12586
-266916
-77894

query I rowsort
SELECT - + col0 * col2 - col0 * + 60 FROM tab0 AS cor0
----
-12638
-2135
-2232

query I rowsort
SELECT 16 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
1274
1302
139

query I rowsort
SELECT + - 16 - + col0 * col2 AS col2 FROM tab0 AS cor0
----
-51
-7314
-808

query I rowsort
SELECT DISTINCT - + 74 + + col1 * col0 FROM tab1 AS cor0
----
4
566
966

onlyif mysql # use DIV operator for integer division
query I rowsort label-5527
SELECT + col1 * + 79 + - col0 * + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
2051
726
947

skipif mysql # not compatible
query I rowsort label-5527
SELECT + col1 * + 79 + - col0 * + col1 / col1 AS col0 FROM tab1 AS cor0
----
2051
726
947

query I rowsort
SELECT ALL 33 + + col1 * col1 AS col2 FROM tab1 cor0
----
133
202
709

query I rowsort
SELECT ALL + 62 AS col1 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT ALL + 14 + - ( tab1.col1 ) AS col0 FROM tab1
----
-12
1
4

query I rowsort
SELECT - col1 * ( col1 ) + 66 * col0 AS col1 FROM tab0
----
-2407
-5812
-7099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5532
SELECT DISTINCT 80 DIV tab0.col2 + + tab0.col2 AS col2 FROM tab0
----
35
81
82

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT 80 / tab0.col2 + + tab0.col2 AS col2 FROM tab0
----
35
81
82

query I rowsort
SELECT DISTINCT 6 * 80 - - cor0.col0 FROM tab2, tab1 AS cor0
----
483
544
560

query I rowsort
SELECT cor0.col0 + + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT cor0.col2 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + cor0.col1 * ( + ( cor0.col2 ) ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT ALL + - col1 + ( col2 ) * - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + col1 * 42 + 7 AS col0 FROM tab0
----
3619
3829
4081

query I rowsort
SELECT 6 * + 28 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b1402786d12a73d4fcc946bf6a6fd981

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5542
SELECT DISTINCT + col0 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + col0 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + col0 * - 74 AS col2 FROM tab0
----
-1776
-2590
-6586

query I rowsort
SELECT col1 * col0 + col1 - tab0.col2 FROM tab0
----
2117
3491
8108

query I rowsort
SELECT DISTINCT + 80 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5546
SELECT + tab0.col0 + CAST( + col0 + col2 AS SIGNED ) * 17 * + 43 FROM tab0
----
125090
26351
41691

skipif mysql # not compatible
query I rowsort label-5546
SELECT + tab0.col0 + CAST ( + col0 + col2 AS INTEGER ) * 17 * + 43 FROM tab0
----
125090
26351
41691

query I rowsort
SELECT - col2 * ( + col0 ) + col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL - cor0.col2 * tab1.col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 29760b2f582ecfa8189eb18d08ead3fd

query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0456bcedc217ad4d7d255310d4eb4931

query I rowsort
SELECT + + 6 + col0 AS col2 FROM tab2 AS cor0
----
13
84
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT + 46 DIV col1 AS col2 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-5551
SELECT + 46 / col1 AS col2 FROM tab1
----
1
3
4

query I rowsort
SELECT ALL ( + ( col2 ) ) AS col1 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5553
SELECT ALL 53 DIV col1 + col1 col0 FROM tab2 AS cor0
----
20
32
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL 53 / col1 + col1 col0 FROM tab2 AS cor0
----
20
32
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5554
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5554
SELECT CAST ( NULL AS REAL ) FROM tab1, 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 + ( + cor0.col2 ) + + cor0.col2 * cor0.col1 col2 FROM tab2, tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL cor0.col2 * - col1 * col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-5557
SELECT DISTINCT - col0 * + col2 + + 28 DIV + 5 FROM tab0 AS cor0
----
-30
-7293
-787

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT - col0 * + col2 + + 28 / + 5 FROM tab0 AS cor0
----
-30
-7293
-787

query I rowsort
SELECT ALL col1 * + ( 98 ) AS col0 FROM tab1 AS cor0
----
1274
2548
980

query I rowsort
SELECT DISTINCT + col2 + + col1 * 16 FROM tab2 AS cor0
----
310
523
970

query I rowsort
SELECT DISTINCT + + col2 * ( 71 ) FROM tab1 AS cor0
----
3834
4047
6816

query I rowsort
SELECT ALL + col1 * + 21 AS col1 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT - col0 + col0 * - 16 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT DISTINCT col1 * + ( - 2 * col2 ) + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col2 * 36 + - col1 AS col2 FROM tab1 AS cor0
----
1918
2042
3443

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5565
SELECT ALL col0 + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL col0 + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL col1 + - 38 + + col2 AS col2 FROM tab0 cor0
----
135
60
81

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - col0 + + col1 * + ( + col2 ) AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + 40 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5570
SELECT DISTINCT 21 * tab0.col1 DIV + col0 AS col2 FROM tab0
----
21
58
75

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT 21 * tab0.col1 / + col0 AS col2 FROM tab0
----
21
58
75

query I rowsort
SELECT ALL + cor0.col2 * col1 AS col0 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col2 col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT col2 + + col1 DIV col0 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-5573
SELECT col2 + + col1 / col0 FROM tab0
----
3
36
83

query I rowsort
SELECT ALL col1 * + col2 * col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT col0 + 4 * cor0.col0 AS col0 FROM tab1 cor0
----
15
320
400

query I rowsort
SELECT - col1 * - col0 + col1 + col1 * col2 AS col0 FROM tab0 AS cor0
----
15652
3589
4988

query I rowsort
SELECT + - 7 * cor0.col2 AS col1 FROM tab1 cor0
----
-378
-399
-672

onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT ALL - tab2.col0 DIV - 57 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL - tab2.col0 / - 57 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT + 47 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + ( - col0 ) * col2 + + col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT + 7 DIV col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT + 7 / col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 5 + 82 FROM tab2 cor0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5583
SELECT + 26 + + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-5583
SELECT + 26 + + col0 / col0 AS col2 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT + ( col2 + - tab2.col2 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 + + col1 + col1 AS col2 FROM tab1
----
30
39
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5586
SELECT ( col1 ) - tab0.col2 * 49 DIV col1 FROM tab0
----
47
68
97

skipif mysql # not compatible
query I rowsort label-5586
SELECT ( col1 ) - tab0.col2 * 49 / col1 FROM tab0
----
47
68
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT col2 + + col2 DIV ( + ( cor0.col1 ) ) AS col0 FROM tab2 cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-5587
SELECT col2 + + col2 / ( + ( cor0.col1 ) ) AS col0 FROM tab2 cor0
----
26
27
40

query I rowsort
SELECT DISTINCT - col1 * col2 + 87 * 58 FROM tab0 AS cor0
----
-2416
2208
4949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 63 col0 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT 97 * cor0.col2 FROM tab2, tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT DISTINCT - col1 + - col1 * col0 FROM tab0
----
-2150
-3492
-8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5592
SELECT col0 * col1 + - tab0.col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT col0 * col1 + - tab0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + 14 AS col2 FROM tab2
----
40
41
52

query I rowsort
SELECT ALL - ( col2 ) + - col2 AS col0 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT - col0 * col1 * + col2 AS col2 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 * col2 * 93 FROM tab2 AS cor0
----
134292
62868
67797

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + col2 + + 52 AS col1 FROM tab2 AS cor0
----
1612
736
916

query I rowsort
SELECT - - 83 FROM tab2 cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - - ( + col1 ) FROM tab1 cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 88 col2 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT ALL cor0.col2 + - col1 * - col1 DIV + col1 + + col2 AS col1 FROM tab0 AS cor0
----
152
255
99

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL cor0.col2 + - col1 * - col1 / + col1 + + col2 AS col1 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT ( - col1 ) * + 48 FROM tab2 cor0
----
-1488
-2832
-816

query I rowsort
SELECT + col1 * + col2 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT ALL + col0 DIV cor0.col2 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-576
-7920

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL + col0 / cor0.col2 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-576
-7920

query I rowsort
SELECT + 14 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT col2 * ( + col0 ) * col2 + + col2 - tab0.col0 * + col2 AS col1 FROM tab0
----
1
25377
591220

onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT + col0 DIV - 83 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5608
SELECT + col0 / - 83 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5609
SELECT DISTINCT col0 - + CAST( + col2 AS SIGNED ) * col0 AS col1 FROM tab1
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT col0 - + CAST ( + col2 AS INTEGER ) * col0 AS col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT col1 * + 15 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT col1 * + col0 - + col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5612
SELECT + - col2 DIV + col2 + ( - cor0.col2 ) FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5612
SELECT + - col2 / + col2 + ( - cor0.col2 ) FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT DISTINCT col2 + - col0 * + col0 * col2 FROM tab2 AS cor0
----
-1296
-158158
-237120

query I rowsort
SELECT - col1 + - 85 AS col2 FROM tab2 cor0
----
-102
-116
-144

query I rowsort
SELECT ALL col2 + + ( col1 ) FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col0 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - col0 * - 37 + - col0 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT DISTINCT + 57 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
430
4505
4520

query I rowsort
SELECT ALL - col1 + - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT DISTINCT 66 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3564
-3762
-6336

query I rowsort
SELECT ALL - 52 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT - - 28 * + col0 * + col0 AS col2 FROM tab1 AS cor0
----
114688
179200
252

query I rowsort
SELECT DISTINCT 19 + - col0 * + 92 * - col1 FROM tab0 AS cor0
----
189907
312359
745127

onlyif mysql # use DIV operator for integer division
query I rowsort label-5624
SELECT ALL - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL - col0 / col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col2 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5627
SELECT ALL + col0 DIV cor0.col0 - - ( + 56 ) AS col1 FROM tab0 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + col0 / cor0.col0 - - ( + 56 ) AS col1 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 * col1 - cor0.col2 * + 61 FROM tab1 AS cor0
----
-3587
-3996
-6038

query I rowsort
SELECT + + col0 * + col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col1 + + cor0.col2 + col2 FROM tab1 cor0
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col2 + col1 col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5632
SELECT ALL - col1 + CAST( NULL AS SIGNED ) + col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) + col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT ALL + col2 DIV + 93 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + col2 / + 93 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * - col2 - - ( cor0.col2 + col0 ) AS col2 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT ALL - - col0 + - col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT 86 + col0 AS col1 FROM tab1
----
150
166
89

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col0 + - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - 56 * cor0.col0 FROM tab1 AS cor0
----
-168
-3584
-4480

query I rowsort
SELECT ALL + col2 + - 95 AS col0 FROM tab0 AS cor0
----
-13
-62
-94

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + col2 * + ( col1 ) FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT + - col1 + - col2 * cor0.col2 AS col1 FROM tab0 cor0
----
-1175
-6815
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 51 * col0 ) + ( + 55 ) col0 FROM tab1
----
208
3319
4135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * - 31 col2 FROM tab1 cor0
----
-1984
-1984
-1984

query I rowsort
SELECT ALL + col2 * + 48 FROM tab0 AS cor0
----
1584
3936
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5645
SELECT ALL CAST( ( - col2 ) AS SIGNED ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL CAST ( ( - col2 ) AS INTEGER ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT + + 93 * col1 + ( col2 ) FROM tab0 AS cor0
----
8031
8545
9022

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5648
SELECT ALL + col2 + col2 * CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL + col2 + col2 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - col1 * cor0.col0 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT 33 + + 30 AS col1 FROM tab1
----
63
63
63

query I rowsort
SELECT col0 * + 31 + + col1 AS col1 FROM tab0
----
1182
2850
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5653
SELECT ALL CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT DISTINCT ( cor0.col1 ) * col1 + + col2 DIV + col1 FROM tab2 AS cor0
----
291
3481
961

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT ( cor0.col1 ) * col1 + + col2 / + col1 FROM tab2 AS cor0
----
291
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT ALL 85 DIV col0 AS col0 FROM tab2
----
1
1
12

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL 85 / col0 AS col0 FROM tab2
----
1
1
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 24 col1 FROM tab2
----
-17
54
55

query I rowsort
SELECT DISTINCT ( - col0 ) * - col0 AS col2 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT ALL + col1 * tab0.col1 DIV col2 AS col1 FROM tab0
----
100
224
9409

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + col1 * tab0.col1 / col2 AS col1 FROM tab0
----
100
224
9409

query I rowsort
SELECT ALL - tab2.col2 * - col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT - + 2 + - col1 * col0 FROM tab1 AS cor0
----
-1042
-642
-80

query I rowsort
SELECT + - col1 * + 20 + + col1 FROM tab2 AS cor0
----
-1121
-323
-589

onlyif mysql # use DIV operator for integer division
query I rowsort label-5662
SELECT DISTINCT - col0 DIV + col2 + col0 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT - col0 / + col2 + col0 FROM tab1
----
3
63
80

query I rowsort
SELECT - col1 + + col1 * ( - col2 ) AS col2 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT ALL + col1 + cor0.col0 * 30 FROM tab2 AS cor0
----
2387
2399
241

query I rowsort
SELECT ALL 96 AS col1 FROM tab2
----
96
96
96

query I rowsort
SELECT - + col0 * col1 + + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL + - col1 + 29 * + col1 FROM tab1 AS cor0
----
280
364
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 col0 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5669
SELECT CAST( NULL AS SIGNED ) * 51 / + col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT CAST ( NULL AS INTEGER ) * 51 / + col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 30 * 77 * + col1 AS col1 FROM tab2 AS cor0
----
-136290
-39270
-71610

query I rowsort
SELECT ALL - 69 * col0 + col2 AS col1 FROM tab1 cor0
----
-153
-4359
-5424

query I rowsort
SELECT DISTINCT - col0 * 59 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT DISTINCT 29 * col1 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT ALL - - 65 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT ALL - - col2 * col0 + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + + cor0.col1 + + col1 * col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL - col1 + ( tab1.col2 ) AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - col1 + 64 AS col2 FROM tab0 AS cor0
----
-22
-27
-33

query I rowsort
SELECT DISTINCT + + ( - col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT ALL - ( - col1 ) DIV col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL - ( - col1 ) / col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 * + 5 + - col0 FROM tab0 AS cor0
----
366
406
450

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5682
SELECT col0 * - col2 - + CAST( col2 + - col2 AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5682
SELECT col0 * - col2 - + CAST ( col2 + - col2 AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 * - col1 + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT col1 + col0 * - col0 - 77 FROM tab1 AS cor0
----
-4163
-60
-6464

onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT DISTINCT + col0 + col1 + col1 DIV + col1 AS col2 FROM tab2
----
138
39
97

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT + col0 + col1 + col1 / + col1 AS col2 FROM tab2
----
138
39
97

query I rowsort
SELECT col0 * - col0 + ( + col0 ) * + col2 - + ( col2 + col2 ) FROM tab0 AS cor0
----
-1192
-787
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-5687
SELECT - col2 DIV - col2 + + 91 - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2156
3487
8191

skipif mysql # not compatible
query I rowsort label-5687
SELECT - col2 / - col2 + + 91 - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2156
3487
8191

query I rowsort
SELECT 88 * - col1 * 82 FROM tab0
----
-620576
-656656
-699952

query I rowsort
SELECT DISTINCT tab2.col2 * + col1 AS col2 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT ALL - col2 DIV + col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - col2 / + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + col2 * + col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL - 91 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT ALL + col1 * 53 * col2 AS col2 FROM tab2 cor0
----
34238
44361
81302

onlyif mysql # use DIV operator for integer division
query I rowsort label-5694
SELECT col2 DIV 57 AS col1 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5694
SELECT col2 / 57 AS col1 FROM tab1 cor0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5695
SELECT - + col2 * + CAST( NULL AS SIGNED ) + col2 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT - + col2 * + CAST ( NULL AS INTEGER ) + col2 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT ALL + col2 DIV + 57 + col1 FROM tab0 cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + col2 / + 57 + col1 FROM tab0 cor0
----
86
92
97

query I rowsort
SELECT col0 + ( cor0.col2 ) * cor0.col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - col0 * 81 * - col1 + - col0 FROM tab2 AS cor0
----
108704
17570
372684

query I rowsort
SELECT DISTINCT - + col0 * + 89 FROM tab2 AS cor0
----
-623
-6942
-7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT ALL - 43 DIV tab0.col1 - ( col0 ) AS col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL - 43 / tab0.col1 - ( col0 ) AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col0 - col2 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT 61 - col2 FROM tab1
----
-35
4
7

query I rowsort
SELECT - cor0.col0 * tab0.col2 + 27 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 256632c90045badd7a3121e8eef75a2c

query I rowsort
SELECT ALL col2 + - col0 * - 4 FROM tab0
----
129
141
438

query I rowsort
SELECT + col0 - - col0 * - col2 AS col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL tab0.col0 + col2 + - col2 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col0 * + ( + col2 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + col1 * ( + cor0.col0 ) + + col0 * col0 * - col2 AS col2 FROM tab0 cor0
----
-16944
-641423
2170

query I rowsort
SELECT + col2 + - ( col0 ) * + col0 - col0 FROM tab2
----
-29
-6136
-6282

query I rowsort
SELECT - - col1 * col2 + + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab1, tab0 AS cor0
----
31

query I rowsort
SELECT - 93 * + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f4e18f49e4c3952dfb7e8b4a7860d7f5

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab0
----
-7

query I rowsort
SELECT - col0 * + col2 - - col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5715
SELECT + ( col0 ) DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT + ( col0 ) / col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col2 col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT + 3 - col0 AS col0 FROM tab1
----
-61
-77
0

query I rowsort
SELECT DISTINCT col2 * col2 + cor0.col2 * - 73 + - col1 AS col1 FROM tab2 AS cor0
----
-1273
-1281
-1347

query I rowsort
SELECT ALL col1 + - col2 - col0 * col2 AS col2 FROM tab1 AS cor0
----
-190
-3695
-7763

query I rowsort
SELECT - - col0 * + col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - col2 * - col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col0 * col2 + - col1 FROM tab0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 col2 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE NOT NULL <> ( - col2 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT + col1 * col2 DIV - col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5726
SELECT + col1 * col2 / - col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - - col1 + + col2 + - col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5728
SELECT - - cor0.col1 DIV + col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5728
SELECT - - cor0.col1 / + col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL - + col2 * - col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT DISTINCT + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + col2 / + col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 + - col2 * col1 AS col2 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT 97 - col1 FROM tab1 AS cor0
----
71
84
87

query I rowsort
SELECT DISTINCT - col0 * - col0 + + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 - cor0.col0 * col0 col1 FROM tab0 cor0
----
-1226
-609
-8003

query I rowsort
SELECT + 27 * col2 + - col2 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT col1 + tab2.col0 + - col2 * col0 FROM tab2
----
-151
-1891
-2906

onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT ALL + 61 DIV col1 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + 61 / col1 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + col1 * col2 * tab2.col1 AS col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL - + col2 + col1 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT - ( col1 + col2 ) * + col2 FROM tab2
----
-1566
-2090
-2210

query I rowsort
SELECT col2 + col0 + col2 AS col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * + col0 FROM tab1 cor0
----
4153
63
6496

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT ALL tab2.col2 * + col2 + - col1 FROM tab2
----
1427
617
698

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 - - col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT - col0 DIV + col1 col2 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5748
SELECT - col0 / + col1 col2 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * col1 col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT col0 + col2 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT col2 - - col1 / col0 NOT IN ( + col2 * col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5752
SELECT ALL col0 * col2 DIV col2 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL col0 * col2 / col2 AS col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + cor0.col2 col1 FROM tab2 AS cor0
----
55
58
85

query III rowsort
SELECT * FROM tab2 WHERE - col1 = ( col1 )
----

query I rowsort
SELECT - col0 + col0 * + tab0.col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT - 1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-79
-8
-80

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + col1
----

query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT + cor0.col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col2 * col1 FROM tab2 AS cor0 WHERE + col2 - - col0 = + cor0.col2 * col0
----

query I rowsort
SELECT col2 * col0 + + col2 * tab2.col1 FROM tab2
----
1026
3562
3648

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( col1 + - col0 * col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + tab1.col2 AS col1 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5764
SELECT ALL tab2.col1 DIV + col1 + - tab2.col1 * - col2 AS col1 FROM tab2
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL tab2.col1 / + col1 + - tab2.col1 * - col2 AS col1 FROM tab2
----
1535
647
838

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NULL >= ( col2 )
----

query I rowsort
SELECT - col1 * col2 * + tab0.col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - col2 + + tab2.col1 + - col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - tab2.col0 + col1 + - col1 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT col2 + col1 AS col2 FROM tab2 WHERE NOT col1 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT - col2 DIV col1 + + col1 AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5771
SELECT - col2 / col1 + + col1 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - col2 + col1 * + col0 AS col1 FROM tab1
----
24
583
944

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN ( col0 ) AND + col2 / col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT col1 + col0 IN ( col1 + + tab0.col1 )
----
86
91
97

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + col2 NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col0 * - col0 * - col2 AS col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - col2 + col2 * + col0 FROM tab2
----
162
2002
2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5778
SELECT + 37 * + tab1.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT + 37 * + tab1.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col1 + + col0 FROM tab2
----
175
215
45

query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL - tab1.col0 + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - col0 * 84 AS col2 FROM tab0 AS cor0
----
-1930
-2843
-7385

query I rowsort
SELECT - ( - 38 ) - col2 FROM tab2 AS cor0
----
0
11
12

query I rowsort
SELECT + + 76 * - col1 FROM tab2 AS cor0
----
-1292
-2356
-4484

onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT - + col2 DIV + 99 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5785
SELECT - + col2 / + 99 + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5786
SELECT + - CAST( NULL AS SIGNED ) * col2 + cor0.col2 / col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5786
SELECT + - CAST ( NULL AS INTEGER ) * col2 + cor0.col2 / col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5787
SELECT - CAST( - col0 AS SIGNED ) + col0 col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5787
SELECT - CAST ( - col0 AS INTEGER ) + col0 col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - ( + 75 ) AS col2 FROM tab0, tab0 AS cor0
----
-75

query I rowsort
SELECT - 40 * + ( col2 ) - + cor0.col1 FROM tab2 AS cor0
----
-1099
-1111
-1537

onlyif mysql # use DIV operator for integer division
query I rowsort label-5790
SELECT DISTINCT - col1 DIV + 30 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT - col1 / + 30 AS col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5791
SELECT ALL - CAST( col2 AS SIGNED ) + col2 * 80 AS col1 FROM tab2 AS cor0
----
2054
2133
3002

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL - CAST ( col2 AS INTEGER ) + col2 * 80 AS col1 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT + + col1 - 64 FROM tab0 AS cor0
----
22
27
33

query I rowsort
SELECT ALL + ( col0 ) * + cor0.col2 + + ( - 33 ) AS col0 FROM tab1 AS cor0
----
129
3615
7647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col1 ) ) + col1 col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - ( col0 * col2 ) - col0 FROM tab2
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - - col2 * + col1 col1 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + + 32 + - cor0.col1 FROM tab2 AS cor0
----
-27
1
15

query I rowsort
SELECT DISTINCT + - ( + col1 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - cor0.col0 + 45 * col2 AS col1 FROM tab1 AS cor0
----
2427
2501
4240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5800
SELECT CAST( col1 AS SIGNED ) + - cor0.col0 col1 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5800
SELECT CAST ( col1 AS INTEGER ) + - cor0.col0 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + 13 + - col2 AS col0 FROM tab2 AS cor0
----
-13
-14
-25

query I rowsort
SELECT ALL - 66 * col0 AS col0 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT DISTINCT col2 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - col2 + + col1 + + col1 col0 FROM tab2 AS cor0
----
-1410
-558
-667

query I rowsort
SELECT DISTINCT col1 * cor0.col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT col0 * - col0 * col1 - col1 AS col2 FROM tab0 AS cor0
----
-118922
-49622
-720902

query I rowsort
SELECT - 24 + + col0 * col0 * col1 AS col1 FROM tab2 AS cor0
----
106073
1495
358932

query I rowsort
SELECT DISTINCT ( - col2 ) + - col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col2 - - col2 * col1 FROM tab2 cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-5810
SELECT + ( col1 ) DIV - col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5810
SELECT + ( col1 ) / - col1 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT + tab2.col0 DIV ( - col0 * + col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT + tab2.col0 / ( - col0 * + col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + tab0.col1 * + col2 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT col0 + + 28 + col1 * col2 FROM tab2
----
1640
753
872

query I rowsort
SELECT + tab0.col2 + col0 - + col0 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT col1 * tab0.col1 + + col0 AS col1 FROM tab0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT ALL - col1 * + ( + cor0.col1 * cor0.col0 ) + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-13513
-2026
-6395

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - col1 * + ( + cor0.col1 * cor0.col0 ) + col2 / col1 AS col2 FROM tab1 AS cor0
----
-13513
-2026
-6395

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col1 * - ( - col2 + - col2 ) FROM tab0 AS cor0
----
1223768
187308
194

query I rowsort
SELECT + col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL + col1 * cor0.col0 + 41 * + col1 * cor0.col0 + col0 * - col2 FROM tab0 AS cor0
----
142555
332860
85896

query I rowsort
SELECT DISTINCT + - col1 * - 62 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT ALL col0 * + 61 FROM tab0 AS cor0
----
1464
2135
5429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + - col2 + 91 FROM tab1 AS cor0
----
-5
34
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5824
SELECT DISTINCT - col2 * CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT - col2 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * tab1.col0 col1 FROM tab1
----
-1088
-1360
-51

query I rowsort
SELECT - ( - col2 * - ( - 38 ) ) AS col0 FROM tab1
----
2052
2166
3648

query I rowsort
SELECT - tab1.col0 + + 12 FROM tab1
----
-52
-68
9

query I rowsort
SELECT - + col2 * 83 + + col1 AS col2 FROM tab1 cor0
----
-4456
-4721
-7955

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5829
SELECT DISTINCT cor0.col0 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT cor0.col0 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL + - col1 * ( col1 + + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-14792
-16562
-18818

query I rowsort
SELECT DISTINCT - + col0 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + - col0 * 2 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT + col1 * 92 FROM tab0 cor0
----
7912
8372
8924

query I rowsort
SELECT ALL + cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col0 + + 94 * 60 FROM tab0 AS cor0
----
5551
5605
5616

query I rowsort
SELECT ALL - + col1 * - col0 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT tab0.col0 * tab0.col0 + col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT 75 + col0 FROM tab1
----
139
155
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT col0 DIV + tab0.col2 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5839
SELECT col0 / + tab0.col2 AS col1 FROM tab0
----
0
1
35

query I rowsort
SELECT - col1 * - 34 + - 42 * - col1 * + col0 FROM tab1 AS cor0
----
27220
4160
44122

query I rowsort
SELECT col2 * col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT tab0.col2 + col0 - + col2 AS col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT + col0 + + ( col1 ) DIV col0 FROM tab1 cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-5843
SELECT + col0 + + ( col1 ) / col0 FROM tab1 cor0
----
11
64
80

query I rowsort
SELECT DISTINCT 54 FROM tab0, tab0 cor0, tab2, tab1 AS cor1
----
54

query I rowsort
SELECT DISTINCT + + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT ALL col2 DIV + col0 + + col0 + + col0 AS col2 FROM tab0
----
178
49
70

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL col2 / + col0 + + col0 + + col0 AS col2 FROM tab0
----
178
49
70

query I rowsort
SELECT ALL - 83 * + col1 + 27 AS col2 FROM tab0
----
-7111
-7526
-8024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5848
SELECT ALL col0 / col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL col0 / col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab0.col0 * - col0 + + col1 * + 72 FROM tab0
----
-1369
5616
5759

query I rowsort
SELECT DISTINCT - - col1 + - col2 * col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
-3068
-6419
1268

query I rowsort
SELECT - 75 * - col1 AS col2 FROM tab2 AS cor0
----
1275
2325
4425

onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT DISTINCT col0 DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT col0 / - col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT + ( + col2 ) DIV - ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5853
SELECT + ( + col2 ) / - ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + ( - cor0.col2 ) AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + col1 + + col2 - col2 * - col0 AS col2 FROM tab2 AS cor0
----
2113
247
3057

onlyif mysql # use DIV operator for integer division
query I rowsort label-5856
SELECT 23 DIV + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5856
SELECT 23 / + col1 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
59

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT ALL ( - tab2.col1 ) + + col1 DIV col0 FROM tab2
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL ( - tab2.col1 ) + + col1 / col0 FROM tab2
----
-17
-27
-59

query I rowsort
SELECT col0 * col2 - 79 FROM tab2 AS cor0
----
110
1949
2923

query I rowsort
SELECT ALL col0 * col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - - ( + col1 ) + col2 - - cor0.col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT + 11 + col2 FROM tab1 AS cor0
----
107
65
68

query I rowsort
SELECT 68 * + col1 FROM tab2 AS cor0
----
1156
2108
4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-5865
SELECT - 38 DIV - tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5865
SELECT - 38 / - tab0.col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 50 col2 FROM tab0 AS cor0
----
-39
15
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT + col0 DIV + col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5867
SELECT + col0 / + col0 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT col2 * - ( + col0 ) AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col2 * ( + col2 ) AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT + + col2 + 31 * col1 FROM tab0 AS cor0
----
2699
2903
3008

query I rowsort
SELECT + - 15 FROM tab2, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT col1 DIV + ( - col1 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5872
SELECT col1 / + ( - col1 ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 + - 74 FROM tab2 cor0
----
-15
-43
-57

query I rowsort
SELECT DISTINCT tab0.col1 * + 59 FROM tab0
----
5074
5369
5723

query I rowsort
SELECT DISTINCT - col1 * + 39 AS col2 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT DISTINCT 81 * col1 FROM tab1
----
1053
2106
810

query I rowsort
SELECT - - cor0.col2 * col1 * col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - 90 * col0 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + + 57 + col2 + col0 AS col0 FROM tab2 AS cor0
----
161
174
91

query I rowsort
SELECT DISTINCT - col2 - col1 * col2 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT - ( + 21 ) AS col2 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT - - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - 6 AS col2 FROM tab2
----
-6

query I rowsort
SELECT ALL + + cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5886
SELECT - col2 DIV - cor0.col2 + col0 - col1 * - 51 FROM tab1 AS cor0
----
1330
575
744

skipif mysql # not compatible
query I rowsort label-5886
SELECT - col2 / - cor0.col2 + col0 - col1 * - 51 FROM tab1 AS cor0
----
1330
575
744

query I rowsort
SELECT + + col0 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL tab0.col0 + - 24 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to b571dd9e558034a3e145db407213d6ba

query I rowsort
SELECT DISTINCT 85 * + 36 - + col1 * - col0 FROM tab2
----
3277
4403
7662

query I rowsort
SELECT ALL 54 * col0 * - col2 AS col1 FROM tab1
----
-196992
-414720
-8748

query I rowsort
SELECT DISTINCT col0 * + 90 FROM tab2
----
630
7020
7110

query I rowsort
SELECT + + ( + ( col0 ) ) * col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - 34 - - 88 FROM tab0
----
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5894
SELECT col1 * ( col2 ) + col1 + + tab1.col1 DIV + col0 AS col2 FROM tab1
----
1261
1438
580

skipif mysql # not compatible
query I rowsort label-5894
SELECT col1 * ( col2 ) + col1 + + tab1.col1 / + col0 AS col2 FROM tab1
----
1261
1438
580

query I rowsort
SELECT ALL 36 + + col1 - + col2 FROM tab2
----
15
40
69

query I rowsort
SELECT ALL - tab2.col2 AS col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT DISTINCT - col2 * - ( col1 ) * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + 22 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT DISTINCT - 25 DIV col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - 25 / col0 FROM tab1
----
-8
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5900
SELECT + col0 + + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-5900
SELECT + col0 + + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
14
156
158

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

query I rowsort
SELECT col1 + - 21 AS col2 FROM tab0 AS cor0
----
65
70
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5903
SELECT - col2 + - ( + col0 ) DIV + cor0.col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-5903
SELECT - col2 + - ( + col0 ) / + cor0.col2 FROM tab0 AS cor0
----
-33
-36
-83

query I rowsort
SELECT ALL - col2 * ( 12 ) FROM tab1
----
-1152
-648
-684

query I rowsort
SELECT DISTINCT - col1 + col1 + + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col1 * 95 AS col1 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT DISTINCT + 93 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
93

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 cor1, tab2, tab1 cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 + - ( - col2 + + col1 ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-969
1350
288

query I rowsort
SELECT col2 + col1 * - tab1.col0 AS col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL + ( 23 ) FROM tab2 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - + cor0.col0 - + ( - cor0.col2 ) * ( + 88 ) AS col1 FROM tab2 AS cor0
----
2210
2369
3265

onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT DISTINCT + col0 - col1 DIV col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT + col0 - col1 / col0 FROM tab0 AS cor0
----
21
33
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5914
SELECT ALL CAST( - 33 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-1155
-2937
-792

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL CAST ( - 33 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-1155
-2937
-792

query I rowsort
SELECT cor0.col0 * - col0 * - col1 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col1 + + 45 FROM tab1 AS cor0
----
55
58
71

query I rowsort
SELECT - col0 + col2 * + col1 * col1 AS col0 FROM tab2 cor0
----
10903
25940
90428

query I rowsort
SELECT DISTINCT 44 * col1 + col2 AS col1 FROM tab1 cor0
----
1198
497
668

query I rowsort
SELECT ALL + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL ( + col1 ) + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + 13 * col0 + - col2 * ( - col1 ) + + col1 * ( + col1 + col2 ) AS col1 FROM tab1 AS cor0
----
2072
3523
3705

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5923
SELECT - - CAST( + 73 AS SIGNED ) FROM tab2 cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-5923
SELECT - - CAST ( + 73 AS INTEGER ) FROM tab2 cor0
----
73
73
73

query I rowsort
SELECT DISTINCT 98 + - col1 AS col2 FROM tab1 cor0
----
72
85
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - ( - ( col1 ) ) + - 87 FROM tab2 AS cor0
----
-28
-56
-70

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 - col1 * + col0 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + - cor0.col1 * col2 + 31 * - col1 AS col2 FROM tab1 AS cor0
----
-1651
-2210
-880

query I rowsort
SELECT ( - col1 ) + + 56 AS col0 FROM tab2 AS cor0
----
-3
25
39

query I rowsort
SELECT - 39 + col0 FROM tab1 AS cor0
----
-36
25
41

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab1 AS cor0
----
25

query I rowsort
SELECT - col0 * + col2 * + ( + col0 ) + col0 AS col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT DISTINCT + 58 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT - cor0.col1 * + cor0.col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - - col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col2 + - ( - 84 ) FROM tab1 cor0
----
138
141
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 - cor0.col0 col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col1 + + ( - 4 ) FROM tab1 cor0
----
22
6
9

query I rowsort
SELECT ( col2 ) * 95 * tab0.col0 FROM tab0
----
3325
693310
75240

onlyif mysql # use DIV operator for integer division
query I rowsort label-5942
SELECT DISTINCT + tab0.col0 DIV - col0 + - 11 col0 FROM tab0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT + tab0.col0 / - col0 + - 11 col0 FROM tab0
----
-12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT DISTINCT CAST( - 9 AS SIGNED ) * - col0 FROM tab0
----
216
315
801

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT CAST ( - 9 AS INTEGER ) * - col0 FROM tab0
----
216
315
801

query I rowsort
SELECT ALL + 40 + 92 * + col2 * + col1 FROM tab1
----
114856
129208
52480

query I rowsort
SELECT DISTINCT 57 * 50 FROM tab2, tab1, tab2 AS cor0
----
2850

query I rowsort
SELECT ALL + col2 * + col2 + + col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT - tab2.col2 + cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 78ee409ace216f2d5d943a54975c94c1

query I rowsort
SELECT DISTINCT 37 + ( col1 ) * ( - col0 ) FROM tab2 AS cor0
----
-1306
-180
-4565

query I rowsort
SELECT - 22 - - 89 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT col2 * - col2 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - - 29 FROM tab0 cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 * col1 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5953
SELECT - - CAST( NULL AS DECIMAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT - - CAST ( NULL AS REAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - 20 FROM tab0 AS cor0
----
66
71
77

query I rowsort
SELECT ALL - 3 * - col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT - col2 * - col0 + - col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT ALL - - col1 + - col0 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - - col1 + - col0 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5958
SELECT + + col1 DIV col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5958
SELECT + + col1 / col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 + - 49 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT + 36 + + col0 FROM tab0 AS cor0
----
125
60
71

query I rowsort
SELECT DISTINCT - - col2 * + col2 AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 51855bb230a34802a628192d3e332a79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5963
SELECT - col0 * col2 + col2 DIV + col0 + cor0.col1 * + col1 * + col0 col2 FROM tab0 AS cor0
----
176713
329280
729711

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5963
SELECT - col0 * col2 + col2 / + col0 + cor0.col1 * + col1 * + col0 col2 FROM tab0 AS cor0
----
176713
329280
729711

query I rowsort
SELECT - ( + cor0.col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col0 * ( 97 ) AS col0 FROM tab1 AS cor0
----
291
6208
7760

query I rowsort
SELECT ALL + col0 + - 19 FROM tab2 AS cor0
----
-12
59
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5968
SELECT DISTINCT cor0.col2 * + CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT cor0.col2 * + CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL + col1 * - 12 AS col2 FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT ALL col1 * - cor0.col0 + ( - col0 ) FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + col1 + - col0 * col2 AS col0 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT + + cor0.col1 * + cor0.col1 * - col1 AS col1 FROM tab0 cor0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL col2 * - ( col2 ) - - col1 * + col1 AS col0 FROM tab1 cor0
----
-2240
-3149
-9047

query I rowsort
SELECT ALL col1 * + 10 * col1 + - col2 * col0 * col2 AS col2 FROM tab0 AS cor0
----
-515626
47824
94055

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5975
SELECT - + col0 + CAST( + col1 AS SIGNED ) * + col1 col0 FROM tab2 cor0
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5975
SELECT - + col0 + CAST ( + col1 AS INTEGER ) * + col1 col0 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT col1 - 14 FROM tab2
----
17
3
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * col1 col0 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT 87 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT col2 * + 34 AS col2 FROM tab1 cor0
----
1836
1938
3264

query I rowsort
SELECT 98 + - col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1059
3579
387

query I rowsort
SELECT - ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5982
SELECT - CAST( - 62 AS SIGNED ) FROM tab2 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-5982
SELECT - CAST ( - 62 AS INTEGER ) FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT ALL - ( col0 ) * col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - col1 * 27 AS col1 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT col2 * - 98 FROM tab1 AS cor0
----
-5292
-5586
-9408

query I rowsort
SELECT - + col2 * - col2 + col1 * cor0.col0 + - 38 AS col2 FROM tab0 AS cor0
----
14785
3115
3358

query I rowsort
SELECT - 28 * 45 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b5b3eb88ba35f0d366c930f7e7c8859c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5989
SELECT DISTINCT + col1 + - CAST( col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT + col1 + - CAST ( col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col1 + cor0.col1 + 14 AS col0 FROM tab0 AS cor0
----
186
196
208

query I rowsort
SELECT col2 + col2 * col2 * + col2 AS col1 FROM tab0
----
2
35970
551450

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + + ( - cor0.col2 ) FROM tab1 AS cor0
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT DISTINCT - 42 DIV + col2 + col2 * col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT - 42 / + col2 + col2 * col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5994
SELECT - col1 * col1 * CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
22831
271518
6727

skipif mysql # not compatible
query I rowsort label-5994
SELECT - col1 * col1 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT col0 + 93 * col0 - col0 * ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
2730
441
6083

query I rowsort
SELECT ALL + + col2 + - col0 + + 47 AS col1 FROM tab0 AS cor0
----
13
40
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-5997
SELECT ALL + col1 + 92 DIV 15 FROM tab0 AS cor0
----
103
92
97

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + col1 + 92 / 15 FROM tab0 AS cor0
----
103
92
97

query I rowsort
SELECT - col2 * + 94 FROM tab0 AS cor0
----
-3102
-7708
-94

query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 - col0 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT - + col2 * cor0.col0 + col2 * col2 AS col1 FROM tab2 AS cor0
----
-1352
-1558
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 65 col1 FROM tab0 AS cor0
----
1560
2275
5785

query I rowsort
SELECT + + 1 * col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL 3 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

query I rowsort
SELECT + cor0.col1 * 40 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
1118
1560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 44 * - 57 + + col1 col0 FROM tab0 AS cor0
----
2594
2599
2605

query I rowsort
SELECT ALL col2 * col0 + - col0 AS col1 FROM tab2 cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 - col0 col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - cor1.col2 * - 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to b71f29d713903c700e8fcb7b370e3599

query I rowsort
SELECT DISTINCT - 1 * tab0.col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 65 * - col1 + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT ALL col2 * col2 - col0 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT - 35 * - col0 AS col0 FROM tab0
----
1225
3115
840

query I rowsort
SELECT ALL + 28 * - 86 FROM tab2
----
-2408
-2408
-2408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL + ( 24 ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT 93 * + col2 AS col2 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT DISTINCT - 34 * - cor0.col2 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT ALL - 89 * + 59 + col1 * tab1.col0 FROM tab1
----
-4211
-4611
-5173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 + col0 col1 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * tab1.col1 col1 FROM tab1
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col0 col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + 85 * - 20 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3d679a106f0a1261bc3562923deaef75

query I rowsort
SELECT ALL + 79 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT ALL 53 * col0 AS col1 FROM tab1 AS cor0
----
159
3392
4240

query I rowsort
SELECT ALL + col2 - - tab2.col1 AS col1 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT + tab0.col0 + ( - col2 ) DIV tab0.col0 - - col2 * + col1 AS col1 FROM tab0
----
132
2861
7551

skipif mysql # not compatible
query I rowsort label-6026
SELECT + tab0.col0 + ( - col2 ) / tab0.col0 - - col2 * + col1 AS col1 FROM tab0
----
132
2861
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT col2 * + col0 + + 35 DIV + col0 AS col2 FROM tab0
----
36
7298
793

skipif mysql # not compatible
query I rowsort label-6027
SELECT col2 * + col0 + + 35 / + col0 AS col2 FROM tab0
----
36
7298
793

query I rowsort
SELECT DISTINCT col1 * + col1 * col1 - col1 AS col1 FROM tab1
----
17550
2184
990

query I rowsort
SELECT - col2 * ( + col2 ) - - col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT - col1 * + col1 + - 55 * col0 + - col2 FROM tab1
----
-3677
-4665
-895

query I rowsort
SELECT - col0 + - 15 * col2 + - col0 FROM tab1
----
-1600
-816
-983

query I rowsort
SELECT tab1.col2 + - tab1.col1 + - 84 AS col2 FROM tab1
----
-1
-37
-56

query I rowsort
SELECT ALL ( col1 ) + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + ( - col0 ) + col0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL 50 * col0 + - cor0.col0 * + col2 * 63 FROM tab0 AS cor0
----
-455
-455324
-48696

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * + col2 * 23 FROM tab0 AS cor0
----
-154570
-22
-25014

query I rowsort
SELECT + col1 * - col0 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-1209
-740
-754

query I rowsort
SELECT ALL ( col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT ( col2 ) DIV - col2 + + cor0.col1 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-9

skipif mysql # not compatible
query I rowsort label-6039
SELECT ( col2 ) / - col2 + + cor0.col1 / - col0 FROM tab1 AS cor0
----
-1
-1
-9

query I rowsort
SELECT DISTINCT + col1 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6041
SELECT - CAST( NULL AS SIGNED ) / col0 + + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT - CAST ( NULL AS INTEGER ) / col0 + + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 * 95 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT - ( + 66 ) + col1 * + col2 * + col2 AS col0 FROM tab2 AS cor0
----
22533
24482
39818

query I rowsort
SELECT ALL + ( 81 ) FROM tab1 AS cor0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT - 26 * 36 DIV cor0.col2 FROM tab1 cor0
----
-16
-17
-9

skipif mysql # not compatible
query I rowsort label-6045
SELECT - 26 * 36 / cor0.col2 FROM tab1 cor0
----
-16
-17
-9

query I rowsort
SELECT ALL + - ( + col2 ) * + cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT 61 + + col0 AS col0 FROM tab1
----
125
141
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT DISTINCT + 95 + + col2 DIV 40 AS col1 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + 95 + + col2 / 40 AS col1 FROM tab2 AS cor0
----
95

query I rowsort
SELECT ALL - 98 + + cor0.col1 FROM tab0 cor0
----
-1
-12
-7

query I rowsort
SELECT + - 77 AS col1 FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col0 * - cor0.col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col2 * cor0.col1 - cor0.col1 * col2 * + 58 AS col1 FROM tab0 AS cor0
----
-161766
-425334
-5529

query I rowsort
SELECT DISTINCT col0 + + 33 * - col2 AS col0 FROM tab2 AS cor0
----
-1175
-780
-884

query I rowsort
SELECT ALL - + col0 * + col1 + + 80 - + col1 AS col1 FROM tab1 AS cor0
----
-24
-570
-973

query I rowsort
SELECT - col0 * - cor0.col2 + col1 FROM tab0 cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6056
SELECT - col0 DIV + 63 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT - col0 / + 63 FROM tab0
----
-1
0
0

query I rowsort
SELECT col2 + cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - - col0 * + 54 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT ALL + cor0.col0 * 10 FROM tab1 AS cor0
----
30
640
800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT col1 + CAST( - col0 * + col0 AS SIGNED ) - 54 FROM tab1 AS cor0
----
-37
-4140
-6441

skipif mysql # not compatible
query I rowsort label-6060
SELECT col1 + CAST ( - col0 * + col0 AS INTEGER ) - 54 FROM tab1 AS cor0
----
-37
-4140
-6441

query I rowsort
SELECT - 56 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT + + ( - 68 ) FROM tab2 AS cor0
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 * ( - col1 ) col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col2 FROM tab1
----
-52
-52
-52

query I rowsort
SELECT 24 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 51 ) + col0 col2 FROM tab2 AS cor0
----
-44
27
28

query I rowsort
SELECT ALL + ( col0 ) - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - ( - col1 ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 - - col2 col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT 95 + col0 AS col1 FROM tab1 AS cor0
----
159
175
98

query I rowsort
SELECT - col0 * + 76 + + col2 FROM tab2 cor0
----
-505
-5902
-5966

query I rowsort
SELECT ALL + - ( col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL ( ( col2 ) ) + - ( + col2 + col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + - 10 + + col0 AS col0 FROM tab2 AS cor0
----
-3
68
69

query I rowsort
SELECT - 91 + col2 AS col2 FROM tab2 AS cor0
----
-53
-64
-65

query I rowsort
SELECT ALL - ( 46 ) FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + - 83 * - col2 - ( - 60 * - col2 ) FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT ALL - cor0.col2 * - col2 + + col1 AS col1 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - col1 * + col2 - 97 FROM tab0 AS cor0
----
-194
-2935
-7559

query I rowsort
SELECT ALL + col1 + col0 * - col2 AS col0 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col1 - + col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6083
SELECT - CAST( NULL AS SIGNED ) + tab0.col1 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT - CAST ( NULL AS INTEGER ) + tab0.col1 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col2 ) * + 7 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT - col1 + + col0 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT + 87 + + col0 FROM tab0
----
111
122
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * col1 col0 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT + cor0.col1 * + col0 + cor0.col1 * + 64 AS col1 FROM tab0 AS cor0
----
13923
7568
9603

query I rowsort
SELECT col1 + col0 * 74 * + col2 FROM tab1 AS cor0
----
12014
269962
568333

query I rowsort
SELECT cor0.col1 * col1 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + - col2 + - col2 * - col1 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT - 49 * + col1 FROM tab2 AS cor0
----
-1519
-2891
-833

onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT cor0.col2 DIV + col0 AS col0 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6093
SELECT cor0.col2 / + col0 AS col0 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT DISTINCT - col0 + + tab2.col1 + - col1 AS col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + tab0.col0 * ( + col0 * col2 ) + tab0.col1 + col2 FROM tab0
----
1323
19127
649695

query I rowsort
SELECT + 51 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c9771396949659773ab2fa2a1ac228de

query I rowsort
SELECT col2 * + col0 * + 82 FROM tab0
----
2870
598436
64944

onlyif mysql # use DIV operator for integer division
query I rowsort label-6098
SELECT DISTINCT - 83 DIV + col0 AS col2 FROM tab1
----
-1
-27

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT - 83 / + col0 AS col2 FROM tab1
----
-1
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col0 FROM tab2
----
71
71
71

query I rowsort
SELECT ALL - - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col2 * - 31 AS col1 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT col1 * - 1 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + col0 + + 58 * + col1 * col1 FROM tab1 cor0
----
39211
5864
9882

query I rowsort
SELECT ALL - cor1.col1 - + 25 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
27 values hashing to 3903073bd03161560de116e63c5f8879

query I rowsort
SELECT + col2 + + 30 FROM tab0 cor0
----
112
31
63

query I rowsort
SELECT - col0 + + col0 * 99 AS col0 FROM tab0 AS cor0
----
2352
3430
8722

query I rowsort
SELECT + cor0.col1 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + + col1 - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT 61 - col0 * col0 FROM tab2
----
-6023
-6180
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + - cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 27 + 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 969f31ae779866644763e8a07f1ec501

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + 9 col1 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT + col0 + - col0 + - ( col2 ) FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + - col1 + + 92 col2 FROM tab2
----
31
59
73

query I rowsort
SELECT DISTINCT + col1 - col0 * col2 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT 45 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT ALL + + col1 + - cor0.col0 DIV + ( col0 ) FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL + + col1 + - cor0.col0 / + ( col0 ) FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - 40 * + col1 AS col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT ALL + col1 * + col0 + - cor0.col2 * col2 - ( + 24 ) FROM tab1 AS cor0
----
-2633
-2862
-8200

query I rowsort
SELECT col2 * - 54 + - col2 FROM tab0 cor0
----
-1815
-4510
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6123
SELECT DISTINCT + + col0 DIV col0 + + ( col2 ) + col1 FROM tab2 AS cor0
----
56
59
86

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT + + col0 / col0 + + ( col2 ) + col1 FROM tab2 AS cor0
----
56
59
86

query I rowsort
SELECT - + col1 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6125
SELECT DISTINCT - cor0.col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT - cor0.col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6126
SELECT 55 DIV - col1 AS col1 FROM tab1
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-6126
SELECT 55 / - col1 AS col1 FROM tab1
----
-2
-4
-5

query I rowsort
SELECT col2 * - col1 * ( col0 ) FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT 65 * - col0 AS col0 FROM tab2
----
-455
-5070
-5135

query I rowsort
SELECT ALL - + cor0.col0 + 79 FROM tab0 AS cor0
----
-10
44
55

query I rowsort
SELECT + col0 * ( col2 * cor0.col1 ) AS col1 FROM tab1 cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6131
SELECT ALL - col2 + - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL - col2 + - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + + col1 * + 98 AS col0 FROM tab2 AS cor0
----
1666
3038
5782

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6133
SELECT - + col2 + CAST( col0 AS SIGNED ) - + col2 FROM tab0 cor0
----
-42
-75
33

skipif mysql # not compatible
query I rowsort label-6133
SELECT - + col2 + CAST ( col0 AS INTEGER ) - + col2 FROM tab0 cor0
----
-42
-75
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 * - 21 col0 FROM tab2 cor0
----
14196
15309
30324

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6135
SELECT - col2 + - col0 + CAST( NULL AS SIGNED ) / + 20 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6135
SELECT - col2 + - col0 + CAST ( NULL AS INTEGER ) / + 20 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col1 + - col2 FROM tab2 cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - col0 * 97 + col1 FROM tab1 AS cor0
----
-265
-6198
-7747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - cor0.col0 * - ( col2 ) + + cor0.col2 col2 FROM tab2 AS cor0
----
1350
158210
237196

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d

query I rowsort
SELECT ALL - col0 * + 76 FROM tab2 cor0
----
-532
-5928
-6004

query I rowsort
SELECT col0 - + col0 * 60 * + col2 AS col1 FROM tab2
----
-11333
-121602
-180041

query I rowsort
SELECT col0 * + ( 18 ) FROM tab2
----
126
1404
1422

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6144
SELECT DISTINCT + + ( col1 ) * col1 + ( col0 ) DIV col0 FROM tab0 AS cor0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + + ( col1 ) * col1 + ( col0 ) / col0 FROM tab0 AS cor0
----
7397
8282
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6145
SELECT ALL + - CAST( NULL AS SIGNED ) - col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL + - CAST ( NULL AS INTEGER ) - col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT - col2 + 10 DIV col2 FROM tab0 AS cor0
----
-33
-82
9

skipif mysql # not compatible
query I rowsort label-6146
SELECT - col2 + 10 / col2 FROM tab0 AS cor0
----
-33
-82
9

query I rowsort
SELECT 89 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT DISTINCT + col2 * - 60 FROM tab1 AS cor0
----
-3240
-3420
-5760

query I rowsort
SELECT col0 + + 13 * col1 AS col1 FROM tab0
----
1142
1272
1296

query I rowsort
SELECT col0 * + 95 + ( col2 ) AS col0 FROM tab2
----
692
7436
7543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6151
SELECT + tab0.col2 + CAST( NULL AS SIGNED ) + + 1 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT + tab0.col2 + CAST ( NULL AS INTEGER ) + + 1 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT DISTINCT - col1 DIV col0 AS col1 FROM tab1 cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - col1 / col0 AS col1 FROM tab1 cor0
----
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT ALL col0 + col1 DIV + col1 col1 FROM tab0 cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL col0 + col1 / + col1 col1 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT - 48 * - col1 AS col0 FROM tab2 AS cor0
----
1488
2832
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6155
SELECT DISTINCT - - col2 + col2 DIV 14 AS col2 FROM tab1 AS cor0
----
102
57
61

skipif mysql # not compatible
query I rowsort label-6155
SELECT DISTINCT - - col2 + col2 / 14 AS col2 FROM tab1 AS cor0
----
102
57
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6156
SELECT DISTINCT - col0 * col2 + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT - col0 * col2 + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT col1 + col1 - - tab0.col2 FROM tab0
----
195
205
264

query I rowsort
SELECT ALL + ( + cor1.col1 ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6159
SELECT ALL 93 + col2 DIV + col0 - col2 FROM tab1
----
-2
36
57

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL 93 + col2 / + col0 - col2 FROM tab1
----
-2
36
57

query I rowsort
SELECT ALL - + 2 FROM tab2 cor0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT + cor0.col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6161
SELECT + cor0.col2 / + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - col0 * - col2 + col1 AS col2 FROM tab0 cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 49 + - cor0.col2 * col2 col0 FROM tab0 AS cor0
----
-1138
-50
-6773

query I rowsort
SELECT - col2 + col0 * - 71 AS col1 FROM tab2 AS cor0
----
-524
-5564
-5647

query I rowsort
SELECT DISTINCT - 27 * + col1 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - 30 * col1 FROM tab0 AS cor0
----
-2580
-2730
-2910

onlyif mysql # use DIV operator for integer division
query I rowsort label-6168
SELECT + 73 DIV - col0 AS col1 FROM tab2 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-6168
SELECT + 73 / - col0 AS col1 FROM tab2 AS cor0
----
-10
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6169
SELECT - - col1 * + col1 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT - - col1 * + col1 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 * + col0 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT DISTINCT + - col1 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + col2 + + col1 + col1 FROM tab2
----
144
72
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT DISTINCT + col2 + + tab1.col1 + col0 * col2 DIV col1 FROM tab1
----
431
699
86

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT + col2 + + tab1.col1 + col0 * col2 / col1 FROM tab1
----
431
699
86

query I rowsort
SELECT col1 * - col0 + + tab2.col0 + tab2.col2 * ( col1 + + tab2.col1 ) AS col1 FROM tab2
----
-1456
1464
28

query I rowsort
SELECT + col1 + - 70 * - col1 FROM tab0
----
6106
6461
6887

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT ( - col1 ) * col1 DIV + col2 AS col0 FROM tab1 cor0
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-6177
SELECT ( - col1 ) * col1 / + col2 AS col0 FROM tab1 cor0
----
-1
-1
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 34 AS REAL ) * - col0 col2 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT DISTINCT 4 + - cor1.col2 + cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-12
-47
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6180
SELECT - col2 * CAST( 62 AS SIGNED ) FROM tab0
----
-2046
-5084
-62

skipif mysql # not compatible
query I rowsort label-6180
SELECT - col2 * CAST ( 62 AS INTEGER ) FROM tab0
----
-2046
-5084
-62

query I rowsort
SELECT ALL col2 * ( col0 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + col1 * - 68 + - col2 FROM tab1
----
-1822
-737
-980

query I rowsort
SELECT ALL col2 + col1 * + tab1.col2 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT col0 + + col2 DIV - col0 AS col2 FROM tab0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-6184
SELECT col0 + + col2 / - col0 AS col2 FROM tab0
----
23
35
89

query I rowsort
SELECT ALL + col1 + 90 + col1 FROM tab1
----
110
116
142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6186
SELECT CAST( + col0 AS SIGNED ) * col0 * col1 + - 18 AS col1 FROM tab1 AS cor0
----
216
40942
83182

skipif mysql # not compatible
query I rowsort label-6186
SELECT CAST ( + col0 AS INTEGER ) * col0 * col1 + - 18 AS col1 FROM tab1 AS cor0
----
216
40942
83182

query I rowsort
SELECT ALL + ( - col0 ) + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + 88 + + col1 FROM tab1 AS cor0
----
101
114
98

query I rowsort
SELECT - 61 * 53 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-3195
-3206
-3207

query I rowsort
SELECT ALL - + col2 * + 33 FROM tab1 cor0
----
-1782
-1881
-3168

query I rowsort
SELECT DISTINCT - 43 * + col0 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT - col0 + - ( col1 ) * 59 FROM tab2 AS cor0
----
-1082
-1836
-3559

query I rowsort
SELECT ALL ( cor0.col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6195
SELECT ALL - cor0.col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL - cor0.col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + 96 * - col0 AS col0 FROM tab2 cor0
----
-672
-7488
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6197
SELECT CAST( 52 AS SIGNED ) * col1 FROM tab0
----
4472
4732
5044

skipif mysql # not compatible
query I rowsort label-6197
SELECT CAST ( 52 AS INTEGER ) * col1 FROM tab0
----
4472
4732
5044

query I rowsort
SELECT 65 * col1 * col1 AS col2 FROM tab0
----
480740
538265
611585

query I rowsort
SELECT ALL ( - 78 + + col0 ) * - col2 AS col2 FROM tab1
----
-192
4050
798

query I rowsort
SELECT + 6 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT - CAST( + col2 AS SIGNED ) * col0 * + ( - col1 ) AS col1 FROM tab0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-6201
SELECT - CAST ( + col2 AS INTEGER ) * col0 * + ( - col1 ) AS col1 FROM tab0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6202
SELECT + col0 * - ( cor0.col2 ) - CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT + col0 * - ( cor0.col2 ) - CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 41 * - cor0.col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6205
SELECT col2 DIV col1 + 54 FROM tab0 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-6205
SELECT col2 / col1 + 54 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT + col2 * - col1 + 50 * 8 AS col0 FROM tab1 AS cor0
----
-1004
-170
-848

query I rowsort
SELECT - + col2 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + + col0 * - col1 * 56 FROM tab1 AS cor0
----
-35840
-4368
-58240

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - col0 * col2 - col1 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT - col1 DIV + 14 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6212
SELECT - col1 / + 14 FROM tab1
----
-1
0
0

query I rowsort
SELECT - col2 * 16 AS col2 FROM tab0 cor0
----
-1312
-16
-528

query I rowsort
SELECT - 7 * col0 FROM tab2 AS cor0
----
-49
-546
-553

query I rowsort
SELECT - cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + col0 + 2 * - 29 * - col0 FROM tab0
----
1416
2065
5251

query I rowsort
SELECT DISTINCT col2 + 59 AS col2 FROM tab2 AS cor0
----
85
86
97

query I rowsort
SELECT cor0.col1 * cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - + cor0.col0 + 68 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
3669
3812
6448

query I rowsort
SELECT - - col0 + col1 - - col2 * col1 FROM tab2 cor0
----
1671
742
875

query I rowsort
SELECT - col2 + 3 AS col2 FROM tab1 AS cor0
----
-51
-54
-93

query I rowsort
SELECT ALL + 57 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT + col0 * 73 FROM tab2 AS cor0
----
511
5694
5767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT - - 68 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6227
SELECT ALL - CAST( + 37 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - CAST ( + 37 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL + tab2.col2 * col2 + + 46 + col1 AS col2 FROM tab2
----
1507
781
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6229
SELECT - col0 + - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort label-6229
SELECT - col0 + - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort
SELECT - col2 + CAST ( - col1 AS REAL ) * - col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + - col0 * + col2 + cor0.col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT tab1.col1 * - col1 + col0 * col0 FROM tab1
----
-667
3996
6231

query I rowsort
SELECT col1 * col2 FROM tab2 WHERE ( - col0 ) NOT IN ( col1 )
----
1534
646
837

query I rowsort
SELECT tab2.col1 + + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT + col2 + col0 FROM tab0 WHERE col2 * - col1 <= ( col0 + + col1 )
----
171
36
57

query I rowsort
SELECT ALL col0 - col1 * + col0 AS col1 FROM tab0
----
-2040
-3360
-8010

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col0 + col2
----

query I rowsort
SELECT + cor0.col0 * col0 + col1 - + 2 * - col1 AS col0 FROM tab0 AS cor0
----
1516
8194
834

onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT DISTINCT + col2 * + col2 + ( + col0 ) - + col1 DIV - col1 AS col0 FROM tab2
----
1524
737
755

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + col2 * + col2 + ( + col0 ) - + col1 / - col1 AS col0 FROM tab2
----
1524
737
755

query I rowsort
SELECT - - 37 + + col2 AS col2 FROM tab0 AS cor0
----
119
38
70

query I rowsort
SELECT DISTINCT + 30 * col2 FROM tab0 cor0
----
2460
30
990

query I rowsort
SELECT DISTINCT + - 61 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

query I rowsort
SELECT DISTINCT - col2 + col2 * - ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
-1
-2785
-7453

query I rowsort
SELECT ALL - - 83 * cor0.col0 AS col0 FROM tab1 cor0
----
249
5312
6640

query I rowsort
SELECT DISTINCT - + col2 * + col2 + + 23 FROM tab0 AS cor0
----
-1066
-6701
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT ALL col1 + + cor0.col0 DIV - cor0.col2 - - col1 AS col2 FROM tab1 AS cor0
----
19
26
52

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL col1 + + cor0.col0 / - cor0.col2 - - col1 AS col2 FROM tab1 AS cor0
----
19
26
52

query I rowsort
SELECT DISTINCT - 99 + col2 AS col1 FROM tab1 AS cor0
----
-3
-42
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6248
SELECT DISTINCT - + col0 * col1 * + CAST( - col1 AS SIGNED ) + col2 col1 FROM tab1 AS cor0
----
13616
2082
6457

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT - + col0 * col1 * + CAST ( - col1 AS INTEGER ) + col2 col1 FROM tab1 AS cor0
----
13616
2082
6457

query I rowsort
SELECT + + cor0.col2 * - col0 + col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + - col0 + ( + col2 ) - + col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - + col2 + + 3 * col1 AS col2 FROM tab2 AS cor0
----
13
151
66

query I rowsort
SELECT DISTINCT + col2 + - ( 13 ) * - col2 FROM tab1 cor0
----
1344
756
798

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) * col1 + - col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col2 + + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - + col0 + + 91 * col1 FROM tab0 AS cor0
----
7802
8192
8792

query I rowsort
SELECT ALL + ( - 72 ) + + col1 * col1 FROM tab0 AS cor0
----
7324
8209
9337

query I rowsort
SELECT col2 + - ( - col0 ) * - col2 * + col2 FROM tab0
----
-26103
-34
-598354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6258
SELECT DISTINCT + CAST( - tab1.col1 AS SIGNED ) FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT + CAST ( - tab1.col1 AS INTEGER ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - 56 + - 49 FROM tab1 cor0
----
-105
-105
-105

query I rowsort
SELECT DISTINCT 46 * col0 + - col1 AS col0 FROM tab2 cor0
----
291
3529
3617

query I rowsort
SELECT DISTINCT - - col0 + + 12 * - col0 FROM tab0 AS cor0
----
-264
-385
-979

onlyif mysql # use DIV operator for integer division
query I rowsort label-6262
SELECT DISTINCT CAST( col2 AS SIGNED ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT CAST ( col2 AS INTEGER ) / - col0 AS col1 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT DISTINCT + ( - 22 ) AS col2 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT + 55 * 86 AS col2 FROM tab0 AS cor0
----
4730
4730
4730

query I rowsort
SELECT - col0 * 21 AS col2 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT ALL - - 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 60 col1 FROM tab1 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + col0 * 85 col1 FROM tab2 AS cor0
----
667
6702
6787

onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT DISTINCT col1 DIV + col1 - ( col2 * col1 ) FROM tab1 AS cor0
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT col1 / + col1 - ( col2 * col1 ) FROM tab1 AS cor0
----
-1247
-1403
-569

query I rowsort
SELECT ALL - - col2 * 5 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT ALL - 73 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT + + col1 + col2 * + ( - col2 ) AS col2 FROM tab0 cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT + col0 + - col0 DIV 48 AS col1 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6274
SELECT + col0 + - col0 / 48 AS col1 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT DISTINCT - - col2 + 36 AS col0 FROM tab1 cor0
----
132
90
93

query I rowsort
SELECT - col1 + 77 FROM tab2 AS cor0
----
18
46
60

query I rowsort
SELECT - - col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - cor0.col0 - col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT + col0 + cor0.col1 + col0 AS col2 FROM tab1 cor0
----
138
173
32

query I rowsort
SELECT ALL 56 * col1 AS col2 FROM tab2 AS cor0
----
1736
3304
952

skipif mysql # not compatible
query I rowsort
SELECT ( col0 ) * col0 + col0 / cor0.col0 + CAST ( 55 AS REAL ) * col1 AS col0 FROM tab2 AS cor0
----
1755
7177
9330

onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT DISTINCT 58 DIV col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT 58 / col1 AS col2 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6283
SELECT col1 + col1 DIV - col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-6283
SELECT col1 + col1 / - col0 FROM tab1
----
10
13
18

query I rowsort
SELECT DISTINCT col0 * - col1 + - 71 * tab0.col2 + + col1 AS col2 FROM tab0
----
-13830
-3369
-4321

query I rowsort
SELECT 37 * + col0 + col0 + 40 AS col2 FROM tab1
----
154
2472
3080

query I rowsort
SELECT ( col0 ) * ( 83 ) FROM tab0
----
1992
2905
7387

query I rowsort
SELECT - + col2 + + col2 * 97 FROM tab0 cor0
----
3168
7872
96

query I rowsort
SELECT - col2 + col1 * col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-11020
-25974
-90532

query I rowsort
SELECT - 5 * cor0.col2 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
-244
-275
-467

query I rowsort
SELECT 63 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - ( + col2 ) * - tab1.col1 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 54 + 98 col0 FROM tab0 AS cor0
----
4742
5012
5336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6293
SELECT + - col2 * CAST( NULL AS SIGNED ) + + col0 - - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT + - col2 * CAST ( NULL AS INTEGER ) + + col0 - - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 * ( + 43 * - cor0.col2 + + col1 ) FROM tab1 AS cor0
----
24410
53495
59696

query I rowsort
SELECT ALL - 0 AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL 6 * + col2 FROM tab1
----
324
342
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT ALL col1 * col0 DIV 92 AS col1 FROM tab1
----
0
11
6

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL col1 * col0 / 92 AS col1 FROM tab1
----
0
11
6

query I rowsort
SELECT ALL + tab1.col2 + + col1 - tab1.col1 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT + col1 * - col2 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-1413
-4666
-7648

query I rowsort
SELECT col1 * cor0.col1 + + cor0.col1 AS col1 FROM tab0 cor0
----
7482
8372
9506

query I rowsort
SELECT - col1 * 68 + - col1 FROM tab0 AS cor0
----
-5934
-6279
-6693

query I rowsort
SELECT + cor0.col2 * col0 - col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT col1 + 58 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
-375
-4465
-4565

query I rowsort
SELECT - tab0.col0 + - cor0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e3322b965fd098e37df06595aac8d009

query I rowsort
SELECT DISTINCT 34 FROM tab1, tab0 AS cor0
----
34

query I rowsort
SELECT ALL + cor0.col2 + + col1 * + col1 * cor0.col1 FROM tab2 cor0
----
205405
29818
4951

query I rowsort
SELECT DISTINCT + 25 * col0 * + col1 FROM tab0
----
202475
51600
84875

query I rowsort
SELECT DISTINCT 88 * + col2 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT DISTINCT 28 + - cor0.col0 * col2 * col1 FROM tab0 AS cor0
----
-3367
-664090
-68084

query I rowsort
SELECT ALL + + col0 + - 88 * + col2 AS col1 FROM tab1 AS cor0
----
-4749
-4952
-8368

query I rowsort
SELECT + cor0.col2 * + col2 + col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - ( ( - col1 ) ) * + 76 + + col0 + + col0 FROM tab2 AS cor0
----
1450
2370
4640

query I rowsort
SELECT + 23 * 92 FROM tab0 cor0
----
2116
2116
2116

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 55 AS REAL ) * + col0 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT DISTINCT + + 9 AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT 79 * - ( - col1 ) FROM tab2 AS cor0
----
1343
2449
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - - 99 - ( + col0 ) AS col1 FROM tab1 AS cor0
----
19
35
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 83 + - col1 col0 FROM tab0 AS cor0
----
-14
2653
6715

query I rowsort
SELECT ( col2 ) - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * + 80 + col0 AS col2 FROM tab2 cor0
----
-2002
-2153
-2961

query I rowsort
SELECT cor0.col2 + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + 26 + - 93 * + col2 FROM tab2 AS cor0
----
-2392
-2485
-3508

query I rowsort
SELECT + ( col2 ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - + 84 + + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
105
1944
2918

query I rowsort
SELECT DISTINCT - 1 * - 10 * - cor0.col0 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT ALL - col1 - + col2 * - col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - + 70 + - col1 AS col2 FROM tab0 AS cor0
----
-156
-161
-167

query I rowsort
SELECT DISTINCT + + col0 * - 56 AS col1 FROM tab2 cor0
----
-392
-4368
-4424

query I rowsort
SELECT DISTINCT + col0 * 48 + - col2 AS col1 FROM tab2 AS cor0
----
309
3718
3754

query I rowsort
SELECT ALL col0 - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 35 * + 45 FROM tab2
----
1575

query I rowsort
SELECT ALL cor0.col2 + col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 / - cor0.col1 + CAST ( col1 * + cor0.col1 AS REAL ) + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + col2 * + col1 + - col0 AS col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT + - 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-6337
SELECT ALL - + cor0.col1 DIV + 16 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - + cor0.col1 / + 16 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 44 * - tab1.col0 AS col2 FROM tab1, tab1 cor0
----
-132
-2816
-3520

query I rowsort
SELECT + col2 - + col2 * ( + col2 ) AS col2 FROM tab1
----
-2862
-3192
-9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6340
SELECT - col1 * CAST( col0 AS SIGNED ) * + col1 + col1 AS col2 FROM tab2
----
-22814
-271459
-6696

skipif mysql # not compatible
query I rowsort label-6340
SELECT - col1 * CAST ( col0 AS INTEGER ) * + col1 + col1 AS col2 FROM tab2
----
-22814
-271459
-6696

query I rowsort
SELECT ( 71 ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + col1 + - 52 * - col1 AS col0 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT col2 + - 64 FROM tab1
----
-10
-7
32

query I rowsort
SELECT 48 * + 73 AS col2 FROM tab1 AS cor0
----
3504
3504
3504

query I rowsort
SELECT ALL - 73 FROM tab1, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT 51 FROM tab2, tab0 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT - col1 + ( 88 ) DIV col0 AS col1 FROM tab2 AS cor0
----
-16
-19
-58

skipif mysql # not compatible
query I rowsort label-6348
SELECT - col1 + ( 88 ) / col0 AS col1 FROM tab2 AS cor0
----
-16
-19
-58

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2, tab2 AS cor3
----
3645 values hashing to f7d7f8e55c3be4391aa225222961d676

query I rowsort
SELECT ALL ( - cor0.col1 ) * - col1 * col1 + 17 FROM tab0 AS cor0
----
636073
753588
912690

query I rowsort
SELECT ALL - 53 * + col0 + - col1 * 91 FROM tab0 AS cor0
----
-10682
-12998
-9098

query I rowsort
SELECT ALL + - 38 + + col2 FROM tab2 AS cor0
----
-11
-12
0

query I rowsort
SELECT DISTINCT - 18 * + 32 FROM tab1
----
-576

query I rowsort
SELECT - 24 + - 36 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

query I rowsort
SELECT + col1 + + col2 * col0 * 1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - cor0.col2 * - ( col0 ) + + 98 FROM tab0 AS cor0
----
133
7396
890

query I rowsort
SELECT ALL - col1 * cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL - 29 * - col1 * - 73 + - ( tab0.col2 ) FROM tab0
----
-182095
-192729
-205350

onlyif mysql # use DIV operator for integer division
query I rowsort label-6359
SELECT ALL - col0 + col2 DIV 35 FROM tab2
----
-7
-78
-78

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - col0 + col2 / 35 FROM tab2
----
-7
-78
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT ALL + col1 * cor0.col1 + + 9 + - col1 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
178
685

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + col1 * cor0.col1 + + 9 + - col1 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
178
685

query I rowsort
SELECT DISTINCT + - 79 FROM tab0, tab0 AS cor0
----
-79

query I rowsort
SELECT DISTINCT - 52 + + col0 FROM tab2 cor0
----
-45
26
27

query I rowsort
SELECT - 72 + col0 AS col0 FROM tab0 AS cor0
----
-37
-48
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col0 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + + 58 col0 FROM tab1 AS cor0
----
-104
-3590
-7622

query I rowsort
SELECT DISTINCT - col0 + - 95 FROM tab1 AS cor0
----
-159
-175
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6367
SELECT - - col2 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-6367
SELECT - - col2 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col1 - 22 AS col0 FROM tab0 AS cor0
----
-108
-113
-119

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6369
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) + cor0.col0 * - cor0.col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) + cor0.col0 * - cor0.col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col1 + - cor0.col2 col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - col0 + cor0.col0 - col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + + cor0.col0 + - 40 * 20 FROM tab2 AS cor0
----
-721
-722
-793

query I rowsort
SELECT DISTINCT col1 + - 8 AS col1 FROM tab0 AS cor0
----
78
83
89

query I rowsort
SELECT DISTINCT + col1 + + 57 FROM tab1 AS cor0
----
67
70
83

query I rowsort
SELECT ALL cor0.col0 + - col2 - - col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col1 + col0 * + ( col0 ) FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT col0 + - col2 * 9 AS col1 FROM tab0
----
-273
-649
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT + col0 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-6378
SELECT + col0 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col1 * ( 47 ) FROM tab1 AS cor0
----
-1222
-470
-611

query I rowsort
SELECT ALL + + col0 + - 80 * + ( col1 ) * col2 + 95 AS col0 FROM tab0 AS cor0
----
-226921
-596776
-7630

query I rowsort
SELECT - tab1.col2 * ( + col0 * col2 ) AS col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT + + ( ( + col0 ) ) + 3 FROM tab2 AS cor0
----
10
81
82

query I rowsort
SELECT - - col0 * 53 + + col2 AS col2 FROM tab2 AS cor0
----
398
4160
4225

query I rowsort
SELECT ALL + + 25 + col0 AS col0 FROM tab2 AS cor0
----
103
104
32

query I rowsort
SELECT DISTINCT + 64 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1407
281
4666

query I rowsort
SELECT + col2 + cor0.col2 * - col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - col1 + - col0 - + 50 AS col1 FROM tab1 AS cor0
----
-124
-143
-79

query I rowsort
SELECT DISTINCT tab0.col2 + - 18 AS col0 FROM tab0, tab0 AS cor0
----
-17
15
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6389
SELECT + - col2 DIV - col1 + - col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-6389
SELECT + - col2 / - col1 + - col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col2 * col2 + col1 + - col1 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 96 col2 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT - + col2 * cor0.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-6393
SELECT + + CAST( col2 AS SIGNED ) col2 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6393
SELECT + + CAST ( col2 AS INTEGER ) col2 FROM tab2 cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6394
SELECT + col1 + ( - col2 * CAST( NULL AS SIGNED ) + col2 ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT + col1 + ( - col2 * CAST ( NULL AS INTEGER ) + col2 ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( - ( col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT tab1.col1 + tab1.col2 * + col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT + col2 + 32 * col2 FROM tab0
----
1089
2706
33

query I rowsort
SELECT - col0 + + 89 * - col0 FROM tab1 AS cor0
----
-270
-5760
-7200

query I rowsort
SELECT - col0 + - cor0.col1 * - col1 FROM tab0 AS cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 45 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6402
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6402
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 45 * 57 FROM tab0 AS cor0
----
-2565
-2565
-2565

query I rowsort
SELECT DISTINCT - + col0 - + 9 FROM tab1 AS cor0
----
-12
-73
-89

query I rowsort
SELECT ALL - 3 * + col1 + col0 * + col0 FROM tab2 AS cor0
----
-44
5907
6190

query I rowsort
SELECT ALL 46 * col2 - - col2 AS col1 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT - col1 + - col2 AS col0 FROM tab0 cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6408
SELECT ALL - 55 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - 55 / + cor0.col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - 75 + - col0 FROM tab1 AS cor0
----
-139
-155
-78

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + - 18 FROM tab1 cor0
----
-9
4078
6382

query I rowsort
SELECT ALL - - 80 + col2 AS col2 FROM tab1 AS cor0
----
134
137
176

query I rowsort
SELECT + - 8 + col2 FROM tab0 cor0
----
-7
25
74

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * ( + cor0.col0 ) * + col1 col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6415
SELECT + col0 DIV + CAST( + col1 AS SIGNED ) + col0 AS col2 FROM tab2 cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-6415
SELECT + col0 / + CAST ( + col1 AS INTEGER ) + col0 AS col2 FROM tab2 cor0
----
7
79
83

query I rowsort
SELECT DISTINCT col2 * + ( col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - col2 * - 90 AS col0 FROM tab1 AS cor0
----
4860
5130
8640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6418
SELECT col2 * - CAST( - 49 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1617
4018
49

skipif mysql # not compatible
query I rowsort label-6418
SELECT col2 * - CAST ( - 49 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT ALL 14 * col1 AS col1 FROM tab0
----
1204
1274
1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-6420
SELECT ALL + 2 DIV - 39 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + 2 / - 39 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL 2 * col2 * - ( - ( col1 ) ) FROM tab0
----
14924
194
5676

query I rowsort
SELECT 48 + + 54 FROM tab2, tab0 AS cor0
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

query I rowsort
SELECT - + col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6424
SELECT + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col0 FROM tab1, tab2, tab1 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + tab2.col2 col0 FROM tab2
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + tab1.col2 ) * tab1.col0 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 91af1085835c3ef572d2dbd91480f658

query I rowsort
SELECT ALL + - col0 * - col1 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col0 * tab1.col1 + col2 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT col0 + - col2 * + ( + col2 ) AS col0 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + - col2 * 37 AS col0 FROM tab2 AS cor0
----
-1406
-962
-999

query I rowsort
SELECT ALL - col1 * + 21 + col1 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT ALL cor0.col0 * + 79 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT + col2 + + 10 AS col0 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT ALL 22 FROM tab2, tab0 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL - + col2 + - col0 * 59 * - col1 FROM tab1 AS cor0
----
37703
4548
61264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( 2 ) col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + - col1 + 83 FROM tab0 AS cor0
----
-14
-3
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT - + col2 * col1 DIV 24 AS col1 FROM tab2 cor0
----
-26
-34
-63

skipif mysql # not compatible
query I rowsort label-6439
SELECT - + col2 * col1 / 24 AS col1 FROM tab2 cor0
----
-26
-34
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) * + 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) * + 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 14 AS col2 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT DISTINCT tab1.col1 * col0 * + col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + - col0 + - col2 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT ALL col1 DIV - col1 + - 0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL col1 / - col1 + - 0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col0 + cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL col1 * col1 + - 97 AS col0 FROM tab2 AS cor0
----
192
3384
864

query I rowsort
SELECT DISTINCT + col2 + col0 * col2 AS col2 FROM tab2 cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 67 ) * cor0.col1 col0 FROM tab2 AS cor0
----
-1139
-2077
-3953

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6449
SELECT - - col0 * + 99 * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT - - col0 * + 99 * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT + col0 DIV + col0 + - col0 * + 49 FROM tab1 AS cor0
----
-146
-3135
-3919

skipif mysql # not compatible
query I rowsort label-6450
SELECT + col0 / + col0 + - col0 * + 49 FROM tab1 AS cor0
----
-146
-3135
-3919

query I rowsort
SELECT ALL - col0 * 84 + col1 FROM tab0 AS cor0
----
-1930
-2843
-7385

query I rowsort
SELECT ALL - ( col1 ) + + col2 * + col1 * - col0 FROM tab1 AS cor0
----
-36490
-4238
-99853

query I rowsort
SELECT ALL col0 + col0 - cor0.col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - - col1 * - cor0.col0 + - col0 * ( col1 ) FROM tab1 AS cor0
----
-1280
-156
-2080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + col1 * + 94 col1 FROM tab0 AS cor0
----
455
5723
6020

query I rowsort
SELECT - - 13 AS col2 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT 47 * 24 AS col2 FROM tab2
----
1128
1128
1128

query I rowsort
SELECT ALL - 53 + + col2 * col2 FROM tab1 cor0
----
2863
3196
9163

query I rowsort
SELECT DISTINCT + col2 * - col1 + 63 * 12 FROM tab0 AS cor0
----
-2082
-6706
659

query I rowsort
SELECT DISTINCT - 58 + + col0 FROM tab0 AS cor0
----
-23
-34
31

query I rowsort
SELECT DISTINCT + col1 + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + col1 + 81 FROM tab2
----
112
140
98

query I rowsort
SELECT DISTINCT cor0.col0 * 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1225
3115
840

query I rowsort
SELECT ALL cor0.col0 + cor0.col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 45123676d9d30ad294b9a8d42384b2df

query I rowsort
SELECT 80 + col1 AS col2 FROM tab1 AS cor0
----
106
90
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6466
SELECT ALL - col2 DIV col2 - col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - col2 / col2 - col2 FROM tab0 AS cor0
----
-2
-34
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6467
SELECT DISTINCT col2 * - col2 * CAST( - 68 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
198288
220932
626688

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT col2 * - col2 * CAST ( - 68 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
198288
220932
626688

onlyif mysql # use DIV operator for integer division
query I rowsort label-6468
SELECT DISTINCT col0 DIV col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT col0 / col2 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col2 - 78 * - col1 AS col0 FROM tab0 AS cor0
----
14560
7663
9546

query I rowsort
SELECT DISTINCT - 32 + - col1 FROM tab1
----
-42
-45
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6471
SELECT DISTINCT col0 DIV col1 + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT col0 / col1 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL ( + col2 ) + col0 * 50 FROM tab2
----
377
3926
3988

query I rowsort
SELECT col2 + + col1 * - col1 AS col0 FROM tab1
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 85 col0 FROM tab2 AS cor0
----
111
112
123

query I rowsort
SELECT ALL col0 + + cor0.col1 * col1 AS col1 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT ALL + tab2.col2 * + 41 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7fa5f1ec9261c46e372addf372e76482

query I rowsort
SELECT - tab2.col1 * 46 + + 36 FROM tab2
----
-1390
-2678
-746

query I rowsort
SELECT ALL - col0 + col0 + - col0 FROM tab0
----
-24
-35
-89

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0

query I rowsort
SELECT col0 + - ( - col0 + col0 ) FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + ( 81 ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT 87 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT + 98 + - 26 * col1 AS col1 FROM tab1
----
-162
-240
-578

query I rowsort
SELECT ALL + 25 + tab0.col1 AS col2 FROM tab0
----
111
116
122

query I rowsort
SELECT + + ( col0 ) + col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + col2 * + 60 + - cor0.col1 FROM tab2 AS cor0
----
1501
1589
2263

query I rowsort
SELECT ALL + - col0 * col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - + 52 + col1 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
121
46
67

query I rowsort
SELECT cor0.col0 * - cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

query I rowsort
SELECT DISTINCT + ( + col0 + - col0 ) FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6491
SELECT ALL CAST( 28 AS SIGNED ) FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL CAST ( 28 AS INTEGER ) FROM tab2
----
28
28
28

query I rowsort
SELECT 93 * 54 FROM tab1
----
5022
5022
5022

query I rowsort
SELECT DISTINCT - ( + col2 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + - 10 * col2 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + + col2 col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL col1 * col2 + col0 * col2 AS col0 FROM tab2 AS cor0
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 14 * col1 FROM tab2
----
-238
-434
-826

onlyif mysql # use DIV operator for integer division
query I rowsort label-6500
SELECT DISTINCT - + 23 DIV - col2 + + col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT - + 23 / - col2 + + col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6501
SELECT - col0 + - col0 DIV col0 FROM tab0 cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6501
SELECT - col0 + - col0 / col0 FROM tab0 cor0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT col0 * col2 + col0 * col1 FROM tab2
----
406
4345
6630

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL < cor0.col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + col1 * col1 FROM tab1
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab2.col2 + col2 * tab2.col0 * col0 col0 FROM tab2
----
159718
2160
237804

query I rowsort
SELECT + tab0.col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT col0 + col2 DIV + col0 + tab0.col2 * col0 AS col0 FROM tab0
----
70
7387
817

skipif mysql # not compatible
query I rowsort label-6509
SELECT col0 + col2 / + col0 + tab0.col2 * col0 AS col0 FROM tab0
----
70
7387
817

query I rowsort
SELECT DISTINCT - col2 + - tab0.col1 * col0 * tab0.col2 FROM tab0
----
-3396
-664200
-68145

query I rowsort
SELECT - col0 + - tab0.col0 AS col0 FROM tab0
----
-178
-48
-70

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 BETWEEN col2 AND + col2 * col1 + col0 / col0
----
78
59
26
79
17
38

query I rowsort
SELECT col2 * + col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN col0 + col0 AND col2
----

query I rowsort
SELECT DISTINCT + col0 - + col2 * + col1 * + tab2.col0 FROM tab2 WHERE ( NULL ) <= col1 + col2 - + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) > + col2 * tab2.col1
----

query I rowsort
SELECT DISTINCT - tab0.col0 + - col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT + - col0 + - cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + col0 * - cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL - col2 * tab2.col0 + col2 * col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * col1 * tab2.col0 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL + tab0.col0 + + col2 AS col1 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + col1 + + col0 - col1 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col2 * col1 * tab0.col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 * - col0 + - col1 FROM tab1 cor0
----
-36554
-4241
-99933

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - ( + tab1.col0 ) FROM tab1, tab2 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT col2 + ( col1 ) + col2 AS col1 FROM tab0
----
152
255
99

query I rowsort
SELECT ALL + col1 * - tab1.col2 * 71 + col0 * col2 * - col2 FROM tab1
----
-108432
-248406
-825888

onlyif mysql # use DIV operator for integer division
query I rowsort label-6530
SELECT col2 - col2 DIV - col1 AS col0 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6530
SELECT col2 - col2 / - col1 AS col0 FROM tab2
----
26
27
40

query I rowsort
SELECT + col0 - - 4 * 54 AS col2 FROM tab0
----
240
251
305

query I rowsort
SELECT col1 + + ( col2 ) * - col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT - 27 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6534
SELECT DISTINCT + CAST( + 4 AS SIGNED ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT + CAST ( + 4 AS INTEGER ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT + + 44 * - 57 AS col1 FROM tab0 AS cor0
----
-2508
-2508
-2508

query I rowsort
SELECT ALL - 94 * ( + col0 ) FROM tab2 AS cor0
----
-658
-7332
-7426

query I rowsort
SELECT DISTINCT cor0.col0 * 32 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT ALL - 63 FROM tab0 cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - 98 * + cor0.col1 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT + ( - col2 ) * - col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT col1 * - col0 * ( col0 ) FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ( 64 ) FROM tab2, tab2 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 + + 5 col0 FROM tab0
----
102
91
96

query I rowsort
SELECT col1 * - tab2.col0 * + 5 - col2 FROM tab2
----
-1112
-23036
-6753

query I rowsort
SELECT DISTINCT col1 * - col1 + col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT col2 + - 23 * 60 FROM tab0
----
-1298
-1347
-1379

query I rowsort
SELECT DISTINCT col0 * ( col1 + col2 ) AS col1 FROM tab2
----
406
4345
6630

query I rowsort
SELECT - + 63 FROM tab1 cor0
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 - + col0 col0 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * tab0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f8db57c479b12c230e2860d8c6abe216

query I rowsort
SELECT ALL - + 53 AS col0 FROM tab2 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 90 ) col0 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT + + 85 * - 47 AS col0 FROM tab1 cor0
----
-3995

query I rowsort
SELECT ALL + col2 * 15 AS col1 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT DISTINCT + 40 + - cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
1080
118
680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6556
SELECT - 82 + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-117
-82
-83

skipif mysql # not compatible
query I rowsort label-6556
SELECT - 82 + col0 / - col2 AS col2 FROM tab0 AS cor0
----
-117
-82
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + ( col0 ) col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT col0 + + col1 - + col1 AS col2 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT ALL + col1 * - tab1.col2 + col0 DIV col1 FROM tab1
----
-1242
-1404
-564

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL + col1 * - tab1.col2 + col0 / col1 FROM tab1
----
-1242
-1404
-564

query I rowsort
SELECT + 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT + col1 + cor0.col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT 13 + - col2 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
-2903
-3236
-9203

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-6565
SELECT - col2 DIV - col0 - + col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-6565
SELECT - col2 / - col0 - + col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 92 AS REAL ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT - col1 * 97 FROM tab0 AS cor0
----
-8342
-8827
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT ALL - cor0.col0 DIV 67 + col2 FROM tab2 AS cor0
----
25
27
37

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - cor0.col0 / 67 + col2 FROM tab2 AS cor0
----
25
27
37

query I rowsort
SELECT DISTINCT + col1 * col0 + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT - col2 + 53 FROM tab2 AS cor0
----
15
26
27

query I rowsort
SELECT DISTINCT - col2 + + col1 + - col0 * + col2 AS col0 FROM tab2 cor0
----
-185
-1995
-3023

query I rowsort
SELECT ALL - col1 * - 45 - col2 FROM tab0 AS cor0
----
3837
4013
4364

query I rowsort
SELECT + - col0 * col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + 80 AS col1 FROM tab2 AS cor0
----
42
53
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6576
SELECT ALL - col2 - CAST( NULL AS SIGNED ) / + 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) / + 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6577
SELECT col0 + - CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif mysql # not compatible
query I rowsort label-6577
SELECT col0 + - CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col0 + 25 + 28 AS col0 FROM tab2 AS cor0
----
131
132
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 59 col0 FROM tab1 AS cor0
----
-3186
-3363
-5664

query I rowsort
SELECT ALL + col0 + cor0.col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL + col2 + + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - + col0 - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + col0 - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + 33 AS col2 FROM tab0 cor0
----
2838
3003
3201

query I rowsort
SELECT ALL - col2 * - 74 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT tab1.col1 + + 2 FROM tab1
----
12
15
28

query I rowsort
SELECT ALL - col0 + 22 * col1 * - col1 AS col1 FROM tab1 AS cor0
----
-14875
-2264
-3798

query I rowsort
SELECT DISTINCT + col2 * 55 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1492
1508
2169

query I rowsort
SELECT - col0 + + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ( - col0 ) + col1 * col1 AS col1 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6591
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 76 AS col0 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 76 AS col0 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col1 + - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 66e198acca624efd182aa551bb5de4c7

query I rowsort
SELECT DISTINCT - col0 + - 8 FROM tab1
----
-11
-72
-88

query I rowsort
SELECT ALL - ( + col1 ) * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 55 + col1 * ( 94 * col0 ) AS col1 FROM tab2 AS cor0
----
126187
20343
432533

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + 78 FROM tab0 AS cor0
----
-1986
-3317
-8021

query I rowsort
SELECT ALL + col1 * col2 * col2 FROM tab1 AS cor0
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * + 31 * - 69 col1 FROM tab2 AS cor0
----
-55614
-57753
-81282

onlyif mysql # use DIV operator for integer division
query I rowsort label-6599
SELECT - col0 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6599
SELECT - col0 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - 79 + - ( - col0 + - col2 ) * - col2 AS col1 FROM tab2
----
-2783
-4525
-997

query I rowsort
SELECT DISTINCT col1 * tab2.col2 - 48 AS col0 FROM tab2
----
1486
598
789

onlyif mysql # use DIV operator for integer division
query I rowsort label-6602
SELECT + ( - col0 ) DIV col2 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6602
SELECT + ( - col0 ) / col2 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT ( tab1.col2 * 97 ) - col2 AS col1 FROM tab1
----
5184
5472
9216

query I rowsort
SELECT ALL - ( + col2 + + 75 ) FROM tab0
----
-108
-157
-76

query I rowsort
SELECT - - 70 * + col2 FROM tab0 AS cor0
----
2310
5740
70

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( col2 ) * CAST ( - col2 AS REAL ) * col1 - + cor0.col2 AS col2 FROM tab1 AS cor0
----
-119904
-32547
-75870

query I rowsort
SELECT DISTINCT - 22 - col1 FROM tab0 AS cor0
----
-108
-113
-119

onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT + col0 DIV col2 + 82 AS col0 FROM tab1
----
82
82
83

skipif mysql # not compatible
query I rowsort label-6608
SELECT + col0 / col2 + 82 AS col0 FROM tab1
----
82
82
83

query I rowsort
SELECT col1 * col0 + ( 72 ) AS col0 FROM tab0
----
2136
3467
8171

query I rowsort
SELECT + col2 + + col2 * 24 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT DISTINCT - col1 + 94 FROM tab1 AS cor0
----
68
81
84

query I rowsort
SELECT - ( cor0.col0 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + - cor0.col2 - 63 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7c2fd524f127616990b5293e64f8d1b

query I rowsort
SELECT - ( 90 ) * + cor0.col1 + col2 FROM tab1 cor0
----
-1074
-2286
-843

query I rowsort
SELECT + col0 * 84 + col0 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT - + 32 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6618
SELECT - - CAST( col2 AS SIGNED ) DIV cor0.col0 col1 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6618
SELECT - - CAST ( col2 AS INTEGER ) / cor0.col0 col1 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT - CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT - CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) FROM tab0, tab2 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - ( - col1 ) + + 29 AS col1 FROM tab0 AS cor0
----
115
120
126

query I rowsort
SELECT ALL - - 76 AS col1 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6623
SELECT - col0 + col0 DIV + 21 FROM tab1 AS cor0
----
-3
-61
-77

skipif mysql # not compatible
query I rowsort label-6623
SELECT - col0 + col0 / + 21 FROM tab1 AS cor0
----
-3
-61
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 - col1 * - col2 col1 FROM tab1
----
1251
1407
573

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6626
SELECT ALL - col0 + - col0 DIV + 37 FROM tab1
----
-3
-65
-82

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - col0 + - col0 / + 37 FROM tab1
----
-3
-65
-82

query I rowsort
SELECT ALL col0 + + col0 + + col2 * + 58 * col1 FROM tab1
----
33188
72544
81438

query I rowsort
SELECT 46 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL 17 + col2 * 87 FROM tab0
----
104
2888
7151

onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT + col1 DIV - col0 col1 FROM tab1 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6630
SELECT + col1 / - col0 col1 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT - + 46 * cor0.col2 + - ( col0 + col1 ) FROM tab0 cor0
----
-1628
-178
-3952

query I rowsort
SELECT ( cor1.col1 ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6633
SELECT ALL 34 * tab1.col2 + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL 34 * tab1.col2 + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 98 ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # use DIV operator for integer division
query I rowsort label-6635
SELECT - col2 + col1 DIV col1 - + col2 FROM tab0 AS cor0
----
-1
-163
-65

skipif mysql # not compatible
query I rowsort label-6635
SELECT - col2 + col1 / col1 - + col2 FROM tab0 AS cor0
----
-1
-163
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6636
SELECT CAST( NULL AS SIGNED ) + col0 + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT CAST ( NULL AS INTEGER ) + col0 + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6637
SELECT + CAST( col2 AS SIGNED ) * + col1 + - cor0.col0 * - col2 - - col0 AS col1 FROM tab0 AS cor0
----
14849
167
3654

skipif mysql # not compatible
query I rowsort label-6637
SELECT + CAST ( col2 AS INTEGER ) * + col1 + - cor0.col0 * - col2 - - col0 AS col1 FROM tab0 AS cor0
----
14849
167
3654

query I rowsort
SELECT col0 * 77 AS col0 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT + - col0 + + 18 AS col1 FROM tab2 AS cor0
----
-60
-61
11

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( ( + col1 ) AS INTEGER ) / CAST ( col1 AS REAL ) + col1 AS col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT 6 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT col0 DIV + 50 + col1 FROM tab1 AS cor0
----
11
14
26

skipif mysql # not compatible
query I rowsort label-6642
SELECT col0 / + 50 + col1 FROM tab1 AS cor0
----
11
14
26

query I rowsort
SELECT ALL + col2 + 1 + col1 FROM tab1 AS cor0
----
110
68
81

query I rowsort
SELECT + col1 + 57 * col2 AS col1 FROM tab0 AS cor0
----
154
1967
4765

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 59 AS REAL ) AS col2 FROM tab2 cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 + - col1 col0 FROM tab2 AS cor0
----
37
65
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * ( col2 ) col2 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT 97 * col1 AS col0 FROM tab2 AS cor0
----
1649
3007
5723

query I rowsort
SELECT - + cor0.col2 * col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - + 17 AS col2 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT 52 FROM tab1, tab2 cor0, tab1 AS cor1
----
52

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + - 58 FROM tab2 AS cor0
----
1386
618
671

query I rowsort
SELECT DISTINCT - - col2 + - 92 * 68 FROM tab1 AS cor0
----
-6160
-6199
-6202

query I rowsort
SELECT ALL + col1 + 73 * col2 FROM tab2 AS cor0
----
1957
2002
2791

query I rowsort
SELECT ALL - col0 * - ( - col1 ) + col0 * - 73 FROM tab1 AS cor0
----
-297
-5312
-6880

query I rowsort
SELECT - col1 - - col0 * + 14 AS col0 FROM tab2
----
1033
1089
67

query I rowsort
SELECT ALL col0 * - 2 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL - - col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT tab2.col0 + 86 AS col1 FROM tab2
----
164
165
93

query I rowsort
SELECT col1 * + 40 AS col0 FROM tab0
----
3440
3640
3880

query I rowsort
SELECT - col0 - 39 FROM tab2
----
-117
-118
-46

query I rowsort
SELECT DISTINCT col2 * col0 + 79 FROM tab0
----
114
7377
871

query I rowsort
SELECT cor0.col1 * + cor1.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to ae9e2bb55fd656eb6c7fb22bc2bb0f90

query I rowsort
SELECT + ( 36 ) * - col2 + col1 FROM tab2 AS cor0
----
-1351
-877
-941

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT col1 + + col0 DIV + 63 AS col0 FROM tab0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-6665
SELECT col1 + + col0 / + 63 AS col0 FROM tab0
----
86
92
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6666
SELECT + col1 DIV ( col1 * col0 ) + - col0 + col2 DIV col1 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-6666
SELECT + col1 / ( col1 * col0 ) + - col0 + col2 / col1 FROM tab1
----
-1
-59
-73

query I rowsort
SELECT - tab0.col2 + 56 * - 66 FROM tab0
----
-3697
-3729
-3778

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col0 FROM tab1 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + + col2 col0 FROM tab0 AS cor0
----
106
155
74

query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6671
SELECT DISTINCT - ( - col2 ) - - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT - ( - col2 ) - - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + cor0.col0 + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL + + col2 * + col2 * - col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT ALL - 52 + - col2 DIV col2 col0 FROM tab1 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - 52 + - col2 / col2 col0 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT 31 FROM tab2, tab1, tab2 AS cor0
----
31

query I rowsort
SELECT ALL ( + 80 ) FROM tab0
----
80
80
80

query I rowsort
SELECT + 10 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 47 + + col0 ) * col2 col2 FROM tab1
----
-3168
-969
2376

query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - 27 + col2 FROM tab0 AS cor0
----
-26
55
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT ALL + + col0 * col2 DIV + col1 AS col2 FROM tab0 cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL + + col0 * col2 / + col1 AS col2 FROM tab0 cor0
----
0
80
9

query I rowsort
SELECT ALL 82 * + cor0.col2 + - col1 * ( + col1 + + col0 ) FROM tab1 AS cor0
----
3674
3934
6663

query I rowsort
SELECT DISTINCT 16 - cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-146
-3632
-7664

onlyif mysql # use DIV operator for integer division
query I rowsort label-6684
SELECT - col2 DIV - col2 + col1 + col0 AS col0 FROM tab1
----
30
75
94

skipif mysql # not compatible
query I rowsort label-6684
SELECT - col2 / - col2 + col1 + col0 AS col0 FROM tab1
----
30
75
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 70 + col1 col0 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT + col0 * + col0 + + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT col2 * - col0 + col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ( + col2 * - tab1.col0 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col1 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - col2 * col1 + col2 * col1 - 5 AS col2 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + - col2 + col0 + - 65 AS col0 FROM tab1 AS cor0
----
-116
-58
-81

query I rowsort
SELECT - col1 * ( cor0.col2 ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT ALL - - col0 + - col1 DIV - 52 AS col2 FROM tab0 cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - - col0 + - col1 / - 52 AS col2 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT + cor0.col0 * 57 + + col1 + col0 AS col0 FROM tab1 AS cor0
----
200
3722
4653

query I rowsort
SELECT - col2 * + 27 - col2 AS col0 FROM tab0 cor0
----
-2296
-28
-924

query I rowsort
SELECT + col0 * - cor0.col1 * col1 - col1 * col0 FROM tab1 AS cor0
----
-14560
-2106
-7040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6697
SELECT ALL + col2 DIV - 72 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
79

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL + col2 / - 72 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT ALL + ( 22 ) + - col1 DIV col1 FROM tab0 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + ( 22 ) + - col1 / col1 FROM tab0 AS cor0
----
21
21
21

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc

query I rowsort
SELECT DISTINCT + - 40 - + col1 AS col2 FROM tab0 AS cor0
----
-126
-131
-137

query I rowsort
SELECT ALL cor0.col0 * 21 FROM tab0 AS cor0
----
1869
504
735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * col0 col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - ( col2 ) * col2 + ( col2 ) AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - 35 * - col0 + - col0 * 41 FROM tab1 AS cor0
----
-18
-384
-480

query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col0 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + ( 48 ) * col0 AS col0 FROM tab2 cor0
----
336
3744
3792

query I rowsort
SELECT ALL - 61 + - col1 FROM tab2 AS cor0
----
-120
-78
-92

query I rowsort
SELECT ALL - + 3 + - ( cor0.col1 ) FROM tab2 AS cor0
----
-20
-34
-62

query I rowsort
SELECT DISTINCT col0 * col2 - - col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + - ( - col2 ) + col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6712
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 11 AS col1 FROM tab1 cor0
----
33
704
880

query I rowsort
SELECT ALL + col0 + - cor0.col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 54 col0 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT - 39 + + col0 AS col2 FROM tab0 AS cor0
----
-15
-4
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6717
SELECT ( + col0 ) * col0 * - col1 + col0 DIV col1 AS col2 FROM tab2
----
-106093
-1519
-358955

skipif mysql # not compatible
query I rowsort label-6717
SELECT ( + col0 ) * col0 * - col1 + col0 / col1 AS col2 FROM tab2
----
-106093
-1519
-358955

query I rowsort
SELECT + 18 * + 72 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 74b2f8923b51890fe851797145e403cd

query I rowsort
SELECT ALL - + cor0.col1 * + cor0.col0 + col1 * + col1 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT ( - 55 ) FROM tab1, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT - col1 + col0 * 36 FROM tab0 AS cor0
----
1163
3113
778

query I rowsort
SELECT - col2 * - ( - col0 ) + - cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT + col0 * col2 + - col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT + col1 + - 9 AS col1 FROM tab0 AS cor0
----
77
82
88

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - cor0.col2 * col1 + col0 + col1 AS col1 FROM tab2 AS cor0
----
-1397
-550
-799

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab1, tab1 AS cor0
----
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6728
SELECT ALL col2 DIV 95 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL col2 / 95 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL 89 * col0 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT DISTINCT col0 * - col1 + col2 AS col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - - col0 + ( col0 * col1 ) FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6732
SELECT + cor0.col2 + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-6732
SELECT + cor0.col2 + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + - col0 + col1 AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ALL - tab1.col0 + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5db1b428328d3aeb989d83ca6ad36559

query I rowsort
SELECT - col1 - + col1 * - 70 AS col1 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT + - col0 + col2 + col0 AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + ( - col0 + col0 ) * - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + 6 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6739
SELECT ALL - col0 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - col0 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 41 - - col1 * + col2 * - ( + 88 ) AS col2 FROM tab0
----
-249752
-656615
-8576

query I rowsort
SELECT ALL tab2.col1 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - col2 * - 2 + + 80 FROM tab1 AS cor0
----
188
194
272

query I rowsort
SELECT DISTINCT + col0 * + 36 - + col1 AS col2 FROM tab2
----
221
2749
2827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 99 - - col1 col1 FROM tab1
----
-1274
-2548
-980

query I rowsort
SELECT DISTINCT col2 + col1 + col2 * tab2.col1 FROM tab2
----
1619
701
895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 49 col2 FROM tab0
----
-33
16
48

query I rowsort
SELECT DISTINCT + ( 35 ) * - col2 AS col0 FROM tab0
----
-1155
-2870
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col1 FROM tab2
----
29
29
29

query I rowsort
SELECT + + col1 * col2 * - 53 FROM tab2 AS cor0
----
-34238
-44361
-81302

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6750
SELECT ALL + CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL + CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col0 * 87 col1 FROM tab2 cor0
----
-4263
-529308
-542967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - 54 col0 FROM tab2 cor0
----
-113
-71
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT ALL - col0 DIV + 96 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - col0 / + 96 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col2 + col2 col0 FROM tab1 AS cor0
----
105
112
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6756
SELECT DISTINCT + col0 * - col1 + col2 * - col1 DIV - col1 FROM tab0
----
-2031
-3394
-8017

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + col0 * - col1 + col2 * - col1 / - col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + col0 + + col2 + col0 AS col0 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL ( col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - col2 * + col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT + ( ( cor0.col0 ) ) * - col2 - + cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + col1 * col0 col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + + 28 AS col2 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT + - col2 * cor0.col1 - - 85 FROM tab0 AS cor0
----
-12
-2753
-7377

query I rowsort
SELECT ALL - - col0 + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + - 10 + col1 * col0 FROM tab2 AS cor0
----
1333
207
4592

query I rowsort
SELECT DISTINCT - + col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6767
SELECT + 58 DIV col1 FROM tab2 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6767
SELECT + 58 / col1 FROM tab2 cor0
----
0
1
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT DISTINCT 43 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT 43 / + col1 AS col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT ( - 85 ) * - col0 FROM tab1
----
255
5440
6800

query I rowsort
SELECT DISTINCT col1 + + 74 - col2 AS col1 FROM tab0
----
127
170
83

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 - - CAST ( col0 AS REAL ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT ALL - col2 DIV - ( + col0 ) FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - col2 / - ( + col0 ) FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL + - col0 + col2 * + cor0.col2 + - cor0.col1 FROM tab0 AS cor0
----
-131
6544
979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 59 + + cor0.col2 col2 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT ALL + - col0 + - 41 FROM tab1 AS cor0
----
-105
-121
-44

query I rowsort
SELECT - - col1 + col2 * + ( - cor0.col2 ) * 7 FROM tab1 AS cor0
----
-20386
-22733
-64499

query I rowsort
SELECT - - col2 * + col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - - cor0.col1 - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col0 + 99 AS col2 FROM tab0 cor0
----
123
134
188

query I rowsort
SELECT DISTINCT + col0 * col2 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - tab2.col1 - + col1 col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT - col1 + + ( + col1 ) * - col0 FROM tab1
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( - col0 ) col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - + ( ( col0 ) ) * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col0 + + 35 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT + col0 * ( col0 * col2 ) AS col1 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL col2 * 26 AS col2 FROM tab1
----
1404
1482
2496

query I rowsort
SELECT ALL col0 * ( col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT + 55 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL - 96 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col2 ) + col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 - - ( + col0 ) FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - cor0.col0 + ( col1 ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - col2 * 70 + - col1 - - col2 * + col0 FROM tab0 AS cor0
----
-132
-1604
1467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col0 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - col0 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - 85 AS col0 FROM tab1 cor0
----
-85
-85
-85

query I rowsort
SELECT ALL col2 * - col2 + col2 + col2 FROM tab2
----
-1368
-624
-675

query I rowsort
SELECT - 1 + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + ( + col2 ) + - CAST ( col2 * col0 AS REAL ) FROM tab2 cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + - 49 col1 FROM tab2 AS cor0
----
140
1979
2953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 12 * + cor0.col0 FROM tab2 AS cor0
----
84
936
948

query I rowsort
SELECT ALL - col2 + col1 * col1 * col2 FROM tab0 AS cor0
----
244035
678960
9408

query I rowsort
SELECT DISTINCT 88 + - col0 * col0 FROM tab2
----
-5996
-6153
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6807
SELECT ALL + - col1 * + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL + - col1 * + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT ALL - cor0.col1 DIV 32 FROM tab0 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - cor0.col1 / 32 FROM tab0 AS cor0
----
-2
-2
-3

query I rowsort
SELECT 52 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT col1 * ( - col2 + - col0 * + col0 ) FROM tab2 AS cor0
----
-106743
-2356
-360490

query I rowsort
SELECT + cor0.col2 * ( col1 ) + + col2 * 29 FROM tab2 cor0
----
1620
1748
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-6812
SELECT - col1 DIV - ( col1 ) + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6812
SELECT - col1 / - ( col1 ) + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT col0 * - 72 AS col2 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT - col0 + 64 * - cor0.col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
40896
4989
66480

query I rowsort
SELECT ALL + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT DISTINCT - col2 DIV - 71 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT - col2 / - 71 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT cor0.col1 * col1 + 37 * col1 * col0 AS col2 FROM tab1 AS cor0
----
23780
3562
38649

onlyif mysql # use DIV operator for integer division
query I rowsort label-6818
SELECT DISTINCT - col2 * - col1 + + col1 DIV col1 FROM tab0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - col2 * - col1 + + col1 / col1 FROM tab0
----
2839
7463
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT DISTINCT col2 DIV - col0 + col2 * col1 FROM tab0
----
2837
7462
97

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT col2 / - col0 + col2 * col1 FROM tab0
----
2837
7462
97

query I rowsort
SELECT - cor0.col1 * - col0 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-119678
-51072
-5886

onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT - 2 * col1 DIV + col0 AS col2 FROM tab1
----
-17
0
0

skipif mysql # not compatible
query I rowsort label-6821
SELECT - 2 * col1 / + col0 AS col2 FROM tab1
----
-17
0
0

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 28 AS REAL ) + - col2 FROM tab1
----
-26
-29
-68

query I rowsort
SELECT + + 23 + - col2 AS col2 FROM tab1 cor0
----
-31
-34
-73

query I rowsort
SELECT 25 * + col2 - col2 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT col0 - - col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL - + cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col0 * - 64 FROM tab0
----
-1536
-2240
-5696

onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT + ( + 4 ) DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6828
SELECT + ( + 4 ) / + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 1 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT col1 + col1 * col1 * - col2 - - col0 FROM tab0 AS cor0
----
-243958
-678862
-9277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 + - col2 * col0 + col2 * + col0 col1 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT 60 FROM tab2, tab1 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL - col1 * + cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col1 * 63 * col0 FROM tab1 AS cor0
----
40320
4914
65520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6835
SELECT - + CAST( NULL AS DECIMAL ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT - + CAST ( NULL AS REAL ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 18 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL col2 * col1 + + col2 * + col0 AS col1 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 - col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT + cor0.col0 * col2 + col1 AS col0 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - cor0.col0 * + col0 >= ( - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col1 + col2 * - col1 - + col0 FROM tab0 AS cor0
----
-229
-2948
-7642

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT ALL col0 + col0 - + col1 * + col1 * cor0.col0 AS col2 FROM tab2 cor0
----
-22673
-271362
-6713

query I rowsort
SELECT DISTINCT 97 * + tab0.col2 FROM tab0
----
3201
7954
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT + col1 DIV col0 + col2 AS col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-6846
SELECT + col1 / col0 + col2 AS col0 FROM tab2 AS cor0
----
26
31
38

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 <= ( NULL ) AND col0 IN ( - col2 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 * + col1 col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-6849
SELECT DISTINCT - col2 DIV - col0 + - col0 FROM tab0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT - col2 / - col0 + - col0 FROM tab0
----
-23
-35
-89

query I rowsort
SELECT - ( - col0 + - ( 10 ) ) AS col0 FROM tab2
----
17
88
89

query I rowsort
SELECT - col0 + + col1 * + 59 AS col2 FROM tab0 AS cor0
----
5050
5280
5688

query I rowsort
SELECT ALL - 92 + col1 FROM tab1 cor0
----
-66
-79
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6853
SELECT - ( - col1 ) * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT - ( - col1 ) * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 29 + col0 AS col1 FROM tab1
----
109
32
93

query I rowsort
SELECT ALL - cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT col1 * ( col2 * + col2 ) + col0 AS col0 FROM tab0
----
132
611973
93678

query I rowsort
SELECT DISTINCT tab1.col1 + 93 AS col1 FROM tab1, tab0, tab0 AS cor0
----
103
106
119

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col0 + - ( col1 ) * - cor0.col1 * 61 AS col2 FROM tab1 AS cor0
----
10389
41239
6164

query I rowsort
SELECT DISTINCT col2 * + ( + col2 ) * + col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT - cor0.col2 + + ( cor0.col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 + + ( col0 ) + col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6864
SELECT + 87 * - 25 * col2 + 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-6864
SELECT + 87 * - 25 * col2 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 65 + col0 AS col2 FROM tab0 cor0
----
-30
-41
24

query I rowsort
SELECT ALL - col2 * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col1 + col1 + 53 AS col1 FROM tab1 AS cor0
----
105
73
79

query I rowsort
SELECT ALL + col2 + + col0 * - col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - - 55 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6870
SELECT ALL cor0.col0 * - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL cor0.col0 * - col1 / - col1 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col2 FROM tab0
----
-94
-94
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6872
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 * - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 * - col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 * - col1 + tab1.col2 FROM tab1
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6874
SELECT DISTINCT + CAST( col0 AS SIGNED ) + col1 * 93 AS col1 FROM tab1
----
1289
2421
994

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + col1 * 93 AS col1 FROM tab1
----
1289
2421
994

query I rowsort
SELECT 0 + + col0 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT 17 + - col2 + col1 * - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-16303
-36541
-5740

query I rowsort
SELECT DISTINCT + col1 * col0 + col0 * + col0 AS col2 FROM tab0
----
16020
2640
4620

query I rowsort
SELECT col1 * col1 + - tab1.col1 * 36 FROM tab1
----
-260
-260
-299

query I rowsort
SELECT ALL - - col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT + 32 + - col1 FROM tab2 cor0
----
-27
1
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT DISTINCT col1 * col0 DIV + col1 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT col1 * col0 / + col1 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 38 * col0 AS col1 FROM tab0
----
1330
3382
912

query I rowsort
SELECT ALL + - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT - + col0 + col1 * - col2 DIV cor0.col2 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-6887
SELECT - + col0 + col1 * - col2 / cor0.col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - col1 * col0 + + 22 FROM tab2 AS cor0
----
-1321
-195
-4580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6889
SELECT + cor0.col2 + + cor0.col2 DIV cor0.col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6889
SELECT + cor0.col2 + + cor0.col2 / cor0.col1 FROM tab2 AS cor0
----
26
27
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6890
SELECT + + col0 * CAST( NULL AS SIGNED ) * + col2 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-6890
SELECT + + col0 * CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 + col1 + + col0 AS col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT - 38 * col0 FROM tab2
----
-266
-2964
-3002

query I rowsort
SELECT - ( col0 ) + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6894
SELECT - ( + ( col1 ) ) + col0 DIV - col2 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-6894
SELECT - ( + ( col1 ) ) + col0 / - col2 FROM tab1 AS cor0
----
-11
-13
-26

query I rowsort
SELECT - + col2 + - 11 FROM tab1 cor0
----
-107
-65
-68

query I rowsort
SELECT + col2 * ( col1 ) - - 32 AS col2 FROM tab1 AS cor0
----
1280
1436
602

query I rowsort
SELECT ALL + + col1 + + col2 + - col1 * + ( - col0 ) FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT DISTINCT + 88 - col1 FROM tab2 AS cor0
----
29
57
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6899
SELECT DISTINCT + cor0.col2 * cor0.col2 DIV - cor0.col1 + col1 FROM tab0 AS cor0
----
18
74
97

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT + cor0.col2 * cor0.col2 / - cor0.col1 + col1 FROM tab0 AS cor0
----
18
74
97

query I rowsort
SELECT DISTINCT ( - col0 ) * - col2 - + col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT col2 * 97 + 40 AS col1 FROM tab2
----
2562
2659
3726

query I rowsort
SELECT - col1 * - 48 + 51 FROM tab0
----
4179
4419
4707

query I rowsort
SELECT 57 + + cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
219
3705
7737

query I rowsort
SELECT DISTINCT tab2.col2 - + 88 * col0 AS col1 FROM tab2
----
-589
-6838
-6914

query I rowsort
SELECT ALL col2 * col0 + 97 - tab2.col2 FROM tab2
----
2099
259
3061

query I rowsort
SELECT DISTINCT ( col2 ) + col1 FROM tab1
----
109
67
80

query I rowsort
SELECT - col0 * + 56 AS col1 FROM tab1
----
-168
-3584
-4480

query I rowsort
SELECT DISTINCT - 32 * + col0 AS col0 FROM tab0 AS cor0
----
-1120
-2848
-768

query I rowsort
SELECT col2 + + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + 35 * - col1 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT ALL - col1 * cor0.col0 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT 32 + + col0 AS col1 FROM tab1
----
112
35
96

query I rowsort
SELECT 48 FROM tab1 cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6914
SELECT ALL + + col0 DIV + 50 AS col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL + + col0 / + 50 AS col0 FROM tab2 cor0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6915
SELECT - 22 * col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT - 22 * 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-6916
SELECT - CAST( - ( - cor0.col0 ) AS SIGNED ) + col1 AS col0 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-6916
SELECT - CAST ( - ( - cor0.col0 ) AS INTEGER ) + col1 AS col0 FROM tab1 cor0
----
-54
-67
23

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT 72 + col2 DIV + ( col0 ) AS col0 FROM tab1
----
72
73
90

skipif mysql # not compatible
query I rowsort label-6919
SELECT 72 + col2 / + ( col0 ) AS col0 FROM tab1
----
72
73
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6920
SELECT + CAST( NULL AS DECIMAL ) - 32 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6920
SELECT + CAST ( NULL AS REAL ) - 32 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( - col2 ) col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-71

query I rowsort
SELECT DISTINCT + tab1.col0 * - 44 FROM tab1
----
-132
-2816
-3520

query I rowsort
SELECT - col2 + + cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL col2 * - col0 + + col2 * + col0 * 64 AS col1 FROM tab1
----
10206
229824
483840

query I rowsort
SELECT cor0.col2 + col1 * - col0 AS col2 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + col1 + + col0 * 72 + col2 * 23 FROM tab2 AS cor0
----
1156
6273
6579

query I rowsort
SELECT - col1 + - col0 * 34 FROM tab1
----
-128
-2186
-2733

query I rowsort
SELECT col1 * - ( cor0.col2 ) * col2 + ( col1 ) AS col1 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT - - col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + - 85 + 16 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6932
SELECT CAST( col2 * - col2 AS SIGNED ) AS col2 FROM tab1
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-6932
SELECT CAST ( col2 * - col2 AS INTEGER ) AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT 13 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67

query I rowsort
SELECT + ( - col0 ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6935
SELECT DISTINCT - ( + col0 ) * - cor0.col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT - ( + col0 ) * - cor0.col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * 3 * - col2 AS col0 FROM tab1 AS cor0
----
1710
3744
4212

onlyif mysql # use DIV operator for integer division
query I rowsort label-6937
SELECT - - col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6937
SELECT - - col0 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6938
SELECT DISTINCT cor0.col0 DIV + 15 FROM tab2 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT cor0.col0 / + 15 FROM tab2 cor0
----
0
5

query I rowsort
SELECT - + 72 + col1 * col1 FROM tab0 AS cor0
----
7324
8209
9337

query I rowsort
SELECT DISTINCT + 32 * - col2 + col0 FROM tab0 cor0
----
-1032
-2535
3

query I rowsort
SELECT - - col2 - + col2 * - col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT col0 * - col0 - - col2 * col0 AS col1 FROM tab1
----
-448
1280
153

query I rowsort
SELECT DISTINCT col1 - + col0 * col1 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 * - col0 + col2 * + col2 AS col2 FROM tab2
----
-4797
-5408
680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + 8 col1 FROM tab0
----
-27
-7290
-784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col2 + 68 FROM tab0 cor0
----
101
150
69

query I rowsort
SELECT + col0 * col0 + + col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL + cor0.col0 + + ( col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT col0 + 1 + - col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT cor0.col1 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + col0 * - ( col0 ) + col2 + col0 AS col2 FROM tab2 AS cor0
----
-15
-5980
-6124

query I rowsort
SELECT ALL col0 * - cor0.col2 + col0 + col1 AS col2 FROM tab1 AS cor0
----
-133
-3574
-7587

query I rowsort
SELECT DISTINCT - col0 + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT 3 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL 12 * + col1 + - ( 58 ) * col0 FROM tab1 AS cor0
----
-3592
-4484
138

query I rowsort
SELECT ALL + tab2.col2 * + col2 AS col2 FROM tab2
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT ALL + col2 * + col1 * + col0 + cor0.col0 * col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
119626
50996
5832

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL + col2 * + col1 * + col0 + cor0.col0 * col2 / - col0 AS col1 FROM tab2 AS cor0
----
119626
50996
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT DISTINCT + cor0.col1 DIV col1 col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT + cor0.col1 / col1 col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 83 FROM tab2, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
83

query I rowsort
SELECT ALL - col0 + col1 * col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - 94 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
-3
-8
3

query I rowsort
SELECT ALL col2 * + col2 * - col0 AS col0 FROM tab2
----
-114076
-5103
-52728

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND - tab0.col1 - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * + col2 col2 FROM tab2
----
189
2028
3002

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 * - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND - col2 + col2 - col2 * + col2
----

query I rowsort
SELECT ALL col0 * - col0 * col1 AS col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab2, tab0, tab0 cor0
----
94

query I rowsort
SELECT + + 77 * - col1 FROM tab0 AS cor0
----
-6622
-7007
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * + col0 col0 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT ALL + - col1 + - col2 * + col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - 54 FROM tab1, tab0, tab1 AS cor0
----
-54

query I rowsort
SELECT 88 + - col0 AS col1 FROM tab2
----
10
81
9

query I rowsort
SELECT ALL col2 * + col0 + col2 * col2 + tab0.col0 AS col0 FROM tab0
----
14111
1905
71

query I rowsort
SELECT DISTINCT col1 + - col0 * + col0 AS col0 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT ALL col2 DIV - col0 col1 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL col2 / - col0 col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT + col0 * col2 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
132
7389
878

query III rowsort
SELECT * FROM tab2 WHERE NOT tab2.col2 - col0 IN ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col0 + col0 + tab0.col2 FROM tab0
----
260
71
81

query I rowsort
SELECT col1 * col1 FROM tab1 WHERE NOT ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col0 * + col0 * - col1 AS col2 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT - tab2.col0 * col1 + col2 AS col1 FROM tab2
----
-1305
-190
-4576

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - tab0.col0 - col0 )
----

query I rowsort
SELECT tab1.col0 + + col0 * col1 AS col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT - col2 + - col2 * col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 * tab1.col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 / + col2 + col1 BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT col2 + - tab1.col2 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * + col1 col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT + col2 * + col2 + - col2 AS col1 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT - 49 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT ALL - col0 + 31 FROM tab0
----
-4
-58
7

query I rowsort
SELECT + 45 * + col0 FROM tab0
----
1080
1575
4005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col0 FROM tab1
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * + cor0.col1 - col0 col1 FROM tab0 AS cor0
----
548
578
644

query I rowsort
SELECT + col0 - - 31 FROM tab0 AS cor0
----
120
55
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT DISTINCT + col1 * - col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT + col1 * - col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL ( col0 ) * col1 * + ( col0 ) FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + cor0.col2 * - col1 * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 21 + - col1 col2 FROM tab0 AS cor0
----
-107
-112
-118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + ( + cor0.col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 63 * cor0.col2 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT + 90 * col1 AS col1 FROM tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT ALL - col2 + tab2.col1 * col2 * - col2 AS col0 FROM tab2
----
-22626
-24586
-39910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col0 col1 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort
SELECT ALL - - col0 * CAST ( - 0 AS REAL ) + col0 * col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - + cor0.col0 * ( col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 * - ( - 23 ) + col0 AS col1 FROM tab2 AS cor0
----
168
1872
1896

onlyif mysql # use DIV operator for integer division
query I rowsort label-7012
SELECT DISTINCT col2 * + col2 + - 20 * col1 + col2 DIV col0 FROM tab2 cor0
----
-504
1104
112

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT col2 * + col2 + - 20 * col1 + col2 / col0 FROM tab2 cor0
----
-504
1104
112

query I rowsort
SELECT ALL col0 * - ( 21 * + col2 ) + - ( col1 ) * - col2 + col2 FROM tab0 AS cor0
----
-13761
-145714
-637

query I rowsort
SELECT - cor0.col0 * 37 FROM tab1 cor0
----
-111
-2368
-2960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7015
SELECT + col0 * - CAST( NULL AS SIGNED ) + - col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7015
SELECT + col0 * - CAST ( NULL AS INTEGER ) + - col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + col1 - - 28 AS col1 FROM tab0 AS cor0
----
-2036
-3367
-8071

query I rowsort
SELECT DISTINCT + - col0 * - col2 + col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT ALL - col2 * - col0 - + col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col2 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT tab2.col0 * + ( col1 ) + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT col2 + + col1 + col2 AS col1 FROM tab2
----
111
85
93

query I rowsort
SELECT ALL 91 * + col1 AS col0 FROM tab0
----
7826
8281
8827

query I rowsort
SELECT + col1 * + col2 + col1 * + col1 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT ALL - - cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col0 + + 92 * col0 AS col1 FROM tab1 AS cor0
----
279
5952
7440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7027
SELECT DISTINCT + col1 + CAST( - 94 AS SIGNED ) FROM tab1 cor0
----
-68
-81
-84

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT + col1 + CAST ( - 94 AS INTEGER ) FROM tab1 cor0
----
-68
-81
-84

query I rowsort
SELECT - col0 * + 51 AS col0 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT DISTINCT - col1 * 39 + col0 AS col0 FROM tab0 AS cor0
----
-3330
-3460
-3748

onlyif mysql # use DIV operator for integer division
query I rowsort label-7030
SELECT col0 * + col2 + col1 * col0 DIV cor0.col1 FROM tab2 AS cor0
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-7030
SELECT col0 * + col2 + col1 * col0 / cor0.col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT 37 + 88 FROM tab0 AS cor0
----
125
125
125

query I rowsort
SELECT ALL tab0.col1 + 7 FROM tab0
----
104
93
98

query I rowsort
SELECT - ( + 28 ) FROM tab2, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT + col1 DIV - ( 55 * col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT + col1 / - ( 55 * col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
24
35
89

query I rowsort
SELECT - 88 - + col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7484
-8369
-9497

query I rowsort
SELECT + - ( 19 ) * col2 + cor0.col1 FROM tab2 AS cor0
----
-435
-482
-705

query I rowsort
SELECT ALL - + 48 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 70b0cff913cec85654af0aaf3f5f6d85

query I rowsort
SELECT - - col2 * col2 + cor0.col1 * 56 + - col0 * + col2 FROM tab1 AS cor0
----
161
2264
4210

query I rowsort
SELECT + 85 * tab1.col2 FROM tab1
----
4590
4845
8160

query I rowsort
SELECT DISTINCT - 91 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
-91

query I rowsort
SELECT DISTINCT + + col1 * + col1 * 63 + + col2 AS col2 FROM tab1 AS cor0
----
10743
42642
6357

query I rowsort
SELECT - 55 + col0 FROM tab0 AS cor0
----
-20
-31
34

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7045
SELECT ALL + 91 * cor0.col1 * CAST( + 29 * cor0.col0 AS SIGNED ) - - cor0.col2 AS col2 FROM tab0 AS cor0
----
21373343
5446929
8959406

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + 91 * cor0.col1 * CAST ( + 29 * cor0.col0 AS INTEGER ) - - cor0.col2 AS col2 FROM tab0 AS cor0
----
21373343
5446929
8959406

query I rowsort
SELECT + 39 * + col1 + col1 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT + + 28 + - col0 AS col2 FROM tab2 AS cor0
----
-50
-51
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT ALL + col2 + col1 DIV - ( - col2 * col2 ) AS col2 FROM tab0 AS cor0
----
33
82
98

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + col2 + col1 / - ( - col2 * col2 ) AS col2 FROM tab0 AS cor0
----
33
82
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + 35 + - 26 col2 FROM tab1 AS cor0
----
105
63
66

query I rowsort
SELECT DISTINCT - + 62 * + col1 - + col2 * - cor0.col0 FROM tab1 AS cor0
----
-1450
3028
6874

onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT col1 * + col1 + + CAST( 67 AS SIGNED ) DIV col2 FROM tab0 cor0
----
7398
8281
9476

skipif mysql # not compatible
query I rowsort label-7051
SELECT col1 * + col1 + + CAST ( 67 AS INTEGER ) / col2 FROM tab0 cor0
----
7398
8281
9476

query I rowsort
SELECT - 81 * cor0.col2 * - 90 + col1 AS col0 FROM tab2 AS cor0
----
189599
196861
277037

query I rowsort
SELECT - 43 * - col0 * - col1 FROM tab1
----
-27520
-3354
-44720

query I rowsort
SELECT DISTINCT + col2 + + tab1.col0 - + col0 FROM tab1
----
54
57
96

query I rowsort
SELECT + 12 * col2 * + col2 FROM tab2
----
17328
8112
8748

query I rowsort
SELECT ALL 85 * col2 AS col1 FROM tab2
----
2210
2295
3230

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT + col1 + col0 DIV + ( - col0 ) AS col2 FROM tab2 cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-7057
SELECT + col1 + col0 / + ( - col0 ) AS col2 FROM tab2 cor0
----
16
30
58

query I rowsort
SELECT DISTINCT 14 * col1 AS col1 FROM tab1 AS cor0
----
140
182
364

onlyif mysql # use DIV operator for integer division
query I rowsort label-7059
SELECT DISTINCT - ( - col2 ) DIV col0 AS col1 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT - ( - col2 ) / col0 AS col1 FROM tab0 cor0
----
0
1

query I rowsort
SELECT - + ( + col0 ) + + ( col1 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col0 + + col2 * + cor0.col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT col2 + 94 FROM tab2
----
120
121
132

query I rowsort
SELECT + 48 + + col1 AS col1 FROM tab1
----
58
61
74

query I rowsort
SELECT DISTINCT 0 + 6 AS col2 FROM tab2
----
6

query I rowsort
SELECT ( col1 ) - - col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT + 24 * col1 + cor0.col1 * col2 DIV cor0.col2 + col1 FROM tab0 AS cor0
----
2236
2366
2522

skipif mysql # not compatible
query I rowsort label-7066
SELECT + 24 * col1 + cor0.col1 * col2 / cor0.col2 + col1 FROM tab0 AS cor0
----
2236
2366
2522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col1 FROM tab2 AS cor0
----
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT + - col1 * col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-7068
SELECT + - col1 * col0 / - col2 AS col1 FROM tab1 AS cor0
----
1
10
11

query I rowsort
SELECT DISTINCT col1 * 79 + + col0 FROM tab0 AS cor0
----
6818
7278
7698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7070
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col0 * 61 FROM tab0 AS cor0
----
1464
2135
5429

query I rowsort
SELECT DISTINCT col0 + + 91 * + 32 FROM tab0 AS cor0
----
2936
2947
3001

query I rowsort
SELECT - - cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7074
SELECT + col1 + + CAST( 99 * col2 AS SIGNED ) FROM tab1 AS cor0
----
5372
5653
9517

skipif mysql # not compatible
query I rowsort label-7074
SELECT + col1 + + CAST ( 99 * col2 AS INTEGER ) FROM tab1 AS cor0
----
5372
5653
9517

query I rowsort
SELECT ALL col0 * + col0 + col1 * col2 AS col2 FROM tab1 cor0
----
1413
4666
7648

onlyif mysql # use DIV operator for integer division
query I rowsort label-7076
SELECT + - col0 DIV 91 - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7076
SELECT + - col0 / 91 - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col1 * - col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col1 + + 22 FROM tab0 AS cor0
----
-64
-69
-75

query I rowsort
SELECT ALL + col1 * 22 AS col0 FROM tab0 AS cor0
----
1892
2002
2134

onlyif mysql # use DIV operator for integer division
query I rowsort label-7080
SELECT col0 * col0 + + cor0.col0 DIV + col1 col2 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7080
SELECT col0 * col0 + + cor0.col0 / + col1 col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + cor0.col2 * ( col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + + ( ( - col0 ) ) * 72 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT + col1 + 97 * - col0 * 99 FROM tab0 AS cor0
----
-230386
-336008
-854576

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL cor0.col1 + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + + cor0.col2 * - cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL col2 * col1 + - col1 * + col1 AS col0 FROM tab1
----
1079
470
728

query I rowsort
SELECT ( tab0.col0 + + tab0.col1 ) AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT - cor0.col0 - + 89 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 133b9de2d7e5247b7f45792fdfcb0a16

onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT ALL col2 DIV - col1 - 83 DIV 89 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL col2 / - col1 - 83 / 89 FROM tab2 AS cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT 5 DIV - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT 5 / - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 15 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * col0 col2 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT - 15 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT + - cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL 6 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT 15 FROM tab1, tab0 cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 - + 27 * + col0 col0 FROM tab2 AS cor0
----
-196
-2184
-2212

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7101
SELECT + col0 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7101
SELECT + col0 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 * - 29 - + col0 * col0 FROM tab0 AS cor0
----
-10299
-1254
-1533

query I rowsort
SELECT - - col1 * 9 - col0 AS col2 FROM tab1 AS cor0
----
231
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7104
SELECT - 47 DIV tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

skipif mysql # not compatible
query I rowsort label-7104
SELECT - 47 / tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

query I rowsort
SELECT ALL + 61 + tab0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 63344c36490bcb5c486e5daad5199485

query I rowsort
SELECT ALL col0 * - col2 * + col2 AS col1 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT 42 * - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT + 14 * 18 FROM tab0 AS cor0
----
252
252
252

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT - col1 DIV 78 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT - col1 / 78 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + cor0.col1 col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT DISTINCT + 1 * col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT + 1 * col2 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ( ( - cor0.col0 ) ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7113
SELECT DISTINCT CAST( col1 * col2 AS SIGNED ) AS col2 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT CAST ( col1 * col2 AS INTEGER ) AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - - 20 + - col1 FROM tab2 AS cor0
----
-11
-39
3

query I rowsort
SELECT DISTINCT - - ( - col2 ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 17 + col2 * col0 AS col1 FROM tab2 AS cor0
----
2045
206
3019

query I rowsort
SELECT + 43 * col1 AS col0 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT ALL - col2 * + cor0.col1 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ( - cor0.col2 ) * + col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT 30 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT ALL ( col0 + + col2 ) * col1 DIV tab1.col1 AS col0 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL ( col0 + + col2 ) * col1 / tab1.col1 AS col0 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT - - col1 DIV - col0 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7122
SELECT - - col1 / - col0 FROM tab2 cor0
----
-4
0
0

query I rowsort
SELECT + 74 * col2 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT - col1 * cor0.col1 * - ( + 72 + - col1 ) AS col2 FROM tab2 cor0
----
15895
39401
45253

query I rowsort
SELECT ALL - col0 * - col1 * col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL - col2 * 70 AS col1 FROM tab2
----
-1820
-1890
-2660

query I rowsort
SELECT + col1 + col2 * - col0 * - col0 + ( - 96 ) AS col1 FROM tab2
----
1258
158147
237079

query I rowsort
SELECT DISTINCT - col0 * col2 - 30 FROM tab2
----
-2058
-219
-3032

query I rowsort
SELECT + ( - 48 ) FROM tab1 cor0
----
-48
-48
-48

query I rowsort
SELECT - - col0 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col0 * + col2 * cor0.col1 + - 82 FROM tab1 AS cor0
----
36398
4130
99758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + + col1 col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + 2 * col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + ( 47 ) + col0 FROM tab1 cor0
----
111
127
50

query I rowsort
SELECT DISTINCT + ( ( col2 ) ) * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 25 + - ( - col1 ) FROM tab2 AS cor0
----
-8
34
6

query I rowsort
SELECT 29 * ( col0 ) + ( + 54 ) FROM tab2 AS cor0
----
2316
2345
257

onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT 14 DIV - col2 AS col2 FROM tab0 AS cor0
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-7138
SELECT 14 / - col2 AS col2 FROM tab0 AS cor0
----
-14
0
0

query I rowsort
SELECT + 95 * - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-5133
-5479
-9200

query I rowsort
SELECT 33 * col1 * col1 FROM tab1 AS cor0
----
22308
3300
5577

onlyif mysql # use DIV operator for integer division
query I rowsort label-7141
SELECT - - col2 * col0 DIV col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7141
SELECT - - col2 * col0 / col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT - col1 DIV - col1 col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7142
SELECT - col1 / - col1 col0 FROM tab0
----
1
1
1

query I rowsort
SELECT 89 * col1 AS col0 FROM tab1 AS cor0
----
1157
2314
890

query I rowsort
SELECT + col1 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + + 59 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-7146
SELECT ( col2 ) DIV - col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7146
SELECT ( col2 ) / - col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 10 + + col0 col1 FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT - + col1 * col1 + col2 * col1 AS col0 FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT ALL col1 * + ( - col0 ) + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + - cor0.col0 - - ( + col0 + + col0 ) * cor0.col1 FROM tab0 cor0
----
16109
4104
6755

query I rowsort
SELECT ALL - + col1 + - col1 AS col0 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - - col1 - col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7154
SELECT col2 - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT col2 - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - col0 * + col1 * - cor0.col1 FROM tab2 AS cor0
----
22793
271492
6700

query I rowsort
SELECT ALL col0 * - col1 * col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - col2 * col1 + 81 AS col0 FROM tab0 AS cor0
----
-16
-2757
-7381

query I rowsort
SELECT DISTINCT - - col1 * col2 - + col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 - - col0 col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + - cor0.col1 + + col2 * col0 * col0 AS col1 FROM tab2 cor0
----
1292
158125
237141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7161
SELECT ALL - col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col1 * 45 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
3837
4013
4364

query I rowsort
SELECT - 44 + - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to ea4b4a6b10c29a864ed1e3c26a1e3721

query I rowsort
SELECT col2 * + 92 + - 58 + col2 FROM tab0
----
3011
35
7568

query I rowsort
SELECT ALL - - ( - col2 ) * cor0.col0 * col2 FROM tab0 cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * + col0 + - 19 + + 74 col1 FROM tab0 cor0
----
3450
664173
68167

query I rowsort
SELECT DISTINCT - col2 + 80 * - col2 FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT ALL - col2 + - col1 * + col1 - - col1 FROM tab2 AS cor0
----
-310
-3448
-957

query I rowsort
SELECT ALL + 80 - + col1 AS col2 FROM tab2 AS cor0
----
21
49
63

query I rowsort
SELECT ALL - 63 * - col0 - 47 FROM tab0 AS cor0
----
1465
2158
5560

query I rowsort
SELECT ALL ( + ( col0 ) ) AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - ( - col2 ) * + col0 * + ( + col2 ) FROM tab0
----
26136
35
598436

query I rowsort
SELECT + ( cor0.col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col2 + + ( - col0 ) + - 97 AS col1 FROM tab0
----
-104
-131
-88

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab0, tab2 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7177
SELECT ALL + CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL + CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 17 + - col0 * + col1 FROM tab1 AS cor0
----
-1023
-61
-623

query I rowsort
SELECT + 3 * 80 AS col0 FROM tab1 AS cor0
----
240
240
240

query I rowsort
SELECT DISTINCT + col0 * 86 + col0 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) - col0 AS col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL + col1 + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT + 72 DIV 95 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7183
SELECT + 72 / 95 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 53 * col1 FROM tab0 AS cor0
----
4558
4823
5141

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col2 AS REAL ) * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7186
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 * + col2 + + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 * + col2 + + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 47 AS col1 FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL - col1 + col1 * ( col2 ) AS col1 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - cor0.col0 + 92 AS col2 FROM tab0, tab2 AS cor0
----
13
14
85

query I rowsort
SELECT DISTINCT - ( - col2 ) * ( + col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + + 18 + - cor0.col0 FROM tab1 AS cor0
----
-46
-62
15

query I rowsort
SELECT DISTINCT col1 * + col1 + - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + - col0 * col0 * cor0.col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT ALL col0 + 0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col1 * 27 * col0 AS col0 FROM tab0 AS cor0
----
218673
55728
91665

query I rowsort
SELECT DISTINCT col1 * col2 + + 26 FROM tab1 AS cor0
----
1274
1430
596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + + cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7199
SELECT 67 DIV col1 FROM tab1 AS cor0
----
2
5
6

skipif mysql # not compatible
query I rowsort label-7199
SELECT 67 / col1 FROM tab1 AS cor0
----
2
5
6

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col1 * + 92 FROM tab1 AS cor0
----
-1292
-2446
-977

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7201
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 25 * - col2 FROM tab0 AS cor0
----
-2050
-25
-825

query I rowsort
SELECT - 31 FROM tab1, tab0, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to cb21a77465f6a7c6b5c4c99bafc9df52

query I rowsort
SELECT DISTINCT - - 21 * col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL cor1.col0 * 5 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ba46cffa790c9d102f9405b8e714f4c0

query I rowsort
SELECT col0 + 37 AS col1 FROM tab2
----
115
116
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * - col0 col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col1 + col2 * - ( col1 ) FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT col0 * - cor0.col2 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + 15 + col2 * col2 AS col2 FROM tab0
----
1104
16
6739

query I rowsort
SELECT + + cor0.col0 * + cor0.col0 + - 4 AS col0 FROM tab0 AS cor0
----
1221
572
7917

query I rowsort
SELECT DISTINCT col2 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - - col2 * ( + cor0.col0 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT DISTINCT + cor0.col2 DIV 33 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT + cor0.col2 / 33 AS col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col1 * col0 * col1 AS col1 FROM tab2 cor0
----
22831
271518
6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + ( + col1 ) * col0 col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - + col2 * 91 AS col0 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT - cor0.col0 - - col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col2 * col0 * ( col2 ) AS col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT col0 * + 93 + col2 AS col1 FROM tab0
----
2265
3256
8359

query I rowsort
SELECT DISTINCT + col2 * - 88 - col1 * col1 FROM tab2
----
-3337
-3633
-5769

query I rowsort
SELECT ALL + col1 * tab1.col0 * + col0 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT + col2 - 76 FROM tab1
----
-19
-22
20

query I rowsort
SELECT + tab0.col0 * 9 AS col0 FROM tab0
----
216
315
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-7226
SELECT - col2 + col2 DIV + col1 AS col1 FROM tab1
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-7226
SELECT - col2 + col2 / + col1 AS col1 FROM tab1
----
-52
-52
-89

query I rowsort
SELECT DISTINCT - col0 + + 79 AS col0 FROM tab1
----
-1
15
76

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab2, tab0 AS cor0
----
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7229
SELECT DISTINCT CAST( col0 AS SIGNED ) col0 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT CAST ( col0 AS INTEGER ) col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7230
SELECT - col2 + col2 DIV ( col1 ) FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-7230
SELECT - col2 + col2 / ( col1 ) FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT ALL - + 82 * col0 FROM tab0 AS cor0
----
-1968
-2870
-7298

onlyif mysql # use DIV operator for integer division
query I rowsort label-7232
SELECT DISTINCT + - ( - col2 ) DIV 40 AS col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT + - ( - col2 ) / 40 AS col0 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT col1 * - col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL - - ( + col1 ) + + ( col0 ) FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7235
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT 38 * 59 * - col2 FROM tab1
----
-121068
-127794
-215232

query I rowsort
SELECT ( - col2 * col1 ) AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 23 * + col1 FROM tab1
----
-230
-299
-598

query I rowsort
SELECT DISTINCT 38 * tab2.col1 AS col0 FROM tab2
----
1178
2242
646

onlyif mysql # use DIV operator for integer division
query I rowsort label-7240
SELECT - col1 + tab0.col1 DIV ( 46 ) AS col2 FROM tab0
----
-85
-90
-95

skipif mysql # not compatible
query I rowsort label-7240
SELECT - col1 + tab0.col1 / ( 46 ) AS col2 FROM tab0
----
-85
-90
-95

query I rowsort
SELECT ALL + + 63 AS col2 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT - 49 * + col1 FROM tab1 AS cor0
----
-1274
-490
-637

query I rowsort
SELECT DISTINCT - col2 * + col0 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
2

query I rowsort
SELECT col1 + col0 * + 23 FROM tab1
----
1482
1853
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + + col1 col0 FROM tab2
----
137
38
96

query I rowsort
SELECT 97 * col0 * col1 FROM tab1 AS cor0
----
100880
62080
7566

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 * ( col1 ) - + col0 FROM tab0 AS cor0
----
-3430
-664207
-68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 7 col0 FROM tab0 cor0
----
168
245
623

skipif mysql # not compatible
query I rowsort
SELECT + col1 * - CAST ( col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - - col2 * + 58 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT col1 + col1 * col0 * col0 AS col0 FROM tab2 AS cor0
----
106114
1550
359015

onlyif mysql # use DIV operator for integer division
query I rowsort label-7253
SELECT col2 DIV 55 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7253
SELECT col2 / 55 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT - col1 * col1 + 19 + col1 FROM tab0 AS cor0
----
-7291
-8171
-9293

query I rowsort
SELECT col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - + cor0.col0 + ( - col1 ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL col2 * col0 - col1 * col0 FROM tab2 AS cor0
----
-2574
-28
1659

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7258
SELECT ALL - + col2 * CAST( col2 + col2 * col1 AS SIGNED ) FROM tab0 AS cor0
----
-618608
-94743
-98

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL - + col2 * CAST ( col2 + col2 * col1 AS INTEGER ) FROM tab0 AS cor0
----
-618608
-94743
-98

query I rowsort
SELECT ALL - - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + ( col1 ) * ( 44 ) * col0 - 69 AS col2 FROM tab2
----
202419
59023
9479

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7261
SELECT - col2 + + CAST( col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
7363
8199
9408

skipif mysql # not compatible
query I rowsort label-7261
SELECT - col2 + + CAST ( col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT ALL cor0.col1 DIV - 80 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL cor0.col1 / - 80 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - col0 * + 34 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT + - 45 * + col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
30420
4500
7605

query I rowsort
SELECT + 91 + 47 * + col2 FROM tab1 cor0
----
2629
2770
4603

query I rowsort
SELECT DISTINCT col2 * cor0.col1 * - col0 + 46 AS col1 FROM tab2 AS cor0
----
-119606
-50988
-5813

query I rowsort
SELECT DISTINCT - 36 * + ( - col1 * + 68 ) + ( col2 ) * col0 FROM tab1 AS cor0
----
28128
39504
63810

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + + col1 * col0 + CAST ( + col2 AS REAL ) FROM tab1 AS cor0
----
1232
186
754

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 + col0 FROM tab2 AS cor0
----
182
196
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - 95 * + col1 * + col2 col1 FROM tab0 cor0
----
-269634
-708979
-9250

query I rowsort
SELECT ALL + cor0.col0 * col1 + - col0 * ( - 95 ) * col2 AS col2 FROM tab1 AS cor0
----
15468
347200
730640

query I rowsort
SELECT DISTINCT + + 95 * - col0 * col1 + + cor0.col2 * col0 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
-124294
-19465
-431681

query I rowsort
SELECT ALL col1 + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT - + col1 + + 20 AS col2 FROM tab0 AS cor0
----
-66
-71
-77

query I rowsort
SELECT ALL - ( 32 ) * col0 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT + + 18 * col1 * - col1 FROM tab1 AS cor0
----
-12168
-1800
-3042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col1 * - col2 + + 29 FROM tab1 AS cor0
----
-1219
-1375
-541

query I rowsort
SELECT ALL - - col0 * col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - col0 + 66 FROM tab1
----
-14
2
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7281
SELECT ALL + col1 DIV - col2 + + col0 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL + col1 / - col2 + + col0 AS col0 FROM tab1
----
3
64
80

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT ALL col0 DIV col2 + + col2 * col0 AS col2 FROM tab0
----
70
7299
792

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL col0 / col2 + + col2 * col0 AS col2 FROM tab0
----
70
7299
792

query I rowsort
SELECT col1 + + col0 + + tab2.col0 AS col0 FROM tab2
----
175
215
45

query I rowsort
SELECT + tab1.col1 + - col2 FROM tab1 WHERE - col0 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col2 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT - col0 + - col0 * col0 AS col2 FROM tab1
----
-12
-4160
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT DISTINCT col0 DIV + tab0.col0 + + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT col0 / + tab0.col0 + + col2 FROM tab0
----
2
34
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND col1 * + col2
----

query I rowsort
SELECT DISTINCT col2 * col0 - - tab0.col1 AS col1 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-7292
SELECT + tab2.col1 + + col2 * col2 DIV col0 FROM tab2
----
135
35
67

skipif mysql # not compatible
query I rowsort label-7292
SELECT + tab2.col1 + + col2 * col2 / col0 FROM tab2
----
135
35
67

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col1 + - col1 * - tab1.col2 * + col2 AS col2 FROM tab1
----
119795
32480
75790

query I rowsort
SELECT ALL col0 * col1 + - col1 + + col0 FROM tab2
----
1405
193
4621

query I rowsort
SELECT - col1 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7297
SELECT - col1 + + col0 DIV col1 AS col2 FROM tab1 cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-7297
SELECT - col1 + + col0 / col1 AS col2 FROM tab1 cor0
----
-26
-4
-7

query I rowsort
SELECT col2 + cor0.col0 * - cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col2 * col2 + col0 * tab1.col0 FROM tab1
----
15616
2925
7345

query I rowsort
SELECT ALL + col1 + + col1 + col1 AS col0 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT col0 * col2 * cor0.col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + col2 + col1 + cor0.col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + col0 )
----

query I rowsort
SELECT + col2 + col0 * - col1 + col0 FROM tab2 AS cor0
----
-1226
-183
-4498

query I rowsort
SELECT DISTINCT - 93 FROM tab0, tab2 AS cor0
----
-93

query I rowsort
SELECT - - 81 + col2 AS col1 FROM tab2 cor0
----
107
108
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-7307
SELECT + col1 * 66 + - col1 DIV col2 + + 87 FROM tab0 AS cor0
----
5761
6092
6392

skipif mysql # not compatible
query I rowsort label-7307
SELECT + col1 * 66 + - col1 / col2 + + 87 FROM tab0 AS cor0
----
5761
6092
6392

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab0, tab2 cor0
----
73

query I rowsort
SELECT cor0.col1 + + cor0.col1 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7310
SELECT DISTINCT - + ( - col1 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT - + ( - col1 ) / - col1 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col2 * col2 - col1 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT col1 FROM tab1 WHERE NULL IN ( - col1 / + col1 )
----

query I rowsort
SELECT - tab2.col1 + col2 * + col2 AS col2 FROM tab2
----
1427
617
698

query I rowsort
SELECT + col1 + col1 + - tab2.col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( tab2.col2 )
----

query I rowsort
SELECT col2 * cor0.col0 + + col0 * + col0 FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT - col2 + ( 50 * - cor0.col2 ) + + cor0.col1 FROM tab1 AS cor0
----
-2728
-2897
-4883

query I rowsort
SELECT + col2 + - col0 + ( 49 ) FROM tab1
----
100
42
65

query I rowsort
SELECT 96 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT DISTINCT tab0.col1 DIV - col2 + + CAST( - 13 AS SIGNED ) col2 FROM tab0
----
-110
-14
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT tab0.col1 / - col2 + + CAST ( - 13 AS INTEGER ) col2 FROM tab0
----
-110
-14
-15

query I rowsort
SELECT DISTINCT + col1 * - col1 + 87 * - col1 * + col2 + - 5 * col2 * + col0 FROM tab0
----
-18023
-258262
-693965

query I rowsort
SELECT DISTINCT - 15 + tab2.col2 FROM tab2
----
11
12
23

query I rowsort
SELECT + cor0.col0 - - 15 * - col0 FROM tab2 AS cor0
----
-1092
-1106
-98

query I rowsort
SELECT + 56 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT - ( - cor0.col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - 70 + - col1 AS col2 FROM tab1 cor0
----
44
57
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 * - col0 col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT col2 * + cor0.col2 + + col0 - + 72 FROM tab1 AS cor0
----
2847
3241
9224

query I rowsort
SELECT ALL - 34 * col1 AS col1 FROM tab0
----
-2924
-3094
-3298

query I rowsort
SELECT - tab0.col0 + + 19 + + ( tab0.col2 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 95a19eda14303116f3eec68601a5beba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 + col2 * + 60 col0 FROM tab2 AS cor0
----
1538
1598
2258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col0 ) + col0 * col1 col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL + ( col0 ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT 63 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
160
2901
7525

query I rowsort
SELECT DISTINCT + 14 * col2 AS col0 FROM tab1 cor0
----
1344
756
798

query I rowsort
SELECT + 27 * col2 + + col2 - + col1 FROM tab2 cor0
----
1047
669
725

query I rowsort
SELECT + + col1 + + ( col2 ) * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + - col2 col2 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7338
SELECT DISTINCT col0 DIV + 18 - 85 AS col2 FROM tab0 AS cor0
----
-81
-84

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT col0 / + 18 - 85 AS col2 FROM tab0 AS cor0
----
-81
-84

query I rowsort
SELECT + + col2 + 82 AS col1 FROM tab0 cor0
----
115
164
83

query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 + - 22 AS col0 FROM tab1 AS cor0
----
1226
1382
548

query I rowsort
SELECT cor0.col2 * - col2 * 7 + - col0 * 92 FROM tab1 AS cor0
----
-20688
-28631
-71872

query I rowsort
SELECT ALL - 81 AS col0 FROM tab2
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - col2 + + 93 AS col0 FROM tab0 AS cor0
----
11
60
92

query I rowsort
SELECT DISTINCT col2 + - col1 * + col1 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT + + ( col0 ) + col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-7347
SELECT DISTINCT - 7 DIV - 59 + col1 * 18 FROM tab2 AS cor0
----
1062
306
558

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT - 7 / - 59 + col1 * 18 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT DISTINCT + 54 * col1 FROM tab0 AS cor0
----
4644
4914
5238

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * + col2 * + 35 + + col1 + CAST ( - 90 AS REAL ) AS col1 FROM tab1
----
101996
113635
322483

query I rowsort
SELECT ALL - col0 + + 97 AS col0 FROM tab2
----
18
19
90

query I rowsort
SELECT ALL + + col1 * col1 + + col0 AS col0 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) - 16 FROM tab2 AS cor0
----
-33
-47
-75

query I rowsort
SELECT ( 35 ) + col2 FROM tab2
----
61
62
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7354
SELECT ALL - 91 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL - 91 / col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7355
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 22 AS col1 FROM tab0 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 19 AS REAL ) * + col2 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT DISTINCT 75 + 17 + cor0.col0 AS col1 FROM tab0 AS cor0
----
116
127
181

query I rowsort
SELECT ALL + ( col0 ) - + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 76 * ( col1 ) FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT ALL col0 + 75 AS col0 FROM tab2 AS cor0
----
153
154
82

query I rowsort
SELECT 7 * col0 AS col2 FROM tab1 AS cor0
----
21
448
560

query I rowsort
SELECT + - 39 * col1 AS col2 FROM tab2 AS cor0
----
-1209
-2301
-663

query I rowsort
SELECT DISTINCT 61 * - cor0.col0 AS col0 FROM tab0 cor0
----
-1464
-2135
-5429

onlyif mysql # use DIV operator for integer division
query I rowsort label-7365
SELECT ALL col1 * + col1 + + col1 * + col1 - - tab2.col2 DIV CAST( col1 AS SIGNED ) FROM tab2
----
1922
580
6962

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL col1 * + col1 + + col1 * + col1 - - tab2.col2 / CAST ( col1 AS INTEGER ) FROM tab2
----
1922
580
6962

query I rowsort
SELECT ALL 65 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7367
SELECT col1 DIV col2 - - col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-7367
SELECT col1 / col2 - - col2 FROM tab0 AS cor0
----
35
83
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7368
SELECT ALL - col2 DIV cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL - col2 / cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT - col0 * col2 + col2 * - col1 DIV cor0.col1 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif mysql # not compatible
query I rowsort label-7369
SELECT - col0 * col2 + col2 * - col1 / cor0.col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + cor0.col2 + - col2 * col0 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-7371
SELECT ALL col1 DIV + CAST( 64 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL col1 / + CAST ( 64 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * ( col2 + - col1 ) AS col1 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT DISTINCT - col0 * - ( - col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + 62 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-62

query I rowsort
SELECT + - col0 + col0 * 58 AS col1 FROM tab1 AS cor0
----
171
3648
4560

onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT + col2 DIV CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7376
SELECT + col2 / CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT cor0.col0 * cor0.col0 * + 23 + + col2 AS col2 FROM tab1 AS cor0
----
147296
261
94265

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7378
SELECT DISTINCT - - col2 * + col1 + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT - - col2 * + col1 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7379
SELECT ALL - col2 / - col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - col2 / - col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col1 + + 62 FROM tab2 AS cor0
----
117
120
147

query I rowsort
SELECT - col2 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col0 + + col0 + col2 AS col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT col2 + + 18 FROM tab2
----
44
45
56

query I rowsort
SELECT + 39 + col1 AS col0 FROM tab0
----
125
130
136

onlyif mysql # use DIV operator for integer division
query I rowsort label-7385
SELECT DISTINCT - ( - 37 ) DIV + col0 + - col1 * col0 FROM tab1
----
-1040
-640
-66

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT - ( - 37 ) / + col0 + - col1 * col0 FROM tab1
----
-1040
-640
-66

query I rowsort
SELECT + 58 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT + col2 / col1 + CAST( NULL AS SIGNED ) * 75 * + col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7387
SELECT + col2 / col1 + CAST ( NULL AS INTEGER ) * 75 * + col2 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 93 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
93

query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT DISTINCT + col1 * col2 + + col0 DIV col1 col0 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT + col1 * col2 + + col0 / col1 col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7391
SELECT DISTINCT + col0 - col2 DIV - col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT + col0 - col2 / - col0 FROM tab2 AS cor0
----
10
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col2 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT + col2 * + col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT col2 + - 42 * col2 + + col1 AS col0 FROM tab0
----
-1267
-3271
56

query I rowsort
SELECT ALL - + 72 * - col0 AS col2 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT cor0.col1 * 86 FROM tab0, tab1 AS cor0
----
9 values hashing to 8df2cafda51d55562509bfd0892e3b97

query I rowsort
SELECT - col2 + col0 + - 74 FROM tab1
----
-125
-67
-90

query I rowsort
SELECT ALL ( + col0 ) + col1 * + col1 FROM tab0
----
7420
8370
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7399
SELECT DISTINCT CAST( + 38 AS SIGNED ) + col2 FROM tab1
----
134
92
95

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT CAST ( + 38 AS INTEGER ) + col2 FROM tab1
----
134
92
95

query I rowsort
SELECT ALL 14 + - col0 * + col1 * - 45 FROM tab2
----
207104
60449
9779

query I rowsort
SELECT ALL 15 AS col1 FROM tab0 cor0
----
15
15
15

query I rowsort
SELECT ALL ( 97 ) FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT col2 + - col2 + 59 AS col2 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT + tab1.col2 * 27 FROM tab1
----
1458
1539
2592

query I rowsort
SELECT DISTINCT 35 * - col1 + - col1 * 25 AS col0 FROM tab1 cor0
----
-1560
-600
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 col2 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT + col0 + + col2 * + col2 - col0 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - + col1 + + col0 - - col2 * - 41 FROM tab2 cor0
----
-1047
-1131
-1496

query I rowsort
SELECT ALL tab2.col2 + + 89 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to df7429add5f154e4c0c403a7ef49c4bc

query I rowsort
SELECT - col2 * - col1 * col2 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT + - col2 * + col1 + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7412
SELECT DISTINCT + - 71 DIV cor0.col1 FROM tab1, tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT + - 71 / cor0.col1 FROM tab1, tab2 AS cor0
----
-1
-2
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7413
SELECT DISTINCT - - col2 + col1 DIV 57 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT - - col2 + col1 / 57 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7414
SELECT - cor0.col2 DIV 68 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7414
SELECT - cor0.col2 / 68 AS col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7415
SELECT + col0 + - col1 DIV + col2 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7415
SELECT + col0 + - col1 / + col2 AS col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7416
SELECT + 22 DIV - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT + 22 / - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT col0 * - 28 + - col2 + 53 FROM tab2 AS cor0
----
-170
-2157
-2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col0 ) + - 39 col1 FROM tab1 cor0
----
1001
39
601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7419
SELECT CAST( col1 AS SIGNED ) * + col1 * col0 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

skipif mysql # not compatible
query I rowsort label-7419
SELECT CAST ( col1 AS INTEGER ) * + col1 * col0 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-7420
SELECT col1 DIV + col0 + + col0 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-7420
SELECT col1 / + col0 + + col0 FROM tab1
----
11
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + ( + cor0.col2 ) * col2 * 87 AS col0 FROM tab2 AS cor0
----
125628
58812
63423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col1 col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7425
SELECT ALL - col1 * - cor0.col0 - 82 DIV - cor0.col0 AS col2 FROM tab0 cor0
----
2067
3397
8099

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL - col1 * - cor0.col0 - 82 / - cor0.col0 AS col2 FROM tab0 cor0
----
2067
3397
8099

query I rowsort
SELECT + - col0 + + col1 * - col1 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL + - col2 * 44 + cor0.col2 * col2 FROM tab1 AS cor0
----
4992
540
741

query I rowsort
SELECT - 86 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

query I rowsort
SELECT - ( - 74 + cor0.col0 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 377b91d64b7b93ed30d0426381c602ee

onlyif mysql # use DIV operator for integer division
query I rowsort label-7430
SELECT DISTINCT - col0 + + 49 * 9 - col2 DIV - 9 AS col2 FROM tab1 AS cor0
----
371
383
444

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT - col0 + + 49 * 9 - col2 / - 9 AS col2 FROM tab1 AS cor0
----
371
383
444

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab2, tab2 AS cor0
----
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT - 83 DIV - 1 FROM tab1, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif mysql # not compatible
query I rowsort label-7432
SELECT - 83 / - 1 FROM tab1, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7433
SELECT DISTINCT col0 + - col2 * - col0 * - col1 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT col0 + - col2 * - col0 * - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 80 col1 FROM tab0 AS cor0
----
-1920
-2800
-7120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7435
SELECT DISTINCT - ( col0 ) * + col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT - ( col0 ) * + col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 49 * 81 AS col0 FROM tab0 AS cor0
----
3969
3969
3969

query I rowsort
SELECT + 11 * col1 FROM tab2 cor0
----
187
341
649

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - + col2 * - 78 - col2 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT + 85 * - col0 - col0 AS col1 FROM tab2 AS cor0
----
-602
-6708
-6794

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7441
SELECT ALL + ( 24 ) - - col2 * CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
186
3672
7704

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL + ( 24 ) - - col2 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
186
3672
7704

query I rowsort
SELECT ALL + col0 * - ( col0 ) + + col0 AS col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT col2 * tab0.col1 + col2 AS col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - 89 + 25 AS col1 FROM tab0
----
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7445
SELECT 73 * cor0.col2 - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7445
SELECT 73 * cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7446
SELECT + CAST( - 3 AS SIGNED ) * col2 * tab1.col2 + + col2 FROM tab1
----
-27552
-8694
-9690

skipif mysql # not compatible
query I rowsort label-7446
SELECT + CAST ( - 3 AS INTEGER ) * col2 * tab1.col2 + + col2 FROM tab1
----
-27552
-8694
-9690

query I rowsort
SELECT + ( cor1.col1 ) AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7448
SELECT DISTINCT cor0.col0 + - cor0.col2 DIV + col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT cor0.col0 + - cor0.col2 / + col0 FROM tab2 AS cor0
----
4
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7449
SELECT + + cor0.col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7449
SELECT + + cor0.col0 / + col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL col0 + col1 * - col1 * - 54 FROM tab0 cor0
----
399408
447263
508121

query I rowsort
SELECT col0 * - col0 * - 48 FROM tab2 cor0
----
2352
292032
299568

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 + + col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-7453
SELECT - col2 + - col1 DIV ( - col0 * - col0 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7453
SELECT - col2 + - col1 / ( - col0 * - col0 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - ( + cor0.col2 ) + - 91 AS col2 FROM tab0 AS cor0
----
-124
-173
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT ALL + col0 * col0 DIV col0 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL + col0 * col0 / col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + + 2 * cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + 52 + + col2 AS col0 FROM tab2 cor0
----
78
79
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7458
SELECT + + col1 * + col0 + - CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-7458
SELECT + + col1 * + col0 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7461
SELECT DISTINCT + tab0.col2 DIV 73 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT + tab0.col2 / 73 AS col0 FROM tab0
----
0
1

query I rowsort
SELECT col0 * + cor0.col2 * + 36 FROM tab1 AS cor0
----
131328
276480
5832

query I rowsort
SELECT DISTINCT - col1 - col2 AS col2 FROM tab2 cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7464
SELECT ALL - col2 DIV cor0.col1 + - 97 AS col0 FROM tab1 AS cor0
----
-102
-104
-99

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - col2 / cor0.col1 + - 97 AS col0 FROM tab1 AS cor0
----
-102
-104
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 + - 2 col2 FROM tab0, tab2 cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7467
SELECT ALL col1 DIV col1 + + 78 AS col2 FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL col1 / col1 + + 78 AS col2 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT + 90 + col1 FROM tab1 AS cor0
----
100
103
116

query I rowsort
SELECT ALL - 92 * + col0 FROM tab2 cor0
----
-644
-7176
-7268

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 * - 89 + col0 FROM tab0 AS cor0
----
-183672
-302120
-720722

query I rowsort
SELECT DISTINCT tab0.col0 + + col0 * ( col2 + col1 ) * + col2 FROM tab0
----
1262643
3465
94272

onlyif mysql # use DIV operator for integer division
query I rowsort label-7472
SELECT + col0 * col0 DIV - 50 + 54 AS col2 FROM tab1
----
-27
-74
54

skipif mysql # not compatible
query I rowsort label-7472
SELECT + col0 * col0 / - 50 + 54 AS col2 FROM tab1
----
-27
-74
54

query I rowsort
SELECT + 50 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT + - cor0.col2 + + ( cor0.col1 ) FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * ( + 19 ) + - col0 col2 FROM tab1 cor0
----
-1280
-1600
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-7476
SELECT DISTINCT + 51 DIV col1 + - col1 * + 8 + + col1 FROM tab1
----
-181
-65
-88

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT + 51 / col1 + - col1 * + 8 + + col1 FROM tab1
----
-181
-65
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7477
SELECT DISTINCT + col0 + - col2 DIV tab1.col1 AS col1 FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT + col0 + - col2 / tab1.col1 AS col1 FROM tab1
----
1
59
73

query I rowsort
SELECT ALL 38 + + col0 FROM tab2
----
116
117
45

query I rowsort
SELECT col0 * col0 + - 56 * col1 AS col1 FROM tab0
----
-4207
-4240
2825

query I rowsort
SELECT DISTINCT 21 * col2 FROM tab0 cor0
----
1722
21
693

query I rowsort
SELECT DISTINCT + - 86 + - col0 AS col2 FROM tab2 AS cor0
----
-164
-165
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7482
SELECT DISTINCT - ( + col0 ) + col1 DIV - col0 col0 FROM tab1 AS cor0
----
-11
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - ( + col0 ) + col1 / - col0 col0 FROM tab1 AS cor0
----
-11
-64
-80

query I rowsort
SELECT ALL - ( + 63 ) FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT + 92 * col1 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT + 60 * 94 AS col1 FROM tab0 AS cor0
----
5640
5640
5640

query I rowsort
SELECT DISTINCT cor0.col2 + - col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - ( 67 ) * col1 * 65 FROM tab2 AS cor0
----
-135005
-256945
-74035

query I rowsort
SELECT ALL + 27 AS col1 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT + ( 7 ) * col2 AS col0 FROM tab1 AS cor0
----
378
399
672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7490
SELECT ALL - col2 * CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL - col2 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
2838
7462
97

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 cor0, tab1 cor1
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query I rowsort
SELECT - col0 + + 58 + col2 AS col2 FROM tab1
----
109
51
74

query I rowsort
SELECT DISTINCT 34 - + ( + col0 ) FROM tab0
----
-1
-55
10

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT DISTINCT 34 + + col2 AS col1 FROM tab1 AS cor0
----
130
88
91

query I rowsort
SELECT DISTINCT + - col2 + + col2 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT - + col0 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - col0 * + ( - col2 + cor0.col2 * ( - cor0.col0 ) ) FROM tab1 AS cor0
----
237120
622080
648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7499
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col1 + col2 * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col1 + col2 * col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + ( col1 ) * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL + + col0 * - col2 - - cor0.col2 * + 78 FROM tab2 AS cor0
----
-38
0
1917

query I rowsort
SELECT ALL - ( + col2 ) - - col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL ( + col0 ) * col1 + col2 * col2 FROM tab2 AS cor0
----
2787
5278
946

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7504
SELECT DISTINCT CAST( - ( col2 ) AS SIGNED ) * + 88 + - col0 FROM tab0 cor0
----
-123
-2928
-7305

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT CAST ( - ( col2 ) AS INTEGER ) * + 88 + - col0 FROM tab0 cor0
----
-123
-2928
-7305

query I rowsort
SELECT ALL - ( - col1 ) + - col1 * col2 AS col1 FROM tab2 cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7506
SELECT + CAST( + col1 AS SIGNED ) - + col1 * 1 * 4 FROM tab1 cor0
----
-30
-39
-78

skipif mysql # not compatible
query I rowsort label-7506
SELECT + CAST ( + col1 AS INTEGER ) - + col1 * 1 * 4 FROM tab1 cor0
----
-30
-39
-78

query I rowsort
SELECT - - col2 + + col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7508
SELECT col1 * CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-7508
SELECT col1 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - tab1.col0 * - 5 AS col2 FROM tab1
----
15
320
400

query I rowsort
SELECT 69 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT ALL col1 * - 55 AS col0 FROM tab2 AS cor0
----
-1705
-3245
-935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7512
SELECT - - cor0.col0 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT - - cor0.col0 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 + - col1 FROM tab0 AS cor0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7514
SELECT + col2 * col1 DIV col2 AS col2 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7514
SELECT + col2 * col1 / col2 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + col2 + 22 FROM tab1 cor0
----
118
76
79

query I rowsort
SELECT ALL - 65 * col1 AS col2 FROM tab0 AS cor0
----
-5590
-5915
-6305

query I rowsort
SELECT - - 15 + - col2 FROM tab1 AS cor0
----
-39
-42
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7518
SELECT DISTINCT + tab2.col2 DIV CAST( + 52 AS SIGNED ) + - col1 col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT + tab2.col2 / CAST ( + 52 AS INTEGER ) + - col1 col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col1 + ( col1 ) + - col2 FROM tab2 AS cor0
----
1322
221
4635

onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT - + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7520
SELECT - + col1 / col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT DISTINCT - - 38 DIV col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT - - 38 / col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT col2 + - col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - 69 + col1 * - col2 FROM tab1 AS cor0
----
-1317
-1473
-639

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7525
SELECT ALL - col0 * col2 + - CAST( NULL AS SIGNED ) * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL - col0 * col2 + - CAST ( NULL AS INTEGER ) * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 27 + col0 AS col2 FROM tab2 AS cor0
----
105
106
34

query I rowsort
SELECT ALL - ( 32 ) AS col1 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT ALL + col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7529
SELECT + 35 * col1 DIV - 77 col1 FROM tab1 AS cor0
----
-11
-4
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7529
SELECT + 35 * col1 / - 77 col1 FROM tab1 AS cor0
----
-11
-4
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7530
SELECT DISTINCT + col1 + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT + col1 + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 91 * col1 FROM tab0 cor0
----
7826
8281
8827

query I rowsort
SELECT cor0.col1 + cor0.col2 * - 94 AS col0 FROM tab0 AS cor0
----
-3016
-7617
3

query I rowsort
SELECT - col2 * col2 + - 78 + ( - col1 ) FROM tab0
----
-1253
-176
-6893

query I rowsort
SELECT - + cor0.col0 + 61 FROM tab2 AS cor0
----
-17
-18
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-7535
SELECT DISTINCT + col2 * col1 DIV - col0 AS col2 FROM tab2
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT + col2 * col1 / - col0 AS col2 FROM tab2
----
-119
-19
-8

query I rowsort
SELECT cor0.col0 - + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4646ed87e8cc5aacb51f9b4e472c3c4b

query I rowsort
SELECT - col2 + + 29 AS col2 FROM tab0 cor0
----
-4
-53
28

query I rowsort
SELECT + + col2 * 40 * 90 FROM tab0 cor0
----
118800
295200
3600

query I rowsort
SELECT ALL - + col2 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - col0 * ( 23 ) + col1 FROM tab1 AS cor0
----
-1462
-1827
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT ( 99 + tab2.col1 ) FROM tab2, tab2 AS cor0
----
116
130
158

query I rowsort
SELECT DISTINCT cor0.col2 * tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1fcf8ce9be0db19b3883c362d1041dbe

query I rowsort
SELECT - col0 * col2 + 89 * - 65 * + col2 AS col0 FROM tab1 AS cor0
----
-312552
-333393
-563040

query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab2, tab0, tab0 cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col0 FROM tab1
----
21
21
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7549
SELECT ( cor0.col1 ) + CAST( + ( col0 ) AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-7549
SELECT ( cor0.col1 ) + CAST ( + ( col0 ) AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + col1 + cor0.col2 * - 48 FROM tab2 AS cor0
----
-1189
-1265
-1807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 11 * + cor0.col0 col1 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT - 68 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-476
-5304
-5372

query I rowsort
SELECT + 88 * col0 + + col0 AS col1 FROM tab0 cor0
----
2136
3115
7921

query I rowsort
SELECT ALL + col1 * col0 * + 5 FROM tab0
----
10320
16975
40495

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab0 cor2
----
3645 values hashing to 19a23ac6b759f8988954bf75ba7c431a

query I rowsort
SELECT ALL col2 + - 24 - tab0.col2 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT - col2 + - col0 * + col0 AS col1 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT ( + col2 ) + col0 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT col2 + - 16 FROM tab2
----
10
11
22

query I rowsort
SELECT - ( 49 ) AS col0 FROM tab1 cor0
----
-49
-49
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7561
SELECT CAST( ( - col0 ) * + col1 AS SIGNED ) AS col1 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-7561
SELECT CAST ( ( - col0 ) * + col1 AS INTEGER ) AS col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7562
SELECT DISTINCT col2 + + col1 * col1 DIV col2 col2 FROM tab0
----
182
257
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT col2 + + col1 * col1 / col2 col2 FROM tab0
----
182
257
9410

query I rowsort
SELECT ALL + cor0.col2 + - 78 AS col1 FROM tab0 AS cor0
----
-45
-77
4

query I rowsort
SELECT + col0 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + + ( col0 ) * col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - col0 * 37 + - col1 FROM tab0 AS cor0
----
-1392
-3384
-974

query I rowsort
SELECT + - col1 * col0 + + ( col2 ) FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7568
SELECT - + col1 + + CAST( NULL AS SIGNED ) / - 51 + - col0 * + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT - + col1 + + CAST ( NULL AS INTEGER ) / - 51 + - col0 * + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * 49 FROM tab0 AS cor0
----
1176
1715
4361

query I rowsort
SELECT - col1 + col0 * + 95 * - col0 - col0 * col1 FROM tab2 AS cor0
----
-4903
-582641
-594255

onlyif mysql # use DIV operator for integer division
query I rowsort label-7571
SELECT - col1 DIV - col0 AS col1 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7571
SELECT - col1 / - col0 AS col1 FROM tab2
----
0
0
4

query I rowsort
SELECT ALL + + cor0.col0 + - 14 FROM tab1 AS cor0
----
-11
50
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7573
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 + - tab2.col1 + col1 * col1 AS col0 FROM tab2
----
310
3448
957

query I rowsort
SELECT + col2 * - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col1 + + col0 - - col1 * cor0.col1 FROM tab2 AS cor0
----
3618
385
999

query I rowsort
SELECT col2 + col0 * col1 + cor0.col1 FROM tab0 AS cor0
----
2183
3493
8272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + + col0 col2 FROM tab1
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-7579
SELECT - col1 * col0 DIV col1 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7579
SELECT - col1 * col0 / col1 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - col2 + col2 * - col2 + + col1 * - col2 FROM tab2
----
-1593
-2128
-2236

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 + + col2 * col1 * col2 FROM tab1 AS cor0
----
119824
32483
75867

query I rowsort
SELECT - + col1 * - col0 * + col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - col1 + + col2 - + col0 AS col2 FROM tab0 AS cor0
----
-131
-77
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col1 * - col2 col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - - col2 * + cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + col2 * - col1 * col2 - - col2 AS col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

query I rowsort
SELECT ALL - - col1 + + cor0.col0 AS col0 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7588
SELECT DISTINCT col1 DIV tab1.col0 - col1 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT col1 / tab1.col0 - col1 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT col0 + tab1.col2 * col2 - col2 FROM tab1
----
2865
3256
9200

query I rowsort
SELECT ALL - cor0.col1 * tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3e351fdfa2fd88779f2d7b6136dc00d1

query I rowsort
SELECT ALL col2 * + col1 + + tab2.col2 * col1 - col2 * col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + - 30 + - col0 FROM tab1 cor0
----
-110
-33
-94

query I rowsort
SELECT DISTINCT col0 + col1 + + col2 * cor0.col1 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT ALL col0 * - cor0.col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7595
SELECT ALL + cor0.col0 DIV col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL + cor0.col0 / col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 86 + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8195
-9323

query I rowsort
SELECT ALL ( col0 + tab1.col0 ) AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + tab2.col2 * - 61 AS col1 FROM tab2
----
-1586
-1647
-2318

query I rowsort
SELECT ALL + 12 + - 0 * + col2 FROM tab0
----
12
12
12

query I rowsort
SELECT ALL + 29 * col1 + col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT DISTINCT - 88 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1128
-166
-728

query I rowsort
SELECT ALL - 88 + col0 AS col0 FROM tab1 AS cor0
----
-24
-8
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7603
SELECT - CAST( NULL AS SIGNED ) * - 54 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT - CAST ( NULL AS INTEGER ) * - 54 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab1.col2 * col2 - col0 AS col0 FROM tab1
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 col2 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT 16 * col2 FROM tab0
----
1312
16
528

query I rowsort
SELECT - ( + 35 ) + - col0 FROM tab2
----
-113
-114
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT 46 DIV - 7 + + col1 AS col1 FROM tab2
----
11
25
53

skipif mysql # not compatible
query I rowsort label-7608
SELECT 46 / - 7 + + col1 AS col1 FROM tab2
----
11
25
53

query I rowsort
SELECT DISTINCT - 14 FROM tab0 cor0
----
-14

query I rowsort
SELECT + 82 + + col0 AS col2 FROM tab0
----
106
117
171

query I rowsort
SELECT ALL 57 * 29 AS col2 FROM tab1
----
1653
1653
1653

query I rowsort
SELECT DISTINCT ( tab2.col2 ) * - col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col1 * col1 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7615
SELECT ALL + 11 + + col2 * + col1 * cor0.col2 + col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL + 11 + + col2 * + col1 * cor0.col2 + col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 45 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col2 * - col2 - 84 FROM tab0 AS cor0
----
-83
1005
6640

query I rowsort
SELECT + - col1 + - col0 + 82 FROM tab0 AS cor0
----
-28
-50
-98

query I rowsort
SELECT ALL + + 29 - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1011
-49
-611

onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT DISTINCT + 34 + cor0.col1 DIV + 50 + - col1 AS col1 FROM tab1 AS cor0
----
21
24
8

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT + 34 + cor0.col1 / + 50 + - col1 AS col1 FROM tab1 AS cor0
----
21
24
8

query I rowsort
SELECT + col2 * col0 - - ( ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - - col1 - + cor0.col1 * - 4 * cor0.col1 FROM tab0 AS cor0
----
29670
33215
37733

query I rowsort
SELECT ALL col2 * ( cor0.col1 ) FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7625
SELECT col0 + col2 DIV col1 AS col0 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-7625
SELECT col0 + col2 / col1 AS col0 FROM tab2
----
7
78
81

query I rowsort
SELECT - 49 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT col1 + + col1 + + 58 DIV col0 FROM tab1 AS cor0
----
20
26
71

skipif mysql # not compatible
query I rowsort label-7627
SELECT col1 + + col1 + + 58 / col0 FROM tab1 AS cor0
----
20
26
71

query I rowsort
SELECT + - col0 * - 54 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT ALL - + cor0.col2 * col1 + - col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-131
-2829
-7469

query I rowsort
SELECT col2 * ( 70 ) AS col0 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT DISTINCT - col2 * - 41 AS col1 FROM tab0 AS cor0
----
1353
3362
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7632
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT cor0.col2 + col1 + - ( + col1 + 73 ) * col0 FROM tab2 AS cor0
----
-10211
-670
-7055

query I rowsort
SELECT DISTINCT - col1 * 94 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1004
-1302
-2447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col0 * - col1 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - - ( col2 ) * - col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT + col2 * 9 AS col2 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT DISTINCT - - 86 * 37 FROM tab2 AS cor0
----
3182

query I rowsort
SELECT ALL - 34 * 10 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to bfbe7ead6046460c3d61fbd84bd15969

onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT col0 DIV 45 + - 56 FROM tab2
----
-55
-55
-56

skipif mysql # not compatible
query I rowsort label-7640
SELECT col0 / 45 + - 56 FROM tab2
----
-55
-55
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * + cor0.col1 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8628da6f83598c36bd2d971cda67264e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7642
SELECT + CAST( NULL AS DECIMAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT + CAST ( NULL AS REAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 49 AS col0 FROM tab1 AS cor0
----
-49
-49
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-7644
SELECT + ( col1 ) + - col1 DIV col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-7644
SELECT + ( col1 ) + - col1 / col1 FROM tab2
----
16
30
58

query I rowsort
SELECT ALL ( - 29 ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7646
SELECT ALL col1 + + col2 * CAST( - 50 AS SIGNED ) FROM tab2 AS cor0
----
-1241
-1319
-1883

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL col1 + + col2 * CAST ( - 50 AS INTEGER ) FROM tab2 AS cor0
----
-1241
-1319
-1883

query I rowsort
SELECT ALL - ( ( col2 ) + - col2 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 + 62 AS col0 FROM tab0 AS cor0
----
-24
-29
-35

query I rowsort
SELECT col1 * 48 FROM tab2 AS cor0
----
1488
2832
816

query I rowsort
SELECT col1 * 6 AS col0 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT - col2 * tab1.col1 * - 78 FROM tab1
----
109512
44460
97344

query I rowsort
SELECT tab0.col2 * + ( + 8 + tab0.col2 ) AS col2 FROM tab0
----
1353
7380
9

query I rowsort
SELECT DISTINCT col1 + ( - 84 ) * - col2 + - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-1120
-3214
794

query I rowsort
SELECT DISTINCT col1 + ( col2 * col0 ) AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT cor0.col1 * - 56 + col2 * - col1 * col2 - col1 FROM tab2 AS cor0
----
-24366
-25517
-43247

query I rowsort
SELECT ALL + cor0.col2 + ( 62 ) FROM tab0 AS cor0
----
144
63
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7657
SELECT col0 DIV 25 AS col0 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7657
SELECT col0 / 25 AS col0 FROM tab0 cor0
----
0
1
3

query I rowsort
SELECT col0 + + ( 41 ) FROM tab0 AS cor0
----
130
65
76

query I rowsort
SELECT ALL + + cor0.col1 + col1 AS col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT + - cor0.col1 * ( + col1 ) - - col2 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-7661
SELECT + - col2 + - cor0.col2 DIV 74 FROM tab0 AS cor0
----
-1
-33
-83

skipif mysql # not compatible
query I rowsort label-7661
SELECT + - col2 + - cor0.col2 / 74 FROM tab0 AS cor0
----
-1
-33
-83

query I rowsort
SELECT + + col1 + - 95 FROM tab0 AS cor0
----
-4
-9
2

query I rowsort
SELECT - + col0 * 21 AS col2 FROM tab1 AS cor0
----
-1344
-1680
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7664
SELECT - + col2 + + ( + cor0.col1 ) DIV col0 - ( col0 ) * col2 FROM tab2 AS cor0
----
-2054
-212
-3040

skipif mysql # not compatible
query I rowsort label-7664
SELECT - + col2 + + ( + cor0.col1 ) / col0 - ( col0 ) * col2 FROM tab2 AS cor0
----
-2054
-212
-3040

query I rowsort
SELECT DISTINCT + col1 + 60 FROM tab1 AS cor0
----
70
73
86

query I rowsort
SELECT ALL + cor0.col2 + 39 * - 89 FROM tab2 cor0
----
-3433
-3444
-3445

query I rowsort
SELECT + - col2 * col2 + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT ALL + + col0 + + col2 * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + + col1 * - ( + 43 ) + col2 + + 71 FROM tab0 AS cor0
----
-3594
-3760
-4099

query I rowsort
SELECT - 76 + - col1 * + cor0.col1 FROM tab0 cor0
----
-7472
-8357
-9485

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7671
SELECT col2 * - CAST( NULL AS SIGNED ) + - 85 + + tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT col2 * - CAST ( NULL AS INTEGER ) + - 85 + + tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * col1 + col1 col0 FROM tab1 cor0
----
1274
490
637

query I rowsort
SELECT ALL - 75 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab1 cor3
----
243 values hashing to ba5662acdc65c503ac2e778281147048

query I rowsort
SELECT ALL + col0 * + 58 * + col2 + + col2 * 94 AS col2 FROM tab0
----
2124
430992
49038

query I rowsort
SELECT - cor1.col0 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL + col2 * cor0.col2 - 82 * col1 FROM tab2 cor0
----
-1813
-4162
50

query I rowsort
SELECT - + 92 * - col2 FROM tab0 cor0
----
3036
7544
92

query I rowsort
SELECT DISTINCT - + ( col1 ) * ( col1 ) * col1 - ( col1 ) FROM tab0 AS cor0
----
-636142
-753662
-912770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7679
SELECT ALL + ( col2 ) * - CAST( ( col0 ) AS SIGNED ) FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL + ( col2 ) * - CAST ( ( col0 ) AS INTEGER ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + 51 + cor0.col1 AS col1 FROM tab0 cor0
----
137
142
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL 78 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT - tab0.col1 + + tab0.col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7684
SELECT ALL - + col2 DIV + col0 AS col2 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL - + col2 / + col0 AS col2 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT col1 * 72 AS col2 FROM tab0
----
6192
6552
6984

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 * - col2 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT ALL - col1 * + ( cor0.col2 ) + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - + col1 * - col0 + col1 - col0 FROM tab1 AS cor0
----
101
586
973

query I rowsort
SELECT - 4 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT DISTINCT + col2 + - ( 94 * col1 ) FROM tab2 AS cor0
----
-1560
-2887
-5520

query I rowsort
SELECT - col1 * ( + 50 ) + col0 FROM tab1 AS cor0
----
-1297
-436
-570

query I rowsort
SELECT DISTINCT col1 * + 2 - col2 AS col1 FROM tab1 AS cor0
----
-2
-37
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7693
SELECT DISTINCT - 67 DIV - 64 AS col2 FROM tab2, tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT - 67 / - 64 AS col2 FROM tab2, tab2 cor0
----
1

query I rowsort
SELECT DISTINCT col1 + - tab0.col0 * + col1 + - tab0.col0 * col2 AS col2 FROM tab0
----
-15306
-2770
-3333

query I rowsort
SELECT DISTINCT col0 + + 32 + tab2.col0 AS col2 FROM tab2
----
188
190
46

query I rowsort
SELECT ALL + tab0.col2 * col2 + col0 + + tab0.col2 FROM tab0
----
1146
37
6895

query I rowsort
SELECT col2 * tab1.col0 - tab1.col1 FROM tab1
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7698
SELECT CAST( NULL AS SIGNED ) + 33 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT CAST ( NULL AS INTEGER ) + 33 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 30 * 50 FROM tab0 AS cor0
----
1500
1500
1500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ( - 7 ) FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 180f983bbf84f38a53d5012e5c10c628

query I rowsort
SELECT ALL 39 * col2 AS col1 FROM tab0 cor0
----
1287
3198
39

query I rowsort
SELECT 60 * col2 * - cor0.col2 FROM tab0 AS cor0
----
-403440
-60
-65340

onlyif mysql # use DIV operator for integer division
query I rowsort label-7704
SELECT + 5 * col0 + ( - col1 ) DIV col2 AS col0 FROM tab0 AS cor0
----
118
444
78

skipif mysql # not compatible
query I rowsort label-7704
SELECT + 5 * col0 + ( - col1 ) / col2 AS col0 FROM tab0 AS cor0
----
118
444
78

query I rowsort
SELECT ALL col2 * cor0.col1 * - ( 67 ) + - col0 FROM tab1 AS cor0
----
-38254
-83696
-94071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 * col0 col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7707
SELECT DISTINCT + col2 - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT + col2 - col1 / col0 AS col2 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT ALL - - col2 * - col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 69 + + col2 FROM tab1 AS cor0
----
123
126
165

onlyif mysql # use DIV operator for integer division
query I rowsort label-7710
SELECT + tab1.col2 DIV col0 - col1 AS col2 FROM tab1
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-7710
SELECT + tab1.col2 / col0 - col1 AS col2 FROM tab1
----
-10
-12
-8

query I rowsort
SELECT - 90 + col0 FROM tab0
----
-1
-55
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7712
SELECT CAST( NULL AS SIGNED ) * ( + col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT CAST ( NULL AS INTEGER ) * ( + col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - col1 + - 75 col0 FROM tab1 AS cor0
----
-1921
-785
-998

query I rowsort
SELECT + 80 * col1 * + 98 AS col1 FROM tab1 cor0
----
101920
203840
78400

query I rowsort
SELECT DISTINCT 71 * + tab2.col1 * - col1 + - col0 + + col2 FROM tab2
----
-20560
-247203
-68211

query I rowsort
SELECT DISTINCT - col1 * + 55 * - col0 + + col2 * 79 FROM tab2
----
14068
255164
76867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7717
SELECT + CAST( + ( - cor0.col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7717
SELECT + CAST ( + ( - cor0.col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + ( + col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - cor1.col2 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-7720
SELECT 44 DIV + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 0c0b138578d24c14d41ceab68dfc9437

skipif mysql # not compatible
query I rowsort label-7720
SELECT 44 / + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 0c0b138578d24c14d41ceab68dfc9437

query I rowsort
SELECT + + ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 25 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7723
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab1
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT ( - col1 ) * col0 + - col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7727
SELECT DISTINCT CAST( col0 AS SIGNED ) * tab1.col0 AS col0 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT CAST ( col0 AS INTEGER ) * tab1.col0 AS col0 FROM tab1
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7728
SELECT CAST( col2 AS SIGNED ) col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7728
SELECT CAST ( col2 AS INTEGER ) col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - ( + tab0.col0 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - 23 + col0 FROM tab1
----
-20
41
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7731
SELECT DISTINCT tab2.col2 * - col1 + col1 DIV + col1 col2 FROM tab2
----
-1533
-645
-836

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT tab2.col2 * - col1 + col1 / + col1 col2 FROM tab2
----
-1533
-645
-836

query I rowsort
SELECT + tab2.col2 + + col0 + 84 FROM tab2
----
118
188
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab2
----
89
89
89

query I rowsort
SELECT DISTINCT 23 + - col0 * + col0 FROM tab1
----
-4073
-6377
14

query I rowsort
SELECT ALL - 48 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - + col1 + - 16 FROM tab1 AS cor0
----
-26
-29
-42

query I rowsort
SELECT + + col1 * + 79 + + col1 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
-114991
-3410
-49691

query I rowsort
SELECT ALL - col2 + col2 * - 24 FROM tab1 AS cor0
----
-1350
-1425
-2400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7739
SELECT ALL - col1 + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL - col1 + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7740
SELECT DISTINCT col0 DIV - ( - 9 * col0 ) col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT col0 / - ( - 9 * col0 ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + 56 * col2 * - 96 - col1 * - col2 AS col0 FROM tab2 AS cor0
----
-139776
-145152
-204288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7742
SELECT CAST( NULL AS SIGNED ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7742
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 + + 44 * - col2 FROM tab2
----
-1066
-1181
-1593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 * col2 col2 FROM tab1 AS cor0
----
-1296
-1368
-2304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * 96 + + cor0.col2 col2 FROM tab1 AS cor0
----
5718
5721
5760

query I rowsort
SELECT ALL + 43 - - 28 AS col2 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT - + cor0.col0 * + col1 * - col1 + + col2 * + col2 FROM tab1 cor0
----
22736
4944
9649

query I rowsort
SELECT ALL - 46 + - col2 AS col1 FROM tab2 AS cor0
----
-72
-73
-84

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - cor0.col0 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - ( + col1 ) * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - + 71 * col0 * - col1 - col1 AS col1 FROM tab2 AS cor0
----
15376
326683
95336

query I rowsort
SELECT + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT 62 + + col1 * 68 AS col2 FROM tab2 AS cor0
----
1218
2170
4074

query I rowsort
SELECT + col1 * col2 + 1 * col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - col1 * col2 + + col1 - col1 * col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-23460
-272993
-7533

query I rowsort
SELECT col1 * - col2 + - ( ( col0 ) * + col1 + col0 ) AS col2 FROM tab0 AS cor0
----
-15650
-3527
-4926

query I rowsort
SELECT - col2 + + col0 * + ( + 61 ) AS col0 FROM tab1 AS cor0
----
129
3847
4784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + cor0.col0 col2 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7761
SELECT + col0 DIV + ( col1 ) + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7761
SELECT + col0 / + ( col1 ) + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + 54 col2 FROM tab2
----
99
99
99

query I rowsort
SELECT - ( + col0 ) + - col1 * col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT - + 64 AS col2 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT col0 * col1 - col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT ( col2 ) * col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) * + 65 AS col2 FROM tab0 AS cor0
----
-2145
-5330
-65

query I rowsort
SELECT ALL - col2 * 16 * - col2 FROM tab0 AS cor0
----
107584
16
17424

query I rowsort
SELECT + col0 + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7771
SELECT ALL + CAST( NULL AS SIGNED ) / col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + CAST ( NULL AS INTEGER ) / col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( - 68 ) FROM tab2 cor0
----
68

query I rowsort
SELECT 37 * + 16 AS col0 FROM tab0 AS cor0
----
592
592
592

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7774
SELECT CAST( NULL AS SIGNED ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + ( - col2 + - cor0.col1 ) * + col2 FROM tab0 AS cor0
----
-1262554
-3430
-94248

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7776
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - - col0 * - 44 + - col2 FROM tab1 AS cor0
----
-186
-2873
-3616

query I rowsort
SELECT ALL - col2 * col2 + + cor0.col1 * col0 AS col0 FROM tab0 cor0
----
1375
3394
975

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7779
SELECT - col2 * - cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT - col2 * - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 56 * - 40 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8d7945c58537ce0b1a67892a4fd10dc1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7781
SELECT + col2 * CAST( col0 + - cor0.col2 * + 33 AS SIGNED ) FROM tab2 AS cor0
----
-20280
-23868
-44650

skipif mysql # not compatible
query I rowsort label-7781
SELECT + col2 * CAST ( col0 + - cor0.col2 * + 33 AS INTEGER ) FROM tab2 AS cor0
----
-20280
-23868
-44650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 63 col2 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT + 56 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT + 38 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7785
SELECT DISTINCT - + col1 * - 55 * cor0.col2 + + col1 DIV 39 AS col1 FROM tab2 AS cor0
----
35530
46035
84371

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT - + col1 * - 55 * cor0.col2 + + col1 / 39 AS col1 FROM tab2 AS cor0
----
35530
46035
84371

query I rowsort
SELECT - + col1 + 74 * - col2 AS col1 FROM tab2 AS cor0
----
-1983
-2029
-2829

query I rowsort
SELECT ALL + 39 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT ALL 82 + - 26 FROM tab2, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7789
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL + CAST ( NULL AS REAL ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col2 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + ( 10 ) FROM tab2 AS cor0
----
10

query I rowsort
SELECT ALL - + col1 + - 48 FROM tab2 AS cor0
----
-107
-65
-79

query I rowsort
SELECT ( 16 ) + col2 FROM tab1 AS cor0
----
112
70
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7794
SELECT DISTINCT - col1 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT - col1 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT col2 - - 3 FROM tab0
----
36
4
85

query I rowsort
SELECT col0 * - col0 + + col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT col1 * + col2 * 72 + + col0 FROM tab0
----
204360
537353
7019

query I rowsort
SELECT DISTINCT + ( + 47 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT 85 + col1 FROM tab1 cor0
----
111
95
98

query I rowsort
SELECT DISTINCT - ( + 74 ) * cor0.col1 * 89 + 80 * col1 FROM tab1 AS cor0
----
-169156
-65060
-84578

query I rowsort
SELECT ALL - 97 - - col0 AS col1 FROM tab2 AS cor0
----
-18
-19
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7802
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7803
SELECT ALL CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 45 * tab0.col1 FROM tab0
----
3870
4095
4365

query I rowsort
SELECT ALL + + ( - 50 ) * - col2 + + ( + col0 ) * col0 FROM tab2 cor0
----
1399
7384
8141

query I rowsort
SELECT DISTINCT - ( - 19 ) + + col0 * col2 AS col2 FROM tab1 AS cor0
----
181
3667
7699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 10 ) col0 FROM tab2
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7808
SELECT ALL - 9 DIV - col2 + col1 FROM tab0 AS cor0
----
106
86
91

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - 9 / - col2 + col1 FROM tab0 AS cor0
----
106
86
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 col0 FROM tab0
----
2
62
62

query I rowsort
SELECT + tab1.col2 + col1 + 58 * col0 FROM tab1
----
254
3779
4749

query I rowsort
SELECT DISTINCT 68 - col2 FROM tab1
----
-28
11
14

query I rowsort
SELECT DISTINCT - 28 + - tab2.col2 * - col0 * + 38 AS col2 FROM tab2
----
114048
7154
77036

query I rowsort
SELECT ( col2 ) + + 20 + 36 FROM tab1
----
110
113
152

query I rowsort
SELECT DISTINCT col0 * ( + col0 ) * + col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL - cor0.col1 + ( col2 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT 9 + + col1 FROM tab2
----
26
40
68

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1, tab0, tab1 AS cor0
----
-29

query I rowsort
SELECT DISTINCT col0 + 55 AS col1 FROM tab0 cor0
----
144
79
90

query I rowsort
SELECT - - col1 * cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7820
SELECT cor0.col0 DIV + col1 + col1 col2 FROM tab1 cor0
----
16
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7820
SELECT cor0.col0 / + col1 + col1 col2 FROM tab1 cor0
----
16
19
26

query I rowsort
SELECT ALL - - col2 * cor0.col0 + col2 - col1 FROM tab1 AS cor0
----
190
3695
7763

query I rowsort
SELECT ALL + col1 + + 37 FROM tab1 AS cor0
----
47
50
63

query I rowsort
SELECT ALL + col2 * ( - cor0.col2 ) - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + col1 + col0 - - ( + cor0.col1 ) FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT ALL - - 87 + cor0.col0 FROM tab0 AS cor0
----
111
122
176

onlyif mysql # use DIV operator for integer division
query I rowsort label-7826
SELECT - 73 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT - 73 / col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - 2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT 50 * - col2 + col0 FROM tab0 cor0
----
-15
-1626
-4011

query I rowsort
SELECT - - col1 * - col0 * 30 FROM tab0 AS cor0
----
-101850
-242970
-61920

query I rowsort
SELECT col2 * ( 36 ) AS col1 FROM tab0 AS cor0
----
1188
2952
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-7831
SELECT + col2 * + col2 DIV col2 col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7831
SELECT + col2 * + col2 / col2 col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7832
SELECT col1 * col1 DIV col2 FROM tab0 AS cor0
----
100
224
9409

skipif mysql # not compatible
query I rowsort label-7832
SELECT col1 * col1 / col2 FROM tab0 AS cor0
----
100
224
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7833
SELECT + CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT + CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7834
SELECT ALL + CAST( NULL AS SIGNED ) * - 37 + col1 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + CAST ( NULL AS INTEGER ) * - 37 + col1 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 58 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2974
3307
9274

query I rowsort
SELECT DISTINCT + 98 * + col1 AS col1 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT col1 - + 13 AS col2 FROM tab0 cor0
----
73
78
84

query I rowsort
SELECT ALL - - col2 + 75 FROM tab2 AS cor0
----
101
102
113

query I rowsort
SELECT DISTINCT + col2 * - col2 + + tab0.col2 FROM tab0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7840
SELECT ALL col0 * - 37 + 90 DIV + tab0.col2 AS col0 FROM tab0
----
-1205
-3292
-886

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL col0 * - 37 + 90 / + tab0.col2 AS col0 FROM tab0
----
-1205
-3292
-886

query I rowsort
SELECT + col0 - 40 FROM tab2 AS cor0
----
-33
38
39

query I rowsort
SELECT ALL + + col1 * + 1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + 52 + + col1 AS col2 FROM tab0 AS cor0
----
138
143
149

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7845
SELECT - ( + col0 ) + col2 DIV col1 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-7845
SELECT - ( + col0 ) + col2 / col1 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT col2 * - col1 + col2 * - cor0.col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 - + col2 col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL + 80 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab0
----
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT - 22 DIV + col0 AS col1 FROM tab1
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-7850
SELECT - 22 / + col0 AS col1 FROM tab1
----
-7
0
0

query I rowsort
SELECT + tab1.col0 * col0 * - col2 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + + ( col0 ) + + col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL + ( + col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7854
SELECT ALL + 85 DIV col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL + 85 / col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT + + 35 - cor0.col2 FROM tab2 AS cor0
----
-3
8
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7856
SELECT - col0 DIV + 33 AS col0 FROM tab1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7856
SELECT - col0 / + 33 AS col0 FROM tab1
----
-1
-2
0

query I rowsort
SELECT DISTINCT col2 + - col2 * - col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT col0 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - - 12 - + col2 FROM tab0 cor0
----
-21
-70
11

query I rowsort
SELECT - col0 * - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col1 * + ( 12 ) FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT - cor0.col0 * - ( + 95 + - col0 ) FROM tab1 AS cor0
----
1200
1984
276

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7863
SELECT ALL + col2 * + col1 - col0 * - CAST( col1 + col1 AS SIGNED ) FROM tab2
----
10738
1271
3332

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL + col2 * + col1 - col0 * - CAST ( col1 + col1 AS INTEGER ) FROM tab2
----
10738
1271
3332

query I rowsort
SELECT - col0 * - 16 FROM tab2 cor0
----
112
1248
1264

query I rowsort
SELECT - 8 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363

query I rowsort
SELECT DISTINCT col2 + col1 * - col1 + ( + col1 ) FROM tab0
----
-7277
-8108
-9311

query I rowsort
SELECT ALL - col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7868
SELECT DISTINCT + + cor0.col1 DIV + col1 - - col1 * + col2 FROM tab2 AS cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + + cor0.col1 / + col1 - - col1 * + col2 FROM tab2 AS cor0
----
1535
647
838

query I rowsort
SELECT DISTINCT - - col0 * col0 * + col0 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
21220
52284
713250

onlyif mysql # use DIV operator for integer division
query I rowsort label-7870
SELECT ( + col0 ) DIV - col0 - col2 * col1 * col1 col1 FROM tab0
----
-244069
-679043
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7870
SELECT ( + col0 ) / - col0 - col2 * col1 * col1 col1 FROM tab0
----
-244069
-679043
-9410

query I rowsort
SELECT col0 + - col2 * col0 * + col0 AS col1 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT ALL cor0.col0 * - col0 + + 42 FROM tab0 AS cor0
----
-1183
-534
-7879

query I rowsort
SELECT ALL - + col0 + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT ALL + col1 + 79 * + col0 AS col0 FROM tab2 cor0
----
584
6221
6258

query I rowsort
SELECT - col0 + 7 * col2 FROM tab0 AS cor0
----
-28
207
485

onlyif mysql # use DIV operator for integer division
query I rowsort label-7876
SELECT - tab0.col1 + 21 * col2 DIV col0 - - col1 FROM tab0
----
0
19
28

skipif mysql # not compatible
query I rowsort label-7876
SELECT - tab0.col1 + 21 * col2 / col0 - - col1 FROM tab0
----
0
19
28

query I rowsort
SELECT DISTINCT - col0 * + 53 + tab1.col0 FROM tab1
----
-156
-3328
-4160

query I rowsort
SELECT + 11 * + col0 - col0 FROM tab0 cor0
----
240
350
890

query I rowsort
SELECT col0 + col1 - col0 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 * 70 + col1 FROM tab0
----
1766
2547
6321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - ( col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + + 26 + - col0 FROM tab2 AS cor0
----
-52
-53
19

query I rowsort
SELECT 10 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT ALL - 65 + col0 * - 31 AS col0 FROM tab2 AS cor0
----
-2483
-2514
-282

onlyif mysql # use DIV operator for integer division
query I rowsort label-7886
SELECT ALL + col1 * - col0 + + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1343
-213
-4602

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + col1 * - col0 + + col1 / + col0 AS col1 FROM tab2 AS cor0
----
-1343
-213
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7887
SELECT ALL CAST( NULL AS SIGNED ) * col1 * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL CAST ( NULL AS INTEGER ) * col1 * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + col2 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + col1 + - col0 * + col2 * - col0 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT DISTINCT col2 * col0 + - col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT - - col2 + + col2 * col0 AS col2 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7893
SELECT - 44 DIV col0 AS col2 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7893
SELECT - 44 / col0 AS col2 FROM tab0 cor0
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7894
SELECT - 98 DIV - col1 + + col1 - - col2 AS col2 FROM tab1 AS cor0
----
116
76
83

skipif mysql # not compatible
query I rowsort label-7894
SELECT - 98 / - col1 + + col1 - - col2 AS col2 FROM tab1 AS cor0
----
116
76
83

query I rowsort
SELECT DISTINCT ( + col0 ) * - col1 * cor0.col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - ( + col1 ) + + col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL col2 + + col0 * - col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL ( col2 ) * + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + + col2 * col1 + - col0 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT 49 * + col1 FROM tab1 cor0
----
1274
490
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-7901
SELECT - cor0.col2 DIV cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7901
SELECT - cor0.col2 / cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * col1 + - cor0.col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL + col2 + col1 * + col1 AS col1 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL - col1 * 99 + col2 + cor0.col0 FROM tab1 AS cor0
----
-1111
-2517
-869

query I rowsort
SELECT ALL + col0 * col0 - + col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT + cor0.col2 + 68 + col0 FROM tab0 AS cor0
----
104
125
239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7907
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 30 AS col1 FROM tab1 cor0
----
30
30
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7909
SELECT - col2 - CAST( col0 AS SIGNED ) * + col2 * - col2 FROM tab2
----
114038
5076
52702

skipif mysql # not compatible
query I rowsort label-7909
SELECT - col2 - CAST ( col0 AS INTEGER ) * + col2 * - col2 FROM tab2
----
114038
5076
52702

query I rowsort
SELECT ALL ( - 86 ) + col2 FROM tab1
----
-29
-32
10

query I rowsort
SELECT + 56 + + col0 FROM tab0
----
145
80
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7912
SELECT CAST( NULL AS SIGNED ) * - col2 + col2 + col1 / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT CAST ( NULL AS INTEGER ) * - col2 + col2 + col1 / + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - col1 * col0 AS col0 FROM tab2
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7914
SELECT ALL + CAST( col2 AS SIGNED ) - - tab0.col2 * col1 FROM tab0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL + CAST ( col2 AS INTEGER ) - - tab0.col2 * col1 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7915
SELECT - col2 DIV - col0 + + tab2.col0 - col1 FROM tab2
----
-21
19
62

skipif mysql # not compatible
query I rowsort label-7915
SELECT - col2 / - col0 + + tab2.col0 - col1 FROM tab2
----
-21
19
62

query I rowsort
SELECT ALL ( + 49 ) - + tab0.col2 * + col2 * + col1 FROM tab0
----
-48
-611835
-93605

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 * col2 + col2 FROM tab1
----
-16128
-36450
-5643

query I rowsort
SELECT + - ( - col0 ) + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - + ( - col0 ) + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + 80 + col1 FROM tab2 AS cor0
----
111
139
97

query I rowsort
SELECT DISTINCT col0 * ( + col1 ) + col1 * + col2 AS col0 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT DISTINCT + 71 + - col1 AS col0 FROM tab2
----
12
40
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-7923
SELECT 87 DIV col1 FROM tab2
----
1
2
5

skipif mysql # not compatible
query I rowsort label-7923
SELECT 87 / col1 FROM tab2
----
1
2
5

query I rowsort
SELECT DISTINCT + 38 + col1 FROM tab2
----
55
69
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7925
SELECT CAST( NULL AS SIGNED ) + col0 * - col2 / col2 + tab0.col2 / col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT CAST ( NULL AS INTEGER ) + col0 * - col2 / col2 + tab0.col2 / col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7926
SELECT DISTINCT col1 + + col1 - - col2 DIV + col2 FROM tab1 cor0
----
21
27
53

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT col1 + + col1 - - col2 / + col2 FROM tab1 cor0
----
21
27
53

query I rowsort
SELECT ALL - col0 * - col1 + + col0 * + col2 FROM tab1 AS cor0
----
240
4288
8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7928
SELECT - col0 + CAST( col2 + - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7928
SELECT - col0 + CAST ( col2 + - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - - cor0.col0 - - cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL 49 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT - ( col1 ) * + tab0.col0 * col0 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + 26 + + col1 AS col2 FROM tab0
----
112
117
123

query I rowsort
SELECT ALL 54 * cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fead6e319ba9b23c537dfbf264190f24

query I rowsort
SELECT ALL ( + 26 ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 8b6a624eb92fb019d9664318e519f062

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( ( col2 ) AS REAL ) * + col0 + 90 FROM tab1 AS cor0
----
-3558
-72
-7590

query I rowsort
SELECT - 10 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT - + ( - 80 ) AS col1 FROM tab2 AS cor0
----
80
80
80

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-7939
SELECT DISTINCT + tab0.col0 DIV + col0 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT + tab0.col0 / + col0 AS col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7941
SELECT DISTINCT - 71 * col0 DIV 73 + 6 AS col0 FROM tab0 cor0
----
-17
-28
-80

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT - 71 * col0 / 73 + 6 AS col0 FROM tab0 cor0
----
-17
-28
-80

query I rowsort
SELECT DISTINCT + 90 * + col1 FROM tab1
----
1170
2340
900

query I rowsort
SELECT ALL ( - col0 ) * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col0 + cor0.col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - + col0 * ( col2 ) - col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT col2 - - ( - col2 ) * cor0.col2 * col1 FROM tab2 AS cor0
----
-22572
-24510
-39858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - - col2 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + + col1 + + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + 8 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7950
SELECT ALL col2 DIV 9 AS col0 FROM tab1
----
10
6
6

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL col2 / 9 AS col0 FROM tab1
----
10
6
6

query I rowsort
SELECT - col1 + col1 * 24 FROM tab2 AS cor0
----
1357
391
713

query I rowsort
SELECT + col1 * 56 FROM tab0 AS cor0
----
4816
5096
5432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 11 * cor0.col0 + col1 col0 FROM tab1 AS cor0
----
125
45066
70413

query I rowsort
SELECT + + col2 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT ( + col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT 33 + - col2 FROM tab1 AS cor0
----
-21
-24
-63

query I rowsort
SELECT ALL 23 + + 77 FROM tab0 AS cor0
----
100
100
100

onlyif mysql # use DIV operator for integer division
query I rowsort label-7958
SELECT - col2 DIV ( - 57 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7958
SELECT - col2 / ( - 57 ) FROM tab1
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7959
SELECT DISTINCT + col2 + - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
52
89

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + col2 + - col2 / col1 AS col1 FROM tab1 AS cor0
----
52
89

query I rowsort
SELECT + 78 * + 40 + + col1 * + col0 + - cor0.col2 FROM tab0 cor0
----
11137
5151
6514

query I rowsort
SELECT 64 * + cor0.col2 + + col2 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT - + 80 + - ( - col0 ) - + col0 FROM tab1 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL - 17 * col1 AS col1 FROM tab1 AS cor0
----
-170
-221
-442

onlyif mysql # use DIV operator for integer division
query I rowsort label-7964
SELECT col0 DIV + col0 + col1 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-7964
SELECT col0 / + col0 + col1 AS col2 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7965
SELECT ALL col2 DIV + ( + col0 ) AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL col2 / + ( + col0 ) AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT + tab1.col0 * 4 FROM tab1
----
12
256
320

query I rowsort
SELECT + col2 * + 31 * col0 FROM tab0
----
1085
226238
24552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col0 FROM tab0, tab2 cor0
----
-60

query I rowsort
SELECT ALL + cor0.col2 + col2 * - ( col1 ) AS col0 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-7971
SELECT DISTINCT - col1 DIV col1 + - 22 - + cor0.col2 DIV + col0 FROM tab1 AS cor0
----
-23
-24
-41

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT - col1 / col1 + - 22 - + cor0.col2 / + col0 FROM tab1 AS cor0
----
-23
-24
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * col2 col2 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT 19 * col0 FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT ALL - 5 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT ( + 41 ) FROM tab2, tab0, tab2 cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7976
SELECT DISTINCT ( col0 ) DIV + col2 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT ( col0 ) / + col2 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT + 17 AS col1 FROM tab2
----
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7978
SELECT col2 * + col2 + CAST( NULL AS SIGNED ) / 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT col2 * + col2 + CAST ( NULL AS INTEGER ) / 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7980
SELECT col0 * - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT col0 * - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-29
-6136
-6282

query I rowsort
SELECT + col0 * col0 + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - ( + cor0.col2 ) + col0 FROM tab2 cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col2 FROM tab2 AS cor0
----
79

query I rowsort
SELECT ALL col0 + col2 + - 53 FROM tab0 cor0
----
-17
118
4

query I rowsort
SELECT + + 96 * col2 AS col2 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT ALL + - 77 + col0 FROM tab0 AS cor0
----
-42
-53
12

query I rowsort
SELECT DISTINCT - + col0 + - col0 * + 99 AS col0 FROM tab0 AS cor0
----
-2400
-3500
-8900

query I rowsort
SELECT ALL + ( + col2 ) + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ( 18 ) * + col1 - col2 AS col1 FROM tab1
----
123
138
414

query I rowsort
SELECT ALL + 75 * tab1.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a3f547326e881ecc51d4615601229917

onlyif mysql # use DIV operator for integer division
query I rowsort label-7992
SELECT DISTINCT 90 DIV col0 + col2 AS col0 FROM tab1
----
58
84
97

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT 90 / col0 + col2 AS col0 FROM tab1
----
58
84
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7993
SELECT ALL + col1 DIV + col0 + + 50 FROM tab1
----
50
50
58

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL + col1 / + col0 + + 50 FROM tab1
----
50
50
58

query I rowsort
SELECT 35 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT ( + col0 ) + + col0 * col1 + col0 FROM tab0 AS cor0
----
2112
3465
8277

query I rowsort
SELECT ALL col0 * - col0 + + 86 AS col2 FROM tab0 AS cor0
----
-1139
-490
-7835

onlyif mysql # use DIV operator for integer division
query I rowsort label-7997
SELECT - col0 * + col1 + 11 DIV cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-7997
SELECT - col0 * + col1 + 11 / cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - - 47 AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - + col0 + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + ( 99 ) AS col0 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT - ( col2 ) + col0 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ( tab2.col1 + - col0 * tab2.col1 ) FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT + 52 + - col2 AS col1 FROM tab2 AS cor0
----
14
25
26

query I rowsort
SELECT DISTINCT - col1 + ( + col0 ) * ( ( + col0 ) ) * ( col2 ) FROM tab0
----
1128
18922
649431

query I rowsort
SELECT - col0 + col2 + col0 AS col0 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8007
SELECT DISTINCT ( col0 ) DIV col2 + 31 AS col1 FROM tab0
----
31
32
66

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT ( col0 ) / col2 + 31 AS col1 FROM tab0
----
31
32
66

query I rowsort
SELECT DISTINCT ( tab0.col1 ) * tab0.col2 + ( 63 ) FROM tab0
----
160
2901
7525

onlyif mysql # use DIV operator for integer division
query I rowsort label-8009
SELECT ALL cor1.col0 DIV - cor1.col2 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 4d1db5f16a92c7c30b5402daeb92ffa7

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL cor1.col0 / - cor1.col2 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 4d1db5f16a92c7c30b5402daeb92ffa7

query I rowsort
SELECT ( - ( col1 ) ) + 36 AS col1 FROM tab2 AS cor0
----
-23
19
5

query I rowsort
SELECT ALL - 50 * + 17 AS col2 FROM tab1 AS cor0
----
-850
-850
-850

query I rowsort
SELECT ALL - 61 AS col0 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL + ( + col1 ) * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-8014
SELECT - 95 DIV tab1.col2 + 90 FROM tab1, tab0 AS cor0
----
9 values hashing to 863f4c3e79374276817e4ceab8e0cb1f

skipif mysql # not compatible
query I rowsort label-8014
SELECT - 95 / tab1.col2 + 90 FROM tab1, tab0 AS cor0
----
9 values hashing to 863f4c3e79374276817e4ceab8e0cb1f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col2 FROM tab2, tab0 cor0 CROSS JOIN tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8016
SELECT ALL + - col0 DIV col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL + - col0 / col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 * + col2 col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-8018
SELECT - 95 * cor0.col0 DIV + col1 FROM tab2 AS cor0
----
-125
-21
-441

skipif mysql # not compatible
query I rowsort label-8018
SELECT - 95 * cor0.col0 / + col1 FROM tab2 AS cor0
----
-125
-21
-441

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8019
SELECT - + CAST( NULL AS SIGNED ) + - 32 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT - + CAST ( NULL AS INTEGER ) + - 32 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 13 * - col2 AS col2 FROM tab1 cor0
----
1248
702
741

onlyif mysql # use DIV operator for integer division
query I rowsort label-8021
SELECT ALL - + col0 + col0 DIV 78 AS col2 FROM tab1 AS cor0
----
-3
-64
-79

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL - + col0 + col0 / 78 AS col2 FROM tab1 AS cor0
----
-3
-64
-79

query I rowsort
SELECT + + cor1.col2 * 72 + - 18 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a41a090762c8055f012fce73b5b9df1b

query I rowsort
SELECT - 90 * col2 * tab1.col2 AS col1 FROM tab1
----
-262440
-292410
-829440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 - + col1 col2 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT ALL + + cor0.col2 + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883

query I rowsort
SELECT - 90 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8027
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 9 * tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2b1d8d70d87ed710a3d9f7b8aa1868be

query I rowsort
SELECT + - cor0.col1 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8030
SELECT DISTINCT + cor0.col2 * CAST( NULL AS DECIMAL ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT + cor0.col2 * CAST ( NULL AS REAL ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 + - col1 * cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-1149
-158
-707

query I rowsort
SELECT ALL + cor0.col0 * col2 + col0 + - cor0.col2 FROM tab0 AS cor0
----
69
7305
783

onlyif mysql # use DIV operator for integer division
query I rowsort label-8033
SELECT col2 DIV cor0.col1 + col2 * + col0 + + 24 DIV + cor0.col1 AS col2 FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-8033
SELECT col2 / cor0.col1 + col2 * + col0 + + 24 / + cor0.col1 AS col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8034
SELECT ALL - col0 + + CAST( + 99 AS SIGNED ) FROM tab1 AS cor0
----
19
35
96

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL - col0 + + CAST ( + 99 AS INTEGER ) FROM tab1 AS cor0
----
19
35
96

query I rowsort
SELECT + col0 + 87 * + 32 FROM tab2 AS cor0
----
2791
2862
2863

onlyif mysql # use DIV operator for integer division
query I rowsort label-8036
SELECT + col0 DIV 23 FROM tab0 cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-8036
SELECT + col0 / 23 FROM tab0 cor0
----
1
1
3

query I rowsort
SELECT DISTINCT col2 * 6 FROM tab2
----
156
162
228

query I rowsort
SELECT ALL col0 * ( col0 ) * + col0 FROM tab1 AS cor0
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT DISTINCT - + 58 DIV - col0 FROM tab1 AS cor0
----
0
19

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - + 58 / - col0 FROM tab1 AS cor0
----
0
19

query I rowsort
SELECT - 54 * + col1 * col2 FROM tab1 AS cor0
----
-30780
-67392
-75816

query I rowsort
SELECT ALL + - 63 * col0 + + col0 FROM tab0 AS cor0
----
-1488
-2170
-5518

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8042
SELECT + + ( - 80 ) + cor0.col2 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1169
-6804
-81

skipif mysql # not compatible
query I rowsort label-8042
SELECT + + ( - 80 ) + cor0.col2 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1169
-6804
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col0 - + col2 AND NULL
----

query I rowsort
SELECT col1 * - tab2.col2 + col2 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT + col0 - - col2 * - col2 AS col1 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - tab2.col0 + col0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 IN ( - col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8049
SELECT col2 DIV col1 + col1 * - col1 col2 FROM tab2 cor0
----
-287
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8049
SELECT col2 / col1 + col1 * - col1 col2 FROM tab2 cor0
----
-287
-3481
-961

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * col0 IN ( + col0 * col0 + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col2 * + col0 + - col1 FROM tab1
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + tab2.col0 col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - col2 * - col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE col1 + + col1 * col0 NOT IN ( + col0 )
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col0 * - col2 * + col2 AS col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT + col2 * - col0 - + col0 * - 9 FROM tab1
----
-135
-3072
-6960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 * col1 col1 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT - col0 * + col0 * 23 FROM tab1 AS cor0
----
-147200
-207
-94208

query I rowsort
SELECT ALL - col1 * + ( col0 ) + col2 * ( - 75 + col2 ) AS col0 FROM tab2 AS cor0
----
-1513
-2749
-5876

query I rowsort
SELECT + cor0.col0 + + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab1, tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + col2 col1 FROM tab1 cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 - - 40 * col1 col0 FROM tab2 AS cor0
----
1254
2516
838

query I rowsort
SELECT DISTINCT - - col0 * + col1 - cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
1375
3394
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * - col2 + col2 * col1 col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - col1 * col1 * col2 FROM tab0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT + col0 * col1 + tab2.col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT col0 + col0 * - col0 - - tab0.col0 FROM tab0
----
-1155
-528
-7743

query I rowsort
SELECT DISTINCT + col2 / + col1 + + col0 AS col0 FROM tab0 WHERE NOT NULL >= ( col1 + col2 )
----

query I rowsort
SELECT DISTINCT col1 + tab1.col2 - + tab1.col1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + tab1.col2 + + col2 * - col2 AS col1 FROM tab1
----
-2808
-3135
-9024

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * - col2 + - col2 ) <> - col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( tab2.col0 ) <> col0
----

query I rowsort
SELECT + col1 + + tab1.col0 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL col2 + + col0 * col2 * col0 FROM tab0
----
1226
19041
649604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - tab2.col1 * + col0 col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL col0 * - tab0.col0 + col1 AS col2 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT col1 - - col2 FROM tab1 WHERE NOT ( NULL ) >= tab1.col0 + + col0 + col2
----

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL tab2.col0 * - tab2.col2 * col1 - col1 FROM tab2
----
-119711
-51051
-5890

query I rowsort
SELECT ALL col2 * col1 * col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * ( cor0.col2 + - cor0.col0 ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6e764ab959554e45b5681d3b61765bbd

query I rowsort
SELECT + 4 + - cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
4
4
4

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 / + col1 IN ( + tab0.col1 )
----

query I rowsort
SELECT + col2 * col2 + tab1.col1 AS col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT col1 + + tab0.col0 + col0 FROM tab0
----
134
167
269

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + col1 + - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * col2 + tab1.col0 * - col2 col1 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT + col0 * col0 + col2 * col1 AS col2 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col0 + - 99 FROM tab2
----
-3
-61
38

query I rowsort
SELECT ALL col1 * - 88 FROM tab0 AS cor0
----
-7568
-8008
-8536

query I rowsort
SELECT DISTINCT col0 + 18 * + col0 FROM tab1
----
1216
1520
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8095
SELECT DISTINCT col2 + CAST( col2 AS SIGNED ) col1 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT col2 + CAST ( col2 AS INTEGER ) col1 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL + cor0.col0 * + 31 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT + col2 * - cor0.col2 * 84 - + col0 AS col0 FROM tab1 AS cor0
----
-244947
-272980
-774224

query I rowsort
SELECT ALL - cor0.col2 * - 17 AS col1 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT - + col0 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8100
SELECT + ( col1 ) + + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT + ( col1 ) + + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col1 ) * + col0 + col0 * col0 FROM tab0 AS cor0
----
-1488
-178
-2170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 * + 46 col2 FROM tab0 AS cor0
----
874
874
874

query I rowsort
SELECT + 90 * cor0.col2 + - col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1141
1469
3131

query I rowsort
SELECT ALL - + cor0.col0 * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col1 * 41 + - col2 AS col1 FROM tab2
----
1244
2393
659

query I rowsort
SELECT + 9 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT - ( - col1 ) + + col2 * 21 - + col0 FROM tab2 AS cor0
----
527
591
736

query I rowsort
SELECT ALL - 81 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-43
-54
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT DISTINCT + 82 DIV - col0 FROM tab2 cor0
----
-1
-11

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + 82 / - col0 FROM tab2 cor0
----
-1
-11

query I rowsort
SELECT ALL + - col2 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL - cor0.col2 + + col0 * ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT + + 34 * col0 AS col0 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT DISTINCT - 70 * - col2 + col1 * 20 AS col0 FROM tab1 AS cor0
----
4190
4300
6980

query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8115
SELECT ALL col1 DIV col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL col1 / col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 33 AS col2 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + + col1 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL col1 * col1 + ( col2 ) AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + 86 * col0 FROM tab1 cor0
----
258
5504
6880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT DISTINCT + 59 + col0 * col1 DIV col0 FROM tab0
----
145
150
156

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT + 59 + col0 * col1 / col0 FROM tab0
----
145
150
156

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 AS col2 FROM tab2
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8123
SELECT + CAST( NULL AS SIGNED ) + 54 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT + CAST ( NULL AS INTEGER ) + 54 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 82 * col2 AS col1 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT DISTINCT 96 + col2 * - col0 * + col0 FROM tab1 AS cor0
----
-233376
-390
-614304

query I rowsort
SELECT ALL - - 74 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8127
SELECT ALL col1 * - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + ( cor0.col2 ) * - cor0.col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT 60 + col1 * - tab1.col2 AS col0 FROM tab1
----
-1188
-1344
-510

query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8131
SELECT col1 * + col1 + CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT col1 * + col1 + CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * + 50 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d77631da1543954248f01aecb963a5a0

query I rowsort
SELECT ALL + 80 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL + col0 * + col1 + + col2 + col2 * col1 FROM tab1 AS cor0
----
1267
1536
2384

query I rowsort
SELECT DISTINCT - col2 + + 86 AS col0 FROM tab0 AS cor0
----
4
53
85

query I rowsort
SELECT - col2 * - cor0.col0 * col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8137
SELECT ALL - cor0.col1 * - CAST( ( - col1 ) AS SIGNED ) + + col1 * col1 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - cor0.col1 * - CAST ( ( - col1 ) AS INTEGER ) + + col1 * col1 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8138
SELECT - cor0.col0 DIV - CAST( + col2 + + col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT - cor0.col0 / - CAST ( + col2 + + col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 + - 83 * - col1 col0 FROM tab0
----
7150
7565
8063

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 - - col0 * ( + col1 ) FROM tab0 cor0
----
15397
2856
3430

query I rowsort
SELECT ALL + - cor0.col1 + col2 * - cor0.col1 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - - cor0.col0 + + col1 - col2 AS col1 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT DISTINCT 55 * cor0.col0 + col1 - + 29 AS col2 FROM tab0 AS cor0
----
1377
1993
4957

query I rowsort
SELECT + 21 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT - ( 22 ) AS col2 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT + 23 * col1 AS col0 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT ALL + col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - - 34 * - col1 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT DISTINCT + 50 * - col2 AS col0 FROM tab0 cor0
----
-1650
-4100
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8150
SELECT + 97 * + col1 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT + 97 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8151
SELECT - col0 * cor0.col2 + - CAST( NULL AS SIGNED ) * 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT - col0 * cor0.col2 + - CAST ( NULL AS INTEGER ) * 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 84 * + col0 * + col0 AS col2 FROM tab1 cor0
----
344064
537600
756

query I rowsort
SELECT - + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 48 * col2 FROM tab1 cor0
----
2592
2736
4608

query I rowsort
SELECT col0 * 57 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT + + col0 * - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - - 60 * col2 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT ALL + - 65 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT col1 + - col2 * - col1 * col1 FROM tab0 AS cor0
----
244154
679133
9506

query I rowsort
SELECT DISTINCT + - col0 + col1 * - col2 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT + ( col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 9 * + cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 199f3ccbc12cae3191950305cf80b764

query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + 88 * + col0 FROM tab1
----
264
5632
7040

query I rowsort
SELECT - - col0 * + cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + cor0.col1 + - ( - cor0.col1 ) * col2 + - col0 AS col2 FROM tab1 AS cor0
----
1181
1427
516

query I rowsort
SELECT - col0 * ( 87 + col0 ) FROM tab2 AS cor0
----
-12870
-13114
-658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * tab2.col2 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col1 * - 52 * col1 FROM tab1
----
-35152
-5200
-8788

onlyif mysql # use DIV operator for integer division
query I rowsort label-8170
SELECT ALL col1 * - col2 + col0 DIV + 17 FROM tab0 cor0
----
-2837
-7457
-95

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL col1 * - col2 + col0 / + 17 FROM tab0 cor0
----
-2837
-7457
-95

query I rowsort
SELECT ALL 9 + - ( cor0.col1 ) FROM tab2, tab2 AS cor0
----
9 values hashing to d0f08f264a08afa79bb5e92396ea35ea

query I rowsort
SELECT DISTINCT - 83 * col1 + col1 AS col0 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT ALL col0 * - cor0.col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * ( + col2 ) + col1 * col0 col1 FROM tab0 AS cor0
----
249
3340
3589

query I rowsort
SELECT ALL cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT tab1.col2 - ( - col1 ) AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL + 10 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - col2 + - 1 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT - 89 - col0 AS col2 FROM tab0
----
-113
-124
-178

query I rowsort
SELECT DISTINCT + ( - col1 ) + + col0 * ( col2 ) FROM tab2
----
158
1969
2985

query I rowsort
SELECT 67 + col0 AS col1 FROM tab1 AS cor0
----
131
147
70

query I rowsort
SELECT ALL ( + 9 ) FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + - cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8184
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( + col1 * + col0 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( + col1 * + col0 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8185
SELECT - CAST( NULL AS DECIMAL ) + - col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT - CAST ( NULL AS REAL ) + - col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 * + col0 - ( tab2.col2 ) col0 FROM tab2
----
-6
199
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 + tab2.col0 - ( 22 ) col2 FROM tab2
----
154
155
83

query I rowsort
SELECT DISTINCT 47 * + col0 AS col0 FROM tab1
----
141
3008
3760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8189
SELECT + col1 + col0 DIV + ( - col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-8189
SELECT + col1 + col0 / + ( - col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + cor0.col1 + + ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL col1 + col1 + col1 AS col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT + col0 - col0 * col1 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 94 + + col2 col1 FROM tab2 AS cor0
----
-2418
-2511
-3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * - 81 col0 FROM tab2
----
124254
52326
67797

query I rowsort
SELECT + - cor0.col1 - - cor0.col0 * + 52 AS col2 FROM tab2 AS cor0
----
333
3997
4091

query I rowsort
SELECT ALL + col0 + 35 AS col1 FROM tab0 AS cor0
----
124
59
70

query I rowsort
SELECT DISTINCT - col2 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT col1 - + 53 AS col1 FROM tab0 AS cor0
----
33
38
44

query I rowsort
SELECT ALL - 81 * + 60 AS col1 FROM tab1
----
-4860
-4860
-4860

query I rowsort
SELECT ALL - 76 FROM tab0, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8201
SELECT ALL CAST( NULL AS DECIMAL ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL CAST ( NULL AS REAL ) * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col0 - tab2.col2 * tab2.col1 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT - 25 + - col0 AS col1 FROM tab0
----
-114
-49
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8205
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( - col2 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 19 + 17 * tab2.col0 FROM tab2
----
1345
1362
138

query I rowsort
SELECT ALL - + col1 + 64 * - col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + col1 + col2 * 27 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1042
197137
21470

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8213
SELECT DISTINCT cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8214
SELECT ALL ( + col0 * + CAST( NULL AS SIGNED ) ) + - col1 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL ( + col0 * + CAST ( NULL AS INTEGER ) ) + - col1 * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + col2 + 62 * col1 AS col0 FROM tab2 AS cor0
----
-390
1193
2982

onlyif mysql # use DIV operator for integer division
query I rowsort label-8216
SELECT DISTINCT + col1 DIV + col1 - - 88 * - col0 FROM tab2 AS cor0
----
-615
-6863
-6951

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT + col1 / + col1 - - 88 * - col0 FROM tab2 AS cor0
----
-615
-6863
-6951

query I rowsort
SELECT ALL + 15 + col2 FROM tab0 AS cor0
----
16
48
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8218
SELECT DISTINCT - - col0 DIV - col1 - - col0 * - cor0.col2 FROM tab1 AS cor0
----
-162
-3654
-7686

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT - - col0 / - col1 - - col0 * - cor0.col2 FROM tab1 AS cor0
----
-162
-3654
-7686

query I rowsort
SELECT - cor0.col2 * + col2 + col1 FROM tab2 cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-8220
SELECT + cor0.col0 DIV - CAST( - ( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8220
SELECT + cor0.col0 / - CAST ( - ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col0 * - 53 + col0 AS col2 FROM tab0
----
-1248
-1820
-4628

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) * col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT cor0.col2 * - 89 FROM tab2 AS cor0
----
-2314
-2403
-3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT ALL + - col0 + cor0.col1 * - col2 + + col1 DIV col2 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + - col0 + cor0.col1 * - col2 + + col1 / col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - col2 + - 80 AS col1 FROM tab0 AS cor0
----
-113
-162
-81

query I rowsort
SELECT DISTINCT col1 + - 44 FROM tab0 AS cor0
----
42
47
53

query I rowsort
SELECT + col0 + + col0 + 67 AS col0 FROM tab1 AS cor0
----
195
227
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8228
SELECT + col2 + - CAST( NULL AS SIGNED ) * col2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT + col2 + - CAST ( NULL AS INTEGER ) * col2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 43 * + 64 AS col0 FROM tab0 AS cor0
----
2752
2752
2752

onlyif mysql # use DIV operator for integer division
query I rowsort label-8230
SELECT ( - col0 ) DIV col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT ( - col0 ) / col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT - 12 * 39 * col2 FROM tab2 AS cor0
----
-12168
-12636
-17784

query I rowsort
SELECT ALL - ( + 23 ) FROM tab0 cor0
----
-23
-23
-23

query I rowsort
SELECT ALL - - col2 + + 16 FROM tab2 AS cor0
----
42
43
54

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-8235
SELECT DISTINCT - - 89 DIV - col2 + col2 * + CAST( - col2 AS SIGNED ) + col0 DIV + col1 col0 FROM tab1 AS cor0
----
-2917
-3244
-9210

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - - 89 / - col2 + col2 * + CAST ( - col2 AS INTEGER ) + col0 / + col1 col0 FROM tab1 AS cor0
----
-2917
-3244
-9210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - + 21 AS col0 FROM tab2 cor0
----
-21
-21
-21

onlyif mysql # use DIV operator for integer division
query I rowsort label-8238
SELECT + 47 * col0 + col1 DIV + 63 col1 FROM tab2 AS cor0
----
329
3666
3713

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8238
SELECT + 47 * col0 + col1 / + 63 col1 FROM tab2 AS cor0
----
329
3666
3713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 * + col2 col0 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT ALL - + col1 + - col0 + col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + + 19 + 17 FROM tab1 AS cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * - 20 col2 FROM tab0 AS cor0
----
-1020

query I rowsort
SELECT - 51 * - col0 + - col1 + + 70 * col2 FROM tab0 cor0
----
10188
1758
3448

query I rowsort
SELECT + - cor0.col2 + col1 + col1 FROM tab0 cor0
----
100
139
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-8245
SELECT - 26 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT - 26 / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 69 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-8247
SELECT ( + col0 ) DIV - col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8247
SELECT ( + col0 ) / - col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col1 + - CAST ( col0 + col2 * col2 AS REAL ) col1 FROM tab1
----
-2893
-3303
-9283

query I rowsort
SELECT col1 * + ( col1 + + col0 ) FROM tab0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT - cor0.col2 + 35 * col0 AS col1 FROM tab2 AS cor0
----
218
2704
2727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8251
SELECT DISTINCT + col2 * + CAST( col0 AS SIGNED ) + + col1 col0 FROM tab0 cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT + col2 * + CAST ( col0 AS INTEGER ) + + col1 col0 FROM tab0 cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-8252
SELECT - 71 DIV + col0 AS col1 FROM tab2 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT - 71 / + col0 AS col1 FROM tab2 AS cor0
----
-10
0
0

query I rowsort
SELECT + + 34 + - cor0.col0 FROM tab2 AS cor0
----
-44
-45
27

query I rowsort
SELECT - cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 * col1 + - tab0.col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT - col2 + + ( + col0 + - col1 ) * + 41 FROM tab1 AS cor0
----
-997
2157
2651

onlyif mysql # use DIV operator for integer division
query I rowsort label-8257
SELECT ALL - col0 DIV 78 - col1 FROM tab0 AS cor0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - col0 / 78 - col1 FROM tab0 AS cor0
----
-86
-92
-97

query I rowsort
SELECT + col1 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - cor0.col0 + 39 FROM tab1, tab1 cor0
----
-25
-41
36

query I rowsort
SELECT DISTINCT col1 * 87 + col1 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT - col0 + - col1 + col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - 3 + col2 - - col0 * 12 * - col2 FROM tab1 AS cor0
----
-1893
-43722
-92067

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8264
SELECT ALL CAST( 3 AS SIGNED ) + + col1 + - 25 FROM tab0 AS cor0
----
64
69
75

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL CAST ( 3 AS INTEGER ) + + col1 + - 25 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT - col1 + - 26 FROM tab1 AS cor0
----
-36
-39
-52

query I rowsort
SELECT - col1 * + col1 + + col2 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT 99 * + tab2.col1 AS col2 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT 89 * - col0 * ( 40 ) + col0 AS col0 FROM tab2 AS cor0
----
-24913
-277602
-281161

onlyif mysql # use DIV operator for integer division
query I rowsort label-8269
SELECT - + col2 * + col1 + col2 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-8269
SELECT - + col2 * + col1 + col2 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-1241
-1402
-565

query I rowsort
SELECT 88 * 80 FROM tab1
----
7040
7040
7040

onlyif mysql # use DIV operator for integer division
query I rowsort label-8271
SELECT ( + col1 ) DIV tab1.col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8271
SELECT ( + col1 ) / tab1.col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - + col2 * - col2 + 85 * + col1 FROM tab0 cor0
----
14459
8246
8399

query I rowsort
SELECT - 4 + cor0.col0 AS col2 FROM tab0 AS cor0
----
20
31
85

query I rowsort
SELECT ALL + col0 * - col0 * - col1 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-8275
SELECT + - col0 + + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-8275
SELECT + - col0 + + col0 / + col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT col2 + col2 * 10 * tab1.col0 FROM tab1
----
1674
36537
76896

query I rowsort
SELECT - col2 + 48 AS col0 FROM tab1 AS cor0
----
-48
-6
-9

query I rowsort
SELECT DISTINCT + tab0.col0 + tab0.col2 * - ( tab0.col0 ) FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 + - col1 + - col0 AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT col2 + col1 * + col1 * - col1 FROM tab1 AS cor0
----
-17522
-2101
-943

onlyif mysql # use DIV operator for integer division
query I rowsort label-8281
SELECT DISTINCT - col2 * + col2 + 33 DIV col0 FROM tab1
----
-2905
-3249
-9216

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT - col2 * + col2 + 33 / col0 FROM tab1
----
-2905
-3249
-9216

query I rowsort
SELECT ALL 26 + + col0 AS col0 FROM tab2
----
104
105
33

query I rowsort
SELECT col2 + col1 * + ( - col1 ) AS col2 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT col2 * - col1 * tab1.col2 + - col1 * - col1 + col1 * 50 FROM tab1
----
-118989
-31890
-73840

query I rowsort
SELECT tab0.col2 * col2 * col0 AS col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + 50 FROM tab0, tab2 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8287
SELECT - CAST( + col2 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-8287
SELECT - CAST ( + col2 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL ( - col2 ) + + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 * 91 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT + col0 + 47 AS col1 FROM tab2 AS cor0
----
125
126
54

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e

query I rowsort
SELECT ( + tab1.col2 ) * col1 - col1 FROM tab1
----
1235
1378
560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8293
SELECT - CAST( col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-8293
SELECT - CAST ( col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8294
SELECT - CAST( NULL AS SIGNED ) + + col2 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT - CAST ( NULL AS INTEGER ) + + col2 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8295
SELECT ALL 50 DIV col1 + - col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL 50 / col1 + - col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-8297
SELECT ALL + col0 DIV + col2 AS col0 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL + col0 / + col2 AS col0 FROM tab0
----
0
1
35

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT tab2.col2 * - col2 * col0 + col2 AS col2 FROM tab2
----
-114038
-5076
-52702

query I rowsort
SELECT DISTINCT 52 * - ( - col1 ) FROM tab1
----
1352
520
676

query I rowsort
SELECT ALL - + tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8302
SELECT DISTINCT + ( col1 ) DIV + col0 AS col1 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + ( col1 ) / + col0 AS col1 FROM tab1
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + - tab2.col2 * tab2.col1 col1 FROM tab2
----
-1500
-612
-803

query I rowsort
SELECT - cor0.col2 + - 89 AS col2 FROM tab0 AS cor0
----
-122
-171
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8305
SELECT ALL - 37 DIV ( - col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - 37 / ( - col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 40 + col1 FROM tab2 AS cor0
----
-23
-9
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-8307
SELECT DISTINCT - tab2.col2 DIV col1 + 32 AS col0 FROM tab2
----
30
32

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT - tab2.col2 / col1 + 32 AS col0 FROM tab2
----
30
32

query I rowsort
SELECT DISTINCT col2 + + col0 * + col0 FROM tab1
----
4153
63
6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8309
SELECT - 97 * cor0.col0 - + CAST( - col1 AS SIGNED ) * col1 col2 FROM tab0 AS cor0
----
-352
5068
6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8309
SELECT - 97 * cor0.col0 - + CAST ( - col1 AS INTEGER ) * col1 col2 FROM tab0 AS cor0
----
-352
5068
6014

query I rowsort
SELECT ALL + + cor0.col2 - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8311
SELECT 46 * - col2 + CAST( 68 + - col2 * 71 AS SIGNED ) AS col0 FROM tab1
----
-11164
-6250
-6601

skipif mysql # not compatible
query I rowsort label-8311
SELECT 46 * - col2 + CAST ( 68 + - col2 * 71 AS INTEGER ) AS col0 FROM tab1
----
-11164
-6250
-6601

onlyif mysql # use DIV operator for integer division
query I rowsort label-8312
SELECT DISTINCT + tab1.col1 DIV col1 + + ( tab1.col2 ) * - col1 AS col2 FROM tab1
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT + tab1.col1 / col1 + + ( tab1.col2 ) * - col1 AS col2 FROM tab1
----
-1247
-1403
-569

onlyif mysql # use DIV operator for integer division
query I rowsort label-8313
SELECT DISTINCT col2 DIV col2 + 83 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT col2 / col2 + 83 FROM tab1
----
84

query I rowsort
SELECT ALL - cor0.col0 * col0 + 79 * col2 * col1 + - col2 * col1 FROM tab1 AS cor0
----
109503
40364
90944

query I rowsort
SELECT ALL col0 + ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + col1 + + col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - - cor0.col2 + 25 FROM tab0 AS cor0
----
107
26
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-8318
SELECT col2 DIV + col0 + + 41 DIV - col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8318
SELECT col2 / + col0 + + 41 / - col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT col1 - col1 * col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - col0 + ( - col2 ) * col1 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT - + col2 + 88 FROM tab0 AS cor0
----
55
6
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT + - col0 + - col0 * 95 DIV + col2 FROM tab1 cor0
----
-159
-170
-8

skipif mysql # not compatible
query I rowsort label-8322
SELECT + - col0 + - col0 * 95 / + col2 FROM tab1 cor0
----
-159
-170
-8

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + - col0 FROM tab1 AS cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 26 + + col1 col0 FROM tab0 AS cor0
----
124
145
199

query I rowsort
SELECT ALL + col1 + + col2 * - col0 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + - col1 * ( 0 ) AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + + col0 * col0 + - 97 AS col2 FROM tab0 AS cor0
----
1055
15745
2353

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8328
SELECT ALL - col0 + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - col0 + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8329
SELECT + + cor0.col1 + CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT + + cor0.col1 + CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 56 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT DISTINCT col2 * - col0 - + col2 FROM tab1 cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8332
SELECT col1 + col0 DIV col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8332
SELECT col1 + col0 / col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
17
31
59

query I rowsort
SELECT + col1 + + ( - col1 ) * + col0 - col2 AS col0 FROM tab0 cor0
----
-2011
-3299
-8090

query I rowsort
SELECT ALL col0 * - 18 FROM tab0 AS cor0
----
-1602
-432
-630

query I rowsort
SELECT DISTINCT - col2 - - 75 * col0 FROM tab1 AS cor0
----
171
4743
5904

query I rowsort
SELECT ( - 56 ) * col2 + 74 FROM tab1 cor0
----
-2950
-3118
-5302

query I rowsort
SELECT - col2 * ( cor0.col0 ) + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - tab2.col1 * + col2 AS col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8340
SELECT - 44 + col0 DIV col0 FROM tab0 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-8340
SELECT - 44 + col0 / col0 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT + + 34 + + col2 FROM tab0 cor0
----
116
35
67

query I rowsort
SELECT - - 38 * + col0 FROM tab2 AS cor0
----
266
2964
3002

query I rowsort
SELECT DISTINCT - 54 * - col0 * ( 25 ) FROM tab2 AS cor0
----
105300
106650
9450

onlyif mysql # use DIV operator for integer division
query I rowsort label-8344
SELECT ALL - - ( col0 ) DIV col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL - - ( col0 ) / col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT ALL + col1 * - col1 * - col2 AS col1 FROM tab2
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8346
SELECT 6 + + col2 * + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8346
SELECT 6 + + col2 * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL - - 24 AS col2 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT + col1 + cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT 91 * col2 FROM tab2 cor0
----
2366
2457
3458

query I rowsort
SELECT col2 * - col0 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + tab2.col0 + col1 + + col2 AS col0 FROM tab2
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8353
SELECT DISTINCT + cor0.col2 DIV + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-52
-89

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT + cor0.col2 / + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-52
-89

query I rowsort
SELECT cor0.col1 * + col0 + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-620
3068
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-8355
SELECT - + col0 DIV + cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-8355
SELECT - + col0 / + cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
51
54
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8356
SELECT ALL - col2 DIV - col1 col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - col2 / - col1 col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - cor0.col0 * col0 - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-15616
-2925
-7345

query I rowsort
SELECT ALL - col1 + col0 * - col2 FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT col1 + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8361
SELECT ALL + col0 DIV col2 - - col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL + col0 / col2 - - col2 FROM tab1
----
54
58
96

query I rowsort
SELECT ALL + col0 - - col0 * col0 FROM tab1
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col2 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col2 + - col2 * + col1 col1 FROM tab1 AS cor0
----
-1264
-1455
-563

query I rowsort
SELECT + col0 * cor0.col0 + + col2 FROM tab1 AS cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col0 - + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-8368
SELECT col0 + - col0 + col2 DIV + col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8368
SELECT col0 + - col0 + col2 / + col1 FROM tab2
----
0
0
2

query I rowsort
SELECT tab0.col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8370
SELECT col2 + tab1.col2 DIV col1 AS col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-8370
SELECT col2 + tab1.col2 / col1 AS col2 FROM tab1
----
103
56
62

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE + col1 * + col1 = NULL
----

query I rowsort
SELECT - 82 * + col0 - + ( cor0.col1 ) * - col1 FROM tab1 AS cor0
----
-5148
-6391
430

query I rowsort
SELECT - 41 * - col1 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT DISTINCT - col0 + + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-8375
SELECT ALL + - col0 * - col0 - col0 DIV col0 AS col0 FROM tab1 AS cor0
----
4095
6399
8

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + - col0 * - col0 - col0 / col0 AS col0 FROM tab1 AS cor0
----
4095
6399
8

query I rowsort
SELECT DISTINCT - tab0.col0 AS col0 FROM tab0 WHERE NOT tab0.col0 < - col0
----
-24
-35
-89

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( col1 )
----

query I rowsort
SELECT ALL tab0.col2 FROM tab0 WHERE ( + col0 ) NOT IN ( + tab0.col1 )
----
1
33
82

query I rowsort
SELECT col1 + col2 + + col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + cor0.col2 * cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8384
SELECT DISTINCT col2 + + col1 DIV col0 + col0 * col1 FROM tab0 AS cor0
----
2100
3398
8182

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT col2 + + col1 / col0 + col0 * col1 FROM tab0 AS cor0
----
2100
3398
8182

query I rowsort
SELECT + col1 * - col0 + cor0.col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col2 * - cor0.col0 )
----

query I rowsort
SELECT + cor0.col1 * - col1 + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - col1 + col2 * col2 AS col2 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + col2 + col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT ALL - col1 + col2 FROM tab2 WHERE NOT - col2 <> + tab2.col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + col0 * + col1 + col1 * - col2
----

query I rowsort
SELECT + col2 + + col0 * + col1 - - col0 AS col1 FROM tab1
----
1216
135
761

query I rowsort
SELECT - col0 + - col1 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT + col1 + col1 * - 90 AS col2 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT - 32 + - tab1.col0 FROM tab1
----
-112
-35
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8395
SELECT - CAST( + 96 * - col0 AS SIGNED ) + ( - col0 ) FROM tab2
----
665
7410
7505

skipif mysql # not compatible
query I rowsort label-8395
SELECT - CAST ( + 96 * - col0 AS INTEGER ) + ( - col0 ) FROM tab2
----
665
7410
7505

query I rowsort
SELECT DISTINCT col1 + + 36 * - col1 - ( - ( col1 ) ) FROM tab2
----
-1054
-2006
-578

onlyif mysql # use DIV operator for integer division
query I rowsort label-8397
SELECT col1 * + col0 + + ( - 62 ) DIV col1 col1 FROM tab2 cor0
----
1340
215
4601

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8397
SELECT col1 * + col0 + + ( - 62 ) / col1 col1 FROM tab2 cor0
----
1340
215
4601

query I rowsort
SELECT DISTINCT + tab0.col2 + - tab0.col1 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8399
SELECT + col0 DIV 53 + + 40 FROM tab0 AS cor0
----
40
40
41

skipif mysql # not compatible
query I rowsort label-8399
SELECT + col0 / 53 + + 40 FROM tab0 AS cor0
----
40
40
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-8400
SELECT col0 + col1 DIV 83 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8400
SELECT col0 + col1 / 83 AS col2 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8401
SELECT - col0 * + col1 + + ( + col2 ) DIV - col0 col1 FROM tab0
----
-2065
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8401
SELECT - col0 * + col1 + + ( + col2 ) / - col0 col1 FROM tab0
----
-2065
-3395
-8099

query I rowsort
SELECT DISTINCT 38 * + col1 FROM tab0
----
3268
3458
3686

query I rowsort
SELECT DISTINCT - 30 * col2 + col1 FROM tab1 AS cor0
----
-1594
-1700
-2867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 + col0 * col0 col1 FROM tab0 AS cor0
----
1172
523
7868

query I rowsort
SELECT ALL - col1 * 49 * col0 + + 63 FROM tab1 AS cor0
----
-31297
-3759
-50897

query I rowsort
SELECT ALL + 55 + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-4041
-6345
46

query I rowsort
SELECT - col2 * + col0 + 86 FROM tab2
----
-103
-1942
-2916

query I rowsort
SELECT ( col2 ) - col1 AS col2 FROM tab1 cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8409
SELECT DISTINCT + col1 + col2 DIV cor0.col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT + col1 + col2 / cor0.col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT + - ( - 22 ) - col1 FROM tab0 AS cor0
----
-64
-69
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 * 14 + - cor0.col1 col0 FROM tab2 cor0
----
53
81
95

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT 98 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL - col2 * - col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8415
SELECT CAST( + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8415
SELECT CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8416
SELECT DISTINCT - 71 + + ( col1 ) DIV - col0 AS col2 FROM tab2 AS cor0
----
-71
-75

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT - 71 + + ( col1 ) / - col0 AS col2 FROM tab2 AS cor0
----
-71
-75

query I rowsort
SELECT DISTINCT + ( 17 ) AS col2 FROM tab0 cor0
----
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-8418
SELECT + - cor0.col1 DIV + 85 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8418
SELECT + - cor0.col1 / + 85 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT ALL 3 DIV - col1 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL 3 / - col1 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8420
SELECT + CAST( + col2 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-8420
SELECT + CAST ( + col2 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-8421
SELECT DISTINCT 92 * + 13 + col1 DIV tab1.col1 AS col2 FROM tab1
----
1197

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT 92 * + 13 + col1 / tab1.col1 AS col2 FROM tab1
----
1197

query I rowsort
SELECT + 17 * col1 + col1 FROM tab2 cor0
----
1062
306
558

query I rowsort
SELECT ALL + col2 * + col1 + cor0.col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8424
SELECT ALL + CAST( NULL AS SIGNED ) - - col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + CAST ( NULL AS INTEGER ) - - col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * col0 - col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT ALL 73 * cor0.col2 + col2 * - col1 FROM tab1 AS cor0
----
2538
3591
5760

query I rowsort
SELECT DISTINCT - + col2 * col0 + - ( - col2 + col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col2 - col2 AS col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - - 22 + col1 FROM tab1 AS cor0
----
32
35
48

query I rowsort
SELECT + - 73 - cor0.col1 FROM tab1 cor0
----
-83
-86
-99

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 77 + col2 AS col1 FROM tab1 AS cor0
----
131
134
173

query I rowsort
SELECT + ( col2 ) + ( cor0.col0 + + col1 ) FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT DISTINCT - 26 FROM tab1, tab2 cor0, tab2 cor1
----
-26

query I rowsort
SELECT - 8 + + cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d4aea83f7f007a35cc0c1cdacddae005

query I rowsort
SELECT + + cor0.col1 * ( 36 ) FROM tab2 AS cor0
----
1116
2124
612

query I rowsort
SELECT col0 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - 86 col0 FROM tab2 AS cor0
----
-164
-165
-93

query I rowsort
SELECT DISTINCT - cor0.col0 * 9 AS col2 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT cor0.col2 + col2 * + 74 AS col1 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT DISTINCT - col0 * 11 * col0 FROM tab2 AS cor0
----
-539
-66924
-68651

query I rowsort
SELECT + col1 * 52 FROM tab1 AS cor0
----
1352
520
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8443
SELECT DISTINCT - + col0 + - CAST( 55 AS SIGNED ) FROM tab2 AS cor0
----
-133
-134
-62

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT - + col0 + - CAST ( 55 AS INTEGER ) FROM tab2 AS cor0
----
-133
-134
-62

query I rowsort
SELECT ALL - + col0 * 12 + - cor0.col1 * - col2 FROM tab2 AS cor0
----
-302
598
753

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8445
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + ( col2 * - col2 ) FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8447
SELECT DISTINCT + col0 * col0 - col1 * CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1010
6530
9565

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT + col0 * col0 - col1 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1010
6530
9565

query I rowsort
SELECT - ( + col2 ) * col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 6 + + col1 FROM tab0 AS cor0
----
103
92
97

query I rowsort
SELECT DISTINCT + ( + 89 ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT 23 + - cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 046881efcff58046dc310361330a06c5

query I rowsort
SELECT - + 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8453
SELECT col0 + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT col0 + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col1 + + ( col0 ) - + col1 FROM tab0 AS cor0
----
-2126
-3457
-8101

query I rowsort
SELECT - - col2 * - col2 * + col0 AS col0 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - 49 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT DISTINCT - col0 * tab2.col2 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - 91 * col2 AS col0 FROM tab1
----
-4914
-5187
-8736

query I rowsort
SELECT ALL - col0 + + ( - col2 ) + cor0.col1 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT DISTINCT + - col2 + - 17 AS col1 FROM tab2 AS cor0
----
-43
-44
-55

query I rowsort
SELECT + col0 + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 + col1 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-8464
SELECT col0 DIV + tab1.col1 AS col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-8464
SELECT col0 / + tab1.col1 AS col1 FROM tab1
----
0
6
6

query I rowsort
SELECT - cor0.col2 * 1 + cor0.col1 - col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8466
SELECT ALL - col0 * - CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL - col0 * - CAST ( NULL AS REAL ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT 5 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ( + 53 * col0 ) AS col1 FROM tab1
----
159
3392
4240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * col2 col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + col2 - 85 AS col2 FROM tab1 AS cor0
----
-28
-31
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT + cor0.col1 DIV cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4

skipif mysql # not compatible
query I rowsort label-8472
SELECT + cor0.col1 / cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4

query I rowsort
SELECT ALL - + col1 * - col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8474
SELECT ALL col1 + 96 DIV ( + col0 ) FROM tab2 AS cor0
----
18
44
60

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL col1 + 96 / ( + col0 ) FROM tab2 AS cor0
----
18
44
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8475
SELECT col0 + cor0.col1 DIV col2 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8475
SELECT col0 + cor0.col1 / col2 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - ( + 76 ) FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT + 14 - col1 FROM tab1
----
-12
1
4

query I rowsort
SELECT + ( 66 ) AS col1 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT ALL - + 24 * - col0 AS col2 FROM tab0 AS cor0
----
2136
576
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8480
SELECT + + col2 DIV - 77 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT + + col2 / - 77 AS col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT + cor0.col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8481
SELECT + cor0.col0 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 93 col2 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT - col2 * col0 * 68 AS col2 FROM tab0 AS cor0
----
-2380
-496264
-53856

query I rowsort
SELECT ALL + + col1 * - col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * 29 FROM tab0 AS cor0
----
2527
2721
2814

query I rowsort
SELECT ALL - - cor0.col2 + col0 AS col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL 16 * + col1 * + col0 + + col2 FROM tab0
----
129666
33057
54321

query I rowsort
SELECT ALL - col0 + + ( - col1 + col2 ) * + 55 FROM tab1
----
1537
2521
4485

query I rowsort
SELECT DISTINCT + col2 * - 63 + col1 AS col2 FROM tab1 AS cor0
----
-3376
-3581
-6035

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + 26 col2 FROM tab0 AS cor0
----
-56
-7
25

query I rowsort
SELECT ALL + col2 + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL col0 - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8493
SELECT DISTINCT col1 + + col0 DIV col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT col1 + + col0 / col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8495
SELECT DISTINCT - - col2 * - CAST( - cor0.col0 + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1242
3078
6432

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT - - col2 * - CAST ( - cor0.col0 + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT - 84 + - 74 * col2 AS col1 FROM tab2 AS cor0
----
-2008
-2082
-2896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( + col1 ) ) + col2 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + + 61 * col1 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT 11 + + 30 AS col1 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT ALL - 72 + col2 FROM tab1 AS cor0
----
-15
-18
24

query I rowsort
SELECT DISTINCT 35 * + col1 FROM tab2 AS cor0
----
1085
2065
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + 37 * col0 FROM tab1
----
111
2368
2960

onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT ALL 82 DIV - cor0.col1 + + col2 AS col0 FROM tab1 AS cor0
----
49
51
90

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL 82 / - cor0.col1 + + col2 AS col0 FROM tab1 AS cor0
----
49
51
90

query I rowsort
SELECT DISTINCT col0 * + col1 - + col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + - 33 * cor0.col2 FROM tab2 AS cor0
----
-1254
-858
-891

onlyif mysql # use DIV operator for integer division
query I rowsort label-8507
SELECT ALL - + col0 + + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - + col0 + + col2 / col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8508
SELECT ALL - + cor0.col2 * CAST( col0 AS SIGNED ) - - col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - + cor0.col2 * CAST ( col0 AS INTEGER ) - - col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-8509
SELECT DISTINCT - col1 * cor0.col0 * - col2 + cor0.col0 DIV col0 FROM tab0 AS cor0
----
3396
664119
68113

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT - col1 * cor0.col0 * - col2 + cor0.col0 / col0 FROM tab0 AS cor0
----
3396
664119
68113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8510
SELECT DISTINCT col1 * CAST( ( col1 ) AS SIGNED ) FROM tab1 cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT col1 * CAST ( ( col1 ) AS INTEGER ) FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL + cor0.col1 * + 83 + + col0 FROM tab1 AS cor0
----
1159
2161
894

query I rowsort
SELECT ALL col1 * + 73 - cor0.col1 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT + col1 + cor0.col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + cor0.col1 + - 82 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a060d98fc189bc5d8f5cf5c24eaa8b54

query I rowsort
SELECT - - col0 * ( + col0 * + col1 ) FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8516
SELECT + CAST( cor0.col1 AS SIGNED ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8516
SELECT + CAST ( cor0.col1 AS INTEGER ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab0, tab2 AS cor0
----
25

query I rowsort
SELECT DISTINCT + 71 FROM tab0, tab0 AS cor0
----
71

query I rowsort
SELECT DISTINCT 60 FROM tab1, tab1 cor0
----
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8521
SELECT + CAST( col0 AS SIGNED ) + col1 + col1 FROM tab2
----
113
196
69

skipif mysql # not compatible
query I rowsort label-8521
SELECT + CAST ( col0 AS INTEGER ) + col1 + col1 FROM tab2
----
113
196
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col2 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - 40 * col2 AS col1 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT - 23 * + col0 * col1 AS col1 FROM tab0
----
-186277
-47472
-78085

query I rowsort
SELECT DISTINCT + ( tab2.col0 ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT - ( - col1 ) * col2 + 80 FROM tab1
----
1328
1484
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT + + col2 * + cor0.col0 DIV - cor0.col0 + + cor0.col1 + + col0 col0 FROM tab1 AS cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8527
SELECT + + col2 * + cor0.col0 / - cor0.col0 + + cor0.col1 + + col0 col0 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT + col2 + + cor0.col1 + + col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL + col0 * col2 + - 17 AS col2 FROM tab2 cor0
----
172
2011
2985

query I rowsort
SELECT DISTINCT - col1 + + col2 * 15 * - col1 FROM tab2 AS cor0
----
-12586
-23069
-9707

query I rowsort
SELECT DISTINCT ( - col2 ) + 95 FROM tab0 cor0
----
13
62
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8532
SELECT DISTINCT + col1 * col2 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT + col1 * col2 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col0 + + col1 * + col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL + + cor0.col1 + col2 - col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab2
----
51

query I rowsort
SELECT ALL + col2 * 69 + + col1 * cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
14028
9513
9697

query I rowsort
SELECT + col2 * + 44 AS col1 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT DISTINCT - col0 * col1 + - 32 AS col0 FROM tab1 cor0
----
-1072
-110
-672

query I rowsort
SELECT DISTINCT col0 + - col1 * 8 AS col0 FROM tab1 cor0
----
-16
-205
-24

query I rowsort
SELECT ALL - col0 - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - + 29 AS col2 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL 40 * col2 AS col2 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT ALL + ( - col1 ) * col1 * 61 AS col1 FROM tab1
----
-10309
-41236
-6100

query I rowsort
SELECT ALL 56 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT - col0 + col1 * - col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + col0 * 87 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT - col1 * 2 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT - col1 * 6 + + 27 FROM tab1 AS cor0
----
-129
-33
-51

query I rowsort
SELECT + col1 * - 52 + col2 * col2 AS col1 FROM tab0 cor0
----
-3383
-5043
1992

query I rowsort
SELECT - ( + col1 ) * 75 FROM tab2
----
-1275
-2325
-4425

query I rowsort
SELECT tab0.col0 AS col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - - col1 * col1 * col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT + col2 * + 66 * col0 AS col1 FROM tab0 AS cor0
----
2310
481668
52272

query I rowsort
SELECT - col2 * - 77 - + 91 AS col1 FROM tab0 AS cor0
----
-14
2450
6223

query I rowsort
SELECT - 46 * 36 FROM tab2, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to ac9a2eee0eed6cca8630cb12d15feae4

query I rowsort
SELECT DISTINCT col2 - col1 * col0 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT ALL - col1 * - col0 * col1 - - cor0.col0 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT ALL - col2 * + col1 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT + 74 * + 28 + - col2 * col2 AS col2 FROM tab2 cor0
----
1343
1396
628

query I rowsort
SELECT col1 * + 12 + col1 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT ALL + - col0 + - col1 * col2 AS col0 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT 96 * + 66 + - col2 FROM tab0 AS cor0
----
6254
6303
6335

query I rowsort
SELECT DISTINCT col0 + - ( cor0.col1 ) FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT DISTINCT - - col2 + col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + ( - col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8568
SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 40 * 37 AS col2 FROM tab2 AS cor0
----
1480
1480
1480

query I rowsort
SELECT DISTINCT col2 + - 44 FROM tab0 AS cor0
----
-11
-43
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8571
SELECT + ( - col1 ) * + cor0.col2 + CAST( NULL AS SIGNED ) * + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT + ( - col1 ) * + cor0.col2 + CAST ( NULL AS INTEGER ) * + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8572
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col2 + ( + 63 ) FROM tab1
----
117
120
159

query I rowsort
SELECT + 56 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT - col1 - 16 FROM tab1
----
-26
-29
-42

query I rowsort
SELECT ALL col1 + - ( + col0 ) * ( - ( - cor0.col0 ) ) FROM tab2 AS cor0
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - 14 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8579
SELECT ALL - col1 + col2 * col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL - col1 + col2 * col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8580
SELECT - CAST( NULL AS SIGNED ) + - col0 + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT - CAST ( NULL AS INTEGER ) + - col0 + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + - 86 * - col2 * 6 FROM tab2 AS cor0
----
13442
13959
19646

query I rowsort
SELECT DISTINCT col0 * - 86 FROM tab2 cor0
----
-602
-6708
-6794

query I rowsort
SELECT DISTINCT + col0 + 40 AS col1 FROM tab0
----
129
64
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8584
SELECT col1 * CAST( NULL AS SIGNED ) + col0 + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT col1 * CAST ( NULL AS INTEGER ) + col0 + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8585
SELECT col0 + 95 * - tab2.col1 - - col2 * ( - col2 ) DIV + col1 AS col2 FROM tab2
----
-1620
-2961
-5538

skipif mysql # not compatible
query I rowsort label-8585
SELECT col0 + 95 * - tab2.col1 - - col2 * ( - col2 ) / + col1 AS col2 FROM tab2
----
-1620
-2961
-5538

onlyif mysql # use DIV operator for integer division
query I rowsort label-8586
SELECT col1 DIV col0 + col2 AS col2 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-8586
SELECT col1 / col0 + col2 AS col2 FROM tab1
----
57
62
96

query I rowsort
SELECT 26 * + 23 FROM tab1, tab2 AS cor0
----
9 values hashing to dd55918b9cec5969a4c28c89fe51ce88

query I rowsort
SELECT + col0 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT DISTINCT + col1 * + col0 * + 69 AS col1 FROM tab1 AS cor0
----
44160
5382
71760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8591
SELECT - + col0 DIV 30 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-8591
SELECT - + col0 / 30 FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT + - col2 * + col1 + col2 + col2 FROM tab1 AS cor0
----
-1056
-1296
-456

onlyif mysql # use DIV operator for integer division
query I rowsort label-8593
SELECT cor0.col0 DIV col2 + - col0 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-8593
SELECT cor0.col0 / col2 + - col0 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT DISTINCT - col0 + 20 AS col1 FROM tab2 AS cor0
----
-58
-59
13

query I rowsort
SELECT DISTINCT - col1 * + 97 AS col0 FROM tab0 AS cor0
----
-8342
-8827
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT - 18 * col0 + col2 DIV - col2 AS col2 FROM tab1
----
-1153
-1441
-55

skipif mysql # not compatible
query I rowsort label-8596
SELECT - 18 * col0 + col2 / - col2 AS col2 FROM tab1
----
-1153
-1441
-55

query I rowsort
SELECT ALL 81 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ALL col2 + + col2 * col0 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT - + col1 + - col1 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL + 35 + cor0.col1 + col2 FROM tab2 cor0
----
120
90
93

query I rowsort
SELECT ALL + col2 * col2 + - col2 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-8602
SELECT DISTINCT ( - col2 ) - 75 DIV + col1 AS col2 FROM tab2 AS cor0
----
-27
-29
-42

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT ( - col2 ) - 75 / + col1 AS col2 FROM tab2 AS cor0
----
-27
-29
-42

query I rowsort
SELECT 41 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT + col1 + + tab0.col0 * ( - col2 ) * col0 FROM tab0
----
-1128
-18922
-649431

query I rowsort
SELECT ALL - + col1 * 71 + - col1 AS col0 FROM tab0 cor0
----
-6192
-6552
-6984

query I rowsort
SELECT ALL col0 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 13 col2 FROM tab0 AS cor0
----
1066
13
429

query I rowsort
SELECT - 3 * - col0 AS col2 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ( 82 ) FROM tab2 AS cor0
----
82
82
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8610
SELECT DISTINCT col0 + col2 + col1 DIV - 29 AS col1 FROM tab1 cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT col0 + col2 + col1 / - 29 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL - - ( - col0 ) * + col2 - 40 FROM tab1 AS cor0
----
-202
-3688
-7720

query I rowsort
SELECT ALL + 67 AS col2 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - - 32 * col2 - cor0.col0 FROM tab0 AS cor0
----
-3
1032
2535

query I rowsort
SELECT ALL - col0 + 9 * + col2 FROM tab2 AS cor0
----
156
236
263

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8616
SELECT DISTINCT - col1 * cor0.col2 + + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT - col1 * cor0.col2 + + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 83 * 97 FROM tab2
----
8077
8078
8089

query I rowsort
SELECT col0 - + col1 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - ( 17 ) AS col1 FROM tab1 AS cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * - col1 col2 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT DISTINCT 65 * + 29 AS col2 FROM tab0 AS cor0
----
1885

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8622
SELECT ALL + CAST( + col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + CAST ( + col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 83 AS REAL ) * - col1 AS col2 FROM tab2 AS cor0
----
-1411
-2573
-4897

onlyif mysql # use DIV operator for integer division
query I rowsort label-8624
SELECT + - cor0.col0 + 37 DIV col1 AS col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8624
SELECT + - cor0.col0 + 37 / col1 AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 * col2 * - col1 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + col2 + - col2 * + col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1482
-570
-783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 53 col0 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT - col2 * - 10 * + col1 FROM tab0 AS cor0
----
28380
74620
970

query I rowsort
SELECT - - col1 * - col0 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - 20 * + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT 4 * + col2 AS col0 FROM tab2 AS cor0
----
104
108
152

query I rowsort
SELECT - - 41 * col0 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT + + col0 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - 49 * - col1 FROM tab0
----
4214
4459
4753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - tab0.col1 ) col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 + + CAST ( cor0.col2 * + col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - cor0.col1 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + col2 * 33 AS col2 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT ALL + col0 * + 4 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT - col1 * - ( col2 ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + + col2 * 1 + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + 92 + - col0 + col1 FROM tab1
----
115
25
38

query I rowsort
SELECT DISTINCT col0 + tab0.col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT - col2 - col0 * + cor0.col0 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-8645
SELECT DISTINCT tab2.col1 + + col1 DIV ( - col1 ) FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT tab2.col1 + + col1 / ( - col1 ) FROM tab2
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-8646
SELECT DISTINCT + col1 DIV - col0 col1 FROM tab0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + col1 / - col0 col1 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT col2 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + col2 + 66 * + col0 FROM tab0 AS cor0
----
1617
2311
5956

query I rowsort
SELECT col2 + - col0 * + col1 * - col1 FROM tab0
----
177537
329316
737091

query I rowsort
SELECT - 38 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT + col0 * col2 + 20 AS col0 FROM tab2
----
2048
209
3022

query I rowsort
SELECT - ( col2 ) + 50 AS col2 FROM tab2 AS cor0
----
12
23
24

query I rowsort
SELECT DISTINCT col1 + tab2.col1 + ( + col0 ) FROM tab2
----
113
196
69

query I rowsort
SELECT ALL cor0.col2 * ( col1 ) FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 * - col0 + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT cor0.col2 + - 58 AS col2 FROM tab2 AS cor0
----
-20
-31
-32

query I rowsort
SELECT DISTINCT + - cor0.col1 * - 81 + col2 * - col0 * - col2 FROM tab2 AS cor0
----
115453
57507
7614

query I rowsort
SELECT + col2 * - 21 FROM tab1 AS cor0
----
-1134
-1197
-2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + ( ( - col1 ) ) col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT col0 * 3 + + col0 AS col0 FROM tab0 cor0
----
140
356
96

query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col1 + 5 * col1 FROM tab0 AS cor0
----
-6966
-7826
-8924

query I rowsort
SELECT 3 - 59 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ALL + 55 * col1 FROM tab0
----
4730
5005
5335

onlyif mysql # use DIV operator for integer division
query I rowsort label-8664
SELECT + col0 DIV - 30 FROM tab1
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-8664
SELECT + col0 / - 30 FROM tab1
----
-2
-2
0

query I rowsort
SELECT - + 5 - - 0 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - ( 8 ) * col2 * col1 - col1 * - col0 * - col2 AS col1 FROM tab2 AS cor0
----
-12555
-131924
-56202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 27 - col1 col0 FROM tab0 AS cor0
----
-124
-2305
-977

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8668
SELECT - CAST( - 2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
56
59
98

skipif mysql # not compatible
query I rowsort label-8668
SELECT - CAST ( - 2 AS INTEGER ) + col2 FROM tab1 AS cor0
----
56
59
98

query I rowsort
SELECT 45 + - 15 + col1 * col0 AS col2 FROM tab1 AS cor0
----
1070
108
670

query I rowsort
SELECT - 72 - + col0 * + cor0.col1 FROM tab0 AS cor0
----
-2136
-3467
-8171

query I rowsort
SELECT - 2 + col2 * - 55 AS col1 FROM tab1 AS cor0
----
-2972
-3137
-5282

query I rowsort
SELECT ALL + col2 * + ( col2 ) FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 44 col0 FROM tab2 cor0
----
44
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-8674
SELECT DISTINCT - col0 + - col0 DIV 49 AS col1 FROM tab2 AS cor0
----
-7
-79
-80

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT - col0 + - col0 / 49 AS col1 FROM tab2 AS cor0
----
-7
-79
-80

query I rowsort
SELECT DISTINCT col2 + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-8676
SELECT + col0 DIV col0 + 93 * col0 * + col0 FROM tab2 AS cor0
----
4558
565813
580414

skipif mysql # not compatible
query I rowsort label-8676
SELECT + col0 / col0 + 93 * col0 * + col0 FROM tab2 AS cor0
----
4558
565813
580414

query I rowsort
SELECT - ( - ( - tab2.col0 ) ) * col0 FROM tab2
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col1 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL 25 * + col0 AS col1 FROM tab0 AS cor0
----
2225
600
875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * + col0 + - 42 - col2 * col0 col0 FROM tab0 AS cor0
----
1382
1518
3353

query I rowsort
SELECT DISTINCT + ( + col0 ) * + ( + ( - col0 ) ) + + col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 78 + 48 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

query I rowsort
SELECT - col2 * col2 * cor0.col0 + col1 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT ALL col1 * 55 + - 74 AS col2 FROM tab0 cor0
----
4656
4931
5261

query I rowsort
SELECT DISTINCT - col1 * + 22 - 70 AS col2 FROM tab0 AS cor0
----
-1962
-2072
-2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-8687
SELECT - col2 DIV - col0 + 57 AS col1 FROM tab0 cor0
----
57
57
58

skipif mysql # not compatible
query I rowsort label-8687
SELECT - col2 / - col0 + 57 AS col1 FROM tab0 cor0
----
57
57
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 7 * - 7 * col0 col2 FROM tab2 AS cor0
----
-312
-3763
-3854

query I rowsort
SELECT - 7 + + col0 FROM tab1
----
-4
57
73

query I rowsort
SELECT DISTINCT col1 + col0 * - col1 + col1 * - tab1.col2 FROM tab1
----
-1200
-1456
-2275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * + 78 col2 FROM tab1
----
-109512
-44460
-97344

query I rowsort
SELECT ALL + - 54 + col2 * col2 FROM tab2 AS cor0
----
1390
622
675

query I rowsort
SELECT 66 + + ( + col0 ) * 73 FROM tab1 cor0
----
285
4738
5906

query I rowsort
SELECT DISTINCT - + 17 + + cor0.col0 FROM tab0 AS cor0
----
18
7
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-8695
SELECT ALL + 17 DIV + 67 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL + 17 / + 67 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 44 * + col1 FROM tab1 cor0
----
1144
440
572

onlyif mysql # use DIV operator for integer division
query I rowsort label-8697
SELECT + 95 DIV + col0 AS col0 FROM tab2 AS cor0
----
1
1
13

skipif mysql # not compatible
query I rowsort label-8697
SELECT + 95 / + col0 AS col0 FROM tab2 AS cor0
----
1
1
13

query I rowsort
SELECT DISTINCT ( + 57 ) AS col1 FROM tab0 AS cor0
----
57

query I rowsort
SELECT - - 99 * col1 AS col1 FROM tab0 AS cor0
----
8514
9009
9603

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8700
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * + col1 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8701
SELECT + col1 + + col0 DIV col0 + col0 AS col1 FROM tab1 AS cor0
----
30
75
94

skipif mysql # not compatible
query I rowsort label-8701
SELECT + col1 + + col0 / col0 + col0 AS col1 FROM tab1 AS cor0
----
30
75
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 + + col2 col2 FROM tab2 AS cor0
----
68
69
80

query I rowsort
SELECT + - cor0.col1 * - 51 AS col0 FROM tab1 AS cor0
----
1326
510
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8704
SELECT - - CAST( - 4 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
104
40
52

skipif mysql # not compatible
query I rowsort label-8704
SELECT - - CAST ( - 4 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
104
40
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL - ( + col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT 95 + col1 * col1 + + col0 * col2 FROM tab1 AS cor0
----
3843
7944
933

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8708
SELECT DISTINCT + col2 * - CAST( 17 AS SIGNED ) + col2 AS col2 FROM tab2
----
-416
-432
-608

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT + col2 * - CAST ( 17 AS INTEGER ) + col2 AS col2 FROM tab2
----
-416
-432
-608

query I rowsort
SELECT DISTINCT col2 + + 26 * 71 AS col0 FROM tab0
----
1847
1879
1928

query I rowsort
SELECT - col0 + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT - - cor0.col2 * - col1 * - col1 AS col0 FROM tab1 cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-8712
SELECT ( - col2 ) DIV - col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-8712
SELECT ( - col2 ) / - col0 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + - col2 col0 FROM tab1
----
-56
-59
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8715
SELECT ALL - CAST( NULL AS SIGNED ) - + col2 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - CAST ( NULL AS INTEGER ) - + col2 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 88 * - cor1.col2 FROM tab1, tab2 AS cor0, tab0, tab0 cor1
----
-2904
-7216
-88

query I rowsort
SELECT 52 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT 93 + + col0 AS col1 FROM tab0
----
117
128
182

query I rowsort
SELECT DISTINCT - tab1.col2 + col1 AS col0 FROM tab1
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8720
SELECT ALL 15 + col1 * - CAST( NULL AS SIGNED ) + ( tab0.col1 + col0 ) * 25 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL 15 + col1 * - CAST ( NULL AS INTEGER ) + ( tab0.col1 + col0 ) * 25 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8721
SELECT DISTINCT + 73 + + col1 * ( tab2.col1 ) DIV + col1 AS col2 FROM tab2
----
104
132
90

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + 73 + + col1 * ( tab2.col1 ) / + col1 AS col2 FROM tab2
----
104
132
90

query I rowsort
SELECT 64 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8723
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 31 AS col1 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT CAST ( NULL AS REAL ) * + 31 AS col1 FROM tab0, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * + ( col2 * col2 + ( tab0.col0 ) ) col0 FROM tab0
----
36
36729
558666

query I rowsort
SELECT - 24 - 84 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ab1bc5e2f6f0be65bdb55f5590ed33f3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8726
SELECT col2 DIV - col0 + ( col1 ) * col2 + 67 AS col2 FROM tab1
----
1314
1453
637

skipif mysql # not compatible
query I rowsort label-8726
SELECT col2 / - col0 + ( col1 ) * col2 + 67 AS col2 FROM tab1
----
1314
1453
637

query I rowsort
SELECT ALL col1 * - 16 * - col1 FROM tab2
----
15376
4624
55696

skipif mysql # not compatible
query I rowsort
SELECT - - col2 + CAST ( + cor0.col2 AS REAL ) + + cor0.col1 AS col1 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT + cor0.col0 + - ( col2 ) * - col0 AS col2 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT - 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT DISTINCT col0 * - ( col2 + col0 ) AS col1 FROM tab2
----
-238
-8112
-9243

query I rowsort
SELECT - col1 * + 80 + - col0 * col0 FROM tab2 AS cor0
----
-10804
-2529
-7601

onlyif mysql # use DIV operator for integer division
query I rowsort label-8733
SELECT col1 DIV - ( + col0 ) + - col1 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-8733
SELECT col1 / - ( + col0 ) + - col1 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT + col0 + 52 AS col0 FROM tab2 AS cor0
----
130
131
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8735
SELECT + col2 DIV ( - col0 ) AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT + col2 / ( - col0 ) AS col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT DISTINCT 76 * tab0.col0 DIV col1 FROM tab0
----
21
27
74

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT 76 * tab0.col0 / col1 FROM tab0
----
21
27
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8738
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8738
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 88 + + col2 * - col1 FROM tab0 AS cor0
----
-185
-2926
-7550

onlyif mysql # use DIV operator for integer division
query I rowsort label-8740
SELECT - 27 * - col1 + col2 DIV col0 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
10556
4387
6014

skipif mysql # not compatible
query I rowsort label-8740
SELECT - 27 * - col1 + col2 / col0 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
10556
4387
6014

query I rowsort
SELECT + 37 * cor0.col1 + col2 + cor0.col0 FROM tab2 AS cor0
----
1181
2287
746

query I rowsort
SELECT DISTINCT - + 18 AS col0 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - + 42 * + col0 * + 28 FROM tab1 AS cor0
----
-3528
-75264
-94080

query I rowsort
SELECT col0 * - 24 - + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-2548
-3340
-897

query I rowsort
SELECT - + col2 + col2 * col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT 95 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
95

query I rowsort
SELECT + col0 - 64 AS col2 FROM tab1 AS cor0
----
-61
0
16

skipif mysql # not compatible
query I rowsort
SELECT col2 * + CAST ( - col0 AS REAL ) + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col2 * + col1 + - 93 FROM tab1 AS cor0
----
1155
1311
477

query I rowsort
SELECT DISTINCT - 40 + + col0 FROM tab1 AS cor0
----
-37
24
40

query I rowsort
SELECT ALL - col1 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL 45 * col0 FROM tab0 AS cor0
----
1080
1575
4005

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 AS cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 + - col1 + 13 col1 FROM tab2
----
27
55
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8755
SELECT ALL ( col2 * CAST( NULL AS SIGNED ) ) + col0 * col2 + 88 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL ( col2 * CAST ( NULL AS INTEGER ) ) + col0 * col2 + 88 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - col1 + col0 + 47 FROM tab0
----
-1993
-3313
-7963

query I rowsort
SELECT tab1.col1 * - tab1.col2 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 9fc71e55d98c21fc68f4af540b1d7651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 46 ) col2 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT 2 * - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - 70 + - cor0.col1 * + col2 * 44 FROM tab0 AS cor0
----
-124942
-328398
-4338

query I rowsort
SELECT DISTINCT - col2 * + col1 * col1 AS col0 FROM tab0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col0 * col2 col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + 44 * 40 * tab2.col2 + + 1 + + col0 AS col1 FROM tab2
----
45839
47528
66960

query I rowsort
SELECT - 63 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
81 values hashing to 0a6489496517f27fb746473909f2b76b

query I rowsort
SELECT - + 90 + - 44 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-222
-2906
-3610

query I rowsort
SELECT DISTINCT - 45 * + col1 + col1 FROM tab0 AS cor0
----
-3784
-4004
-4268

query I rowsort
SELECT DISTINCT + + ( + 30 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT + + col1 * 44 AS col2 FROM tab2 AS cor0
----
1364
2596
748

query I rowsort
SELECT 14 * 15 FROM tab2 cor0
----
210
210
210

query I rowsort
SELECT + 35 * col2 * - col2 + 82 FROM tab2
----
-23578
-25433
-50458

query I rowsort
SELECT + cor0.col1 * 16 FROM tab2 AS cor0
----
272
496
944

query I rowsort
SELECT ALL + 8 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL + 62 + col1 AS col1 FROM tab1 AS cor0
----
72
75
88

query I rowsort
SELECT DISTINCT + + 87 * col0 + + col0 FROM tab2 cor0
----
616
6864
6952

query I rowsort
SELECT ALL + 46 AS col2 FROM tab2
----
46
46
46

query I rowsort
SELECT ALL + col0 * col2 + col0 * ( + col2 ) * col1 FROM tab2 AS cor0
----
121680
54036
6048

onlyif mysql # use DIV operator for integer division
query I rowsort label-8777
SELECT ALL + col2 DIV + col2 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + col2 / + col2 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - + 51 * + col2 - col0 AS col0 FROM tab2 AS cor0
----
-1384
-1404
-2017

query I rowsort
SELECT ALL - 8 + - col1 FROM tab2 AS cor0
----
-25
-39
-67

query I rowsort
SELECT + col2 + col2 * - 92 * col2 FROM tab0 AS cor0
----
-100155
-618526
-91

query I rowsort
SELECT ALL 41 - + col2 FROM tab0 cor0
----
-41
40
8

query I rowsort
SELECT - + col0 + + col1 * ( col2 ) AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT col1 * - col0 + + cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + ( + col2 ) * - ( - ( + col1 ) ) + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT col2 + col0 - - col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT - col2 * col1 + 47 AS col2 FROM tab1 AS cor0
----
-1201
-1357
-523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + cor0.col0 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + 42 * - col0 + 40 * 22 FROM tab0 AS cor0
----
-128
-2858
-590

onlyif mysql # use DIV operator for integer division
query I rowsort label-8789
SELECT DISTINCT + + col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT + + col2 / - col0 AS col2 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT ALL - col0 + col1 * 5 AS col1 FROM tab0 AS cor0
----
366
406
450

query I rowsort
SELECT ALL 22 + cor0.col1 FROM tab2 AS cor0
----
39
53
81

query I rowsort
SELECT DISTINCT col2 * + col0 - - 63 FROM tab2 AS cor0
----
2091
252
3065

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * ( + 8 ) col0 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT - - col2 * col1 + + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - - col0 * - 68 AS col0 FROM tab0 AS cor0
----
-1632
-2380
-6052

query I rowsort
SELECT ALL + col2 + 33 FROM tab0 AS cor0
----
115
34
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8797
SELECT CAST( NULL AS SIGNED ) + 79 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8797
SELECT CAST ( NULL AS INTEGER ) + 79 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - col2 * col2 + + col1 AS col1 FROM tab1 cor0
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8799
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8800
SELECT + + col2 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT + + col2 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8801
SELECT ALL - col1 * 10 - + ( cor0.col0 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-1005
-860
-911

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - col1 * 10 - + ( cor0.col0 ) / col2 AS col2 FROM tab0 AS cor0
----
-1005
-860
-911

query I rowsort
SELECT - + cor0.col1 + - 70 AS col1 FROM tab2 AS cor0
----
-101
-129
-87

query I rowsort
SELECT ALL col2 + 80 AS col2 FROM tab1 cor0
----
134
137
176

query I rowsort
SELECT DISTINCT + col1 - + ( 86 ) AS col0 FROM tab1 AS cor0
----
-60
-73
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8805
SELECT DISTINCT - col0 * + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT - col0 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT - + cor0.col2 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - col0 + 33 * 87 AS col2 FROM tab2 AS cor0
----
2792
2793
2864

query I rowsort
SELECT + - col2 + 75 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-279
-4857
-6096

query I rowsort
SELECT ALL - + col2 + + 17 AS col2 FROM tab0 AS cor0
----
-16
-65
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col0 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT ALL + ( 95 ) + col0 - ( + col2 * col1 ) FROM tab0 AS cor0
----
-2719
-7278
33

query I rowsort
SELECT + col0 + + 50 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT DISTINCT - col1 + 56 FROM tab1 cor0
----
30
43
46

query I rowsort
SELECT - + 55 * col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1352
-1478
-2011

query I rowsort
SELECT DISTINCT - ( + 24 ) - + cor0.col0 FROM tab0 cor0
----
-113
-48
-59

query I rowsort
SELECT ALL - 76 * + col0 AS col1 FROM tab0 AS cor0
----
-1824
-2660
-6764

query I rowsort
SELECT col1 + col1 * - 39 AS col0 FROM tab2 AS cor0
----
-1178
-2242
-646

query I rowsort
SELECT ALL ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col1 * - col1 + ( + col2 ) FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT 95 * - col0 - col2 FROM tab0 cor0
----
-2313
-3326
-8537

onlyif mysql # use DIV operator for integer division
query I rowsort label-8822
SELECT + col1 DIV col1 + 92 FROM tab1 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-8822
SELECT + col1 / col1 + 92 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT + 24 + - col0 * + 11 AS col1 FROM tab2 AS cor0
----
-53
-834
-845

query I rowsort
SELECT DISTINCT + + 17 AS col1 FROM tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col0 + col2 - col0 AS col0 FROM tab2 cor0
----
-120
-130
13

query I rowsort
SELECT ALL + ( col0 ) + + 70 AS col1 FROM tab2 AS cor0
----
148
149
77

query I rowsort
SELECT + col0 + + col0 + + col0 AS col1 FROM tab2 cor0
----
21
234
237

query I rowsort
SELECT - - col1 + - cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT col2 * + 53 + col2 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT ALL + 9 + + col1 + - col2 AS col1 FROM tab1
----
-19
-38
-74

query I rowsort
SELECT + ( + col0 ) * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT ALL + + 73 FROM tab1 cor0
----
73
73
73

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT 81 * + cor0.col2 * 71 AS col2 FROM tab0, tab0 cor0
----
189783
471582
5751

query I rowsort
SELECT ALL - 84 + col1 * - col2 AS col1 FROM tab1
----
-1332
-1488
-654

query I rowsort
SELECT ALL 45 * - col1 + + col2 * col0 + col0 AS col1 FROM tab2
----
-1199
-549
2316

query I rowsort
SELECT 7 AS col2 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT + 14 + - 99 * + col0 * ( - col0 * + cor0.col2 ) - - 70 AS col2 FROM tab1 AS cor0
----
23113812
48198
60825684

query I rowsort
SELECT col2 - - col2 AS col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8842
SELECT ALL CAST( col0 AS SIGNED ) + col2 * - 46 + tab0.col2 AS col0 FROM tab0
----
-10
-1461
-3601

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL CAST ( col0 AS INTEGER ) + col2 * - 46 + tab0.col2 AS col0 FROM tab0
----
-10
-1461
-3601

query I rowsort
SELECT - col1 + + ( - col2 * col0 ) + + ( + col0 ) AS col0 FROM tab1
----
-185
-3594
-7613

query I rowsort
SELECT + + 82 + col1 FROM tab1 AS cor0
----
108
92
95

query I rowsort
SELECT tab1.col0 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

query I rowsort
SELECT - ( col2 * col1 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT ( col0 * col2 ) FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8848
SELECT - col1 DIV - tab2.col1 col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8848
SELECT - col1 / - tab2.col1 col2 FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8849
SELECT + 79 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8849
SELECT + 79 / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 35 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT DISTINCT + + col2 * ( - cor0.col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - + col0 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + + col1 + 97 * - col0 * - col0 FROM tab2 AS cor0
----
4784
590207
605394

query I rowsort
SELECT ALL + + 3 * 1 + + cor0.col1 + - 88 FROM tab2 AS cor0
----
-26
-54
-68

query I rowsort
SELECT - + 85 * 78 AS col0 FROM tab1 AS cor0
----
-6630
-6630
-6630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8856
SELECT - CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8856
SELECT - CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col2 + - ( col1 ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - + 26 FROM tab2 AS cor0
----
-26
-26
-26

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - col0 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8861
SELECT - - col1 DIV - 88 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8861
SELECT - - col1 / - 88 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - col0 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-8863
SELECT DISTINCT cor0.col2 DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT cor0.col2 / col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + - ( cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col2 - 48 AS col2 FROM tab2 AS cor0
----
-10
-21
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 1 ) col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col2 * ( col1 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - + ( + col2 ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT DISTINCT + 65 DIV + 50 + col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + 65 / + 50 + col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + col1 + - 3 + col0 FROM tab1 AS cor0
----
26
71
90

query I rowsort
SELECT ALL + col1 * col1 * col1 - col1 AS col0 FROM tab1 cor0
----
17550
2184
990

query I rowsort
SELECT DISTINCT + + 51 * + col0 AS col0 FROM tab1 cor0
----
153
3264
4080

query I rowsort
SELECT ALL col1 - - col2 * col2 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL col1 - ( + tab0.col2 ) FROM tab0
----
53
9
96

query I rowsort
SELECT - col1 * - col1 + 79 - tab1.col1 AS col0 FROM tab1
----
169
235
729

query I rowsort
SELECT col1 - ( ( col0 ) * col2 + 98 ) FROM tab2
----
-2067
-256
-3083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 99 col0 FROM tab1
----
-3
-42
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8878
SELECT + tab2.col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT + tab2.col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 17 FROM tab1
----
1088
1360
51

query I rowsort
SELECT ALL ( col2 ) + - 89 AS col1 FROM tab2 AS cor0
----
-51
-62
-63

query I rowsort
SELECT DISTINCT - 36 + + col0 AS col0 FROM tab0 AS cor0
----
-1
-12
53

query I rowsort
SELECT + + ( + cor0.col0 ) + - 13 + 30 AS col2 FROM tab2 cor0
----
24
95
96

query I rowsort
SELECT - - cor0.col0 + col2 * 58 FROM tab0 AS cor0
----
1938
4845
93

query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + 11 AS col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT + - 67 * col0 AS col1 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT 53 + + col0 AS col0 FROM tab2
----
131
132
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8890
SELECT DISTINCT 24 + - col2 DIV + col0 FROM tab1
----
23
24
6

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT 24 + - col2 / + col0 FROM tab1
----
23
24
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab1
----
41
41
41

query I rowsort
SELECT DISTINCT - + col1 + - ( + col0 + - col2 ) * col0 FROM tab1 AS cor0
----
-458
1267
127

onlyif mysql # use DIV operator for integer division
query I rowsort label-8893
SELECT - col0 DIV 60 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8893
SELECT - col0 / 60 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - col0 + + col1 * col0 AS col2 FROM tab1 cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - cor0.col0 * + col2 col0 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 91 col2 FROM tab1 cor0
----
11
27
88

query I rowsort
SELECT - col1 + + col0 * col1 AS col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT - col0 * col0 + + ( - col1 ) FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT ALL + col0 * - col2 * - col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + - col1 * - ( - col1 ) + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT - + col2 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT cor0.col0 * + cor0.col0 * + 59 FROM tab2 AS cor0
----
2891
358956
368219

query I rowsort
SELECT + cor0.col2 + 65 FROM tab0 AS cor0
----
147
66
98

query I rowsort
SELECT ALL + col1 + 29 AS col1 FROM tab0 AS cor0
----
115
120
126

query I rowsort
SELECT ALL - - col0 * + 19 * - 88 FROM tab0 cor0
----
-148808
-40128
-58520

onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT DISTINCT + 21 DIV - col0 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT + 21 / - col0 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT 22 AS col1 FROM tab2 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT ALL + 21 * cor0.col2 - col2 AS col2 FROM tab0 AS cor0
----
1640
20
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 5 col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT - + 35 * - col2 + - col0 FROM tab2 cor0
----
1251
832
938

query I rowsort
SELECT cor0.col1 * + col1 + - col2 - + cor0.col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-395
1921
97

query I rowsort
SELECT + 54 + + 65 FROM tab1 AS cor0
----
119
119
119

query I rowsort
SELECT DISTINCT col1 * cor0.col0 * + col1 + - col0 FROM tab2 AS cor0
----
22752
271440
6720

query I rowsort
SELECT DISTINCT + - col1 * col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8916
SELECT col1 + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT col1 + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + 26 AS col0 FROM tab1
----
-38
-54
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-8918
SELECT + 76 DIV col0 col0 FROM tab2 AS cor0
----
0
0
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8918
SELECT + 76 / col0 col0 FROM tab2 AS cor0
----
0
0
10

query I rowsort
SELECT DISTINCT col1 * + 53 + cor0.col1 + cor0.col2 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
14647
248712
683956

query I rowsort
SELECT DISTINCT + 92 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8921
SELECT ALL tab1.col0 + + ( 28 ) DIV tab1.col1 AS col0 FROM tab1
----
4
66
82

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL tab1.col0 + + ( 28 ) / tab1.col1 AS col0 FROM tab1
----
4
66
82

query I rowsort
SELECT ALL + 86 * col1 * col1 + - 71 FROM tab1 AS cor0
----
14463
58065
8529

onlyif mysql # use DIV operator for integer division
query I rowsort label-8923
SELECT DISTINCT - - col2 DIV + 95 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - - col2 / + 95 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col0 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8925
SELECT - - col0 DIV + col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8925
SELECT - - col0 / + col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - 34 * + 18 AS col1 FROM tab1
----
-612

query I rowsort
SELECT + 70 + 81 * col2 AS col2 FROM tab1 cor0
----
4444
4687
7846

query I rowsort
SELECT - ( - col0 ) - + col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + cor0.col1 + 42 * - col2 AS col0 FROM tab0 AS cor0
----
-1300
-3353
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8930
SELECT CAST( NULL AS SIGNED ) + col1 * col0 - 3 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT CAST ( NULL AS INTEGER ) + col1 * col0 - 3 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8931
SELECT - CAST( NULL AS DECIMAL ) * + 59 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT - CAST ( NULL AS REAL ) * + 59 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 - cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL col2 * + col2 AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - 82 * - col1 AS col2 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT DISTINCT - + 33 + col0 FROM tab0 AS cor0
----
-9
2
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8936
SELECT DISTINCT - col0 + col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT - col0 + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * col0 * - 7 FROM tab0 cor0
----
-14448
-23765
-56693

query I rowsort
SELECT ALL + ( + col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL col2 + - col2 + col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL cor0.col2 - + col0 AS col0 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8941
SELECT DISTINCT - + 42 * col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT - + 42 * col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 30 * + col1 FROM tab2 AS cor0
----
1770
510
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 + - col0 col1 FROM tab0 AS cor0
----
-9
45
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8944
SELECT DISTINCT + col0 * + CAST( NULL AS DECIMAL ) + - col0 + col0 * ( col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT + col0 * + CAST ( NULL AS REAL ) + - col0 + col0 * ( col2 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 + - 77 FROM tab1 AS cor0
----
-106
-151
-170

query I rowsort
SELECT DISTINCT + col0 * ( + col2 ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8947
SELECT - - col1 * + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-8947
SELECT - - col1 * + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-8948
SELECT - col0 DIV 54 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8948
SELECT - col0 / 54 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT ALL col2 * + col2 * col1 FROM tab2 cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-8950
SELECT DISTINCT + col0 + - ( col1 ) DIV col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT + col0 + - ( col1 ) / col0 FROM tab2 AS cor0
----
3
78
79

query I rowsort
SELECT - col1 * - 50 FROM tab0 AS cor0
----
4300
4550
4850

onlyif mysql # use DIV operator for integer division
query I rowsort label-8952
SELECT - col2 * col0 DIV cor0.col2 AS col0 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8952
SELECT - col2 * col0 / cor0.col2 AS col0 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT DISTINCT + 61 DIV col1 FROM tab1 AS cor0
----
2
4
6

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + 61 / col1 FROM tab1 AS cor0
----
2
4
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + 0 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col1 * + col1 + - cor0.col1 * - 50 AS col0 FROM tab1 cor0
----
400
481
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-8956
SELECT cor0.col1 * col1 DIV + 36 AS col1 FROM tab0 AS cor0
----
205
230
261

skipif mysql # not compatible
query I rowsort label-8956
SELECT cor0.col1 * col1 / + 36 AS col1 FROM tab0 AS cor0
----
205
230
261

query I rowsort
SELECT col2 * + col2 + col2 * col1 * + col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
245243
685857
9507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8958
SELECT + - col0 + + col0 * + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
159
3584
7600

skipif mysql # not compatible
query I rowsort label-8958
SELECT + - col0 + + col0 * + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT - 86 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

query I rowsort
SELECT col0 * - tab0.col1 * col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT + col2 * + tab2.col0 * + ( 45 ) AS col0 FROM tab2
----
135090
8505
91260

query I rowsort
SELECT ALL col0 * - col0 * col2 AS col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + ( col2 ) * + 54 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT - 42 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT ALL + 10 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT - ( tab0.col2 + + col1 * col2 ) AS col0 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT 2 * - col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - col2 + 25 FROM tab2 AS cor0
----
-1
-13
-2

query I rowsort
SELECT + 8 * + 55 AS col2 FROM tab0 AS cor0
----
440
440
440

onlyif mysql # use DIV operator for integer division
query I rowsort label-8970
SELECT col1 DIV - col0 col0 FROM tab1 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8970
SELECT col1 / - col0 col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT + col2 * col2 + 23 AS col2 FROM tab0 AS cor0
----
1112
24
6747

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + + 37 AS col0 FROM tab1 AS cor0
----
2953
3286
9253

query I rowsort
SELECT ALL - cor0.col0 * col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT 83 + col2 AS col2 FROM tab1 AS cor0
----
137
140
179

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8975
SELECT DISTINCT col2 * CAST( 11 AS SIGNED ) + - col0 AS col0 FROM tab0
----
-24
339
813

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT col2 * CAST ( 11 AS INTEGER ) + - col0 AS col0 FROM tab0
----
-24
339
813

query I rowsort
SELECT - col0 * col2 + 29 AS col1 FROM tab2
----
-160
-1999
-2973

query I rowsort
SELECT ALL col1 * - 34 FROM tab2 AS cor0
----
-1054
-2006
-578

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8978
SELECT - - col2 + CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-8978
SELECT - - col2 + CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
164
2
66

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) = - tab2.col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8980
SELECT DISTINCT - ( col1 ) * col0 + + 13 * 66 DIV cor0.col0 FROM tab2 AS cor0
----
-1333
-4591
-95

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT - ( col1 ) * col0 + + 13 * 66 / cor0.col0 FROM tab2 AS cor0
----
-1333
-4591
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - 67 * col0 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT ALL - col1 * - 96 + + col0 * col1 FROM tab1 AS cor0
----
1600
2288
2574

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col2 AS REAL ) + + col0 / + 5 FROM tab2 AS cor0
----
28
41
53

query I rowsort
SELECT ALL - + ( col1 ) * col2 + - cor0.col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT col2 + - col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL + ( col1 ) + - col0 * + 69 FROM tab1 AS cor0
----
-181
-4406
-5507

onlyif mysql # use DIV operator for integer division
query I rowsort label-8988
SELECT ALL + ( - col2 ) DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + ( - col2 ) / col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT ALL - 61 DIV col0 col0 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - 61 / col0 col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - 62 + - col0 FROM tab0 cor0
----
-151
-86
-97

query I rowsort
SELECT DISTINCT + col1 * ( - col1 ) * - col2 + 74 AS col0 FROM tab0 cor0
----
244142
679116
9483

query I rowsort
SELECT ALL cor0.col2 + ( col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 40 col0 FROM tab0
----
129
64
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8995
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - col2 * col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT CAST ( NULL AS REAL ) - - col2 * col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 59 * - 61 FROM tab0, tab0 AS cor0
----
9 values hashing to e86a2661204ee7783a865ae9ff222aa2

query I rowsort
SELECT - tab1.col0 * - tab1.col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL ( col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - col1 * - col0 + col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - col2 * + 72 AS col0 FROM tab2 AS cor0
----
-1872
-1944
-2736

query I rowsort
SELECT ( - 18 ) + col0 FROM tab0 AS cor0
----
17
6
71

query I rowsort
SELECT ALL col1 + - 66 AS col2 FROM tab2 AS cor0
----
-35
-49
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9004
SELECT - CAST( 82 AS SIGNED ) FROM tab1 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-9004
SELECT - CAST ( 82 AS INTEGER ) FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT + col0 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + col1 + ( col1 ) + col1 AS col1 FROM tab0
----
258
273
291

query I rowsort
SELECT - col0 - + col1 * + 79 AS col2 FROM tab2
----
-1422
-2456
-4739

query I rowsort
SELECT + - col2 * - col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + 96 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9010
SELECT - CAST( col2 AS SIGNED ) + col1 FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-9010
SELECT - CAST ( col2 AS INTEGER ) + col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT + - ( col1 ) + 66 AS col1 FROM tab0 AS cor0
----
-20
-25
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9012
SELECT - ( col0 ) * - CAST( NULL AS SIGNED ) + + col2 * + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT - ( col0 ) * - CAST ( NULL AS INTEGER ) + + col2 * + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab0, tab2 cor0
----
68

query I rowsort
SELECT + 50 * 32 FROM tab1
----
1600
1600
1600

query I rowsort
SELECT - ( 76 ) * + col1 AS col2 FROM tab0
----
-6536
-6916
-7372

query I rowsort
SELECT ALL 58 FROM tab0, tab1 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT 92 * - col2 FROM tab2
----
-2392
-2484
-3496

query I rowsort
SELECT - 10 * col2 AS col0 FROM tab2
----
-260
-270
-380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9020
SELECT - ( ( col1 ) ) + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9020
SELECT - ( ( col1 ) ) + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col2 + col2 * + col1 FROM tab1 AS cor0
----
-1512
-2679
-7968

query I rowsort
SELECT DISTINCT - col1 + + col2 * + ( + col1 ) FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - col0 + 49 * - col2 FROM tab0 AS cor0
----
-1641
-4107
-84

query I rowsort
SELECT ALL - col1 + 26 AS col1 FROM tab1 AS cor0
----
0
13
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9025
SELECT ( col0 ) - CAST( NULL AS SIGNED ) / - tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT ( col0 ) - CAST ( NULL AS INTEGER ) / - tab0.col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col0 * 90 FROM tab1
----
267
5696
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-9027
SELECT col0 DIV - tab0.col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9027
SELECT col0 / - tab0.col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 + col1 - 52 * + col0 * - col1 AS col1 FROM tab0 AS cor0
----
107447
176638
421321

query I rowsort
SELECT ALL col2 * - ( - col1 ) AS col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9030
SELECT DISTINCT - col2 + - CAST( + 63 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
3348
3534
5952

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT - col2 + - CAST ( + 63 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT col2 * - 55 + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3078
-5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 * col0 - - col0 col2 FROM tab1 AS cor0
----
-133
-3574
-7587

query I rowsort
SELECT - col2 + col0 * col2 - + col0 FROM tab0 AS cor0
----
-1
7127
735

query I rowsort
SELECT - 29 + + col1 AS col2 FROM tab1
----
-16
-19
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9035
SELECT + col1 DIV + col1 + col0 * + 8 AS col0 FROM tab2
----
57
625
633

skipif mysql # not compatible
query I rowsort label-9035
SELECT + col1 / + col1 + col0 * + 8 AS col0 FROM tab2
----
57
625
633

onlyif mysql # use DIV operator for integer division
query I rowsort label-9036
SELECT ALL 27 DIV 12 FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL 27 / 12 FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT + col1 + col0 - - ( cor0.col2 + col2 ) AS col1 FROM tab2 AS cor0
----
172
189
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT + - col2 DIV - col0 + + col0 + cor0.col1 DIV - col2 FROM tab1 cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-9038
SELECT + - col2 / - col0 + + col0 + cor0.col1 / - col2 FROM tab1 cor0
----
21
64
81

query I rowsort
SELECT + cor0.col1 - - cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - col2 + + 40 * - col0 AS col2 FROM tab1 AS cor0
----
-174
-2617
-3296

query I rowsort
SELECT cor0.col1 * col2 * + cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT - 96 FROM tab0, tab0 AS cor0
----
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9043
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 + - col0 * - cor0.col0 AS col2 FROM tab1 cor0
----
-17
4086
6387

query I rowsort
SELECT + col2 * 16 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab1, tab2, tab2 AS cor0
----
58

query I rowsort
SELECT + + col0 * 57 * + cor0.col1 FROM tab0 AS cor0
----
117648
193515
461643

query I rowsort
SELECT DISTINCT 36 * col0 AS col2 FROM tab2
----
252
2808
2844

query I rowsort
SELECT ALL - - 67 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 + - 59 ) col1 FROM tab2
----
-28
-42
0

query I rowsort
SELECT + + 84 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab2, tab0 AS cor0
----
14

query I rowsort
SELECT ALL - 79 * cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ea7034a53082e9402edd943c9fdc7020

query I rowsort
SELECT DISTINCT - col1 * col0 + col0 * + col2 FROM tab1 AS cor0
----
3008
6640
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9055
SELECT DISTINCT - + col0 + - CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT - + col0 + - CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9057
SELECT + + col1 DIV ( 36 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT + + col1 / ( 36 ) AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9058
SELECT ALL cor0.col0 DIV CAST( + col1 AS SIGNED ) + col2 DIV ( cor0.col1 + col2 ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL cor0.col0 / CAST ( + col1 AS INTEGER ) + col2 / ( cor0.col1 + col2 ) FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND col2 - + col2 / + col1
----

query I rowsort
SELECT ALL col2 * + col1 + tab1.col2 * col1 * col0 AS col1 FROM tab1
----
101088
37050
5616

query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 FROM tab2 WHERE col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 + col2 + + col2 AS col1 FROM tab1
----
124
134
205

query I rowsort
SELECT DISTINCT col0 - col2 * col1 FROM tab1
----
-1168
-1401
-506

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT - tab1.col1 + - col2 AS col0 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT tab0.col0 * - col2 * - col0 + - col0 FROM tab0
----
1190
18984
649433

query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-57

query I rowsort
SELECT ALL - + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - 13 + + col2 FROM tab0 cor0
----
-12
20
69

query I rowsort
SELECT DISTINCT + - tab0.col1 + + cor0.col1 * + 36 AS col0 FROM tab0, tab2, tab0 AS cor0
----
9 values hashing to 8772d7b102c13fbcc082ae4554cc0f75

query I rowsort
SELECT ALL + 21 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT - col1 + cor0.col0 + 35 * 39 AS col1 FROM tab0 cor0
----
1303
1303
1363

onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT DISTINCT + cor0.col0 * + col2 + - 48 DIV col1 FROM tab2 AS cor0
----
188
2028
3000

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT + cor0.col0 * + col2 + - 48 / col1 FROM tab2 AS cor0
----
188
2028
3000

query I rowsort
SELECT - 52 FROM tab1 cor0
----
-52
-52
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9075
SELECT col1 * col0 DIV 48 + + col2 AS col0 FROM tab2 AS cor0
----
121
31
65

skipif mysql # not compatible
query I rowsort label-9075
SELECT col1 * col0 / 48 + + col2 AS col0 FROM tab2 AS cor0
----
121
31
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 + col1 ) col2 FROM tab0
----
110
132
180

query I rowsort
SELECT 77 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1367
-599
-652

query I rowsort
SELECT 0 * col1 + col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9079
SELECT col1 + + col0 DIV col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-9079
SELECT col1 + + col0 / col1 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab1 cor0, tab2 cor1
----
10
13
26

query I rowsort
SELECT DISTINCT + ( + col0 ) + col0 - - col1 FROM tab1 cor0
----
138
173
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 95 col0 FROM tab1 AS cor0
----
-38
-41
1

query I rowsort
SELECT + - 54 AS col1 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT + ( ( + col0 ) ) * 95 + + 60 + - col0 FROM tab1 AS cor0
----
342
6076
7580

query I rowsort
SELECT + - ( col0 ) * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2, tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 + col1 ) col0 FROM tab2
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9088
SELECT - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 38 * col1 AS col0 FROM tab1
----
1014
390
507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9090
SELECT - col1 * 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-9090
SELECT - col1 * col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * col1 col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT - ( 56 ) AS col1 FROM tab1
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * col2 col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - ( - col0 + + col1 ) FROM tab0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 col0 FROM tab1, tab2 cor0
----
3
64
80

query I rowsort
SELECT ALL - + col2 * col0 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-9097
SELECT ALL - col2 DIV + col0 AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - col2 / + col0 AS col2 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col1 + - col1 * - col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT - col2 - + col1 * + tab1.col2 * + col2 FROM tab1
----
-119904
-32547
-75870

query I rowsort
SELECT + 42 * tab2.col2 + + col1 - + col0 FROM tab2
----
1073
1158
1534

query I rowsort
SELECT col1 + tab0.col1 * col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT - tab1.col0 + tab1.col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT tab0.col1 * + col1 + col0 * tab0.col0 FROM tab0
----
10634
16202
7972

query I rowsort
SELECT tab1.col1 - tab1.col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL - - col0 + col1 * + col1 * + col1 + cor0.col1 FROM tab1 AS cor0
----
1074
17605
2290

query I rowsort
SELECT DISTINCT + 94 FROM tab0, tab0 AS cor0
----
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT ALL - col1 DIV + col0 - + col1 AS col1 FROM tab1
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL - col1 / + col0 - + col1 AS col1 FROM tab1
----
-10
-13
-34

query I rowsort
SELECT DISTINCT + ( tab1.col1 ) - + col1 AS col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9109
SELECT ALL 67 DIV 2 - col1 AS col0 FROM tab2
----
-26
16
2

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL 67 / 2 - col1 AS col0 FROM tab2
----
-26
16
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col2 FROM tab2
----
99

query I rowsort
SELECT DISTINCT 52 FROM tab1, tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT + 2 - + col2 AS col1 FROM tab2
----
-24
-25
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-9113
SELECT - - col1 - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-9113
SELECT - - col1 - col1 / col1 AS col0 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT - - 6 * + col1 + col1 * + col2 FROM tab1 cor0
----
1326
1560
630

query I rowsort
SELECT DISTINCT + col2 * col1 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-9116
SELECT DISTINCT 1 + + col0 DIV col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT 1 + + col0 / col1 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * col1 col2 FROM tab2 cor0
----
1275
2325
4425

query I rowsort
SELECT + col2 * cor0.col1 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + col0 + - col1 + col0 AS col2 FROM tab0 AS cor0
----
-27
-38
87

query I rowsort
SELECT ALL + cor0.col2 * col2 - col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + col0 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT 37 * + col2 FROM tab0
----
1221
3034
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9123
SELECT + CAST( col2 * col1 + + col0 AS SIGNED ) AS col1 FROM tab2
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-9123
SELECT + CAST ( col2 * col1 + + col0 AS INTEGER ) AS col1 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-9124
SELECT - 26 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT - 26 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 57 AS col0 FROM tab0
----
-57
-57
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9126
SELECT DISTINCT - col2 * col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT - col2 * col1 / - col2 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 * col0 + - cor0.col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-9129
SELECT ALL col0 + col2 DIV + col0 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL col0 + col2 / + col0 FROM tab2
----
10
78
79

query I rowsort
SELECT tab2.col1 AS col2 FROM tab2 WHERE - col1 + - col2 NOT BETWEEN col0 + - col1 * - col2 AND NULL
----
17
31
59

query I rowsort
SELECT DISTINCT - col0 + tab2.col0 AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( col0 * + col1 - + col1 / col1 )
----

query I rowsort
SELECT ALL col0 * + col0 + tab1.col1 * col1 AS col0 FROM tab1
----
4196
6569
685

query I rowsort
SELECT + tab0.col0 - tab0.col0 * - col1 FROM tab0 WHERE ( + col0 * - col2 + - col0 / col2 ) NOT IN ( + col0 * tab0.col1 )
----
2088
3430
8188

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 <= ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - cor0.col2 * - cor0.col2 NOT IN ( - col0 + + col1 * col1 / cor0.col2 )
----

query I rowsort
SELECT ALL col0 + col0 FROM tab0 AS cor0 WHERE + col0 + col0 > ( - col0 )
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col1 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-9139
SELECT col2 - col0 DIV + col1 FROM tab2 cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-9139
SELECT col2 - col0 / + col1 FROM tab2 cor0
----
25
27
34

query I rowsort
SELECT ALL col0 + col2 * col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT col2 * tab0.col2 * + tab0.col1 + col1 FROM tab0
----
194
611975
93740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col2 * col2 col2 FROM tab2
----
114076
5103
52728

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) NOT BETWEEN + col2 AND ( NULL )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT - col0 * + tab2.col0 + tab2.col1 AS col2 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT tab2.col2 / col2 AS col2 FROM tab2 WHERE NOT col1 > NULL
----

query I rowsort
SELECT DISTINCT col1 * col1 * + col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT - tab1.col0 + tab1.col0 * col2 + + col0 * + col0 * - tab1.col0 FROM tab1
----
-258560
-504400
132

query I rowsort
SELECT DISTINCT tab2.col0 + + col2 * - col1 - col2 * - col2 FROM tab2
----
-101
-780
877

query I rowsort
SELECT ALL col2 + col1 + col2 AS col1 FROM tab2
----
111
85
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col2 + + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT ALL col1 DIV tab0.col2 col0 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL col1 / tab0.col2 col0 FROM tab0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9152
SELECT col0 * col2 DIV + col2 + - col2 DIV col2 + col1 AS col0 FROM tab1
----
28
73
92

skipif mysql # not compatible
query I rowsort label-9152
SELECT col0 * col2 / + col2 + - col2 / col2 + col1 AS col0 FROM tab1
----
28
73
92

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( tab1.col0 + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9154
SELECT - col2 DIV - col2 + col0 - tab0.col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9154
SELECT - col2 / - col2 + col0 - tab0.col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - - col0 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT DISTINCT + - col2 DIV - col0 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2065
3395
8099

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT + - col2 / - col0 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2065
3395
8099

query I rowsort
SELECT - cor0.col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col2 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - col0 + + col1 * + col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - col0 * + tab0.col2 AS col0 FROM tab0
----
-35
-7298
-792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL + col1 * col0 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9163
SELECT DISTINCT + 41 DIV - col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + 41 / - col2 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9164
SELECT - cor0.col0 DIV - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9164
SELECT - cor0.col0 / - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col0 * 21 + + col0 FROM tab0 cor0
----
1958
528
770

query I rowsort
SELECT DISTINCT - ( 21 ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col0 FROM tab2
----
13
13
13

query I rowsort
SELECT ALL - ( + col0 ) AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab2, tab1 cor0
----
66

query I rowsort
SELECT + col1 + + 93 AS col0 FROM tab1 cor0
----
103
106
119

query I rowsort
SELECT ALL + + col2 + ( - col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - col2 * - 82 + cor0.col2 FROM tab1 AS cor0
----
4482
4731
7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-9173
SELECT DISTINCT + + col1 + + col2 DIV 99 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT + + col1 + + col2 / 99 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * col2 col0 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9175
SELECT ALL ( col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL ( col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 33 FROM tab2, tab1, tab2 AS cor0
----
33

query I rowsort
SELECT + cor0.col0 + + 57 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
119
33
76

query I rowsort
SELECT + + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 * cor0.col2 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + ( - 5 ) FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT + col0 * + ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - col0 + 67 AS col0 FROM tab2 AS cor0
----
-11
-12
60

query I rowsort
SELECT + col1 + - 9 * + col0 AS col2 FROM tab2 AS cor0
----
-32
-643
-694

query I rowsort
SELECT DISTINCT + + 3 AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 * - 93 * - col1 + col2 * col0 * col2 FROM tab2 AS cor0
----
-271005
-84270
87199

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9186
SELECT + + CAST( NULL AS DECIMAL ) + - 15 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT + + CAST ( NULL AS REAL ) + - 15 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 2 ) * + col2 FROM tab1 cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col2 col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + + 31 * - col1 - col2 * - col1 AS col1 FROM tab2 AS cor0
----
-124
-295
119

query I rowsort
SELECT - 8 + + col0 FROM tab1 AS cor0
----
-5
56
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * col0 col0 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9192
SELECT ALL col2 * - CAST( - col1 AS SIGNED ) - - col2 FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL col2 * - CAST ( - col1 AS INTEGER ) - - col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT - tab1.col2 * - 78 AS col2 FROM tab1
----
4212
4446
7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-9194
SELECT - tab0.col1 * + col0 DIV tab0.col0 AS col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9194
SELECT - tab0.col1 * + col0 / tab0.col0 AS col0 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9195
SELECT DISTINCT - col0 DIV CAST( + col1 AS SIGNED ) FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT - col0 / CAST ( + col1 AS INTEGER ) FROM tab2
----
-1
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9196
SELECT col2 * 41 * - col0 - + CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
-1470
-299307
-32496

skipif mysql # not compatible
query I rowsort label-9196
SELECT col2 * 41 * - col0 - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
-1470
-299307
-32496

query I rowsort
SELECT + 12 + 33 * - col1 * - col0 FROM tab2 AS cor0
----
151878
44331
7173

query I rowsort
SELECT - + col1 * col2 + + col2 * ( - col0 * cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-101088
-37050
-5616

query I rowsort
SELECT ALL 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT + 8 * cor0.col0 FROM tab0 cor0
----
192
280
712

query I rowsort
SELECT 99 * - col2 FROM tab2 AS cor0
----
-2574
-2673
-3762

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9202
SELECT - col2 * CAST( cor0.col2 AS SIGNED ) + cor0.col0 * col0 - - col1 FROM tab2 AS cor0
----
-649
4814
5467

skipif mysql # not compatible
query I rowsort label-9202
SELECT - col2 * CAST ( cor0.col2 AS INTEGER ) + cor0.col0 * col0 - - col1 FROM tab2 AS cor0
----
-649
4814
5467

query I rowsort
SELECT col1 + + 75 FROM tab1
----
101
85
88

query I rowsort
SELECT ALL - + 67 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT - ( col1 * + col2 ) + 46 AS col2 FROM tab1
----
-1202
-1358
-524

query I rowsort
SELECT - col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + col0 * cor0.col0 + + col2 * + ( - cor0.col1 ) FROM tab2 AS cor0
----
-788
4550
5595

query I rowsort
SELECT ALL col1 + col1 - + col2 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT DISTINCT col2 * col2 - 5 AS col0 FROM tab0 AS cor0
----
-4
1084
6719

query I rowsort
SELECT - cor0.col1 - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - + col1 - - col0 * ( + col1 ) FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + col2 * col2 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT DISTINCT + col1 * col2 + - ( + 46 * col1 + col1 ) FROM tab0 cor0
----
-1204
-4462
3185

query I rowsort
SELECT - - 11 * cor0.col0 + col1 FROM tab0 AS cor0
----
1070
350
482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * - col1 * - col2 + 57 col1 FROM tab2 AS cor0
----
24605
31863
58349

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9216
SELECT DISTINCT - ( col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT - ( col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 21 * col1 - + ( + col1 * + col1 ) AS col0 FROM tab2 AS cor0
----
-1612
-4720
-646

query I rowsort
SELECT DISTINCT - - col0 + col0 * 23 * 19 FROM tab0 AS cor0
----
10512
15330
38982

onlyif mysql # use DIV operator for integer division
query I rowsort label-9219
SELECT DISTINCT + col0 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT + col0 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * col0 + - 85 col2 FROM tab0 AS cor0
----
1859
2750
7124

query I rowsort
SELECT ALL - col1 * - col1 + - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT - 25 + + tab1.col1 FROM tab1
----
-12
-15
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9223
SELECT DISTINCT 85 DIV col0 + + tab1.col2 AS col0 FROM tab1
----
58
82
97

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT 85 / col0 + + tab1.col2 AS col0 FROM tab1
----
58
82
97

query I rowsort
SELECT DISTINCT - 9 + col2 * ( tab2.col1 ) AS col0 FROM tab2
----
1525
637
828

query I rowsort
SELECT - ( col0 ) + cor0.col1 * col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - ( + col1 ) + - col1 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - - 71 * col1 AS col0 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT + 44 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-15
13
27

query I rowsort
SELECT DISTINCT - col2 + + 20 AS col2 FROM tab1 AS cor0
----
-34
-37
-76

query I rowsort
SELECT DISTINCT 4 * - col1 AS col1 FROM tab2 cor0
----
-124
-236
-68

query I rowsort
SELECT + 2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL + ( - tab1.col2 ) AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col1 * col2 - col0 FROM tab1
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9235
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 - col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 0 * col1 - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL - ( 88 * + col1 ) AS col0 FROM tab2
----
-1496
-2728
-5192

query I rowsort
SELECT - cor1.col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9239
SELECT ALL - CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - CAST ( NULL AS REAL ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + 90 FROM tab1 AS cor0
----
-6
33
36

query I rowsort
SELECT DISTINCT - ( col1 ) * - ( + 61 ) * - col2 AS col0 FROM tab2
----
-39406
-51057
-93574

query I rowsort
SELECT - - 84 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 * + col1 col0 FROM tab2
----
306
3540
992

query I rowsort
SELECT ALL - 14 + col0 AS col1 FROM tab2 AS cor0
----
-7
64
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-9245
SELECT + - col2 * col1 DIV + ( col0 + col1 ) FROM tab1 AS cor0
----
-13
-48
-7

skipif mysql # not compatible
query I rowsort label-9245
SELECT + - col2 * col1 / + ( col0 + col1 ) FROM tab1 AS cor0
----
-13
-48
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * + col0 + col0 * + 14 col2 FROM tab0 cor0
----
2472
3605
9167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT 16 + - col2 AS col0 FROM tab1 AS cor0
----
-38
-41
-80

query I rowsort
SELECT - 82 + 72 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT + 1 * + col1 AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - col1 * - tab0.col0 + col1 AS col2 FROM tab0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 54 col2 FROM tab0
----
-1782
-4428
-54

query I rowsort
SELECT ALL col0 * + 88 + cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
2262
399
5609

query I rowsort
SELECT ALL col1 + - ( 46 ) FROM tab1 AS cor0
----
-20
-33
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT ALL - col0 DIV + ( + col1 ) + col2 AS col2 FROM tab1 cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL - col0 / + ( + col1 ) + col2 AS col2 FROM tab1 cor0
----
51
54
90

query I rowsort
SELECT + col2 + + 38 AS col2 FROM tab1 AS cor0
----
134
92
95

query I rowsort
SELECT DISTINCT cor0.col0 + ( - 98 ) AS col2 FROM tab1 cor0
----
-18
-34
-95

query I rowsort
SELECT col0 * 41 AS col0 FROM tab1 AS cor0
----
123
2624
3280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9259
SELECT - CAST( NULL AS SIGNED ) / 94 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT - CAST ( NULL AS INTEGER ) / 94 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9260
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col2 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col2 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 56 + + col2 * + col0 * ( col0 ) AS col2 FROM tab1 AS cor0
----
233528
542
614456

query I rowsort
SELECT DISTINCT - col2 * - col2 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT ALL 19 * - cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
-1062
-306
-558

query I rowsort
SELECT ALL - + ( col2 ) + col2 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9265
SELECT + ( 58 ) DIV - col0 FROM tab2 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT + ( 58 ) / - col0 FROM tab2 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT - + 46 * col0 AS col1 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT ALL col0 + 12 * - col1 AS col2 FROM tab0
----
-1003
-1008
-1129

query I rowsort
SELECT col1 * - tab1.col2 - + col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT ALL + + ( 23 ) + col0 * col2 FROM tab0 AS cor0
----
58
7321
815

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9270
SELECT ALL - + CAST( NULL AS DECIMAL ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL - + CAST ( NULL AS REAL ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT 72 * - cor0.col0 FROM tab2 cor0
----
-504
-5616
-5688

query I rowsort
SELECT - + col2 + 78 AS col0 FROM tab1 cor0
----
-18
21
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-9274
SELECT - - col1 * 13 + col2 DIV col1 FROM tab0 AS cor0
----
1118
1183
1261

skipif mysql # not compatible
query I rowsort label-9274
SELECT - - col1 * 13 + col2 / col1 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT ALL - col2 + col2 * + col0 * + col2 FROM tab0 AS cor0
----
26103
34
598354

onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT - col0 + ( + 28 ) DIV - col2 AS col2 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-9276
SELECT - col0 + ( + 28 ) / - col2 AS col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 64 + tab1.col1 * + tab1.col2 AS col1 FROM tab1
----
1312
1468
634

query I rowsort
SELECT + 97 * col1 FROM tab0
----
8342
8827
9409

query I rowsort
SELECT - col2 + ( 85 ) FROM tab1 cor0
----
-11
28
31

query I rowsort
SELECT col1 + col0 * 82 FROM tab0 cor0
----
2054
2967
7389

query I rowsort
SELECT - - col0 * - ( - col0 ) + cor0.col0 FROM tab2 cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-9282
SELECT DISTINCT 10 DIV ( col0 * + 19 ) - - col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT 10 / ( col0 * + 19 ) - - col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col1 + 75 FROM tab0 cor0
----
161
166
172

query I rowsort
SELECT - + 88 + ( col2 ) AS col0 FROM tab2 AS cor0
----
-50
-61
-62

query I rowsort
SELECT DISTINCT 47 * 5 AS col1 FROM tab2 AS cor0
----
235

query I rowsort
SELECT ALL 24 * + 26 + + col2 * ( col2 ) + - col2 AS col2 FROM tab2 cor0
----
1274
1326
2030

query I rowsort
SELECT 40 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9288
SELECT ALL CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 5 * + col0 * col1 FROM tab2 AS cor0
----
1085
23010
6715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9290
SELECT CAST( NULL AS SIGNED ) / col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9290
SELECT CAST ( NULL AS INTEGER ) / col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 3 * - cor0.col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 8853737f589aafd40c7f6d3b3f2f7bfb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9292
SELECT - col0 + - CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT - col0 + - CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 93 * + cor0.col0 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT + ( + 52 ) + + col2 FROM tab0 AS cor0
----
134
53
85

query I rowsort
SELECT - cor0.col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9297
SELECT DISTINCT - 0 * - col0 DIV - col0 + tab1.col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT - 0 * - col0 / - col0 + tab1.col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT + 61 + - col0 * col0 FROM tab2 AS cor0
----
-6023
-6180
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9299
SELECT cor0.col1 * - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT cor0.col1 * - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 79 + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1327
1483
649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT + col2 + 71 + - col2 FROM tab2 AS cor0
----
71

query I rowsort
SELECT col0 * + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 - - col0 col2 FROM tab0
----
-3
-57
-68

query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-9306
SELECT DISTINCT + 7 DIV 89 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT + 7 / 89 FROM tab1
----
0

query I rowsort
SELECT 38 + col0 * + col2 FROM tab1
----
200
3686
7718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 col1 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT + ( col2 ) * - col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + tab2.col2 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + cor0.col0 * + 74 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT col2 * - ( col0 ) * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + col0 * + 19 AS col0 FROM tab2 AS cor0
----
133
1482
1501

query I rowsort
SELECT ALL + - col0 - 36 FROM tab0 AS cor0
----
-125
-60
-71

query I rowsort
SELECT ALL cor0.col1 * 76 + col0 AS col0 FROM tab0 AS cor0
----
6560
7005
7407

query I rowsort
SELECT col0 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col1 - 28 AS col2 FROM tab2 cor0
----
-45
-59
-87

query I rowsort
SELECT ALL - col0 + 39 * col1 AS col0 FROM tab0 cor0
----
3330
3460
3748

onlyif mysql # use DIV operator for integer division
query I rowsort label-9320
SELECT ALL + 68 DIV 56 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL + 68 / 56 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + cor0.col1 * + 71 FROM tab0 AS cor0
----
6106
6461
6887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 * col1 col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-9323
SELECT col2 * col1 DIV col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9323
SELECT col2 * col1 / col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL cor0.col1 * 80 AS col2 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT - + 15 - 59 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL - tab0.col2 * - col1 AS col2 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9327
SELECT - - CAST( NULL AS SIGNED ) + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT - - CAST ( NULL AS INTEGER ) + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + col0 * + 74 FROM tab2 cor0
----
487
5713
5829

query I rowsort
SELECT DISTINCT + 28 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2408
2548
2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-9330
SELECT DISTINCT - col1 DIV col0 col2 FROM tab2 AS cor0
----
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - col1 / col0 col2 FROM tab2 AS cor0
----
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT - - col1 + - col2 DIV + 60 FROM tab1 cor0
----
10
12
26

skipif mysql # not compatible
query I rowsort label-9331
SELECT - - col1 + - col2 / + 60 FROM tab1 cor0
----
10
12
26

query I rowsort
SELECT cor0.col0 * + cor0.col1 + 7 AS col0 FROM tab2 AS cor0
----
1350
224
4609

onlyif mysql # use DIV operator for integer division
query I rowsort label-9333
SELECT ALL 88 DIV col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL 88 / col0 FROM tab0 AS cor0
----
0
2
3

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38

query I rowsort
SELECT + col0 + col1 * + 14 FROM tab0
----
1228
1363
1393

query I rowsort
SELECT ALL 39 * - col0 AS col2 FROM tab0
----
-1365
-3471
-936

query I rowsort
SELECT - 90 + + col0 AS col2 FROM tab2
----
-11
-12
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9338
SELECT + col2 + col1 DIV col2 + - col1 FROM tab1 cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-9338
SELECT + col2 + col1 / col2 + - col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT col1 * 44 AS col2 FROM tab2 cor0
----
1364
2596
748

onlyif mysql # use DIV operator for integer division
query I rowsort label-9340
SELECT ALL + col1 * CAST( col0 AS SIGNED ) * + col2 + + col0 DIV col1 - - col2 DIV 95 FROM tab1 AS cor0
----
36486
4212
99847

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + col1 * CAST ( col0 AS INTEGER ) * + col2 + + col0 / col1 - - col2 / 95 FROM tab1 AS cor0
----
36486
4212
99847

query I rowsort
SELECT ALL 78 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT col2 + - ( - col1 ) FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT ( tab2.col1 ) FROM tab2, tab1 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - 36 FROM tab0, tab0 cor0
----
-36

query I rowsort
SELECT 59 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL - + col2 * ( + col0 ) FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 + + col0 col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL ( col2 ) + + col2 + + col0 * col2 FROM tab1
----
270
3762
7872

query I rowsort
SELECT cor0.col0 * col0 + 45 * + col1 AS col2 FROM tab0 cor0
----
12016
4446
5590

query I rowsort
SELECT - col1 - + 78 FROM tab1 AS cor0
----
-104
-88
-91

query I rowsort
SELECT DISTINCT + - col0 - + 93 FROM tab1 AS cor0
----
-157
-173
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 + tab0.col1 col1 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 58 * tab2.col0 ) col2 FROM tab2
----
406
4524
4582

query I rowsort
SELECT - col0 * + col0 + col1 * - 26 FROM tab1
----
-4356
-6738
-685

query I rowsort
SELECT + + cor0.col0 + col1 * 99 * 38 + col2 FROM tab2 AS cor0
----
116656
222062
64071

query I rowsort
SELECT DISTINCT + + 13 + + cor0.col0 * col0 FROM tab1 AS cor0
----
22
4109
6413

query I rowsort
SELECT + col2 * - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9359
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9359
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-9361
SELECT ALL - + col2 DIV - col1 + cor0.col0 * - col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - + col2 / - col1 + cor0.col0 * - col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + + 65 * - col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT DISTINCT col2 * + col1 * cor0.col1 + col2 FROM tab2 cor0
----
11020
25974
90532

query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT ( col2 ) + col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - - ( col0 ) * 82 + - 48 FROM tab0 AS cor0
----
1920
2822
7250

query I rowsort
SELECT + 1 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
110
68
81

query I rowsort
SELECT DISTINCT col0 * cor0.col0 + cor0.col2 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT ALL - - col2 + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col0 + ( + col2 ) col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL tab0.col0 + + col2 AS col2 FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9373
SELECT col1 + - tab1.col1 * + col1 DIV col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT col1 + - tab1.col1 * + col1 / col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - cor0.col0 + - cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 27b4e0878ffa5c5df119ac6cfa79ea07

query I rowsort
SELECT DISTINCT - tab1.col2 - - col0 * + col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT col2 - + col2 * - tab1.col0 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + - ( cor0.col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + tab0.col1 + col0 * - 24 - - col2 * + col2 FROM tab0
----
-742
4679
599

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT IN ( col2 * - tab1.col1 + - col2 * col2 )
----

query I rowsort
SELECT DISTINCT - col0 + + tab0.col1 FROM tab0
----
2
62

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col2 FROM tab1
----
20
26
52

query I rowsort
SELECT - tab1.col0 * - col0 + - tab1.col1 * + col1 + - tab1.col0 AS col2 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9384
SELECT ALL col0 + col0 DIV + tab1.col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL col0 + col0 / + tab1.col1 FROM tab1
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-9385
SELECT + col2 + + col2 * col0 DIV col0 AS col1 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-9385
SELECT + col2 + + col2 * col0 / col0 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT col0 FROM tab2 WHERE col1 IN ( col0 - + col2 )
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( - col2 ) IN ( col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col1 - - col2 * col2 FROM tab2
----
1461
735
760

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( col1 * col0 )
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT col0 + + col0 * col0 + - tab0.col0 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 - - col0 col1 FROM tab1
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col0 + tab0.col0 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT col0 * + 91 + col1 FROM tab1
----
299
5834
7293

query I rowsort
SELECT DISTINCT 48 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - cor0.col1 col2 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * col2 col2 FROM tab1 AS cor0
----
-4212
-4446
-7488

query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 * - ( ( cor0.col0 ) * col1 ) FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT ALL - 47 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
-2951
-3664
-87

query I rowsort
SELECT ALL - 63 + cor0.col2 * col2 FROM tab2 AS cor0
----
1381
613
666

query I rowsort
SELECT ( + col2 ) + 24 FROM tab2 cor0
----
50
51
62

query I rowsort
SELECT ALL ( - col1 ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9406
SELECT + cor0.col2 * - CAST( + col0 + col0 * ( col1 ) AS SIGNED ) FROM tab0 cor0
----
-3430
-671416
-68904

skipif mysql # not compatible
query I rowsort label-9406
SELECT + cor0.col2 * - CAST ( + col0 + col0 * ( col1 ) AS INTEGER ) FROM tab0 cor0
----
-3430
-671416
-68904

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9407
SELECT - - col2 * CAST( - 49 AS SIGNED ) + col2 * + 56 FROM tab1 AS cor0
----
378
399
672

skipif mysql # not compatible
query I rowsort label-9407
SELECT - - col2 * CAST ( - 49 AS INTEGER ) + col2 * + 56 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT + col2 * ( 10 ) FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT + col2 * - col1 + - 66 AS col0 FROM tab1 AS cor0
----
-1314
-1470
-636

query I rowsort
SELECT cor0.col0 * col1 + + col0 FROM tab0 cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * tab0.col2 col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + col2 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT col2 + + 78 AS col1 FROM tab1 AS cor0
----
132
135
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-9414
SELECT DISTINCT + tab1.col0 DIV + 16 + tab1.col2 * + col1 col2 FROM tab1
----
1253
1404
574

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT + tab1.col0 / + 16 + tab1.col2 * + col1 col2 FROM tab1
----
1253
1404
574

query I rowsort
SELECT ALL - tab0.col0 * - col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col1 * cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT col1 + col1 * col0 * col2 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT + + col2 + col0 * col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + + tab2.col1 col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9420
SELECT ALL tab0.col1 DIV tab0.col0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 1e75b7a3597f1f179d63802aee91f2ca

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL tab0.col1 / tab0.col0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 1e75b7a3597f1f179d63802aee91f2ca

onlyif mysql # use DIV operator for integer division
query I rowsort label-9421
SELECT DISTINCT + ( 45 + col1 ) DIV + col2 FROM tab0
----
1
142
3

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + ( 45 + col1 ) / + col2 FROM tab0
----
1
142
3

query I rowsort
SELECT DISTINCT 86 * + col0 FROM tab1
----
258
5504
6880

query I rowsort
SELECT 21 * + col2 AS col1 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT ALL - + col2 * col1 * - col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - 0 * + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - tab2.col0 * ( col2 ) + + col0 AS col0 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-9427
SELECT col2 DIV ( col2 ) + col0 - tab1.col2 AS col2 FROM tab1
----
-15
-50
8

skipif mysql # not compatible
query I rowsort label-9427
SELECT col2 / ( col2 ) + col0 - tab1.col2 AS col2 FROM tab1
----
-15
-50
8

query I rowsort
SELECT col2 * 14 FROM tab0
----
1148
14
462

query I rowsort
SELECT ALL - + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) - cor0.col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL - col1 + - col1 + + col2 * col2 FROM tab0 AS cor0
----
-193
6542
917

query I rowsort
SELECT + col0 + + ( + 29 + + col1 ) FROM tab2 AS cor0
----
125
166
67

query I rowsort
SELECT col1 + - 46 + cor0.col0 * col0 FROM tab2 AS cor0
----
34
6097
6212

onlyif mysql # use DIV operator for integer division
query I rowsort label-9434
SELECT DISTINCT - col1 * 69 + cor0.col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-1172
-2138
-4070

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT - col1 * 69 + cor0.col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-1172
-2138
-4070

onlyif mysql # use DIV operator for integer division
query I rowsort label-9435
SELECT ALL + ( col2 ) * cor0.col2 DIV + col0 + col1 DIV col0 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1361
325
4610

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + ( col2 ) * cor0.col2 / + col0 + col1 / col0 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1361
325
4610

query I rowsort
SELECT - col2 + + ( col0 ) + - col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col0 + col0 + - cor0.col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-156
-3520
-7520

query I rowsort
SELECT DISTINCT - 74 * + col0 AS col0 FROM tab1 AS cor0
----
-222
-4736
-5920

onlyif mysql # use DIV operator for integer division
query I rowsort label-9439
SELECT ALL cor0.col0 + + col1 DIV - col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL cor0.col0 + + col1 / - col0 FROM tab0 AS cor0
----
21
33
88

query I rowsort
SELECT ALL + col1 * col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + - col1 * col0 + col0 * - col0 FROM tab1 cor0
----
-4736
-7440
-87

query I rowsort
SELECT ALL - col2 + - col1 * + col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT + tab1.col2 * col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT col2 + - cor0.col0 * col2 FROM tab2 cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-9445
SELECT ALL col1 DIV + cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL col1 / + cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT col1 * col1 + cor0.col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT + col2 + col2 * + col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + col0 + + col1 * - cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - col2 + - col0 * + col2 AS col2 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9451
SELECT ALL col2 DIV - col0 + col2 + - col2 * col1 * + col2 FROM tab2 cor0
----
-22575
-24510
-39858

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL col2 / - col0 + col2 + - col2 * col1 * + col2 FROM tab2 cor0
----
-22575
-24510
-39858

query I rowsort
SELECT ALL cor0.col0 + col2 + + col1 AS col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL - ( + col2 + col0 ) FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL + col1 + - tab0.col0 AS col2 FROM tab0
----
2
62
62

query I rowsort
SELECT col2 + + col1 * - col0 + + col1 * + col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col2 + col0 * col0 + col1 AS col1 FROM tab0
----
1323
695
8094

query I rowsort
SELECT - tab1.col0 * + col2 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col1 + + col0 * - col0 AS col2 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT ALL col0 + col0 * col2 * col2 FROM tab1
----
208000
737360
8751

query I rowsort
SELECT ALL + col1 * - col2 + col1 * col1 AS col1 FROM tab2
----
-357
124
1947

query I rowsort
SELECT + cor0.col2 * + 54 FROM tab2 AS cor0
----
1404
1458
2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col0 col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 98 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + 42 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
7340
77
834

onlyif mysql # use DIV operator for integer division
query I rowsort label-9466
SELECT - col0 DIV + cor0.col0 + 12 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
241
398
733

skipif mysql # not compatible
query I rowsort label-9466
SELECT - col0 / + cor0.col0 + 12 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
241
398
733

query I rowsort
SELECT DISTINCT col0 + - col0 * + col1 + - ( + 1 ) FROM tab0
----
-2041
-3361
-8011

onlyif mysql # use DIV operator for integer division
query I rowsort label-9468
SELECT + col0 + + col2 DIV col1 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-9468
SELECT + col0 + + col2 / col1 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT + - col0 * col1 + + 15 AS col1 FROM tab0 AS cor0
----
-2049
-3380
-8084

query I rowsort
SELECT - col0 + col1 + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1163
-514
-7919

query I rowsort
SELECT - 0 * - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 97 * + col2 * tab1.col2 AS col1 FROM tab1
----
282852
315153
893952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 * + 5 col0 FROM tab2 cor0
----
104
108
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-9474
SELECT ALL - - ( col0 ) + + col0 DIV col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - - ( col0 ) + + col0 / col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT ALL + 95 * col1 FROM tab2
----
1615
2945
5605

query I rowsort
SELECT 50 * - col0 FROM tab1
----
-150
-3200
-4000

query I rowsort
SELECT + 39 * cor0.col0 AS col1 FROM tab2 AS cor0
----
273
3042
3081

query I rowsort
SELECT ALL - 14 FROM tab2, tab2 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 * + 20 col0 FROM tab2
----
494
513
722

query I rowsort
SELECT DISTINCT 0 + tab1.col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - col0 + col1 * + ( col0 ) AS col1 FROM tab2
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9482
SELECT - col0 * - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT - col0 * - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col0 + + col0 * - col1 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9485
SELECT DISTINCT - col0 * CAST( - col0 AS SIGNED ) + + col0 FROM tab1 cor0
----
12
4160
6480

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT - col0 * CAST ( - col0 AS INTEGER ) + + col0 FROM tab1 cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-9486
SELECT DISTINCT - - col1 DIV - col1 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT - - col1 / - col1 + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL - col0 * - ( cor0.col2 ) + cor0.col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL col2 * 74 AS col1 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT ALL + cor0.col2 + col0 * + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
262201
512096
81

query I rowsort
SELECT - col1 * 35 * 93 FROM tab0 AS cor0
----
-279930
-296205
-315735

query I rowsort
SELECT + col0 + + ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9492
SELECT ALL - + col1 DIV 30 FROM tab0 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL - + col1 / 30 FROM tab0 AS cor0
----
-2
-3
-3

query I rowsort
SELECT DISTINCT - col0 * 20 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT DISTINCT - col1 - - col1 * + col0 FROM tab2
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-9495
SELECT + - col1 DIV 4 - + cor0.col1 FROM tab1 AS cor0
----
-12
-16
-32

skipif mysql # not compatible
query I rowsort label-9495
SELECT + - col1 / 4 - + cor0.col1 FROM tab1 AS cor0
----
-12
-16
-32

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-9497
SELECT - 28 DIV - col0 col0 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9497
SELECT - 28 / - col0 col0 FROM tab0
----
0
0
1

query I rowsort
SELECT + col1 + cor0.col0 FROM tab0 cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col1 * col0 col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + - col1 * - col0 - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + ( + col2 + col2 ) col1 FROM tab0 cor0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9502
SELECT - cor0.col2 * col2 - col2 DIV CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2934
-3249
-9217

skipif mysql # not compatible
query I rowsort label-9502
SELECT - cor0.col2 * col2 - col2 / CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2934
-3249
-9217

query I rowsort
SELECT - col1 + + cor0.col1 * cor0.col2 FROM tab1 cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + col0 * col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT 76 FROM tab1, tab1 cor0
----
76

query I rowsort
SELECT ALL ( - 88 ) FROM tab1
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 14 + col2 * + 45 * col2 col0 FROM tab0 AS cor0
----
302566
31
48991

query I rowsort
SELECT ALL - cor0.col1 + 17 FROM tab2, tab1 AS cor0
----
9 values hashing to b27559727312042b119b5825248e0488

query I rowsort
SELECT ALL - 57 FROM tab1, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT - + ( col1 ) * - col0 * ( - col1 ) FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - + ( ( - col1 ) ) * 96 AS col2 FROM tab0 AS cor0
----
8256
8736
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9513
SELECT DISTINCT + CAST( + ( + cor0.col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT + CAST ( + ( + cor0.col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col0 * 99 FROM tab1 cor0
----
297
6336
7920

query I rowsort
SELECT + 61 * + cor0.col0 + + col2 * col1 AS col1 FROM tab0 cor0
----
12891
2232
4302

query I rowsort
SELECT DISTINCT - 3 * - col1 AS col2 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT ALL 86 * 97 FROM tab0 AS cor0
----
8342
8342
8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - col1 ) col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9519
SELECT 13 DIV + 3 AS col1 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9519
SELECT 13 / + 3 AS col1 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - - 25 + col0 FROM tab1 AS cor0
----
105
28
89

query I rowsort
SELECT + - cor0.col2 * 99 AS col0 FROM tab0 AS cor0
----
-3267
-8118
-99

query I rowsort
SELECT ALL - 52 + - cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT - cor0.col0 - + col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + ( col1 ) + col0 * - ( + col2 ) FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - cor0.col0 * 44 + col1 * 55 * 35 FROM tab0 cor0
----
164494
171259
185185

query I rowsort
SELECT ALL - 8 * 92 AS col2 FROM tab1 AS cor0
----
-736
-736
-736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + cor0.col2 col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + 9 * + col0 AS col0 FROM tab2 cor0
----
63
702
711

onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT tab0.col0 DIV col2 - + tab0.col1 DIV - col0 FROM tab0
----
2
3
37

skipif mysql # not compatible
query I rowsort label-9529
SELECT tab0.col0 / col2 - + tab0.col1 / - col0 FROM tab0
----
2
3
37

query I rowsort
SELECT 28 + col2 * col0 FROM tab0
----
63
7326
820

onlyif mysql # use DIV operator for integer division
query I rowsort label-9531
SELECT 33 + + col1 * col2 DIV - 48 FROM tab0 AS cor0
----
-122
-26
31

skipif mysql # not compatible
query I rowsort label-9531
SELECT 33 + + col1 * col2 / - 48 FROM tab0 AS cor0
----
-122
-26
31

query I rowsort
SELECT DISTINCT - 34 + + col2 FROM tab0 AS cor0
----
-1
-33
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 84 + cor0.col0 col0 FROM tab2 AS cor0
----
162
163
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 76 * col2 col1 FROM tab2 AS cor0
----
-1976
-2052
-2888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9535
SELECT DISTINCT + CAST( ( col2 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT + CAST ( ( col2 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col1 * - col1 + 56 AS col1 FROM tab0 AS cor0
----
-7340
-8225
-9353

query I rowsort
SELECT - - col0 + + 12 AS col2 FROM tab2 cor0
----
19
90
91

query I rowsort
SELECT - tab0.col0 * + tab0.col1 + - col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT 15 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL col1 + - 13 * + ( + col0 ) AS col0 FROM tab2
----
-1010
-60
-955

query I rowsort
SELECT DISTINCT col0 * + tab0.col0 + 34 FROM tab0
----
1259
610
7955

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9542
SELECT - col1 * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9542
SELECT - col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * 95 * - 14 + tab1.col2 FROM tab1
----
-13243
-17194
-34526

query I rowsort
SELECT col2 * + 31 + 70 AS col1 FROM tab1
----
1744
1837
3046

query I rowsort
SELECT 99 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT DISTINCT - - col1 + - 83 FROM tab1 cor0
----
-57
-70
-73

query I rowsort
SELECT cor0.col1 * col2 + cor0.col0 * col2 FROM tab2 AS cor0
----
1026
3562
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-9548
SELECT cor0.col0 DIV 6 AS col1 FROM tab1 AS cor0
----
0
10
13

skipif mysql # not compatible
query I rowsort label-9548
SELECT cor0.col0 / 6 AS col1 FROM tab1 AS cor0
----
0
10
13

query I rowsort
SELECT DISTINCT - 91 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9550
SELECT - col2 DIV + 7 FROM tab1 AS cor0
----
-13
-7
-8

skipif mysql # not compatible
query I rowsort label-9550
SELECT - col2 / + 7 FROM tab1 AS cor0
----
-13
-7
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9551
SELECT DISTINCT + - col1 DIV - ( 80 + col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT + - col1 / - ( 80 + col1 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9552
SELECT - col0 DIV + 86 + + tab2.col2 + - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9552
SELECT - col0 / + 86 + + tab2.col2 + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + cor0.col2 * col1 + 94 * cor0.col2 AS col0 FROM tab1 AS cor0
----
10272
5928
6480

query I rowsort
SELECT DISTINCT + cor0.col0 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + + col1 + - 27 FROM tab0 cor0
----
59
64
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9557
SELECT + cor0.col1 DIV col1 - - col0 AS col1 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-9557
SELECT + cor0.col1 / col1 - - col0 AS col1 FROM tab2 cor0
----
79
8
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9558
SELECT ALL - + col0 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL - + col0 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT DISTINCT + col0 DIV col1 AS col0 FROM tab1 cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT + col0 / col1 AS col0 FROM tab1 cor0
----
0
6

query I rowsort
SELECT DISTINCT 16 AS col0 FROM tab2 cor0
----
16

query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9562
SELECT + - cor0.col0 + + 61 DIV col0 FROM tab1 cor0
----
-64
-80
17

skipif mysql # not compatible
query I rowsort label-9562
SELECT + - cor0.col0 + + 61 / col0 FROM tab1 cor0
----
-64
-80
17

query I rowsort
SELECT + col2 * - col2 + col0 FROM tab0 cor0
----
-1065
-6635
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 + col2 col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL + col0 * + col0 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 49 * + col0 FROM tab0
----
-1176
-1715
-4361

onlyif mysql # use DIV operator for integer division
query I rowsort label-9567
SELECT ALL + col0 DIV col2 + cor0.col0 + 81 AS col1 FROM tab1 cor0
----
146
161
84

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + col0 / col2 + cor0.col0 + 81 AS col1 FROM tab1 cor0
----
146
161
84

query I rowsort
SELECT DISTINCT col1 - - col1 * cor0.col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - + col1 - + col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 42 AS col1 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - col0 * 72 + col0 AS col0 FROM tab1 cor0
----
-213
-4544
-5680

query I rowsort
SELECT DISTINCT + cor0.col0 - col1 * + col2 * col1 FROM tab1 AS cor0
----
-16144
-36501
-5636

onlyif mysql # use DIV operator for integer division
query I rowsort label-9574
SELECT 64 DIV + col1 - 43 FROM tab0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-9574
SELECT 64 / + col1 - 43 FROM tab0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT ( + col0 + col2 ) * tab1.col1 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT - + col1 * - 80 FROM tab1 AS cor0
----
1040
2080
800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9577
SELECT CAST( NULL AS SIGNED ) * + col1 / cor0.col0 + col0 * - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT CAST ( NULL AS INTEGER ) * + col1 / cor0.col0 + col0 * - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9578
SELECT - 55 DIV col0 + col1 FROM tab2 AS cor0
----
17
24
59

skipif mysql # not compatible
query I rowsort label-9578
SELECT - 55 / col0 + col1 FROM tab2 AS cor0
----
17
24
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( + col2 ) * col2 col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - + 99 * col2 FROM tab0 AS cor0
----
-3267
-8118
-99

query I rowsort
SELECT 65 + cor0.col1 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 63d332deded81ac96250857249312dd8

query I rowsort
SELECT ALL + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col1 * + ( + 56 ) AS col1 FROM tab2 cor0
----
1736
3304
952

query I rowsort
SELECT DISTINCT 95 + 64 FROM tab1, tab2 AS cor0
----
159

query I rowsort
SELECT - col2 * - 78 AS col2 FROM tab0
----
2574
6396
78

query I rowsort
SELECT - col1 - ( - 22 ) FROM tab1 AS cor0
----
-4
12
9

query I rowsort
SELECT - cor0.col1 * 78 AS col2 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT ALL + 2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT 3 * + tab2.col1 FROM tab2
----
177
51
93

query I rowsort
SELECT + cor0.col2 * + col1 + - 85 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-3186
-4275
-6912

query I rowsort
SELECT col1 * ( 36 ) + col1 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT DISTINCT + col1 + 44 * col0 AS col2 FROM tab2 AS cor0
----
339
3491
3493

query I rowsort
SELECT + + col2 * col1 + - col1 * col2 * col1 FROM tab2 AS cor0
----
-10336
-25110
-88972

query I rowsort
SELECT - cor0.col1 * col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - col1 * + ( ( col1 ) * col1 ) FROM tab2
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-9596
SELECT + col1 DIV - 12 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-9596
SELECT + col1 / - 12 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT DISTINCT - col2 * 48 * col0 + + 44 FROM tab1 AS cor0
----
-175060
-368596
-7732

query I rowsort
SELECT - col0 * - col0 + col1 FROM tab2 cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9599
SELECT ALL CAST( NULL AS SIGNED ) + col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL CAST ( NULL AS INTEGER ) + col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 10 * + 40 AS col0 FROM tab2, tab0 cor0
----
400

query I rowsort
SELECT tab2.col0 + 27 - col1 * col2 AS col0 FROM tab2
----
-1429
-540
-803

query I rowsort
SELECT + 88 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9603
SELECT ALL + col2 * + col0 + col0 * - CAST( + 65 + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-24
3584
8880

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + col2 * + col0 + col0 * - CAST ( + 65 + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-24
3584
8880

onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT ALL - col2 DIV + col2 + col0 DIV col2 FROM tab0
----
-1
0
34

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - col2 / + col2 + col0 / col2 FROM tab0
----
-1
0
34

query I rowsort
SELECT ALL 47 + - col0 FROM tab1
----
-17
-33
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-9606
SELECT DISTINCT - col1 + col0 DIV col2 + + ( ( - col0 ) ) FROM tab1
----
-29
-73
-93

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT - col1 + col0 / col2 + + ( ( - col0 ) ) FROM tab1
----
-29
-73
-93

query I rowsort
SELECT ALL - cor0.col2 * + 85 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to aa018438b3c7e9ef76390876d053a822

query I rowsort
SELECT ALL - ( col0 ) + + col1 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - 6 * + 76 FROM tab1
----
-456
-456
-456

query I rowsort
SELECT - - 51 * col1 + - col2 FROM tab1 AS cor0
----
1272
453
567

query I rowsort
SELECT ALL - tab2.col2 + 43 AS col0 FROM tab2
----
16
17
5

query I rowsort
SELECT DISTINCT 3 * col1 * + col0 + - col2 FROM tab1
----
180
1863
3024

query I rowsort
SELECT + col0 - - col2 * col0 AS col1 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * - 20 col0 FROM tab1
----
1080
1140
1920

query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab1 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL + col0 * - cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - col2 * - 10 FROM tab0 cor0
----
10
330
820

query I rowsort
SELECT DISTINCT 5 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9620
SELECT + col1 * col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT + col1 * col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col1 * - 10 + + col0 ) AS col1 FROM tab2
----
-303
-512
-91

query I rowsort
SELECT ALL 79 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * tab0.col0 col1 FROM tab0
----
-1780
-480
-700

query I rowsort
SELECT col2 + col2 + col0 FROM tab0
----
253
37
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9625
SELECT + col2 * - CAST( - col2 AS SIGNED ) + cor0.col0 * - col1 - col2 FROM tab0 cor0
----
-1008
-1457
-3395

skipif mysql # not compatible
query I rowsort label-9625
SELECT + col2 * - CAST ( - col2 AS INTEGER ) + cor0.col0 * - col1 - col2 FROM tab0 cor0
----
-1008
-1457
-3395

query I rowsort
SELECT - cor0.col2 * - 7 + col0 FROM tab0 AS cor0
----
255
42
663

query I rowsort
SELECT DISTINCT - col1 * + 53 + col0 - col0 AS col1 FROM tab2
----
-1643
-3127
-901

onlyif mysql # use DIV operator for integer division
query I rowsort label-9628
SELECT col2 * col2 DIV 68 FROM tab0
----
0
16
98

skipif mysql # not compatible
query I rowsort label-9628
SELECT col2 * col2 / 68 FROM tab0
----
0
16
98

query I rowsort
SELECT + - col2 * - cor0.col1 * col2 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9630
SELECT DISTINCT col1 * - CAST( - col0 + + col0 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT col1 * - CAST ( - col0 + + col0 AS INTEGER ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + - col2 + - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col2 * ( - 96 ) AS col1 FROM tab0 cor0
----
-3168
-7872
-96

query I rowsort
SELECT col1 * - 66 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
37620
82368
92664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9635
SELECT ALL + 35 * + col0 + + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + 35 * + col0 + + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 + - col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT + + cor0.col0 + + col0 * - ( col2 ) * + col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT ALL 49 + + col0 FROM tab2
----
127
128
56

query I rowsort
SELECT DISTINCT - col1 + col2 * col2 * - col0 AS col2 FROM tab0
----
-132
-26222
-598527

query I rowsort
SELECT ALL + 41 + - col2 AS col0 FROM tab1 AS cor0
----
-13
-16
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9642
SELECT DISTINCT + + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT + + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 * col0 + - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT - col1 * - 96 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
15460
9313
9345

query I rowsort
SELECT - col1 * - 60 + + col2 FROM tab0 AS cor0
----
5193
5542
5821

onlyif mysql # use DIV operator for integer division
query I rowsort label-9646
SELECT + + col1 DIV - ( + col0 ) + col0 DIV + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-11
-75
-77

skipif mysql # not compatible
query I rowsort label-9646
SELECT + + col1 / - ( + col0 ) + col0 / + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-11
-75
-77

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + - cor0.col1 + - ( + col1 ) FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL + col1 - + col2 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT - col1 * col2 + + col2 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
10336
25110
88972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 + + col2 col0 FROM tab2
----
117
118
129

query I rowsort
SELECT ALL + col1 + col2 * tab2.col2 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL - + 99 AS col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT + col2 * ( 76 ) FROM tab1 AS cor0
----
4104
4332
7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-9655
SELECT + col1 * col2 + col1 DIV - col2 + col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-35
2836
7460

skipif mysql # not compatible
query I rowsort label-9655
SELECT + col1 * col2 + col1 / - col2 + col0 / - col2 AS col1 FROM tab0 AS cor0
----
-35
2836
7460

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9656
SELECT ALL + + CAST( - col2 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL + + CAST ( - col2 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ( - 7 ) FROM tab0 AS cor0
----
-7
-7
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9658
SELECT DISTINCT - 91 DIV 47 + - col0 AS col1 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - 91 / 47 + - col0 AS col1 FROM tab2 AS cor0
----
-79
-8
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9659
SELECT ALL - - ( + col1 ) + + col2 * - CAST( NULL AS SIGNED ) / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - - ( + col1 ) + + col2 * - CAST ( NULL AS INTEGER ) / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * 15 FROM tab1 AS cor0
----
-1440
-810
-855

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9661
SELECT + + CAST( - col1 AS SIGNED ) * col0 * + 58 AS col1 FROM tab2 AS cor0
----
-12586
-266916
-77894

skipif mysql # not compatible
query I rowsort label-9661
SELECT + + CAST ( - col1 AS INTEGER ) * col0 * + 58 AS col1 FROM tab2 AS cor0
----
-12586
-266916
-77894

query I rowsort
SELECT ALL + 41 * - col0 + col2 * - col1 FROM tab1 AS cor0
----
-1527
-3194
-4528

onlyif mysql # use DIV operator for integer division
query I rowsort label-9663
SELECT ALL + + 27 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + + 27 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col2 + col2 * + col2 FROM tab1 AS cor0
----
11664
211185
746496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col1 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL - + cor0.col0 - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9667
SELECT ALL col1 DIV - col0 + + col1 FROM tab1 cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL col1 / - col0 + + col1 FROM tab1 cor0
----
10
13
18

query I rowsort
SELECT DISTINCT col1 * 9 FROM tab1
----
117
234
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9669
SELECT DISTINCT CAST( 97 AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
97

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT CAST ( 97 AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
97

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + col2 + cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9672
SELECT + 88 * - col1 * - CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT + 88 * - col1 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 89 * + cor0.col2 AS col0 FROM tab0 cor0
----
-252582
-664118
-8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-9674
SELECT ALL 42 DIV 14 AS col1 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL 42 / 14 AS col1 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL ( - col0 * + col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 41 + tab0.col2 FROM tab0
----
123
42
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9677
SELECT CAST( 9 AS SIGNED ) AS col1 FROM tab1
----
9
9
9

skipif mysql # not compatible
query I rowsort label-9677
SELECT CAST ( 9 AS INTEGER ) AS col1 FROM tab1
----
9
9
9

query I rowsort
SELECT + 55 * + col1 AS col1 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT DISTINCT - ( - col0 ) * col2 AS col1 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - tab2.col2 ) * col0 col1 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9681
SELECT DISTINCT - 59 DIV + tab2.col0 + col2 AS col0 FROM tab2
----
19
26
38

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT - 59 / + tab2.col0 + col2 AS col0 FROM tab2
----
19
26
38

query I rowsort
SELECT + 37 * col2 * - col1 AS col2 FROM tab0
----
-105006
-276094
-3589

query I rowsort
SELECT DISTINCT - + cor0.col0 * + col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-9684
SELECT DISTINCT + col0 * col2 DIV col1 AS col2 FROM tab1 AS cor0
----
364
590
6

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT + col0 * col2 / col1 AS col2 FROM tab1 AS cor0
----
364
590
6

query I rowsort
SELECT col2 + + col2 * - ( - ( col1 ) ) FROM tab1 cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9686
SELECT DISTINCT CAST( - 97 AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT CAST ( - 97 AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-97

query I rowsort
SELECT ALL + 21 * tab1.col1 AS col1 FROM tab1
----
210
273
546

query I rowsort
SELECT 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349

query I rowsort
SELECT + 48 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e

query I rowsort
SELECT ALL col1 + cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - + col0 + + 39 + col1 * - col0 FROM tab2 AS cor0
----
-1383
-185
-4641

query I rowsort
SELECT DISTINCT - col2 * col1 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT ALL + cor0.col0 * 30 AS col0 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT - col2 * ( - col2 * - col1 ) FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT col1 + col2 + + col2 AS col0 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT ( cor1.col2 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT + ( 59 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + ( - cor0.col0 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + col1 * ( 23 + col0 * - col2 ) FROM tab0 AS cor0
----
-1164
-66134
-662025

query I rowsort
SELECT + 46 + cor0.col1 - - 97 FROM tab0, tab2 AS cor0
----
9 values hashing to 8d5faa3c6b33d9616f75cc32723a6bf3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9703
SELECT col1 + ( col1 + col2 ) DIV col2 AS col1 FROM tab0 AS cor0
----
195
89
93

skipif mysql # not compatible
query I rowsort label-9703
SELECT col1 + ( col1 + col2 ) / col2 AS col1 FROM tab0 AS cor0
----
195
89
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9704
SELECT col0 DIV - col0 + + ( cor0.col2 ) + + col1 AS col2 FROM tab2 cor0
----
54
57
84

skipif mysql # not compatible
query I rowsort label-9704
SELECT col0 / - col0 + + ( cor0.col2 ) + + col1 AS col2 FROM tab2 cor0
----
54
57
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + - col2 + + col2 col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + 30 * 44 + col2 AS col0 FROM tab1 AS cor0
----
1374
1377
1416

query I rowsort
SELECT ( + cor0.col1 ) * + tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a499c3357b32340ea4100b46ab6f11f6

query I rowsort
SELECT + 87 AS col1 FROM tab1
----
87
87
87

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab0
----
-24

query I rowsort
SELECT ALL - col1 + cor0.col0 * col2 + + col2 FROM tab2 AS cor0
----
185
1995
3023

query I rowsort
SELECT ALL - ( col2 ) + - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( cor0.col2 ) * - col0 + ( col1 ) col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + - 0 * col2 * 57 - col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9714
SELECT + col0 * + col0 + col0 DIV col0 FROM tab2 AS cor0
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-9714
SELECT + col0 * + col0 + col0 / col0 FROM tab2 AS cor0
----
50
6085
6242

onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT + col1 DIV - col0 + + ( - col2 ) FROM tab2 AS cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-9715
SELECT + col1 / - col0 + + ( - col2 ) FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT cor0.col0 * col2 - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + + 31 * 28 FROM tab2, tab0, tab1 cor0
----
868

query I rowsort
SELECT ALL - 22 * col2 * + ( - tab1.col1 ) - col1 * - col1 * - tab1.col0 AS col1 FROM tab1
----
13936
28860
6140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 54 col2 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + 65 * col1 AS col2 FROM tab1 cor0
----
1220
2093
3094

query I rowsort
SELECT - ( col1 ) * - col1 * ( cor0.col2 ) FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL col0 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + col0 * - col0 - + ( + 57 ) FROM tab0 AS cor0
----
-1282
-633
-7978

query I rowsort
SELECT - col1 * - 78 - col0 * col1 FROM tab2 AS cor0
----
-17
0
2201

query I rowsort
SELECT ALL + col1 * - col0 + 80 AS col0 FROM tab1 AS cor0
----
-560
-960
2

query I rowsort
SELECT ALL - - cor0.col1 + + tab2.col0 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e8a110a574ce9d6da24c6814b3fe3d2f

query I rowsort
SELECT ALL + - col1 * 40 FROM tab1 AS cor0
----
-1040
-400
-520

query I rowsort
SELECT ALL + col0 * cor0.col0 + + col1 + col0 FROM tab1 cor0
----
38
4170
6493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9729
SELECT DISTINCT col0 - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT col0 - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 + col2 * + col2 * col2 col2 FROM tab1 AS cor0
----
157626
188841
892416

query I rowsort
SELECT ALL + - col2 + col1 * + 61 * + col1 AS col1 FROM tab0 AS cor0
----
451123
505059
573948

query I rowsort
SELECT DISTINCT + col2 * col1 - - col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9733
SELECT col0 + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT col0 + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - 62 * + 9 FROM tab0 AS cor0
----
-476
-525
-557

query I rowsort
SELECT DISTINCT - col1 * col2 - - 68 FROM tab2
----
-1466
-578
-769

query I rowsort
SELECT ALL col0 * col2 - - col1 * + col2 FROM tab0
----
132
14760
3630

query I rowsort
SELECT + col0 * col1 - + 72 AS col1 FROM tab2
----
1271
145
4530

query I rowsort
SELECT ( col1 ) + + ( - col2 ) + col2 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9739
SELECT 2 * col2 + - CAST( NULL AS SIGNED ) - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT 2 * col2 + - CAST ( NULL AS INTEGER ) - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 * - col1 + col2 ) AS col0 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - col0 * - col1 * - tab1.col0 AS col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT - 85 * + col2 + + col0 * - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-14357
-155
-3621

query I rowsort
SELECT + - 36 * 79 AS col0 FROM tab2 AS cor0
----
-2844
-2844
-2844

query I rowsort
SELECT DISTINCT - 89 - 16 AS col0 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT ALL - + 58 * + ( col2 ) + - col0 * + col2 FROM tab2 AS cor0
----
-1755
-3536
-5206

query I rowsort
SELECT ALL - 7 * col0 + col1 AS col2 FROM tab1 cor0
----
-438
-547
5

query I rowsort
SELECT ALL 47 * + 33 AS col1 FROM tab0 AS cor0
----
1551
1551
1551

query I rowsort
SELECT ALL + tab0.col0 * 58 AS col0 FROM tab0
----
1392
2030
5162

query I rowsort
SELECT ( + 11 ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # use DIV operator for integer division
query I rowsort label-9750
SELECT DISTINCT - CAST( col2 AS SIGNED ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - CAST ( col2 AS INTEGER ) / + col2 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col2 * + col1 * - 80 AS col1 FROM tab2
----
-122720
-51680
-66960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * col2 col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + ( ( col0 ) ) * ( ( + col2 ) + col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
1228800
466944
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL 29 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + 61 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT + col2 + 10 FROM tab2 AS cor0
----
36
37
48

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703

onlyif mysql # use DIV operator for integer division
query I rowsort label-9759
SELECT DISTINCT + col2 + ( 49 ) * col1 + col1 DIV + col0 FROM tab2 AS cor0
----
1550
2917
871

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT + col2 + ( 49 ) * col1 + col1 / + col0 FROM tab2 AS cor0
----
1550
2917
871

query I rowsort
SELECT ALL + col2 - 13 AS col2 FROM tab2 AS cor0
----
13
14
25

query I rowsort
SELECT DISTINCT ( 87 ) AS col0 FROM tab2 cor0
----
87

query I rowsort
SELECT + - col2 * col0 + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9763
SELECT DISTINCT + CAST( - 87 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
-49
-60
-61

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
-49
-60
-61

query I rowsort
SELECT ALL - col1 + + 70 FROM tab2
----
11
39
53

query I rowsort
SELECT ALL col0 * - col2 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-9766
SELECT + col0 + col1 - col2 DIV cor0.col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-9766
SELECT + col0 + col1 - col2 / cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col1 - + 33 AS col2 FROM tab0
----
53
58
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-9768
SELECT + 10 DIV 92 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9768
SELECT + 10 / 92 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( 8 ) col1 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT 85 + col0 AS col2 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT 24 + - cor0.col1 - + col1 * col2 FROM tab2 AS cor0
----
-1569
-639
-844

query I rowsort
SELECT DISTINCT + - col1 * 20 + + col0 + col0 FROM tab0 cor0
----
-1642
-1672
-1870

query I rowsort
SELECT - 63 * - col1 + - col0 FROM tab0 AS cor0
----
5394
5644
6076

query I rowsort
SELECT ALL 92 + - col1 FROM tab1 AS cor0
----
66
79
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9775
SELECT DISTINCT col2 DIV + col0 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2934
3249
9217

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT col2 / + col0 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2934
3249
9217

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9776
SELECT ALL + col0 + col0 * 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-9776
SELECT ALL + col0 + col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col1 + + ( - 72 ) * col0 FROM tab0 AS cor0
----
1691
336
875

query I rowsort
SELECT DISTINCT cor0.col1 * col0 - + col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-9779
SELECT ALL 42 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
42

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL 42 / col2 AS col2 FROM tab0 AS cor0
----
0
1
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9780
SELECT DISTINCT 62 + + col2 * - CAST( + col0 AS SIGNED ) * - col1 col2 FROM tab1 AS cor0
----
36542
4274
99902

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT 62 + + col2 * - CAST ( + col0 AS INTEGER ) * - col1 col2 FROM tab1 AS cor0
----
36542
4274
99902

query I rowsort
SELECT - col2 * + col2 * + ( - 86 ) FROM tab2 AS cor0
----
124184
58136
62694

query I rowsort
SELECT ALL + - 46 - col1 FROM tab1 cor0
----
-56
-59
-72

query I rowsort
SELECT DISTINCT col2 * col0 * - col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-9784
SELECT ALL + - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + - cor0.col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9785
SELECT DISTINCT col0 DIV - col1 col0 FROM tab1 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT col0 / - col1 col0 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT - 96 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-10
-5
1

query I rowsort
SELECT + 36 * - col1 AS col2 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT DISTINCT - col2 * - col1 + 41 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
160
338
715

query I rowsort
SELECT ( - col1 ) * - cor0.col2 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL col1 + 88 * + col1 AS col0 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT DISTINCT - col0 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL 12 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL + - col2 * 63 + - 17 AS col1 FROM tab1 cor0
----
-3419
-3608
-6065

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9794
SELECT ALL - + col1 * CAST( NULL AS SIGNED ) + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL - + col1 * CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 - - 63 FROM tab2 AS cor0
----
32
4
46

query I rowsort
SELECT DISTINCT col2 * cor0.col1 - 40 FROM tab1 AS cor0
----
1208
1364
530

query I rowsort
SELECT - 22 - col2 * - 55 FROM tab1
----
2948
3113
5258

query I rowsort
SELECT DISTINCT col0 * col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - col0 + ( col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * + 14 FROM tab0 AS cor0
----
1204
1274
1358

query I rowsort
SELECT - col1 * - 83 AS col1 FROM tab1 cor0
----
1079
2158
830

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb

query I rowsort
SELECT + ( col0 ) + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT 25 * col1 + + col0 FROM tab0 cor0
----
2174
2364
2460

query I rowsort
SELECT tab0.col0 + - ( col2 ) * + tab0.col2 + col0 AS col0 FROM tab0
----
-1041
-6546
69

query I rowsort
SELECT col2 + cor0.col1 * 45 AS col0 FROM tab1 AS cor0
----
1224
507
681

query I rowsort
SELECT ALL - 98 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9808
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + col2 * col1 + - 50 FROM tab1
----
1118
1351
456

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + col2 * col1 + - 50 FROM tab1
----
1118
1351
456

query I rowsort
SELECT - col0 + col1 - - tab0.col2 * + ( - col0 * + col2 ) AS col1 FROM tab0
----
-26074
-598434
27

query I rowsort
SELECT - col0 * - tab2.col2 + col0 AS col1 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-9811
SELECT DISTINCT col1 DIV + tab1.col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT col1 / + tab1.col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT - 28 * col2 + ( col0 ) FROM tab1 AS cor0
----
-1509
-1532
-2608

query I rowsort
SELECT ALL - col0 * col1 + + col1 AS col1 FROM tab0 cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT ALL 78 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL 78 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 56 + + col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
7452
8337
9465

query I rowsort
SELECT cor0.col0 * col2 + col2 + col0 * col2 FROM tab1 AS cor0
----
15456
378
7353

query I rowsort
SELECT 33 * + col2 + col2 * + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
120510
52288
6750

query I rowsort
SELECT col0 * + cor0.col2 - col0 AS col2 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT col2 - - col1 * 7 FROM tab2 AS cor0
----
157
244
439

onlyif mysql # use DIV operator for integer division
query I rowsort label-9820
SELECT + - col1 - - col0 DIV - col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-9820
SELECT + - col1 - - col0 / - col0 FROM tab1 AS cor0
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-9821
SELECT DISTINCT + ( col1 ) DIV + cor0.col2 - + col1 FROM tab0 cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT + ( col1 ) / + cor0.col2 - + col1 FROM tab0 cor0
----
-84
-90
0

query I rowsort
SELECT DISTINCT - 87 + col0 AS col2 FROM tab0 AS cor0
----
-52
-63
2

query I rowsort
SELECT ALL + col2 + col2 * cor0.col1 * 84 FROM tab1 AS cor0
----
104928
117990
47937

query I rowsort
SELECT + 14 + + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2050
-3381
-8085

query I rowsort
SELECT - 46 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ( + col1 * col0 ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ( + 71 ) AS col2 FROM tab2
----
71
71
71

query I rowsort
SELECT + - 37 * 74 FROM tab0 AS cor0
----
-2738
-2738
-2738

query I rowsort
SELECT - 2 AS col2 FROM tab2 cor0
----
-2
-2
-2

query I rowsort
SELECT - - 61 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT + + cor0.col0 * 45 + + col1 AS col0 FROM tab2 cor0
----
346
3569
3572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9832
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 98 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to b6a3c9eea26c3759e6417d75f38258d1

query I rowsort
SELECT DISTINCT + 99 + - col1 AS col2 FROM tab2 AS cor0
----
40
68
82

query I rowsort
SELECT + col1 + + col2 * ( - 66 ) AS col2 FROM tab2
----
-1657
-1751
-2491

query I rowsort
SELECT - cor0.col2 + - 83 FROM tab1, tab1 AS cor0
----
9 values hashing to 4810a61ddcf5fc769b379c061c8a1f33

query I rowsort
SELECT DISTINCT - - 43 + col1 AS col0 FROM tab0 AS cor0
----
129
134
140

query I rowsort
SELECT ALL + + col0 * col0 * ( + col2 * col2 + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-41650
52555835
613440

query I rowsort
SELECT - col2 * + tab0.col2 + 76 AS col1 FROM tab0
----
-1013
-6648
75

query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 AS col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + - col1 * ( 58 * + col2 ) + - ( col1 ) + col0 FROM tab2 AS cor0
----
-37406
-48570
-88953

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT DISTINCT col0 * 92 + 24 FROM tab0 AS cor0
----
2232
3244
8212

query I rowsort
SELECT DISTINCT - col2 * - 68 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT + - col1 + 82 FROM tab2 AS cor0
----
23
51
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9846
SELECT cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * 64 + + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1147
2242
442

query I rowsort
SELECT - - 28 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT + col1 + - col0 * col2 * col1 AS col0 FROM tab0 AS cor0
----
-3298
-664027
-68026

onlyif mysql # use DIV operator for integer division
query I rowsort label-9850
SELECT col2 DIV - 14 FROM tab1 AS cor0
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-9850
SELECT col2 / - 14 FROM tab1 AS cor0
----
-3
-4
-6

query I rowsort
SELECT DISTINCT + col0 * + 72 AS col0 FROM tab0 cor0
----
1728
2520
6408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9852
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + + col1 * col1 + - cor0.col1 FROM tab2 cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-9854
SELECT ALL - col2 DIV + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - col2 / + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9855
SELECT + col2 * col2 + col2 DIV 91 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-9855
SELECT + col2 * col2 + col2 / 91 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + tab2.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - col1 * + ( + col0 ) + + tab2.col1 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT 79 + + col1 + col1 DIV + ( col0 + + col1 ) FROM tab1 AS cor0
----
105
89
92

skipif mysql # not compatible
query I rowsort label-9858
SELECT 79 + + col1 + col1 / + ( col0 + + col1 ) FROM tab1 AS cor0
----
105
89
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9859
SELECT + CAST( + col1 AS SIGNED ) + col0 + col2 AS col1 FROM tab0 AS cor0
----
133
143
262

skipif mysql # not compatible
query I rowsort label-9859
SELECT + CAST ( + col1 AS INTEGER ) + col0 + col2 AS col1 FROM tab0 AS cor0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT ALL 32 DIV 74 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL 32 / 74 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT DISTINCT col0 + ( 82 ) * cor0.col0 * + col2 AS col0 FROM tab2 cor0
----
15505
166374
246243

query I rowsort
SELECT tab2.col1 + + 35 AS col0 FROM tab2
----
52
66
94

query I rowsort
SELECT - col1 * + col1 + - col0 AS col1 FROM tab2
----
-3559
-368
-968

query I rowsort
SELECT ALL + cor0.col2 + + col2 + col2 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT ALL - - col2 + 41 FROM tab2 AS cor0
----
67
68
79

query I rowsort
SELECT ( 52 + + cor0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 7a53cb0eefbaba432aa29271caf3e719

query I rowsort
SELECT ALL - ( col2 ) + - col2 * + col1 FROM tab1
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + col2 * 82 col1 FROM tab0 cor0
----
10102
15005
9491

query I rowsort
SELECT ALL - + 75 + col2 * col0 AS col1 FROM tab0 AS cor0
----
-40
717
7223

onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT ALL + col0 DIV - 80 + col2 DIV col1 + col2 AS col2 FROM tab1
----
102
56
62

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL + col0 / - 80 + col2 / col1 + col2 AS col2 FROM tab1
----
102
56
62

query I rowsort
SELECT + 38 * col2 AS col0 FROM tab0
----
1254
3116
38

query I rowsort
SELECT DISTINCT col1 * - col1 + col2 AS col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + 57 + + col1 FROM tab0 AS cor0
----
143
148
154

query I rowsort
SELECT ALL col0 * col0 - col2 * ( col1 ) FROM tab2 AS cor0
----
-788
4550
5595

query I rowsort
SELECT ALL - 39 * - col0 * + 15 AS col2 FROM tab0 cor0
----
14040
20475
52065

query I rowsort
SELECT - 94 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-282
-6016
-7520

query I rowsort
SELECT ALL 79 * + col1 FROM tab1 AS cor0
----
1027
2054
790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9880
SELECT - + col2 + col0 + - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-29
-3
-77

skipif mysql # not compatible
query I rowsort label-9880
SELECT - + col2 + col0 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-29
-3
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9881
SELECT ALL - cor0.col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL - cor0.col1 / col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - - col0 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - ( - col0 * - col2 ) AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - 30 * col1 * - 35 FROM tab2 AS cor0
----
17850
32550
61950

query I rowsort
SELECT - col2 + + ( - col1 ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT col0 + + col0 + - ( - col1 ) * col2 FROM tab0 AS cor0
----
167
2886
7640

query I rowsort
SELECT - col1 * - ( 33 * col2 ) AS col2 FROM tab2 AS cor0
----
21318
27621
50622

query I rowsort
SELECT col2 + col0 + + ( + col1 ) AS col0 FROM tab2
----
134
163
65

query I rowsort
SELECT - + col1 * 8 + col0 + + col1 * - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-178168
-330056
-737648

query I rowsort
SELECT col0 * - 50 AS col2 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT DISTINCT + + 30 * col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT ALL - - ( + 80 ) + col1 AS col1 FROM tab2 cor0
----
111
139
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 41 col2 FROM tab2 AS cor0
----
41

query I rowsort
SELECT DISTINCT col0 + col0 * col2 AS col1 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 + + col0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) * col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col2 - + col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + cor0.col1 * + 94 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT - 55 * col2 AS col1 FROM tab0
----
-1815
-4510
-55

query I rowsort
SELECT 14 * 16 AS col1 FROM tab0
----
224
224
224

query I rowsort
SELECT + 14 + col2 + col2 AS col1 FROM tab0
----
16
178
80

query I rowsort
SELECT + col1 + 14 AS col2 FROM tab2 cor0
----
31
45
73

query I rowsort
SELECT - cor0.col2 + 83 AS col1 FROM tab2 AS cor0
----
45
56
57

query I rowsort
SELECT DISTINCT col1 * 56 - ( cor0.col0 * 10 ) FROM tab1 AS cor0
----
-72
-80
1426

query I rowsort
SELECT ALL - col0 + + 49 * col2 * + col0 AS col2 FROM tab1 AS cor0
----
178688
376240
7935

query I rowsort
SELECT DISTINCT - col2 + + 26 * - 66 AS col0 FROM tab2 AS cor0
----
-1742
-1743
-1754

query I rowsort
SELECT - + col2 * - 83 + 70 * col1 AS col2 FROM tab1 AS cor0
----
5431
6302
8878

query I rowsort
SELECT ALL 9 * + col0 * - col1 FROM tab0 cor0
----
-18576
-30555
-72891

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * + cor0.col0 + 43 FROM tab2 cor0
----
-146
-1985
-2959

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( cor0.col0 )
----

query I rowsort
SELECT + cor0.col2 + + cor0.col2 * 76 * - col1 AS col1 FROM tab2 AS cor0
----
-116558
-49058
-63585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * - col2 col2 FROM tab1 AS cor0
----
1998
2109
3552

onlyif mysql # use DIV operator for integer division
query I rowsort label-9914
SELECT 35 DIV + col1 + - col0 FROM tab1 AS cor0
----
-2
-61
-78

skipif mysql # not compatible
query I rowsort label-9914
SELECT 35 / + col1 + - col0 FROM tab1 AS cor0
----
-2
-61
-78

query I rowsort
SELECT ALL + 73 - ( cor1.col2 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ce23ca9d8050f7b59327c1e963356785

query I rowsort
SELECT ( + col0 * 16 ) FROM tab0
----
1424
384
560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9917
SELECT + cor0.col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT + cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9918
SELECT DISTINCT + + cor0.col2 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT + + cor0.col2 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 61 + col0 AS col1 FROM tab1
----
125
141
64

query I rowsort
SELECT col0 * col0 * col0 + col0 AS col0 FROM tab0
----
13848
42910
705058

query I rowsort
SELECT ALL 2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT + col1 + + 14 FROM tab2
----
31
45
73

query I rowsort
SELECT ALL + col1 * + 69 FROM tab1
----
1794
690
897

query I rowsort
SELECT - 93 FROM tab2, tab1 cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # use DIV operator for integer division
query I rowsort label-9925
SELECT DISTINCT - cor0.col2 DIV - 3 AS col0 FROM tab0 AS cor0
----
0
11
27

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT - cor0.col2 / - 3 AS col0 FROM tab0 AS cor0
----
0
11
27

query I rowsort
SELECT + col2 + - 80 * col1 + col2 FROM tab2 AS cor0
----
-1284
-2426
-4668

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9927
SELECT - CAST( NULL AS SIGNED ) * - ( tab2.col1 + - col0 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT - CAST ( NULL AS INTEGER ) * - ( tab2.col1 + - col0 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab0.col0 - ( - col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT - ( col2 ) - - col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - ( col2 ) * + col1 * 5 - col1 AS col0 FROM tab2 AS cor0
----
-3247
-4216
-7729

query I rowsort
SELECT ALL - col0 + + 52 - - col0 AS col1 FROM tab0
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 + 48 - - col0 col2 FROM tab0 AS cor0
----
14
3
68

query I rowsort
SELECT + - col1 + col2 + - 43 * col2 FROM tab1 AS cor0
----
-2294
-2404
-4045

query I rowsort
SELECT col1 * cor0.col1 + 37 AS col2 FROM tab2 cor0
----
326
3518
998

query I rowsort
SELECT col1 * - col1 - - ( - col0 ) AS col2 FROM tab2 cor0
----
-3559
-368
-968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col0 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT - col2 + - col0 * 25 * col2 AS col1 FROM tab0 AS cor0
----
-182532
-19833
-876

query I rowsort
SELECT + + col2 * - col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col2 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT DISTINCT - col1 DIV + 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT - col1 / + 63 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - ( col1 ) * col1 * col2 + col1 * + col1 FROM tab1 AS cor0
----
16393
37180
5800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * - col1 + - 37 * - col1 col1 FROM tab0
----
11466
5246
6984

query I rowsort
SELECT ALL - 99 + - 48 AS col2 FROM tab1 AS cor0
----
-147
-147
-147

query I rowsort
SELECT - col1 * + ( col2 ) + - 97 AS col1 FROM tab2 AS cor0
----
-1631
-743
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 87 col1 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT + ( col2 ) * col0 AS col2 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + - col1 * 54 col1 FROM tab0 AS cor0
----
-11638
-5239
-5733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9948
SELECT DISTINCT CAST( ( col2 ) * + col2 AS SIGNED ) FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT CAST ( ( col2 ) * + col2 AS INTEGER ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + ( ( col0 ) ) FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9950
SELECT 61 * col0 DIV - col1 + col1 FROM tab2
----
-21
-266
18

skipif mysql # not compatible
query I rowsort label-9950
SELECT 61 * col0 / - col1 + col1 FROM tab2
----
-21
-266
18

query I rowsort
SELECT col1 * 25 AS col1 FROM tab1
----
250
325
650

query I rowsort
SELECT ALL - 20 AS col1 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT tab0.col1 * 20 + col0 AS col0 FROM tab0
----
1744
1909
1975

query I rowsort
SELECT col2 * col2 + col0 - - col1 AS col2 FROM tab1 AS cor0
----
2945
3323
9309

query I rowsort
SELECT cor0.col0 + cor0.col0 + cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
203
2184
3160

query I rowsort
SELECT ALL - col2 + - 53 * ( + col2 * + col2 ) AS col1 FROM tab1 AS cor0
----
-154602
-172254
-488544

query I rowsort
SELECT - + col1 * + ( + ( + col1 ) ) - + ( col0 + + col2 ) FROM tab1 cor0
----
-221
-345
-733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 * 58 AS col0 FROM tab1 AS cor0
----
3132
3306
5568

query I rowsort
SELECT DISTINCT - cor0.col2 + + 55 * 2 AS col0 FROM tab2 cor0
----
72
83
84

query I rowsort
SELECT DISTINCT - col0 * col2 + - tab0.col2 - col2 * + col2 AS col2 FROM tab0
----
-14104
-1914
-37

query I rowsort
SELECT ALL tab1.col0 - col0 AS col1 FROM tab1
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2, tab0 AS cor3
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc

query I rowsort
SELECT DISTINCT + 63 - + tab2.col2 FROM tab2, tab1 AS cor0
----
25
36
37

query I rowsort
SELECT + tab1.col1 + 63 + tab1.col2 AS col1 FROM tab1
----
130
143
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-9966
SELECT col0 * tab0.col2 DIV + 72 FROM tab0
----
0
101
11

skipif mysql # not compatible
query I rowsort label-9966
SELECT col0 * tab0.col2 / + 72 FROM tab0
----
0
101
11

query I rowsort
SELECT - col0 + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL + - col0 * + 52 FROM tab0 AS cor0
----
-1248
-1820
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 16 * col1 * - col1 col1 FROM tab1 AS cor0
----
10813
1536
2624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + ( + ( col2 ) ) * 90 * + col1 col1 FROM tab2 AS cor0
----
138138
58219
75337

query I rowsort
SELECT DISTINCT + col0 * col1 - 91 FROM tab1 AS cor0
----
-13
549
949

skipif mysql # not compatible
query I rowsort
SELECT + col0 - - CAST ( col2 * col1 AS REAL ) FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col1 * ( + cor0.col0 ) * col0 + col0 FROM tab0 AS cor0
----
-118790
-49512
-720722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 61 + - col1 * col2 col2 FROM tab1 AS cor0
----
1890
2907
4608

query I rowsort
SELECT DISTINCT - 75 FROM tab0, tab2 AS cor0
----
-75

query I rowsort
SELECT ALL col1 + - col2 * col2 AS col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT ALL + col2 + - ( 1 * col1 ) AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL - + tab1.col0 * 77 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 111804745f8d4d482be8e4e9ce1b8dd8

query I rowsort
SELECT DISTINCT col1 + col1 + + col2 FROM tab1
----
106
122
77

query I rowsort
SELECT 38 * cor0.col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
1998
2109
3552

onlyif mysql # use DIV operator for integer division
query I rowsort label-9981
SELECT + col0 DIV + 71 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9981
SELECT + col0 / + 71 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 86 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT 61 + + col0 AS col2 FROM tab2 cor0
----
139
140
68

query I rowsort
SELECT + - 37 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
-1260
-3204
-864

query I rowsort
SELECT + col2 * col2 * col1 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + cor0.col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9987
SELECT ALL - ( + cor0.col2 ) * + CAST( + ( - col2 ) * ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1
35937
551368

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL - ( + cor0.col2 ) * + CAST ( + ( - col2 ) * ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 + + col1 FROM tab0 cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * + col1 col1 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT col2 * cor0.col2 AS col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9992
SELECT + cor0.col0 * - cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT + cor0.col0 * - cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col0 * + col0 FROM tab2 AS cor0
----
343
474552
493039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9994
SELECT DISTINCT - col0 + - col2 * - CAST( 80 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4317
4496
7600

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - col0 + - col2 * - CAST ( 80 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4317
4496
7600

query I rowsort
SELECT DISTINCT col1 + cor0.col1 * + cor0.col1 AS col2 FROM tab0 cor0
----
7482
8372
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9996
SELECT + - col0 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-9996
SELECT + - col0 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col2 + col0 col2 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab1, tab2 AS cor0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * col2 col1 FROM tab1
----
1248
1404
570