sqllogictest
Artifact Content
Not logged in

Artifact 2659ed0973554a046c5b242e228310ee64909df3:


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)

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1
SELECT col2 + col0 DIV - col0 + - cor0.col0 FROM tab2 AS cor0
----
-42
-53
19

skipif mysql # not compatible
query I rowsort label-1
SELECT col2 + col0 / - col0 + - cor0.col0 FROM tab2 AS cor0
----
-42
-53
19

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

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

query I rowsort
SELECT col1 - ( tab1.col1 ) * 86 * col1 FROM tab1
----
-14521
-58110
-8590

query I rowsort
SELECT + 66 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

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

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

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

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

query I rowsort
SELECT - - col2 + col0 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1430
-529
-803

query I rowsort
SELECT ALL - 61 + + col2 * col0 FROM tab2 cor0
----
128
1967
2941

query I rowsort
SELECT ALL - 81 + col2 * col2 * col2 - col1 FROM tab2 AS cor0
----
17436
19571
54774

query I rowsort
SELECT ALL + 3 + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1251
1407
573

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-15
SELECT - col1 / ( + col0 ) - - col2 col1 FROM tab0 AS cor0
----
-1
30
81

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-19
SELECT - col2 - cor0.col2 DIV 3 FROM tab0 cor0
----
-1
-109
-44

skipif mysql # not compatible
query I rowsort label-19
SELECT - col2 - cor0.col2 / 3 FROM tab0 cor0
----
-1
-109
-44

query I rowsort
SELECT col1 * - 33 - col0 FROM tab1 AS cor0
----
-394
-509
-861

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

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

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

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

query I rowsort
SELECT ALL - ( 0 ) + - col0 + - col1 * + col1 * - col2 AS col1 FROM tab1 cor0
----
16144
36501
5636

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

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

query I rowsort
SELECT DISTINCT - col1 * 69 AS col2 FROM tab2 cor0
----
-1173
-2139
-4071

query I rowsort
SELECT ALL - 0 * col0 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + 78 * col0 + + col1 + col2 AS col2 FROM tab0 AS cor0
----
-1753
-2632
-6769

query I rowsort
SELECT 2 * cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b8cf3a0d946da15d11bb8abf87d58a6b

onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT - ( col1 ) + col2 DIV CAST( - col1 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
26
42
76

skipif mysql # not compatible
query I rowsort label-30
SELECT - ( col1 ) + col2 / CAST ( - col1 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
26
42
76

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

query I rowsort
SELECT DISTINCT - - 24 - - col1 * cor0.col0 AS col2 FROM tab1 cor0
----
102
1064
664

query I rowsort
SELECT 42 + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1267
618
7963

query I rowsort
SELECT ( - 40 ) FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT - 20 * + col0 + - col0 * col0 FROM tab2 AS cor0
----
-189
-7644
-7821

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

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

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

query I rowsort
SELECT ( + col0 ) + + col2 * + ( + tab0.col2 ) * col0 FROM tab0
----
26160
598525
70

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

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

query I rowsort
SELECT ALL 80 + col1 + col1 FROM tab0 AS cor0
----
252
262
274

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

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

query I rowsort
SELECT ALL cor0.col2 * 57 + + col1 FROM tab2 AS cor0
----
1541
1570
2183

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

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT - + CAST ( - col0 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - + col0 * col0 * - col0 + col1 FROM tab2 AS cor0
----
374
474611
493056

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

query I rowsort
SELECT ALL + 30 * - col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2369
-904
67

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-50
SELECT DISTINCT + ( + 10 ) + - col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
10
9

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT + ( + 10 ) + - col2 / + col0 AS col1 FROM tab0 AS cor0
----
10
9

query I rowsort
SELECT ALL + 25 * 13 + - cor0.col1 * col0 * - col2 FROM tab2 AS cor0
----
119977
51359
6184

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT DISTINCT col0 DIV 97 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT col0 / 97 + col1 FROM tab1
----
10
13
26

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

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

query I rowsort
SELECT tab0.col1 + + tab0.col2 + col2 * + col1 FROM tab0
----
195
2957
7635

query I rowsort
SELECT 12 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT col1 * - col2 * 84 AS col2 FROM tab2 cor0
----
-128856
-54264
-70308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 11 col2 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT DISTINCT - + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT col1 DIV + 98 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-61
SELECT col1 / + 98 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-62
SELECT + col2 * - CAST ( col2 AS INTEGER ) * - col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT tab0.col0 + 0 + col2 AS col1 FROM tab0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-64
SELECT DISTINCT col2 * CAST( col0 * - col0 AS SIGNED ) - ( col1 ) FROM tab2
----
-1354
-158243
-237175

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT col2 * CAST ( col0 * - col0 AS INTEGER ) - ( col1 ) FROM tab2
----
-1354
-158243
-237175

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

query I rowsort
SELECT + tab2.col2 * + 23 + 32 FROM tab2
----
630
653
906

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

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

query I rowsort
SELECT ALL - col2 - - 47 * col0 FROM tab1 AS cor0
----
2951
3664
87

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

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

query I rowsort
SELECT + - cor0.col2 * col1 + col1 - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1023
-1972
-6077

query I rowsort
SELECT cor0.col1 + col1 - - col1 FROM tab1 AS cor0
----
30
39
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col1 + col2 * + col0 col1 FROM tab0 AS cor0
----
15579
8188
9444

query I rowsort
SELECT - 88 + - col1 + - col2 * + col1 * + col2 AS col0 FROM tab2 AS cor0
----
-22718
-24653
-40031

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

skipif mysql # not compatible
query I rowsort label-76
SELECT + col1 * col0 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 * - col1 * + col2 col0 FROM tab2
----
-134992
-56848
-73656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT + - 74 * col2 FROM tab1 AS cor0
----
-3996
-4218
-7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT col0 DIV CAST( 6 AS SIGNED ) FROM tab2 AS cor0
----
1
13
13

skipif mysql # not compatible
query I rowsort label-80
SELECT col0 / CAST ( 6 AS INTEGER ) FROM tab2 AS cor0
----
1
13
13

query I rowsort
SELECT - 26 FROM tab1, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 + 25 col0 FROM tab1 AS cor0
----
-17
-17
-17

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) + + 56 col0 FROM tab0 cor0
----
-33
21
32

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

query I rowsort
SELECT ALL - ( - 10 ) FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-90
SELECT ALL - ( col1 ) * col0 + CAST( 20 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1020
-58
-620

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL - ( col1 ) * col0 + CAST ( 20 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1020
-58
-620

query I rowsort
SELECT ALL - col2 + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT - 3 + col0 * - col0 FROM tab2 AS cor0
----
-52
-6087
-6244

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab1 cor0
----
25

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

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

skipif mysql # not compatible
query I rowsort label-95
SELECT - col2 / col2 + col1 FROM tab1
----
12
25
9

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

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

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

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

skipif mysql # not compatible
query I rowsort label-99
SELECT + cor0.col0 + + 2 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 * - 92 + ( col0 ) FROM tab1 cor0
----
-4965
-5180
-8752

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

query I rowsort
SELECT - col1 + col0 * + 18 AS col2 FROM tab2 AS cor0
----
1345
1405
95

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 10 * + tab0.col2 * + tab0.col1 FROM tab0
----
28380
74620
970

query I rowsort
SELECT 47 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

query I rowsort
SELECT DISTINCT 53 + + cor0.col0 * - col2 * + col1 + - 11 * + col0 FROM tab0 AS cor0
----
-3727
-665044
-68323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col0 ) - - col2 * - col0 col0 FROM tab2 AS cor0
----
-196
-2106
-3081

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

query I rowsort
SELECT ALL + - 19 + + col0 AS col2 FROM tab2 AS cor0
----
-12
59
60

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

query I rowsort
SELECT DISTINCT col1 * col1 + - col0 AS col2 FROM tab0
----
7372
8192
9374

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-116
SELECT DISTINCT + col1 - - tab0.col2 * tab0.col1 DIV + col0 FROM tab0
----
174
204
99

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT + col1 - - tab0.col2 * tab0.col1 / + col0 FROM tab0
----
174
204
99

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

query I rowsort
SELECT col2 + - tab1.col2 - tab1.col1 * - col1 * - tab1.col1 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT + col2 + + col2 * + tab1.col2 + col1 FROM tab1
----
2996
3316
9325

query I rowsort
SELECT ALL col0 * - col0 AS col2 FROM tab2 WHERE NOT col2 * col0 IN ( tab2.col1 )
----
-49
-6084
-6241

query I rowsort
SELECT ALL col0 * col0 + - col1 + col2 FROM tab1 WHERE + col0 NOT IN ( + col2 )
----
37
4143
6483

query I rowsort
SELECT col2 * col0 + + col2 AS col1 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-123
SELECT ALL + col2 + - col2 DIV + col2 AS col0 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL + col2 + - col2 / + col2 AS col0 FROM tab1
----
53
56
95

query I rowsort
SELECT col2 * - col1 + col1 AS col0 FROM tab2 WHERE NOT col1 * col0 = NULL
----

query I rowsort
SELECT ALL + col1 + col0 - tab2.col0 * col1 AS col0 FROM tab2
----
-1247
-179
-4465

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

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

query I rowsort
SELECT ALL col0 / tab2.col2 FROM tab2 WHERE NOT - tab2.col0 + col2 * - col2 <= NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( - col1 / col0 - col0 )
----

query I rowsort
SELECT tab2.col2 * + col2 * + col1 FROM tab2
----
22599
24548
39884

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

query I rowsort
SELECT col0 * + col0 + - col1 + + col1 * + col1 * col2 FROM tab2
----
17206
25965
96531

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + + col1 * col0 - - col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-3392
-5280
72

query I rowsort
SELECT ALL - tab1.col1 * col0 + + col0 + tab1.col1 FROM tab1
----
-49
-566
-947

onlyif mysql # use DIV operator for integer division
query I rowsort label-140
SELECT + col1 DIV - col0 + col2 * - col2 * - col2 - col2 FROM tab2 AS cor0
----
17550
19652
54834

skipif mysql # not compatible
query I rowsort label-140
SELECT + col1 / - col0 + col2 * - col2 * - col2 - col2 FROM tab2 AS cor0
----
17550
19652
54834

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

skipif mysql # not compatible
query I rowsort label-141
SELECT cor0.col1 + col0 / + col2 AS col1 FROM tab0 AS cor0
----
132
86
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-142
SELECT + col0 DIV 4 + + col0 + col0 FROM tab0
----
200
54
78

skipif mysql # not compatible
query I rowsort label-142
SELECT + col0 / 4 + + col0 + col0 FROM tab0
----
200
54
78

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

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

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

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

query I rowsort
SELECT ALL col0 + 24 * - col1 AS col1 FROM tab0 AS cor0
----
-2040
-2095
-2293

query I rowsort
SELECT DISTINCT col2 + - 76 * - col1 FROM tab0 AS cor0
----
6569
6998
7373

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

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

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

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT 99 / + cor0.col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col0 + + 39 FROM tab1 AS cor0
----
103
119
42

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

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

query I rowsort
SELECT DISTINCT 57 * 67 * col2 FROM tab1 AS cor0
----
206226
217683
366624

query I rowsort
SELECT ALL - ( + 16 ) * col2 * + col0 FROM tab1 AS cor0
----
-122880
-2592
-58368

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

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

query I rowsort
SELECT cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL 45 * ( + cor0.col2 ) FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT col2 - 30 AS col2 FROM tab1
----
24
27
66

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

query I rowsort
SELECT ALL - + col1 * col0 + + ( ( - col2 ) * 86 + col2 ) FROM tab0 cor0
----
-15069
-3480
-4869

onlyif mysql # use DIV operator for integer division
query I rowsort label-162
SELECT 83 * + col0 + col1 DIV col2 FROM tab0
----
1994
3002
7388

skipif mysql # not compatible
query I rowsort label-162
SELECT 83 * + col0 + col1 / col2 FROM tab0
----
1994
3002
7388

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * - col0 ) <= ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * col2 * col2 col0 FROM tab2
----
15884
7436
8019

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT ALL 13 DIV - col2 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-166
SELECT ALL 13 / - col2 col1 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - col0 * col1 * + 18 + cor0.col1 FROM tab2 cor0
----
-24157
-3875
-82777

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-170
SELECT 41 - + tab2.col2 DIV ( col0 ) FROM tab2
----
38
41
41

skipif mysql # not compatible
query I rowsort label-170
SELECT 41 - + tab2.col2 / ( col0 ) FROM tab2
----
38
41
41

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0 cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 49 ) * col2 - col0 col2 FROM tab2 AS cor0
----
1196
1316
1783

query I rowsort
SELECT 90 * - col1 AS col0 FROM tab2 AS cor0
----
-1530
-2790
-5310

query I rowsort
SELECT DISTINCT - 99 * + col2 + + col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-5295
-5650
-9488

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - - col0 * col0 col1 FROM tab0 AS cor0
----
1226
609
8003

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

skipif mysql # not compatible
query I rowsort label-178
SELECT - ( + tab0.col0 ) + - ( ( col0 ) ) / col1 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + 39 + + col1 * - col2 FROM tab1
----
-1209
-1365
-531

query I rowsort
SELECT + 46 + col0 AS col1 FROM tab0
----
135
70
81

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

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

query I rowsort
SELECT DISTINCT - 23 * col1 FROM tab2 cor0
----
-1357
-391
-713

query I rowsort
SELECT + + col1 + col2 * + cor0.col1 * + col1 + cor0.col0 FROM tab1 cor0
----
16317
36533
5774

query I rowsort
SELECT DISTINCT - 24 + - col2 FROM tab0 AS cor0
----
-106
-25
-57

query I rowsort
SELECT - + col2 * - 31 FROM tab1 AS cor0
----
1674
1767
2976

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

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

query I rowsort
SELECT ALL col0 * + 68 + col0 AS col1 FROM tab1 AS cor0
----
207
4416
5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-189
SELECT ALL - col2 * col1 DIV - col0 FROM tab1 AS cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL - col2 * col1 / - col0 FROM tab1 AS cor0
----
15
468
8

query I rowsort
SELECT - col2 * - ( - cor0.col0 * col2 ) AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + col1 * + 26 FROM tab1 AS cor0
----
260
338
676

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

query I rowsort
SELECT DISTINCT cor0.col1 * - 37 * + col1 AS col0 FROM tab1 AS cor0
----
-25012
-3700
-6253

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

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

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

query I rowsort
SELECT DISTINCT + col0 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - - cor0.col2 * 17 AS col1 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT - col2 * 15 FROM tab0 AS cor0
----
-1230
-15
-495

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE NULL IN ( tab1.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT ALL col2 DIV col0 + + col2 * col2 + + col2 FROM tab2 AS cor0
----
1482
702
759

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL col2 / col0 + + col2 * col2 + + col2 FROM tab2 AS cor0
----
1482
702
759

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT col0 / + col1 col2 FROM tab2
----
0
1
4

query I rowsort
SELECT - + col2 * - col2 + col1 + - col2 FROM tab0 AS cor0
----
1142
6733
97

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 * + col0 * - col2 + col2 col0 FROM tab0
----
-116686
-12639
-559

query I rowsort
SELECT - ( 10 ) AS col1 FROM tab2
----
-10
-10
-10

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

query I rowsort
SELECT ALL 95 * tab2.col1 AS col2 FROM tab2
----
1615
2945
5605

query I rowsort
SELECT ALL + 54 AS col2 FROM tab0
----
54
54
54

query I rowsort
SELECT DISTINCT - col0 * - col0 + + col1 * + col2 AS col1 FROM tab2 cor0
----
6887
7618
886

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-219
SELECT DISTINCT 15 * col2 DIV + col1 FROM tab1 cor0
----
110
31
85

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT 15 * col2 / + col1 FROM tab1 cor0
----
110
31
85

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

query I rowsort
SELECT - + 22 * col0 * + col0 FROM tab2 cor0
----
-1078
-133848
-137302

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

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

query I rowsort
SELECT DISTINCT - + 14 AS col1 FROM tab0 AS cor0
----
-14

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-226
SELECT ALL tab2.col2 * CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to bf0d47ae26a3f9220ea7f127466fd7da

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL tab2.col2 * CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to bf0d47ae26a3f9220ea7f127466fd7da

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

query I rowsort
SELECT ALL col0 * 9 * cor0.col0 AS col0 FROM tab0 AS cor0
----
11025
5184
71289

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

query I rowsort
SELECT + 95 * - col0 + + col2 + + col0 FROM tab0
----
-2223
-3289
-8284

onlyif mysql # use DIV operator for integer division
query I rowsort label-231
SELECT DISTINCT + 4 DIV - col0 + - col1 * tab2.col0 - - col2 FROM tab2
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + 4 / - col0 + - col1 * tab2.col0 - - col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col1 + col2 * col1 - col2 FROM tab0
----
193
2891
7471

onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT ALL + ( + 79 ) DIV col0 + + col0 - - col0 * + cor0.col0 FROM tab1 AS cor0
----
38
4161
6480

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + ( + 79 ) / col0 + + col0 - - col0 * + cor0.col0 FROM tab1 AS cor0
----
38
4161
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 24 ) * col1 col0 FROM tab1 AS cor0
----
-240
-312
-624

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

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

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

query I rowsort
SELECT ALL + + 58 + + cor0.col0 * - col1 FROM tab1 AS cor0
----
-20
-582
-982

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 * + 36 + col0 col0 FROM tab0 AS cor0
----
1284
1295
1349

query I rowsort
SELECT ALL + 17 FROM tab1, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT ALL col2 DIV tab2.col0 AS col1 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL col2 / tab2.col0 AS col1 FROM tab2
----
0
0
3

query I rowsort
SELECT ALL + 78 * - cor0.col2 + 34 FROM tab0 AS cor0
----
-2540
-44
-6362

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-248
SELECT ALL + col2 * col0 DIV col0 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL + col2 * col0 / col0 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT + 1 - tab1.col1 * tab1.col0 AS col2 FROM tab1
----
-1039
-639
-77

query I rowsort
SELECT ALL + + 84 - cor0.col1 AS col0 FROM tab2 AS cor0
----
25
53
67

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

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT - 61 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
2
4
6

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

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

query I rowsort
SELECT ALL + 63 + - col1 AS col1 FROM tab2 AS cor0
----
32
4
46

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 + - ( 17 ) col1 FROM tab0 AS cor0
----
18
7281
775

query I rowsort
SELECT DISTINCT 57 * col0 + + cor0.col1 FROM tab0 AS cor0
----
1454
2092
5164

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

query I rowsort
SELECT ALL 23 * + cor0.col2 + col0 * + col0 FROM tab2 AS cor0
----
6682
670
7115

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

query I rowsort
SELECT - 26 FROM tab2, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + cor0.col1 * col1 col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-268
SELECT cor0.col1 * col0 + - col0 * col2 + - CAST ( - 72 AS INTEGER ) AS col2 FROM tab1 cor0
----
-12
-2936
-6568

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

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

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

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

query I rowsort
SELECT ALL 23 + + cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to d3d8ce4e6f3adca6a8d763a963674e12

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

query I rowsort
SELECT 62 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

query I rowsort
SELECT DISTINCT - + 31 + + col1 * col1 FROM tab2 AS cor0
----
258
3450
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-276
SELECT ALL + - col1 + col2 DIV col0 FROM tab2 cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL + - col1 + col2 / col0 FROM tab2 cor0
----
-17
-28
-59

query I rowsort
SELECT + - col1 * ( 46 ) AS col1 FROM tab1 AS cor0
----
-1196
-460
-598

query I rowsort
SELECT DISTINCT - col1 * col1 - 95 AS col2 FROM tab0 AS cor0
----
-7491
-8376
-9504

query I rowsort
SELECT - col1 + 23 AS col1 FROM tab2 AS cor0
----
-36
-8
6

query I rowsort
SELECT ALL - col0 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - col2 + - 14 FROM tab1 AS cor0
----
-110
-68
-71

query I rowsort
SELECT DISTINCT - - col2 + + ( 81 ) * col1 AS col2 FROM tab1 AS cor0
----
1149
2160
867

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

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL col0 + CAST ( + col0 * col2 AS INTEGER ) + CAST ( 58 + col0 AS INTEGER ) FROM tab1 AS cor0
----
226
3834
7898

query I rowsort
SELECT ALL + col2 + 29 FROM tab2 AS cor0
----
55
56
67

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

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( col0 AS REAL ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT tab0.col0 * 51 * + tab0.col2 FROM tab0
----
1785
372198
40392

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

query I rowsort
SELECT col2 * - col1 + ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
-1326
-208
70

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

query I rowsort
SELECT - col0 * + col2 + + tab0.col1 + + 20 FROM tab0
----
-686
-7187
82

query I rowsort
SELECT + 82 * - 54 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to eb7c716be1d8135ed725c71804d5e00c

query I rowsort
SELECT tab0.col0 * col1 * - col1 FROM tab0
----
-177504
-329315
-737009

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

query I rowsort
SELECT 13 * tab0.col1 FROM tab0
----
1118
1183
1261

query I rowsort
SELECT DISTINCT - + 38 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1330
3382
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-297
SELECT DISTINCT + + col0 DIV col0 + + 15 AS col0 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT + + col0 / col0 + + 15 AS col0 FROM tab2 AS cor0
----
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT ALL - 21 DIV col2 + + 36 * + col1 FROM tab0 AS cor0
----
3096
3276
3471

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - 21 / col2 + + 36 * + col1 FROM tab0 AS cor0
----
3096
3276
3471

query I rowsort
SELECT DISTINCT + 83 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
83

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

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

query I rowsort
SELECT col2 + - 73 AS col1 FROM tab0 AS cor0
----
-40
-72
9

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

query I rowsort
SELECT + cor2.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + col0 * col2 + + col1 + 11 FROM tab0 AS cor0
----
143
7400
889

query I rowsort
SELECT - 55 + ( - col0 ) FROM tab2 cor0
----
-133
-134
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT - 31 DIV 21 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-308
SELECT - 31 / 21 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT - - ( + col0 ) + - ( col2 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-309
SELECT - - ( + col0 ) + - ( col2 ) / + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT + cor0.col2 * col0 + ( 55 ) * col2 - - col0 FROM tab1 AS cor0
----
13040
3135
6847

query I rowsort
SELECT col0 + cor0.col0 + 36 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
23414
30146
55380

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

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

query I rowsort
SELECT - ( col2 ) * - 81 + col0 * col1 AS col0 FROM tab1 AS cor0
----
4452
5257
8816

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-315
SELECT ALL + CAST ( NULL AS REAL ) + 32 col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + 60 - col2 FROM tab0 cor0
----
-142
-61
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-318
SELECT col0 + CAST( - col0 AS SIGNED ) * col0 AS col1 FROM tab2
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-318
SELECT col0 + CAST ( - col0 AS INTEGER ) * col0 AS col1 FROM tab2
----
-42
-6006
-6162

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

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

query I rowsort
SELECT ALL - - col2 * - 3 + - col1 * col1 * col2 AS col2 FROM tab2 AS cor0
----
-11096
-26028
-90584

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

query I rowsort
SELECT DISTINCT - col2 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

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

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT - CAST ( 78 AS INTEGER ) FROM tab1 AS cor0
----
-78

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

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

query I rowsort
SELECT DISTINCT + 65 + 57 FROM tab2 AS cor0
----
122

query I rowsort
SELECT + + 16 + cor0.col0 AS col2 FROM tab1 AS cor0
----
19
80
96

query I rowsort
SELECT DISTINCT ( 60 ) * col2 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT DISTINCT - + 91 + col0 FROM tab0 AS cor0
----
-2
-56
-67

query I rowsort
SELECT - 15 + - col1 FROM tab1 AS cor0
----
-25
-28
-41

query I rowsort
SELECT DISTINCT 50 + col1 * col1 FROM tab2 AS cor0
----
1011
339
3531

query I rowsort
SELECT ALL + col2 * + ( ( col1 ) + col1 ) FROM tab2
----
1292
1674
3068

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - cor0.col2 * cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-335
SELECT + 24 * col0 + - CAST( + cor0.col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-2560
-4480
63

skipif mysql # not compatible
query I rowsort label-335
SELECT + 24 * col0 + - CAST ( + cor0.col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-2560
-4480
63

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

query I rowsort
SELECT 5 + - col0 FROM tab2 AS cor0
----
-2
-73
-74

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

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

query I rowsort
SELECT DISTINCT + + col2 + col2 + 30 FROM tab1 AS cor0
----
138
144
222

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-341
SELECT tab1.col2 DIV + 71 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-341
SELECT tab1.col2 / + 71 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

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

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

query I rowsort
SELECT DISTINCT - col0 * - 97 * col2 AS col0 FROM tab2 AS cor0
----
18333
196716
291194

query I rowsort
SELECT DISTINCT - col0 * - col0 * 7 + col0 AS col2 FROM tab1 cor0
----
28736
44880
66

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

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

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

query I rowsort
SELECT - col0 * 50 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-124
-3190
-3987

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

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

query I rowsort
SELECT + col2 * col1 * + col0 + + col1 FROM tab1 AS cor0
----
36490
4238
99853

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

query I rowsort
SELECT ALL cor0.col2 - - 63 AS col2 FROM tab2 AS cor0
----
101
89
90

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

query I rowsort
SELECT ALL + col2 * + 38 - + col1 * - col0 FROM tab0 AS cor0
----
11215
3318
3433

query I rowsort
SELECT ALL - col0 * 8 * 60 + col0 AS col2 FROM tab0 AS cor0
----
-11496
-16765
-42631

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

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

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

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT col0 / + col2 + - col1 FROM tab1
----
-13
-26
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + + col0 * - col0 col1 FROM tab0 cor0
----
-1260
-600
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + + col0 col2 FROM tab1
----
114
37
98

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

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

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT + - col0 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-34
-7
9

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

query I rowsort
SELECT ALL + 67 + + col0 - col2 FROM tab1
----
16
51
74

query I rowsort
SELECT - cor0.col2 * + cor0.col0 * - col0 + + 18 FROM tab2 AS cor0
----
1341
158202
237176

query I rowsort
SELECT ALL 16 * cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
10336
13392
24544

onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT - col1 * - ( col0 ) DIV + col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-367
SELECT - col1 * - ( col0 ) / + col0 FROM tab2
----
17
31
59

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

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

query I rowsort
SELECT ALL + col0 * tab0.col0 + + col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT - + 22 AS col1 FROM tab0, tab1 cor0, tab2 cor1, tab2, tab2 AS cor2
----
243 values hashing to c376f9b42c4dffd278b22df819afbc8d

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-373
SELECT + col2 + tab1.col2 + CAST( col0 AS SIGNED ) FROM tab1
----
111
178
272

skipif mysql # not compatible
query I rowsort label-373
SELECT + col2 + tab1.col2 + CAST ( col0 AS INTEGER ) FROM tab1
----
111
178
272

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-375
SELECT - cor0.col0 * col1 DIV ( + cor0.col2 ) + col0 * 88 DIV - col0 AS col2 FROM tab0 AS cor0
----
-150
-186
-3483

skipif mysql # not compatible
query I rowsort label-375
SELECT - cor0.col0 * col1 / ( + cor0.col2 ) + col0 * 88 / - col0 AS col2 FROM tab0 AS cor0
----
-150
-186
-3483

query I rowsort
SELECT DISTINCT + 57 + col0 AS col0 FROM tab2 AS cor0
----
135
136
64

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

query I rowsort
SELECT - 71 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT DISTINCT col2 + col2 * - col0 * 73 FROM tab2 AS cor0
----
-13770
-148018
-219108

query I rowsort
SELECT DISTINCT + 36 * + col2 AS col2 FROM tab0 AS cor0
----
1188
2952
36

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-383
SELECT - cor0.col2 + - col2 + col2 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-110
-119
-199

skipif mysql # not compatible
query I rowsort label-383
SELECT - cor0.col2 + - col2 + col2 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-110
-119
-199

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

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

query I rowsort
SELECT 1 * 16 FROM tab1 AS cor0
----
16
16
16

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

query I rowsort
SELECT ALL - col0 - 69 FROM tab0 AS cor0
----
-104
-158
-93

query I rowsort
SELECT ALL 37 FROM tab2 cor0
----
37
37
37

query I rowsort
SELECT DISTINCT 99 * col2 * - col0 FROM tab1 AS cor0
----
-16038
-361152
-760320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + col1 col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT - 35 * + col1 * + 68 FROM tab1 AS cor0
----
-23800
-30940
-61880

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

query I rowsort
SELECT col2 * - col1 * + col0 + - col1 AS col1 FROM tab1
----
-36490
-4238
-99853

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-396
SELECT cor0.col0 + CAST( + 75 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
110
164
99

skipif mysql # not compatible
query I rowsort label-396
SELECT cor0.col0 + CAST ( + 75 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
110
164
99

query I rowsort
SELECT - 61 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1164
515
7860

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

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

query I rowsort
SELECT DISTINCT col0 * - col2 * + 10 + col0 + 5 * + col1 AS col2 FROM tab2
----
-1728
-19907
-29856

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

query I rowsort
SELECT col0 * + 76 FROM tab0
----
1824
2660
6764

query I rowsort
SELECT + 82 * ( + col2 ) + + 56 * - col1 FROM tab1 AS cor0
----
2972
4114
7144

skipif mysql # not compatible
query I rowsort
SELECT - - ( + ( + col1 ) ) * - CAST ( + col1 AS REAL ) * col1 + + CAST ( col2 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-205327
-29737
-4837

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

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

query I rowsort
SELECT tab2.col0 * col1 * + 20 FROM tab2
----
26860
4340
92040

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

skipif mysql # not compatible
query I rowsort label-408
SELECT - CAST ( ( - col1 ) AS INTEGER ) * + col1 * col2 FROM tab0
----
244068
679042
9409

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

query I rowsort
SELECT ALL - 7 * - tab1.col2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 1632409865597eaf1fd6aad8b3e03b28

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

query I rowsort
SELECT DISTINCT cor0.col0 * - 61 FROM tab1, tab1 cor0
----
-183
-3904
-4880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 * + col0 - col0 col1 FROM tab2
----
21
234
237

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

query I rowsort
SELECT DISTINCT - 46 - + col2 * - col0 FROM tab2
----
143
1982
2956

query I rowsort
SELECT ALL - col2 * + col2 - col1 FROM tab0
----
-1175
-6815
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-417
SELECT cor0.col1 DIV - 21 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

skipif mysql # not compatible
query I rowsort label-417
SELECT cor0.col1 / - 21 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa

query I rowsort
SELECT ALL ( - col1 + col0 ) * 93 FROM tab1
----
-2139
5022
6231

query I rowsort
SELECT 49 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT ALL - 28 AS col0 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - col0 * 79 * - col2 FROM tab2 AS cor0
----
14931
160212
237158

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

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

query I rowsort
SELECT + col0 * - 76 FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT + cor0.col2 * 19 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT DISTINCT col1 * col1 + col2 + col1 FROM tab1 AS cor0
----
167
278
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-427
SELECT ALL - col1 DIV + col2 + col2 * col2 AS col2 FROM tab0 cor0
----
-96
1087
6723

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - col1 / + col2 + col2 * col2 AS col2 FROM tab0 cor0
----
-96
1087
6723

query I rowsort
SELECT DISTINCT + tab1.col2 * col2 * + col2 + - col0 * + col1 FROM tab1
----
157386
184553
883696

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

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

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

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

query I rowsort
SELECT - tab0.col2 * + col2 + - col2 + col1 AS col2 FROM tab0
----
-1036
-6715
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE - col1 <> ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-435
SELECT - col2 / tab2.col1 AS col2 FROM tab2
----
-2
0
0

query I rowsort
SELECT tab2.col0 FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN NULL AND col0 / col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-437
SELECT - col2 + + col1 * + col0 DIV col0 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-437
SELECT - col2 + + col1 * + col0 / col0 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * col1 + + col1 col1 FROM tab0 AS cor0
----
2183
3493
8272

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT cor0.col1 / - cor0.col1 + cor0.col2 col1 FROM tab1 cor0
----
53
56
95

query I rowsort
SELECT DISTINCT col1 * col1 * + col2 + col2 * col1 FROM tab0 AS cor0
----
246906
686504
9506

query I rowsort
SELECT DISTINCT col0 * col1 + + col0 * + col0 * + col0 AS col0 FROM tab1 cor0
----
105
262784
513040

onlyif mysql # use DIV operator for integer division
query I rowsort label-442
SELECT col0 * + tab0.col0 + + col0 + + col2 DIV col0 FROM tab0
----
1260
601
8010

skipif mysql # not compatible
query I rowsort label-442
SELECT col0 * + tab0.col0 + + col0 + + col2 / col0 FROM tab0
----
1260
601
8010

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( - cor0.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-444
SELECT ALL col0 * col2 + + col1 DIV col1 - + col2 * + col2 AS col0 FROM tab2
----
-539
1353
1559

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL col0 * col2 + + col1 / col1 - + col2 * + col2 AS col0 FROM tab2
----
-539
1353
1559

query I rowsort
SELECT DISTINCT + col2 + - col2 - - col1 * col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT - col2 * tab1.col2 DIV col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-446
SELECT - col2 * tab1.col2 / col2 FROM tab1
----
-54
-57
-96

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

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

query I rowsort
SELECT - col1 * + cor0.col1 + + col0 * - col2 AS col2 FROM tab1 cor0
----
-3748
-7849
-838

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * + col2 + + col2 col2 FROM tab2 AS cor0
----
-1406
-650
-702

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

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

query I rowsort
SELECT + 67 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT ALL tab2.col2 * - tab2.col1 * 50 + tab2.col1 AS col1 FROM tab2
----
-32283
-41819
-76641

query I rowsort
SELECT ALL - - ( col1 ) * + 13 AS col2 FROM tab2 AS cor0
----
221
403
767

query I rowsort
SELECT + - col2 * + col1 - ( 74 ) * col1 AS col2 FROM tab0 AS cor0
----
-14196
-7275
-9202

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 35 AS col1 FROM tab1 cor0
----
-105
-2240
-2800

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

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

query I rowsort
SELECT ALL - - col1 + - ( 80 ) * cor0.col0 FROM tab0 AS cor0
----
-1834
-2703
-7029

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

query I rowsort
SELECT col1 + col0 + col1 AS col0 FROM tab0 AS cor0
----
196
229
271

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-473
SELECT + col0 * tab2.col0 * CAST( - col2 AS SIGNED ) + + col2 * + tab2.col0 FROM tab2
----
-1134
-156156
-234156

skipif mysql # not compatible
query I rowsort label-473
SELECT + col0 * tab2.col0 * CAST ( - col2 AS INTEGER ) + + col2 * + tab2.col0 FROM tab2
----
-1134
-156156
-234156

query I rowsort
SELECT 94 AS col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT col2 + - tab1.col0 AS col0 FROM tab1 WHERE col2 >= col1
----
-7
16
51

query I rowsort
SELECT - tab0.col1 + - col1 * col1 AS col0 FROM tab0
----
-7482
-8372
-9506

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-478
SELECT + col1 DIV - col0 AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-478
SELECT + col1 / - col0 AS col0 FROM tab0
----
-1
-2
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 - col2 * col2 * col2 col1 FROM tab1
----
-158868
-185763
-885984

onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT + col0 - - col0 * tab0.col1 DIV col1 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-482
SELECT + col0 - - col0 * tab0.col1 / col1 FROM tab0
----
178
48
70

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

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

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

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

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

query I rowsort
SELECT col2 * col0 + + ( + 24 * + col2 ) AS col2 FROM tab2 AS cor0
----
2652
3914
837

query I rowsort
SELECT ALL - col2 + col2 * + col1 + col0 FROM tab2
----
1586
687
817

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

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

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

query I rowsort
SELECT - col1 + - col0 + col2 AS col0 FROM tab0
----
-131
-77
-98

query I rowsort
SELECT DISTINCT col1 * tab0.col2 - + col1 FROM tab0
----
0
2752
7371

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

query I rowsort
SELECT ALL - 77 + + col1 AS col1 FROM tab0
----
14
20
9

query I rowsort
SELECT 66 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT - col2 * ( - col0 ) + - col0 * + cor0.col1 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT - 47 * col0 AS col0 FROM tab2
----
-329
-3666
-3713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * col0 col0 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT + cor0.col0 * - col0 + 71 * - col2 AS col1 FROM tab0 AS cor0
----
-1296
-13743
-2919

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( + 78 * cor0.col0 AS REAL ) FROM tab1 AS cor0
----
260
5002
6253

query I rowsort
SELECT - + cor0.col2 + - col2 * + 35 * - col1 AS col1 FROM tab0 AS cor0
----
261088
3394
99297

query I rowsort
SELECT - + col2 * 96 + + col1 AS col2 FROM tab0 AS cor0
----
-3082
-7781
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 + + 71 col0 FROM tab1 AS cor0
----
233
3719
7751

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

query I rowsort
SELECT + - 18 AS col0 FROM tab2 cor0
----
-18
-18
-18

query I rowsort
SELECT ALL - col2 * 12 AS col2 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT + + 45 * col2 FROM tab0 AS cor0
----
1485
3690
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * col1 col0 FROM tab2 cor0
----
1581
2883
5487

query I rowsort
SELECT DISTINCT + ( - 77 ) * - col2 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT ALL - col0 * 78 + col0 * 53 FROM tab1 AS cor0
----
-1600
-2000
-75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT - col2 / 80 col2 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL + 49 * 78 + + col2 FROM tab2 cor0
----
3848
3849
3860

query I rowsort
SELECT DISTINCT - 39 * col0 FROM tab0 AS cor0
----
-1365
-3471
-936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-515
SELECT ALL - ( col2 ) + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - ( col2 ) + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - 23 * col1 AS col2 FROM tab1
----
-230
-299
-598

query I rowsort
SELECT - 48 * + col1 AS col2 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT + - col2 * - cor0.col1 * 94 FROM tab0 AS cor0
----
266772
701428
9118

onlyif mysql # use DIV operator for integer division
query I rowsort label-519
SELECT - 61 DIV col0 AS col1 FROM tab2 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-519
SELECT - 61 / col0 AS col1 FROM tab2 cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * + col0 + - col1 col0 FROM tab2 AS cor0
----
151
1969
2037

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + col1 * + col1 FROM tab2 AS cor0
----
1922
578
6962

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-523
SELECT + col2 / col0 col0 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + + cor0.col0 * + cor0.col2 * cor0.col2 AS col0 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT + 75 + col1 FROM tab2 AS cor0
----
106
134
92

query I rowsort
SELECT - 18 * - col1 + cor0.col1 FROM tab1 cor0
----
190
247
494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-527
SELECT - CAST( - 46 AS SIGNED ) + col2 AS col1 FROM tab1 cor0
----
100
103
142

skipif mysql # not compatible
query I rowsort label-527
SELECT - CAST ( - 46 AS INTEGER ) + col2 AS col1 FROM tab1 cor0
----
100
103
142

query I rowsort
SELECT ALL col1 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + col0 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + + 77 * col2 + cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-1148
-20
-297

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

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

query I rowsort
SELECT + 51 + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1292
-166
-4551

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

query I rowsort
SELECT ALL ( 6 ) AS col0 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + 2 + + col2 * + col0 FROM tab0 cor0
----
37
7300
794

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

query I rowsort
SELECT - - 6 + - col2 FROM tab1 AS cor0
----
-48
-51
-90

query I rowsort
SELECT ALL + ( - 88 ) * col2 + tab2.col0 * - 53 FROM tab2
----
-2747
-6422
-7531

query I rowsort
SELECT DISTINCT - - col0 + + col2 * ( col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT + - 40 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 01aad4539198a6509248e086869f90a6

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

query I rowsort
SELECT + 99 AS col2 FROM tab1
----
99
99
99

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

query I rowsort
SELECT ALL col2 + + 52 * col2 FROM tab2
----
1378
1431
2014

query I rowsort
SELECT - cor0.col0 * - tab2.col2 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 902505fbcf7f17c64fec98cb613bf3ef

query I rowsort
SELECT DISTINCT col0 * 79 - cor0.col1 AS col1 FROM tab1 AS cor0
----
211
5046
6307

query I rowsort
SELECT DISTINCT - col1 + col2 * cor0.col2 * - col1 FROM tab2 AS cor0
----
-22630
-24565
-39943

query I rowsort
SELECT ALL - col0 * 82 FROM tab0 AS cor0
----
-1968
-2870
-7298

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

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

query I rowsort
SELECT col1 * col0 + - 80 * + col1 FROM tab0
----
-4365
-4816
819

query I rowsort
SELECT + col0 - + col2 * ( col2 + + col1 ) FROM tab0
----
-14097
-3903
-63

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

query I rowsort
SELECT - 69 - - tab2.col0 * 8 FROM tab2
----
-13
555
563

query I rowsort
SELECT - + 65 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

query I rowsort
SELECT + col2 + col0 * 5 + tab1.col1 FROM tab1
----
387
509
95

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

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

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

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

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

query I rowsort
SELECT ALL col2 + ( + col2 ) + col1 FROM tab1 AS cor0
----
124
134
205

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * CAST ( + col0 AS REAL ) - + col2 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL cor0.col0 * col1 + + 39 * cor0.col2 AS col1 FROM tab0 AS cor0
----
11297
3351
3434

query I rowsort
SELECT col0 + col2 * 84 AS col2 FROM tab1 cor0
----
4539
4852
8144

query I rowsort
SELECT + col0 * col0 + ( col1 ) * col0 * col2 FROM tab0 AS cor0
----
4620
672039
68688

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

query I rowsort
SELECT DISTINCT - col2 + - col1 - col2 * + col2 FROM tab1
----
-2996
-3316
-9325

query I rowsort
SELECT + col1 + - 87 AS col1 FROM tab2
----
-28
-56
-70

query I rowsort
SELECT col2 * - 70 AS col2 FROM tab0 AS cor0
----
-2310
-5740
-70

query I rowsort
SELECT - 55 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

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

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

query I rowsort
SELECT ALL 43 * + 43 FROM tab2 AS cor0
----
1849
1849
1849

onlyif mysql # use DIV operator for integer division
query I rowsort label-574
SELECT col0 DIV - ( + cor0.col1 ) + + ( + cor0.col1 ) - col2 * col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-574
SELECT col0 / - ( + cor0.col1 ) + + ( + cor0.col1 ) - col2 * col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - col0 * + ( + col0 ) * + 42 + col0 AS col1 FROM tab0 AS cor0
----
-24168
-332593
-51415

query I rowsort
SELECT DISTINCT ( + 60 ) * col1 AS col1 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT ALL + ( 45 ) AS col0 FROM tab0 cor0
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT + + col1 + col0 + + cor0.col0 DIV - 90 AS col1 FROM tab2 cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-578
SELECT + + col1 + col0 + + cor0.col0 / - 90 AS col1 FROM tab2 cor0
----
137
38
96

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

query I rowsort
SELECT ALL + cor0.col1 + 39 AS col2 FROM tab2 AS cor0
----
56
70
98

query I rowsort
SELECT DISTINCT col2 - ( + 41 ) AS col1 FROM tab0
----
-40
-8
41

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

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

query I rowsort
SELECT ALL 46 * - cor0.col0 + col1 + col2 FROM tab2 cor0
----
-264
-3503
-3579

query I rowsort
SELECT - + 7 * col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-22
-515
-520

onlyif mysql # use DIV operator for integer division
query I rowsort label-586
SELECT ALL + col2 + col1 DIV - CAST( cor0.col2 AS SIGNED ) FROM tab1 cor0
----
54
57
96

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

query I rowsort
SELECT DISTINCT + - col1 + col0 * 61 FROM tab0 AS cor0
----
1378
2038
5338

query I rowsort
SELECT DISTINCT - - 3 * - col1 AS col1 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT ALL + 18 * col0 + - col1 AS col2 FROM tab1 cor0
----
1142
1427
28

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 31 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1279
1435
601

onlyif mysql # use DIV operator for integer division
query I rowsort label-596
SELECT ALL col0 DIV col0 + + col1 - + 55 FROM tab2 AS cor0
----
-23
-37
5

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL col0 / col0 + + col1 - + 55 FROM tab2 AS cor0
----
-23
-37
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT ALL - - col1 DIV col0 + - ( 5 + cor0.col1 ) FROM tab1 AS cor0
----
-15
-18
-23

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL - - col1 / col0 + - ( 5 + cor0.col1 ) FROM tab1 AS cor0
----
-15
-18
-23

query I rowsort
SELECT DISTINCT + 84 * - col1 FROM tab1 cor0
----
-1092
-2184
-840

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

query I rowsort
SELECT + 10 * col2 AS col1 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT ALL col2 * ( + 27 + col1 * ( - 72 ) ) FROM tab1 AS cor0
----
-39501
-87264
-99630

query I rowsort
SELECT - cor0.col2 + - 89 FROM tab2 AS cor0
----
-115
-116
-127

query I rowsort
SELECT + + col2 + - col2 * ( cor0.col2 + - 79 * cor0.col0 ) AS col2 FROM tab2 AS cor0
----
14229
159562
235752

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

query I rowsort
SELECT col0 + - col0 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
-336
-474474
-492960

query I rowsort
SELECT - col2 - - col2 * 8 * - col0 FROM tab0
----
-281
-58466
-6369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * 84 * + col0 col2 FROM tab0 AS cor0
----
102997
48470
665455

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-608
SELECT - col2 / + col0 col1 FROM tab2
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-609
SELECT ALL 26 DIV col0 + ( col2 ) FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL 26 / col0 + ( col2 ) FROM tab0 AS cor0
----
1
34
82

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-612
SELECT DISTINCT - cor0.col2 DIV col1 col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT - cor0.col2 / col1 col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + cor0.col1 + - 17 AS col0 FROM tab2 cor0
----
0
14
42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-614
SELECT - col2 * CAST ( - col2 AS INTEGER ) + + cor0.col1 col1 FROM tab0 AS cor0
----
1175
6815
98

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

query I rowsort
SELECT ALL - 72 * 79 AS col0 FROM tab0 cor0
----
-5688
-5688
-5688

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

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

query I rowsort
SELECT ( 75 ) * col1 + + col0 * - 74 FROM tab2 cor0
----
-1347
-4571
1807

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
10
13
26

query I rowsort
SELECT 89 + col2 FROM tab1 AS cor0
----
143
146
185

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

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL - + 83 + - col1 * + col1 FROM tab2 AS cor0
----
-1044
-3564
-372

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

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

query I rowsort
SELECT DISTINCT + col0 * - col1 + + col2 * col2 FROM tab0 AS cor0
----
-1375
-3394
-975

onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT ALL - cor0.col1 * col2 DIV 13 FROM tab0 AS cor0
----
-218
-574
-7

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL - cor0.col1 * col2 / 13 FROM tab0 AS cor0
----
-218
-574
-7

query I rowsort
SELECT - col1 * 95 FROM tab2 cor0
----
-1615
-2945
-5605

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

query I rowsort
SELECT ( cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + 57 + col1 * 15 * - col2 AS col2 FROM tab0
----
-111873
-1398
-42513

query I rowsort
SELECT - col2 * - 22 + + 60 + - col2 FROM tab1 AS cor0
----
1194
1257
2076

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-633
SELECT - + col0 DIV col0 + col1 * col1 + - col2 FROM tab2 cor0
----
250
3454
933

skipif mysql # not compatible
query I rowsort label-633
SELECT - + col0 / col0 + col1 * col1 + - col2 FROM tab2 cor0
----
250
3454
933

query I rowsort
SELECT DISTINCT tab1.col0 * 15 * 69 FROM tab1
----
3105
66240
82800

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

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

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

query I rowsort
SELECT col2 + - col2 * 77 FROM tab2
----
-1976
-2052
-2888

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

query I rowsort
SELECT ALL + 34 * + col1 * + cor0.col2 FROM tab0 cor0
----
253708
3298
96492

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-641
SELECT DISTINCT + - col2 DIV cor0.col2 FROM tab0 AS cor0
----
-1

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

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

query I rowsort
SELECT - 27 * - cor0.col0 AS col2 FROM tab0 cor0
----
2403
648
945

query I rowsort
SELECT ALL + col2 + - col2 * + ( - ( col2 ) * 2 ) FROM tab0 AS cor0
----
13530
2211
3

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

query I rowsort
SELECT ALL col2 * col1 + 91 * - cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
-330
-936
78

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-650
SELECT - + col0 DIV 70 + - col0 * col1 FROM tab0 AS cor0
----
-2064
-3395
-8100

skipif mysql # not compatible
query I rowsort label-650
SELECT - + col0 / 70 + - col0 * col1 FROM tab0 AS cor0
----
-2064
-3395
-8100

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

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

query I rowsort
SELECT - col2 + ( 53 ) AS col2 FROM tab0 AS cor0
----
-29
20
52

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

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

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

query I rowsort
SELECT col2 + + 3 * col2 AS col0 FROM tab0 AS cor0
----
132
328
4

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

query I rowsort
SELECT DISTINCT col1 + 24 FROM tab1 AS cor0
----
34
37
50

query I rowsort
SELECT DISTINCT - 14 * col0 + + col1 AS col0 FROM tab2 AS cor0
----
-1033
-1089
-67

query I rowsort
SELECT ALL + 91 + col2 FROM tab2 cor0
----
117
118
129

query I rowsort
SELECT ALL - col1 + 53 AS col0 FROM tab0 AS cor0
----
-33
-38
-44

query I rowsort
SELECT ALL 90 - - col0 * col2 FROM tab2 cor0
----
2118
279
3092

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( - 90 + tab1.col1 ) FROM tab1
----
-64
-77
-80

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

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

query I rowsort
SELECT col0 + 83 * col2 AS col2 FROM tab2
----
2236
2248
3233

onlyif mysql # use DIV operator for integer division
query I rowsort label-669
SELECT tab2.col1 DIV cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f331dbf252585f7005c5e0999bed5419

skipif mysql # not compatible
query I rowsort label-669
SELECT tab2.col1 / cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f331dbf252585f7005c5e0999bed5419

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT ALL + + col1 + cor0.col2 DIV + ( cor0.col1 ) AS col2 FROM tab1 cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL + + col1 + cor0.col2 / + ( cor0.col1 ) AS col2 FROM tab1 cor0
----
15
20
28

query I rowsort
SELECT ALL cor0.col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - - 26 AS col1 FROM tab0 cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + 78 + tab2.col0 FROM tab2
----
156
157
85

query I rowsort
SELECT DISTINCT cor0.col1 * + tab2.col0 FROM tab2, tab1, tab0 AS cor0
----
9 values hashing to 7bf5e0e3ec1be8bea20f7ba84b6c99c3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 + + cor0.col1 * 47 col2 FROM tab1 AS cor0
----
1275
523
664

query I rowsort
SELECT DISTINCT + 56 * + col0 AS col1 FROM tab2 AS cor0
----
392
4368
4424

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-683
SELECT ALL tab0.col1 + + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL tab0.col1 + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL col2 + + ( col2 ) FROM tab1
----
108
114
192

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

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

query I rowsort
SELECT ( 75 ) FROM tab0, tab0 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL - col1 * + col2 - - 64 AS col2 FROM tab1 AS cor0
----
-1184
-1340
-506

query I rowsort
SELECT ALL col1 + 1 FROM tab1
----
11
14
27

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

query I rowsort
SELECT ALL col0 * col1 + col0 * col1 * 90 + + col0 FROM tab0
----
187848
308980
737098

query I rowsort
SELECT DISTINCT + ( + 84 ) * - col2 - - col1 FROM tab1 AS cor0
----
-4510
-4778
-8051

query I rowsort
SELECT 70 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1190
2170
4130

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

query I rowsort
SELECT - col1 * 86 + col0 FROM tab1 AS cor0
----
-1038
-2233
-796

query I rowsort
SELECT ALL + 59 + + col1 AS col0 FROM tab2 cor0
----
118
76
90

query I rowsort
SELECT + col0 * col0 + + col0 * + col2 FROM tab0
----
1260
1368
15219

query I rowsort
SELECT DISTINCT - + cor0.col1 + + ( + cor0.col2 + - 35 ) * + 97 FROM tab2 AS cor0
----
-807
-932
274

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

query I rowsort
SELECT + - ( + col2 ) * cor0.col2 + - 34 * + col0 AS col1 FROM tab1 cor0
----
-11936
-3018
-5425

query I rowsort
SELECT ALL - - 3 + col0 FROM tab0 AS cor0
----
27
38
92

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 + - 36 AS col2 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT DISTINCT + + 76 + - col2 * + col2 FROM tab2 AS cor0
----
-1368
-600
-653

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

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

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

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

query I rowsort
SELECT ALL 71 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

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

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

query I rowsort
SELECT DISTINCT - - 82 FROM tab0 AS cor0
----
82

query I rowsort
SELECT 23 + col1 AS col0 FROM tab1 AS cor0
----
33
36
49

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

query I rowsort
SELECT + ( + col0 ) + + col0 AS col2 FROM tab0 cor0
----
178
48
70

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

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

query I rowsort
SELECT ALL - 61 + + col2 FROM tab1 AS cor0
----
-4
-7
35

query I rowsort
SELECT + + col0 + - cor0.col1 * - 93 * col0 AS col1 FROM tab2 AS cor0
----
124978
20188
428064

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

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

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

query I rowsort
SELECT ALL ( + tab1.col2 ) * - col1 + - ( - 6 ) * + tab1.col1 FROM tab1
----
-1170
-1248
-510

query I rowsort
SELECT ALL col2 * - 53 + col1 * - tab2.col1 * - col1 FROM tab2
----
204001
28360
2899

query I rowsort
SELECT col2 + + 20 * col0 + col1 AS col1 FROM tab0
----
1953
599
798

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

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

query I rowsort
SELECT - col1 + - col0 + - 13 FROM tab0 AS cor0
----
-123
-145
-193

query I rowsort
SELECT DISTINCT + 14 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
14

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-728
SELECT DISTINCT - col0 DIV 32 - col2 FROM tab1 AS cor0
----
-54
-59
-98

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT - col0 / 32 - col2 FROM tab1 AS cor0
----
-54
-59
-98

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-732
SELECT DISTINCT + + col1 * col1 * cor0.col1 - - col0 * CAST( col2 * + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
208936
26324
739477

skipif mysql # not compatible
query I rowsort label-732
SELECT DISTINCT + + col1 * col1 * cor0.col1 - - col0 * CAST ( col2 * + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
208936
26324
739477

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

query I rowsort
SELECT DISTINCT - col1 * - col2 - - col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT 53 - col2 AS col0 FROM tab0
----
-29
20
52

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

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

query I rowsort
SELECT DISTINCT + col1 + + 2 AS col0 FROM tab1
----
12
15
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( col1 ) col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col1 * - 78 + - col0 AS col0 FROM tab0 AS cor0
----
6684
7009
7531

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 + 10 AS col2 FROM tab1 AS cor0
----
-2906
-3239
-9206

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

query I rowsort
SELECT ALL + 61 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT 64 * 75 * col0 FROM tab1
----
14400
307200
384000

query I rowsort
SELECT - - 47 * + 20 FROM tab0 AS cor0
----
940
940
940

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

query I rowsort
SELECT + 76 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

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

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

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

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

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

query I rowsort
SELECT - + col2 * 40 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 + 28 FROM tab1 AS cor0
----
-1220
-1376
-542

query I rowsort
SELECT ( - 98 ) + col0 AS col1 FROM tab2
----
-19
-20
-91

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

query I rowsort
SELECT DISTINCT + col1 + - col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-757
SELECT DISTINCT - 24 DIV - ( col0 ) AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT - 24 / - ( col0 ) AS col2 FROM tab0 AS cor0
----
0
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * col2 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 85 + + 63 * cor0.col0 FROM tab0 AS cor0
----
1597
2290
5692

query I rowsort
SELECT DISTINCT + 29 + cor0.col2 * col2 * col0 AS col2 FROM tab1 AS cor0
----
207965
737309
8777

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-763
SELECT ALL - col0 * col0 * + col0 + + 10 * col2 + CAST( - ( col2 ) AS SIGNED ) AS col1 FROM tab1
----
-261631
-511136
459

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - col0 * col0 * + col0 + + 10 * col2 + CAST ( - ( col2 ) AS INTEGER ) AS col1 FROM tab1
----
-261631
-511136
459

query I rowsort
SELECT - 73 + cor0.col2 * - col2 * + col0 FROM tab2 AS cor0
----
-114149
-5176
-52801

query I rowsort
SELECT ALL + col1 * + col0 + - 79 AS col0 FROM tab2 AS cor0
----
1264
138
4523

query I rowsort
SELECT ALL + col0 + col1 * 30 FROM tab0 cor0
----
2604
2819
2945

query I rowsort
SELECT ALL col1 * col0 * - 53 + ( cor0.col1 ) * - 62 FROM tab1 AS cor0
----
-34540
-55926
-5746

query I rowsort
SELECT + ( 86 ) + - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to fed620af802801687b6d89299b422605

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

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

query I rowsort
SELECT + col0 * - 10 * + 64 AS col2 FROM tab0 AS cor0
----
-15360
-22400
-56960

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

query I rowsort
SELECT DISTINCT - - col0 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT DISTINCT + col2 * col0 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
364
590
6

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT + col2 * col0 / cor0.col1 AS col0 FROM tab1 AS cor0
----
364
590
6

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

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

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

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

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

query I rowsort
SELECT + 90 * + col1 + col0 AS col1 FROM tab1
----
1250
2343
964

query I rowsort
SELECT - - cor0.col1 * + ( + col0 ) + - col1 + - 67 AS col1 FROM tab2 AS cor0
----
119
1259
4476

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

query I rowsort
SELECT ALL - col1 + 77 AS col2 FROM tab0 cor0
----
-14
-20
-9

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

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

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

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

query I rowsort
SELECT ALL col2 + - 92 FROM tab1 AS cor0
----
-35
-38
4

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

query I rowsort
SELECT DISTINCT col2 * col2 + ( col0 + col0 ) AS col1 FROM tab2 AS cor0
----
1602
743
832

query I rowsort
SELECT + col0 + - 4 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
-260
-275
-48

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-793
SELECT + col2 + col2 * + col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-793
SELECT + col2 + col2 * + col0 / + col0 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + - col0 * ( col0 + + 90 * cor0.col0 ) FROM tab2 cor0
----
-4459
-553644
-567931

onlyif mysql # use DIV operator for integer division
query I rowsort label-795
SELECT DISTINCT col0 * col0 DIV 45 FROM tab2
----
1
135
138

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT col0 * col0 / 45 FROM tab2
----
1
135
138

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

query I rowsort
SELECT ALL cor0.col2 + cor0.col0 * - ( - 6 * - col2 + + col0 * - 10 ) AS col1 FROM tab0 cor0
----
1041
12041
35504

query I rowsort
SELECT DISTINCT 72 + col2 + - ( - 30 ) FROM tab2 AS cor0
----
128
129
140

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-802
SELECT DISTINCT 96 DIV col2 + + col1 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
36481
4213
99841

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT 96 / col2 + + col1 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
36481
4213
99841

query I rowsort
SELECT ALL - col0 * - col0 + + ( - col0 ) * + col1 FROM tab2 AS cor0
----
-168
1482
4898

query I rowsort
SELECT ALL + 38 * col2 + col0 * - col0 + - cor0.col1 * - 49 FROM tab1 AS cor0
----
-1440
-2115
3317

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

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

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

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

skipif mysql # not compatible
query I rowsort label-808
SELECT + col2 / 68 FROM tab2
----
0
0
0

query I rowsort
SELECT + 28 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-811
SELECT + 67 DIV col0 FROM tab1
----
0
1
22

skipif mysql # not compatible
query I rowsort label-811
SELECT + 67 / col0 FROM tab1
----
0
1
22

query I rowsort
SELECT DISTINCT col0 * - col1 + - tab2.col1 * col1 - 45 AS col2 FROM tab2
----
-1223
-1677
-8128

query I rowsort
SELECT ALL - col1 + col2 - col0 * col0 FROM tab1
----
-4049
-6317
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + - col2 col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT 55 + + col1 FROM tab1
----
65
68
81

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

query I rowsort
SELECT ALL - + 59 + + col2 FROM tab2 AS cor0
----
-21
-32
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-818
SELECT cor0.col0 * col2 + + CAST( + 88 AS SIGNED ) FROM tab1 AS cor0
----
250
3736
7768

skipif mysql # not compatible
query I rowsort label-818
SELECT cor0.col0 * col2 + + CAST ( + 88 AS INTEGER ) FROM tab1 AS cor0
----
250
3736
7768

query I rowsort
SELECT ALL - 52 * col0 FROM tab1 AS cor0
----
-156
-3328
-4160

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

query I rowsort
SELECT ALL + - 23 + - cor0.col1 FROM tab2 AS cor0
----
-40
-54
-82

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

query I rowsort
SELECT DISTINCT + 63 * col2 AS col2 FROM tab2
----
1638
1701
2394

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

query I rowsort
SELECT col0 * + 18 FROM tab1
----
1152
1440
54

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

query I rowsort
SELECT - 39 + + col0 AS col1 FROM tab2 AS cor0
----
-32
39
40

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

query I rowsort
SELECT + col2 * col2 + col1 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
107541
2248
359632

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

query I rowsort
SELECT col1 + - col1 * - col0 - - col2 AS col1 FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT DISTINCT + - cor0.col2 * 95 + + col2 AS col1 FROM tab0 AS cor0
----
-3102
-7708
-94

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-834
SELECT col0 DIV - 3 FROM tab2 AS cor0
----
-2
-26
-26

skipif mysql # not compatible
query I rowsort label-834
SELECT col0 / - 3 FROM tab2 AS cor0
----
-2
-26
-26

query I rowsort
SELECT + + col0 * - col1 + 83 * col0 AS col1 FROM tab0 AS cor0
----
-490
-712
-72

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

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

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

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

query I rowsort
SELECT ALL + 87 + col2 FROM tab1 AS cor0
----
141
144
183

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-841
SELECT - col0 * 86 - + cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-259
-5505
-6881

skipif mysql # not compatible
query I rowsort label-841
SELECT - col0 * 86 - + cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
-259
-5505
-6881

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

skipif mysql # not compatible
query I rowsort label-842
SELECT + - 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-843
SELECT - CAST( - col2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
108
114
192

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-844
SELECT + col0 * - CAST( col1 AS SIGNED ) FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-844
SELECT + col0 * - CAST ( col1 AS INTEGER ) FROM tab2
----
-1343
-217
-4602

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

query I rowsort
SELECT - col0 * + ( - col2 ) - - col2 * + 51 FROM tab2 AS cor0
----
1566
3354
4940

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-849
SELECT DISTINCT + 75 DIV col0 - col1 AS col2 FROM tab0 AS cor0
----
-83
-91
-95

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + 75 / col0 - col1 AS col2 FROM tab0 AS cor0
----
-83
-91
-95

query I rowsort
SELECT - - col2 + cor0.col2 + - col0 * - col0 FROM tab1 AS cor0
----
117
4210
6592

query I rowsort
SELECT DISTINCT - 47 * + col1 + 18 * ( - col2 ) FROM tab1 AS cor0
----
-1496
-2194
-2339

query I rowsort
SELECT 92 + + col1 AS col1 FROM tab2 AS cor0
----
109
123
151

query I rowsort
SELECT + - col2 * - 70 FROM tab0 AS cor0
----
2310
5740
70

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

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

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

query I rowsort
SELECT ALL + + col2 * - ( col0 ) * + col2 - - 99 * col2 AS col0 FROM tab1 AS cor0
----
-202293
-3402
-727776

query I rowsort
SELECT ALL col1 + + cor0.col2 * 19 FROM tab1 AS cor0
----
1052
1093
1837

onlyif mysql # use DIV operator for integer division
query I rowsort label-858
SELECT + col1 * 12 DIV + col2 - col0 * 67 AS col1 FROM tab1
----
-196
-4286
-5359

skipif mysql # not compatible
query I rowsort label-858
SELECT + col1 * 12 / + col2 - col0 * 67 AS col1 FROM tab1
----
-196
-4286
-5359

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

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

query I rowsort
SELECT col1 * 33 AS col0 FROM tab2 AS cor0
----
1023
1947
561

onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT DISTINCT - col1 DIV 62 + ( col1 ) * - col1 col0 FROM tab0 AS cor0
----
-7397
-8282
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT - col1 / 62 + ( col1 ) * - col1 col0 FROM tab0 AS cor0
----
-7397
-8282
-9410

query I rowsort
SELECT DISTINCT + + col0 * 78 + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
14404
2827
4710

query I rowsort
SELECT DISTINCT col2 * 90 + - 93 FROM tab2 AS cor0
----
2247
2337
3327

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

query I rowsort
SELECT ALL cor0.col2 * + 81 FROM tab2 cor0
----
2106
2187
3078

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

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL col1 / 81 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-868
SELECT - col2 * - CAST( + col0 AS SIGNED ) + col0 DIV ( col0 ) FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-868
SELECT - col2 * - CAST ( + col0 AS INTEGER ) + col0 / ( col0 ) FROM tab2 AS cor0
----
190
2029
3003

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

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

query I rowsort
SELECT DISTINCT col2 * + cor0.col2 + col0 * + col0 AS col0 FROM tab2 cor0
----
6760
7685
778

query I rowsort
SELECT ALL - cor0.col2 * 27 + col1 FROM tab0 AS cor0
----
-2123
-805
70

query I rowsort
SELECT cor0.col1 + 37 FROM tab0 cor0
----
123
128
134

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

query I rowsort
SELECT 20 + - col0 FROM tab0
----
-15
-4
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - 16 col1 FROM tab0 AS cor0
----
70
75
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * 43 col2 FROM tab0
----
140
1505
3617

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

query I rowsort
SELECT ALL - - col2 + + 54 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT DISTINCT col0 + 76 * - cor0.col2 FROM tab0 AS cor0
----
-2484
-41
-6143

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-881
SELECT + + 1 DIV - col1 + 49 * - ( col1 * + ( - col1 ) ) col0 FROM tab1 AS cor0
----
33124
4900
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-881
SELECT + + 1 / - col1 + 49 * - ( col1 * + ( - col1 ) ) col0 FROM tab1 AS cor0
----
33124
4900
8281

query I rowsort
SELECT ALL 55 + col0 FROM tab2 AS cor0
----
133
134
62

query I rowsort
SELECT ALL + 61 + + 74 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 17b10acf07e16d67b01bcec56d331023

query I rowsort
SELECT ALL 15 + col2 FROM tab1
----
111
69
72

query I rowsort
SELECT DISTINCT 23 * col2 + + 2 AS col1 FROM tab0 AS cor0
----
1888
25
761

query I rowsort
SELECT 34 * - col1 AS col0 FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT DISTINCT + + 0 * - col0 - - col2 * col2 FROM tab0 cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * - col0 - 43 col0 FROM tab2 cor0
----
-3709
-372
-3756

query I rowsort
SELECT + col2 * - col0 + 23 FROM tab1 cor0
----
-139
-3625
-7657

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-892
SELECT ALL - col2 + - col2 DIV 66 FROM tab1 cor0
----
-54
-57
-97

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - col2 + - col2 / 66 FROM tab1 cor0
----
-54
-57
-97

query I rowsort
SELECT - ( col0 ) * + 25 + ( - col0 * ( - cor0.col2 ) ) AS col0 FROM tab0 AS cor0
----
-840
192
5073

onlyif mysql # use DIV operator for integer division
query I rowsort label-894
SELECT DISTINCT - col2 * cor0.col2 DIV + col0 FROM tab1 AS cor0
----
-115
-50
-972

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT - col2 * cor0.col2 / + col0 FROM tab1 AS cor0
----
-115
-50
-972

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

query I rowsort
SELECT ALL - col2 + - 44 FROM tab2 AS cor0
----
-70
-71
-82

query I rowsort
SELECT col2 * + 84 AS col2 FROM tab1
----
4536
4788
8064

query I rowsort
SELECT - col1 * + 4 + 17 * - col0 FROM tab2 cor0
----
-1411
-1562
-243

query I rowsort
SELECT DISTINCT + ( 24 ) + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4072
-6376
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-900
SELECT ALL - 98 DIV col2 + - col0 FROM tab0 AS cor0
----
-133
-26
-90

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - 98 / col2 + - col0 FROM tab0 AS cor0
----
-133
-26
-90

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

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT + - col0 * + col2 + 30 - col2 * - col0 * + col0 FROM tab0 AS cor0
----
1220
18246
642254

query I rowsort
SELECT + cor0.col0 * col1 + - col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
50
593
957

query I rowsort
SELECT DISTINCT - 46 * col0 * col1 FROM tab2
----
-211692
-61778
-9982

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-907
SELECT - 2 * cor0.col0 * 99 - cor0.col0 DIV col2 col0 FROM tab0 AS cor0
----
-17623
-4752
-6965

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-907
SELECT - 2 * cor0.col0 * 99 - cor0.col0 / col2 col0 FROM tab0 AS cor0
----
-17623
-4752
-6965

query I rowsort
SELECT 59 + col0 AS col0 FROM tab0
----
148
83
94

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

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

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

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

query I rowsort
SELECT 24 + - 82 AS col0 FROM tab0
----
-58
-58
-58

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

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

query I rowsort
SELECT - - cor0.col1 + col1 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
22848
271577
6758

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

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

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

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

query I rowsort
SELECT ALL + col1 * - 6 FROM tab0
----
-516
-546
-582

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-922
SELECT ALL + + col0 * + col0 + - col1 DIV - ( + col2 ) FROM tab0 cor0
----
1322
578
7922

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + + col0 * + col0 + - col1 / - ( + col2 ) FROM tab0 cor0
----
1322
578
7922

query I rowsort
SELECT 99 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c841a8d826151b422ecdb71db0250739

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

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

query I rowsort
SELECT ALL 21 + cor0.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5dd1618a3441db7016aa06bbf2eb7a37

query I rowsort
SELECT tab1.col2 + 3 FROM tab1
----
57
60
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( - 18 + col2 ) col0 FROM tab2 AS cor0
----
-1580
-624
-63

query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 + 54 * + col0 FROM tab2 AS cor0
----
1366
4593
7719

query I rowsort
SELECT - 84 * col1 * - col0 FROM tab2 AS cor0
----
112812
18228
386568

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

query I rowsort
SELECT - 38 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1381
-255
-4640

query I rowsort
SELECT - 8 * + col0 - + col0 AS col1 FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT ALL - + col1 + + 14 AS col1 FROM tab0 AS cor0
----
-72
-77
-83

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

query I rowsort
SELECT - 90 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

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

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

query I rowsort
SELECT ALL + - 91 + col2 * col1 FROM tab2 AS cor0
----
1443
555
746

query I rowsort
SELECT + 21 + 90 * cor0.col2 FROM tab1 AS cor0
----
4881
5151
8661

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

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

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

query I rowsort
SELECT + col1 + cor0.col0 + col0 FROM tab0 AS cor0
----
134
167
269

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col0 + - 89 + col0 col1 FROM tab1 AS cor0
----
-248
-3673
-7689

query I rowsort
SELECT - + 41 + - col1 FROM tab0 AS cor0
----
-127
-132
-138

query I rowsort
SELECT DISTINCT - 90 + col0 FROM tab1 cor0
----
-10
-26
-87

query I rowsort
SELECT DISTINCT + 94 * - col1 + - col2 + + 65 FROM tab0 AS cor0
----
-8052
-8571
-9054

query I rowsort
SELECT ALL + 59 * 3 FROM tab1
----
177
177
177

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

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

query I rowsort
SELECT ALL + 23 + + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1366
240
4625

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

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

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

query I rowsort
SELECT + - col1 * 15 FROM tab1 AS cor0
----
-150
-195
-390

query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 * - 7 FROM tab1 AS cor0
----
-5
128
13

query I rowsort
SELECT DISTINCT - - 13 * col0 FROM tab1 AS cor0
----
1040
39
832

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

query I rowsort
SELECT ALL + + 28 * col0 + col1 AS col0 FROM tab2 AS cor0
----
2229
2243
227

onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT - col0 * + col1 + cor0.col0 DIV + col2 + - col2 DIV + col1 FROM tab0 AS cor0
----
-2064
-3360
-8098

skipif mysql # not compatible
query I rowsort label-963
SELECT - col0 * + col1 + cor0.col0 / + col2 + - col2 / + col1 FROM tab0 AS cor0
----
-2064
-3360
-8098

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT DISTINCT cor0.col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT cor0.col1 / col0 AS col1 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-966
SELECT ALL cor0.col2 DIV + ( col1 * - col0 ) + + col0 col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-966
SELECT ALL cor0.col2 / + ( col1 * - col0 ) + + col0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - 92 * + col0 AS col0 FROM tab1 AS cor0
----
-276
-5888
-7360

query I rowsort
SELECT DISTINCT col2 + ( col2 ) AS col0 FROM tab1
----
108
114
192

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

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

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

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

query I rowsort
SELECT ALL col1 + - 5 AS col0 FROM tab1 AS cor0
----
21
5
8

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

query I rowsort
SELECT - + 95 * col2 - col1 AS col0 FROM tab0 AS cor0
----
-192
-3221
-7881

query I rowsort
SELECT DISTINCT ( - col1 ) * col1 + col2 * - col1 + + col2 AS col0 FROM tab2 cor0
----
-1771
-4989
-897

query I rowsort
SELECT ALL - ( - cor0.col2 ) + - col0 + col2 FROM tab0 AS cor0
----
-33
42
75

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-978
SELECT - 85 * cor0.col1 - + col0 DIV - cor0.col0 FROM tab0 cor0
----
-7309
-7734
-8244

skipif mysql # not compatible
query I rowsort label-978
SELECT - 85 * cor0.col1 - + col0 / - cor0.col0 FROM tab0 cor0
----
-7309
-7734
-8244

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

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT - col2 / cor0.col1 + col0 FROM tab2 cor0
----
7
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-980
SELECT DISTINCT 51 - col0 DIV col1 FROM tab2 AS cor0
----
47
50
51

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT 51 - col0 / col1 FROM tab2 AS cor0
----
47
50
51

query I rowsort
SELECT col1 + 26 * col2 FROM tab1 AS cor0
----
1430
1492
2509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - 29 col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 959afc04470c1087ce7f240c8b4c2640

query I rowsort
SELECT + col0 * - col1 + + 33 + + ( + col2 + 1 ) FROM tab0 AS cor0
----
-1997
-3360
-7983

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

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + 92 / + cor0.col2 FROM tab0 AS cor0
----
1
2
92

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

query I rowsort
SELECT + + 97 + - col2 + - 43 AS col2 FROM tab1 cor0
----
-3
-42
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 * col0 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-988
SELECT DISTINCT + - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT + - col2 / - col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort
SELECT - ( col1 ) * ( + 84 ) + col0 * CAST ( - col1 AS REAL ) + col2 AS col2 FROM tab0 AS cor0
----
-11542
-15661
-9255

query I rowsort
SELECT + col0 + col1 + - col2 * - col0 FROM tab1
----
191
3722
7773

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

query I rowsort
SELECT ALL - - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT 38 + + 48 AS col1 FROM tab1
----
86

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

query I rowsort
SELECT col2 + + col2 + col2 * + col2 AS col1 FROM tab0
----
1155
3
6888

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

query I rowsort
SELECT + col1 + 14 FROM tab0
----
100
105
111

onlyif mysql # use DIV operator for integer division
query I rowsort label-998
SELECT DISTINCT col0 - col1 DIV + col2 AS col1 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT col0 - col1 / + col2 AS col1 FROM tab0
----
-62
22
88

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

query I rowsort
SELECT DISTINCT - col0 + 99 * + col2 * + col2 AS col0 FROM tab0 AS cor0
----
107787
64
665587

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

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

query I rowsort
SELECT ALL col1 + - col0 * - 97 AS col0 FROM tab0
----
2414
3492
8724

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

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

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL CAST ( + 4 AS INTEGER ) AS col2 FROM tab1
----
4
4
4

query I rowsort
SELECT DISTINCT - - 94 * + col2 AS col1 FROM tab2 AS cor0
----
2444
2538
3572

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1010
SELECT ALL + CAST( - 24 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL + CAST ( - 24 AS INTEGER ) / col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1012
SELECT ALL + + 70 + col2 DIV ( 60 * col0 ) AS col0 FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL + + 70 + col2 / ( 60 * col0 ) AS col0 FROM tab0 AS cor0
----
70
70
70

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

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

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

query I rowsort
SELECT + 83 + col1 + col2 FROM tab0 AS cor0
----
181
202
256

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

query I rowsort
SELECT + cor0.col1 * 67 AS col1 FROM tab1 AS cor0
----
1742
670
871

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

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT col1 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80

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

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

query I rowsort
SELECT - - cor0.col0 * ( + 65 ) FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT ALL + - col0 * col0 + col1 * col0 * col0 AS col0 FROM tab1 AS cor0
----
225
36864
76800

query I rowsort
SELECT ALL + col2 * 4 AS col2 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT ALL col1 * - col1 - col1 FROM tab0 cor0
----
-7482
-8372
-9506

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

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

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

query I rowsort
SELECT DISTINCT - - col0 + + col2 * 9 AS col1 FROM tab2 AS cor0
----
250
312
421

query I rowsort
SELECT 12 * + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-16116
-2604
-55224

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

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL - col2 * + col0 / + col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL + col2 * ( - 99 ) FROM tab2 cor0
----
-2574
-2673
-3762

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

query I rowsort
SELECT - + 87 + col2 AS col0 FROM tab2 AS cor0
----
-49
-60
-61

query I rowsort
SELECT - 57 + + tab1.col1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 82efbbb9a3a397729159961f358ac769

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

query I rowsort
SELECT ALL - 42 * tab0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 83c5fd1b9eae6453f2f50b40409fc542

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

query I rowsort
SELECT col0 + - 91 AS col2 FROM tab0 cor0
----
-2
-56
-67

query I rowsort
SELECT DISTINCT - cor0.col1 + + 58 + col1 AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT - col0 + 32 * col1 AS col0 FROM tab2 AS cor0
----
1810
465
985

query I rowsort
SELECT ALL 25 + col1 + + col2 FROM tab0
----
123
144
198

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1042
SELECT DISTINCT - CAST( - ( + col2 ) AS SIGNED ) FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - CAST ( - ( + col2 ) AS INTEGER ) FROM tab0
----
1
33
82

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

query I rowsort
SELECT ( + 76 + col0 ) AS col0 FROM tab2
----
154
155
83

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

query I rowsort
SELECT DISTINCT col0 + 24 + - col1 FROM tab2
----
0
43
86

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

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

query I rowsort
SELECT ALL - 75 + + 92 AS col1 FROM tab1
----
17
17
17

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

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

query I rowsort
SELECT + 76 * col0 + + col2 FROM tab1 cor0
----
282
4921
6176

query I rowsort
SELECT + - 5 * + col2 FROM tab2 AS cor0
----
-130
-135
-190

onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT DISTINCT - col2 * - col0 DIV - cor0.col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - col2 * - col0 / - cor0.col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + ( + col2 ) * 73 FROM tab1 AS cor0
----
3942
4161
7008

query I rowsort
SELECT - 42 * col2 AS col1 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT ALL - tab1.col1 - + 15 * tab1.col2 AS col2 FROM tab1
----
-1453
-836
-865

query I rowsort
SELECT DISTINCT 95 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
95

query I rowsort
SELECT - col1 - + 75 * + col2 FROM tab1 AS cor0
----
-4076
-4285
-7213

query I rowsort
SELECT ALL - col0 + ( + col0 ) * tab0.col0 - 16 FROM tab0
----
1174
536
7816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1061
SELECT + cor0.col2 * col0 + col0 DIV + col0 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-1061
SELECT + cor0.col2 * col0 + col0 / + col0 FROM tab1 AS cor0
----
163
3649
7681

onlyif mysql # use DIV operator for integer division
query I rowsort label-1062
SELECT col0 * - col1 - - cor0.col0 DIV col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-1062
SELECT col0 * - col1 - - cor0.col0 / col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

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

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

skipif mysql # not compatible
query I rowsort label-1064
SELECT + - cor0.col2 * + CAST ( - col1 AS INTEGER ) * + col0 + col1 * col0 FROM tab1 AS cor0
----
100880
37120
4290

onlyif mysql # use DIV operator for integer division
query I rowsort label-1065
SELECT + + col0 DIV col0 + col2 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1065
SELECT + + col0 / col0 + col2 FROM tab0 cor0
----
2
34
83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1067
SELECT + ( col1 ) DIV - col0 + + col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-1067
SELECT + ( col1 ) / - col0 + + col0 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT ALL + cor0.col1 * + 81 * - cor0.col1 FROM tab0 AS cor0
----
-599076
-670761
-762129

query I rowsort
SELECT - 37 * - cor0.col2 FROM tab2 AS cor0
----
1406
962
999

query I rowsort
SELECT DISTINCT + 23 * + 4 FROM tab1 AS cor0
----
92

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

query I rowsort
SELECT - 0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - ( + col1 ) - ( col1 ) * col1 AS col0 FROM tab0
----
-7482
-8372
-9506

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

query I rowsort
SELECT ALL + - 28 * cor0.col1 * 65 FROM tab2 AS cor0
----
-107380
-30940
-56420

query I rowsort
SELECT + ( + tab2.col0 ) FROM tab2
----
7
78
79

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

query I rowsort
SELECT DISTINCT - col2 + 53 FROM tab1 AS cor0
----
-1
-4
-43

query I rowsort
SELECT DISTINCT - col0 * col0 * + 85 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-104124
-48927
-673203

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

query I rowsort
SELECT DISTINCT - cor0.col1 * + 55 * + col0 AS col2 FROM tab2 AS cor0
----
-11935
-253110
-73865

onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT ALL + col1 - + ( 54 ) DIV col0 AS col2 FROM tab2 AS cor0
----
17
24
59

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL + col1 - + ( 54 ) / col0 AS col2 FROM tab2 AS cor0
----
17
24
59

query I rowsort
SELECT DISTINCT - - cor0.col1 * ( - col0 ) - + col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 89 col0 FROM tab2 AS cor0
----
-30
-58
-72

query I rowsort
SELECT ALL + - cor0.col0 * - 65 FROM tab0 AS cor0
----
1560
2275
5785

query I rowsort
SELECT + + col0 * ( cor0.col0 ) + col1 + + 9 * col0 FROM tab1 AS cor0
----
4682
62
7133

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1089
SELECT DISTINCT + col2 * ( - ( col0 ) ) + + CAST( + cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT + col2 * ( - ( col0 ) ) + + CAST ( + cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 * - 16 col2 FROM tab2 AS cor0
----
272
496
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + 26 col2 FROM tab2 AS cor0
----
182
2028
2054

query I rowsort
SELECT ALL + + col1 * 67 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT tab1.col0 * - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 737dbb26f65dd374aa3c71dabdd3903c

query I rowsort
SELECT 62 * - cor0.col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

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

query I rowsort
SELECT ( - 13 ) * + col2 + - col1 * + cor0.col1 FROM tab1 AS cor0
----
-1378
-1417
-841

query I rowsort
SELECT ALL + 99 + - col2 * col2 FROM tab1 cor0
----
-2817
-3150
-9117

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 56 * col0 - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1229
-5070
-5902

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

query I rowsort
SELECT DISTINCT + 55 FROM tab0, tab0 cor0
----
55

query I rowsort
SELECT 8 + col1 FROM tab2
----
25
39
67

query I rowsort
SELECT 51 * col0 AS col2 FROM tab1 AS cor0
----
153
3264
4080

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

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

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL - col1 + + col0 / col1 FROM tab2 AS cor0
----
-13
-31
-58

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

query I rowsort
SELECT DISTINCT 98 * + col2 * 95 FROM tab1
----
502740
530670
893760

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

query I rowsort
SELECT - col1 * col1 + col0 AS col2 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT col2 * - 40 * col2 FROM tab2
----
-27040
-29160
-57760

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1118
SELECT CAST( - 67 * tab1.col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to ecc028d5861d5e1e73ad81125f6ad905

skipif mysql # not compatible
query I rowsort label-1118
SELECT CAST ( - 67 * tab1.col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to ecc028d5861d5e1e73ad81125f6ad905

query I rowsort
SELECT - 75 * col1 FROM tab1
----
-1950
-750
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 14 * col1 ) + + 76 col0 FROM tab0
----
-1128
-1198
-1282

query I rowsort
SELECT DISTINCT 9 * 11 FROM tab1
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1122
SELECT ALL - CAST( + col1 AS SIGNED ) DIV + col0 + col0 AS col2 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL - CAST ( + col1 AS INTEGER ) / + col0 + col0 AS col2 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT ALL - ( 25 ) FROM tab2, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 6f83d63ca9889b3b99826987c718bda8

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

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

query I rowsort
SELECT ALL + 27 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

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

query I rowsort
SELECT - col1 * 92 AS col1 FROM tab1 AS cor0
----
-1196
-2392
-920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1129
SELECT + cor0.col2 * ( col0 ) + + col0 DIV 39 + col2 AS col0 FROM tab2 cor0
----
2056
216
3042

skipif mysql # not compatible
query I rowsort label-1129
SELECT + cor0.col2 * ( col0 ) + + col0 / 39 + col2 AS col0 FROM tab2 cor0
----
2056
216
3042

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + + cor0.col2 col2 FROM tab1, tab1 cor0
----
9 values hashing to f19a4153eeb2f1a7fd60bf4d49f10d12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * 33 col1 FROM tab0 AS cor0
----
264
264
264

query I rowsort
SELECT cor0.col2 + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

query I rowsort
SELECT ALL col0 + + col2 - col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - 65 * col2 AS col1 FROM tab0 AS cor0
----
-2145
-5330
-65

query I rowsort
SELECT - 22 * - col0 FROM tab2 AS cor0
----
154
1716
1738

query I rowsort
SELECT ALL + 13 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT + cor0.col0 * cor0.col0 * 13 FROM tab1 AS cor0
----
117
53248
83200

query I rowsort
SELECT 42 * - col2 FROM tab2
----
-1092
-1134
-1596

query I rowsort
SELECT col1 * - col2 * 54 AS col0 FROM tab2 AS cor0
----
-34884
-45198
-82836

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

query I rowsort
SELECT DISTINCT + - cor0.col2 + 28 AS col2 FROM tab1 cor0
----
-26
-29
-68

query I rowsort
SELECT + + col1 * + ( 83 + col2 ) FROM tab2 AS cor0
----
2057
3410
6431

onlyif mysql # use DIV operator for integer division
query I rowsort label-1144
SELECT - cor0.col2 + + col1 DIV 67 + col0 DIV 19 FROM tab1 AS cor0
----
-54
-54
-92

skipif mysql # not compatible
query I rowsort label-1144
SELECT - cor0.col2 + + col1 / 67 + col0 / 19 FROM tab1 AS cor0
----
-54
-54
-92

query I rowsort
SELECT col0 * - cor0.col2 * col0 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT 37 * - col2 FROM tab0
----
-1221
-3034
-37

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

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + col0 / - col1 AS col1 FROM tab0
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + ( 59 ) * - col0 col0 FROM tab1 AS cor0
----
-174
-3712
-4640

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

query I rowsort
SELECT ALL + col0 + 73 AS col0 FROM tab0 AS cor0
----
108
162
97

query I rowsort
SELECT ALL + col0 + - 73 FROM tab2 AS cor0
----
-66
5
6

query I rowsort
SELECT ALL col1 + + col1 * 49 * + cor0.col0 FROM tab0 AS cor0
----
101222
166452
396942

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

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

query I rowsort
SELECT ALL col0 + - 25 AS col1 FROM tab1 AS cor0
----
-22
39
55

query I rowsort
SELECT + col2 + - 88 FROM tab1 AS cor0
----
-31
-34
8

query I rowsort
SELECT ALL + col0 * col0 + col1 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-130
1287
714

query I rowsort
SELECT col2 - + 73 * - tab2.col0 FROM tab2
----
538
5720
5805

query I rowsort
SELECT ALL col2 + 19 FROM tab1
----
115
73
76

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

query I rowsort
SELECT ALL col1 * col1 * tab1.col1 + + col0 FROM tab1
----
1064
17579
2277

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

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

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

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

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

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

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 - col0 * col0 * + col1 + + 41 * col2 FROM tab0 AS cor0
----
-118784
-48183
-717449

query I rowsort
SELECT ALL - - col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT tab2.col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

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

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

query I rowsort
SELECT DISTINCT + col1 * + col2 * col2 - col1 FROM tab0 AS cor0
----
0
611793
93568

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

query I rowsort
SELECT - - ( + cor0.col1 ) + ( + 11 * - col2 ) AS col0 FROM tab0 AS cor0
----
-277
-811
86

query I rowsort
SELECT ALL + 55 * col1 AS col1 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT + 55 - col0 FROM tab1 AS cor0
----
-25
-9
52

query I rowsort
SELECT DISTINCT col0 + col1 * - col0 * col1 AS col2 FROM tab0 cor0
----
-177480
-329280
-736920

query I rowsort
SELECT DISTINCT + 56 - - col2 FROM tab0 AS cor0
----
138
57
89

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

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

skipif mysql # not compatible
query I rowsort label-1181
SELECT + col1 - + col1 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-1182
SELECT + col1 * col0 - ( + ( col0 ) ) * 37 DIV col0 FROM tab1 AS cor0
----
1003
41
603

skipif mysql # not compatible
query I rowsort label-1182
SELECT + col1 * col0 - ( + ( col0 ) ) * 37 / col0 FROM tab1 AS cor0
----
1003
41
603

query I rowsort
SELECT ALL col2 * - cor0.col0 + - col1 + + col0 * col2 * col0 FROM tab0 AS cor0
----
1093
18130
642133

query I rowsort
SELECT - col1 + - tab0.col2 FROM tab0 WHERE ( NULL ) = NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 * col2 col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-1187
SELECT DISTINCT col1 DIV - col2 + + col1 * + col2 FROM tab0 cor0
----
0
2836
7461

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT col1 / - col2 + + col1 * + col2 FROM tab0 cor0
----
0
2836
7461

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

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 + + col2 * col1 FROM tab2 AS cor0
----
1671
742
875

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + + col2 + col0 * col2 col0 FROM tab0 AS cor0
----
15661
8221
9445

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

query I rowsort
SELECT DISTINCT col0 * col0 - - col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1194
SELECT DISTINCT + ( - col1 ) * col0 + col1 DIV - col0 FROM tab2
----
-1343
-221
-4602

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT + ( - col1 ) * col0 + col1 / - col0 FROM tab2
----
-1343
-221
-4602

query I rowsort
SELECT + - 79 * col2 * + col2 + cor0.col1 FROM tab2 AS cor0
----
-114059
-53345
-57560

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT ALL + col1 + col1 DIV + col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL + col1 + col1 / + col0 FROM tab2 AS cor0
----
17
35
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1198
SELECT + 58 + col1 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
55
56
57

skipif mysql # not compatible
query I rowsort label-1198
SELECT + 58 + col1 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
55
56
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1199
SELECT ALL - 29 DIV col0 - - col2 AS col0 FROM tab1 AS cor0
----
45
57
96

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - 29 / col0 - - col2 AS col0 FROM tab1 AS cor0
----
45
57
96

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

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col0 + - col0 FROM tab0
----
1190
18984
649433

query I rowsort
SELECT - + 66 + col1 * + col0 * - col2 FROM tab2 AS cor0
----
-119718
-51100
-5925

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 FROM tab2, tab0 AS cor0
----
1
1089
6724

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

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

query I rowsort
SELECT ALL col0 * - col2 * - col0 + + col0 * - col0 * + col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-255802
-316290
987

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

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

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

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

query I rowsort
SELECT col2 + tab1.col1 * tab1.col1 FROM tab1
----
157
265
730

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

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

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

query I rowsort
SELECT + col2 + - col2 + col0 FROM tab2
----
7
78
79

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

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

query I rowsort
SELECT - col0 + + col0 * - 56 FROM tab0 AS cor0
----
-1368
-1995
-5073

query I rowsort
SELECT - col2 * col0 + + col0 * col0 FROM tab0
----
-216
1190
623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col1 * + col0 col0 FROM tab2
----
-1381
-244
-4628

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

query I rowsort
SELECT ALL col1 * col2 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

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

query I rowsort
SELECT col0 * col2 + col2 + + col2 FROM tab0
----
37
7462
858

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - col1 * tab1.col1 AS col1 FROM tab1
----
-16224
-36504
-5700

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1232
SELECT - col0 * col2 - col2 DIV col2 AS col0 FROM tab0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-1232
SELECT - col0 * col2 - col2 / col2 AS col0 FROM tab0
----
-36
-7299
-793

query I rowsort
SELECT tab1.col2 * - col2 * tab1.col0 + + col1 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - cor1.col1 * + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0d6a6fb5abdc2517b93f3ab186a9e2f6

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

query I rowsort
SELECT cor0.col1 * 30 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6421b70f2e09becdec3d2d957e11d582

query I rowsort
SELECT ALL 55 + col1 AS col1 FROM tab1 AS cor0
----
65
68
81

query I rowsort
SELECT ALL col2 - + 76 * tab0.col2 FROM tab0
----
-2475
-6150
-75

query I rowsort
SELECT ALL - col2 * - ( col0 ) - + col0 * col1 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT ALL - ( - tab2.col2 * col2 ) + col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL 43 AS col1 FROM tab0 cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort
SELECT + col1 * - CAST ( + col1 AS REAL ) AS col1 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 56 col2 FROM tab1 AS cor0
----
-1456
-560
-728

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

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

query I rowsort
SELECT ALL + ( 34 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

query I rowsort
SELECT ( col0 ) * + col1 * col0 + 2 FROM tab0 AS cor0
----
118827
49538
720813

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

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

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

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

query I rowsort
SELECT + 54 * col0 + col0 * 80 FROM tab0 AS cor0
----
11926
3216
4690

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

query I rowsort
SELECT ALL - col0 * 46 FROM tab0 AS cor0
----
-1104
-1610
-4094

query I rowsort
SELECT + tab0.col2 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 26 + col0 - col1 AS col1 FROM tab1 cor0
----
3
80
93

query I rowsort
SELECT - 48 * col0 + col2 - + col0 FROM tab2 cor0
----
-316
-3796
-3833

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

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

query I rowsort
SELECT col1 + - 57 AS col2 FROM tab0 AS cor0
----
29
34
40

query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - - ( 85 ) AS col1 FROM tab1 AS cor0
----
85

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

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

query I rowsort
SELECT ALL - 95 * - col0 * col0 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
106966
47324
744214

query I rowsort
SELECT DISTINCT - - 44 * col1 AS col1 FROM tab1 AS cor0
----
1144
440
572

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

query I rowsort
SELECT DISTINCT 26 * - col0 FROM tab2
----
-182
-2028
-2054

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

query I rowsort
SELECT DISTINCT - + 17 * col2 - col1 FROM tab2 AS cor0
----
-490
-501
-663

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + col2 + + col0 FROM tab2 AS cor0
----
-15
-5980
-6124

query I rowsort
SELECT ALL + - 34 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
340
442
884

query I rowsort
SELECT col1 * col0 * + col0 + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
118860
50328
728109

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

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

query I rowsort
SELECT DISTINCT col0 - + 26 AS col2 FROM tab2
----
-19
52
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-1277
SELECT DISTINCT - col1 DIV + 55 + col1 * col2 DIV col1 - - tab2.col2 AS col1 FROM tab2
----
51
54
76

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT - col1 / + 55 + col1 * col2 / col1 - - tab2.col2 AS col1 FROM tab2
----
51
54
76

query I rowsort
SELECT ALL col1 - - 75 FROM tab1
----
101
85
88

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1280
SELECT DISTINCT + tab2.col1 - + col2 DIV - col0 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT + tab2.col1 - + col2 / - col0 FROM tab2
----
17
34
59

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1282
SELECT - tab2.col1 DIV - 66 - tab2.col0 AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1282
SELECT - tab2.col1 / - 66 - tab2.col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 67 - col1 * col0 FROM tab1
----
-11
-573
-973

query I rowsort
SELECT ALL col1 + - 13 AS col2 FROM tab0 AS cor0
----
73
78
84

query I rowsort
SELECT DISTINCT - col1 * 64 + - ( col1 + col2 * col1 ) AS col2 FROM tab1 AS cor0
----
-1220
-2093
-3094

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

query I rowsort
SELECT DISTINCT + col0 * 16 + col1 AS col2 FROM tab0 AS cor0
----
1515
470
657

query I rowsort
SELECT ALL + col2 * 72 FROM tab2 AS cor0
----
1872
1944
2736

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

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

query I rowsort
SELECT + col1 + - 40 AS col2 FROM tab2 AS cor0
----
-23
-9
19

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

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

query I rowsort
SELECT ALL ( + 39 ) + cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 02eda61897ba61d13db8edce0ccd4b29

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

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

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

query I rowsort
SELECT ALL 97 * cor1.col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 12759831b6b3a66412af456661cc1cde

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

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

query I rowsort
SELECT ALL - col2 * + 41 * col2 AS col2 FROM tab0
----
-275684
-41
-44649

query I rowsort
SELECT ALL + col0 * 49 FROM tab2
----
343
3822
3871

query I rowsort
SELECT - 64 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

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

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

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

query I rowsort
SELECT 12 + - col1 * cor0.col0 FROM tab0 AS cor0
----
-2052
-3383
-8087

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

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + + 71 - - col2 / col0 FROM tab1 AS cor0
----
71
72
89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 - col1 col2 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT 32 + + col1 * ( - 86 ) AS col2 FROM tab1 AS cor0
----
-1086
-2204
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 89 col2 FROM tab0
----
56
7
88

query I rowsort
SELECT - col1 + 43 + col0 FROM tab1
----
110
20
97

query I rowsort
SELECT DISTINCT col1 + + 39 * col1 FROM tab2
----
1240
2360
680

query I rowsort
SELECT - col2 - - 84 AS col1 FROM tab1
----
-12
27
30

query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT + 99 + - col1 AS col2 FROM tab2
----
40
68
82

query I rowsort
SELECT DISTINCT + ( + col0 ) + + 6 FROM tab2
----
13
84
85

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

query I rowsort
SELECT DISTINCT - col2 + col1 * ( col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
611802
93621
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + col2 / + col1 col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - + col0 + - col1 * + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-237
-41024
-83280

query I rowsort
SELECT - + col2 * + col1 + 71 * - col0 FROM tab1 AS cor0
----
-1617
-5114
-6928

query I rowsort
SELECT DISTINCT - col2 * - col2 * - col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - col2 + + col2 * col2 * + col1 FROM tab2 AS cor0
----
22572
24510
39858

onlyif mysql # use DIV operator for integer division
query I rowsort label-1323
SELECT DISTINCT - - col2 DIV col0 + 84 + + col1 col1 FROM tab2 AS cor0
----
101
118
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - - col2 / col0 + 84 + + col1 col1 FROM tab2 AS cor0
----
101
118
143

query I rowsort
SELECT - cor0.col1 + - 46 FROM tab2 AS cor0
----
-105
-63
-77

query I rowsort
SELECT + col0 * 45 - - col0 AS col0 FROM tab1 AS cor0
----
138
2944
3680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT + col2 * ( col1 ) + cor0.col2 DIV + ( - col0 ) col2 FROM tab0 AS cor0
----
2837
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1326
SELECT + col2 * ( col1 ) + cor0.col2 / + ( - col0 ) col2 FROM tab0 AS cor0
----
2837
7462
97

query I rowsort
SELECT col2 + 62 FROM tab0 AS cor0
----
144
63
95

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

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

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

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

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

query I rowsort
SELECT + + 52 * + 82 FROM tab2 AS cor0
----
4264
4264
4264

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + col2 * col0 * col2 FROM tab2 AS cor0
----
114114
5130
52754

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

query I rowsort
SELECT 65 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + col2 + col2 * - 50 FROM tab0 AS cor0
----
-1617
-4018
-49

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT - 96 - - 85 DIV col2 FROM tab1 AS cor0
----
-95
-95
-96

skipif mysql # not compatible
query I rowsort label-1343
SELECT - 96 - - 85 / col2 FROM tab1 AS cor0
----
-95
-95
-96

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

skipif mysql # not compatible
query I rowsort label-1344
SELECT + 56 + - col1 / + col1 AS col2 FROM tab1 AS cor0
----
55
55
55

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

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

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

query I rowsort
SELECT + - ( + 93 ) * - col1 + ( 45 ) AS col0 FROM tab0 AS cor0
----
8043
8508
9066

query I rowsort
SELECT col0 * - 83 FROM tab2
----
-581
-6474
-6557

query I rowsort
SELECT DISTINCT - + 36 * col0 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT col2 - + 65 * - col0 AS col0 FROM tab1 AS cor0
----
249
4217
5296

query I rowsort
SELECT ALL 92 + + col2 AS col1 FROM tab2 AS cor0
----
118
119
130

onlyif mysql # use DIV operator for integer division
query I rowsort label-1352
SELECT - 77 + 9 DIV - cor0.col1 FROM tab2 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-1352
SELECT - 77 + 9 / - cor0.col1 FROM tab2 AS cor0
----
-77
-77
-77

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

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

query I rowsort
SELECT - col1 + 4 * cor0.col0 - col2 * + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
114375
5100
52981

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

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

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

query I rowsort
SELECT ALL - 2 + col1 - - col2 FROM tab1
----
107
65
78

query I rowsort
SELECT DISTINCT + col0 * col0 - + tab0.col1 * ( - col1 ) * - col2 AS col2 FROM tab0
----
-243492
-671121
-8184

query I rowsort
SELECT ALL + 78 + cor0.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7b2409733fab6af3b8db4db12ff1defb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + 95 col1 FROM tab2 AS cor0
----
-2470
-2565
-3610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 59 col1 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 + + col0 - + col2 FROM tab1 AS cor0
----
-1264
-1455
-563

query I rowsort
SELECT + col0 + 98 AS col1 FROM tab1 AS cor0
----
101
162
178

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

query I rowsort
SELECT + 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

query I rowsort
SELECT DISTINCT + ( - col1 + - 53 ) FROM tab1
----
-63
-66
-79

query I rowsort
SELECT - col2 * tab0.col0 - ( + col2 ) * - ( + ( - col2 ) * - col1 ) FROM tab0
----
604586
62
92862

query I rowsort
SELECT + col2 + 14 FROM tab1 AS cor0
----
110
68
71

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

query I rowsort
SELECT ALL 62 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

query I rowsort
SELECT - col1 * ( ( - col2 ) ) + - 55 AS col1 FROM tab1
----
1193
1349
515

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT ALL col2 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL col2 + col1 / col1 AS col1 FROM tab2 AS cor0
----
27
28
39

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

query I rowsort
SELECT ALL - col1 + 64 FROM tab1 AS cor0
----
38
51
54

query I rowsort
SELECT DISTINCT - - 28 * + 78 - - col2 FROM tab1 AS cor0
----
2238
2241
2280

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1379
SELECT ALL - ( + 63 ) DIV + col0 AS col1 FROM tab2 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL - ( + 63 ) / + col0 AS col1 FROM tab2 AS cor0
----
-9
0
0

query I rowsort
SELECT DISTINCT + 18 * - col1 AS col1 FROM tab1 AS cor0
----
-180
-234
-468

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

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

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

query I rowsort
SELECT - 89 + col0 FROM tab1
----
-25
-86
-9

query I rowsort
SELECT DISTINCT + + cor0.col2 + tab0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
112
113
117
118
123
124
129
135

onlyif mysql # use DIV operator for integer division
query I rowsort label-1385
SELECT - col0 * cor0.col1 DIV + 47 AS col2 FROM tab2 AS cor0
----
-28
-4
-97

skipif mysql # not compatible
query I rowsort label-1385
SELECT - col0 * cor0.col1 / + 47 AS col2 FROM tab2 AS cor0
----
-28
-4
-97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1387
SELECT DISTINCT - + cor0.col1 + 91 + col2 DIV col0 FROM tab0 AS cor0
----
-6
0
6

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT - + cor0.col1 + 91 + col2 / col0 FROM tab0 AS cor0
----
-6
0
6

query I rowsort
SELECT DISTINCT - col0 * - ( 91 ) + col2 FROM tab2 AS cor0
----
664
7124
7227

query I rowsort
SELECT ALL col2 + + 13 AS col2 FROM tab0 cor0
----
14
46
95

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

query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col1 * ( - cor0.col1 ) + - col2 FROM tab1 AS cor0
----
-157
-265
-730

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

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

query I rowsort
SELECT - 99 + col1 AS col1 FROM tab1
----
-73
-86
-89

query I rowsort
SELECT ALL - col0 * + 14 + + ( - col2 ) + cor0.col0 * 89 FROM tab2 AS cor0
----
498
5824
5887

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

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL col1 + + 36 / + 38 FROM tab0 cor0
----
86
91
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * + 29 col1 FROM tab1
----
1566
1653
2784

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

query I rowsort
SELECT ALL - 78 + - col1 AS col1 FROM tab2
----
-109
-137
-95

query I rowsort
SELECT DISTINCT - 5 + - col2 FROM tab2
----
-31
-32
-43

query I rowsort
SELECT + - col1 + + 27 * cor0.col0 AS col0 FROM tab2 AS cor0
----
158
2047
2116

onlyif mysql # use DIV operator for integer division
query I rowsort label-1404
SELECT + + ( + 68 ) DIV + col0 FROM tab2 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-1404
SELECT + + ( + 68 ) / + col0 FROM tab2 AS cor0
----
0
0
9

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

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

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

query I rowsort
SELECT DISTINCT ( 9 ) FROM tab2 AS cor0
----
9

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

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

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

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

query I rowsort
SELECT - cor0.col2 * - col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - + 82 * - col1 AS col2 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT ALL - 32 * col1 AS col2 FROM tab0 AS cor0
----
-2752
-2912
-3104

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

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL - ( col2 ) * 31 + - cor0.col0 FROM tab2 AS cor0
----
-1257
-844
-884

query I rowsort
SELECT ALL 29 + col1 AS col2 FROM tab2
----
46
60
88

query I rowsort
SELECT col2 + - 94 + + col0 FROM tab0
----
-37
-58
77

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

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

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

query I rowsort
SELECT ALL - cor0.col1 + 17 AS col2 FROM tab0 AS cor0
----
-69
-74
-80

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

query I rowsort
SELECT ALL + col0 * + 54 * - col2 AS col0 FROM tab2 AS cor0
----
-10206
-109512
-162108

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + 54 AS col1 FROM tab1 cor0
----
4150
63
6454

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

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

query I rowsort
SELECT ALL - col1 + - 42 FROM tab2 AS cor0
----
-101
-59
-73

query I rowsort
SELECT ALL + col0 * ( 7 ) * + col2 FROM tab0 AS cor0
----
245
51086
5544

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1432
SELECT col2 + - CAST( - ( + col2 ) AS SIGNED ) DIV - col0 AS col1 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-1432
SELECT col2 + - CAST ( - ( + col2 ) AS INTEGER ) / - col0 AS col1 FROM tab2
----
24
26
38

query I rowsort
SELECT - ( + col1 ) * + col1 * - ( - 44 ) FROM tab1 AS cor0
----
-29744
-4400
-7436

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + ( - col1 ) / col0 FROM tab2
----
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1439
SELECT col2 DIV 40 AS col1 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1439
SELECT col2 / 40 AS col1 FROM tab1
----
1
1
2

query I rowsort
SELECT DISTINCT 86 + 92 + col0 * - 17 FROM tab2
----
-1148
-1165
59

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

query I rowsort
SELECT - ( 97 ) - - col2 * - col0 * - 17 AS col0 FROM tab1 AS cor0
----
130463
2657
61919

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 * col1 col0 FROM tab1
----
-104
-40
-52

query I rowsort
SELECT - 64 * + tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to dc9f6aa73c98026989903b0099524e96

query I rowsort
SELECT + cor1.col2 FROM tab0, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT + cor0.col0 + - 28 AS col0 FROM tab0 AS cor0
----
-4
61
7

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

query I rowsort
SELECT - - 76 AS col2 FROM tab2 cor0
----
76
76
76

query I rowsort
SELECT ALL + 79 * tab2.col0 FROM tab2
----
553
6162
6241

query I rowsort
SELECT DISTINCT - 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-74

query I rowsort
SELECT ALL + - 82 + - cor0.col1 FROM tab1 AS cor0
----
-108
-92
-95

query I rowsort
SELECT ALL 25 * + col1 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT - 41 AS col0 FROM tab1 cor0
----
-41
-41
-41

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

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

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL CAST ( NULL AS INTEGER ) * 65 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - - 49 * - col0 + + col2 FROM tab2 AS cor0
----
-316
-3796
-3833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

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

query I rowsort
SELECT DISTINCT 41 * + 89 FROM tab1
----
3649

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

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

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 97 FROM tab0
----
NULL

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

query I rowsort
SELECT 28 FROM tab1, tab1 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

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

skipif mysql # not compatible
query I rowsort label-1475
SELECT - col2 + cor0.col0 / + 93 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - - 59 * col1 + ( - col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
1878
7244
9565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + cor0.col1 col0 FROM tab1 AS cor0
----
28
47
83

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

query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 + - 55 FROM tab2 AS cor0
----
1288
162
4547

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1483
SELECT DISTINCT col2 DIV + 99 + col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT col2 / + 99 + col2 FROM tab2
----
26
27
38

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

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

query I rowsort
SELECT ALL col1 * + cor0.col0 + + 66 AS col2 FROM tab0 AS cor0
----
2130
3461
8165

query I rowsort
SELECT ALL - + col0 * - col0 + - 63 AS col0 FROM tab0 AS cor0
----
1162
513
7858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * col1 - col0 col2 FROM tab0
----
7458
8283
9471

query I rowsort
SELECT col0 + 5 + col2 AS col1 FROM tab1
----
126
181
62

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

query I rowsort
SELECT DISTINCT + col1 * col2 - col2 AS col2 FROM tab1
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT ALL tab2.col0 - 59 DIV 62 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL tab2.col0 - 59 / 62 FROM tab2
----
7
78
79

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

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

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

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

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

query I rowsort
SELECT col0 * - ( 68 ) FROM tab1
----
-204
-4352
-5440

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

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

query I rowsort
SELECT 85 + cor0.col1 FROM tab0 AS cor0
----
171
176
182

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 - col1 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-229
-2948
-7642

query I rowsort
SELECT - - 63 + - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1
-17
60

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 + - 94 * + cor0.col1 FROM tab1 AS cor0
----
-1126
-2390
-883

query I rowsort
SELECT ALL - col1 * + col2 - col0 * - 54 FROM tab1 cor0
----
-1242
2886
3072

query I rowsort
SELECT - ( col2 ) * col2 + + 78 FROM tab0 AS cor0
----
-1011
-6646
77

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

query I rowsort
SELECT DISTINCT col0 * col2 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * col0 col2 FROM tab0
----
35
7298
792

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

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

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

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

query I rowsort
SELECT + 73 * col1 AS col0 FROM tab1 AS cor0
----
1898
730
949

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

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

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

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

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

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

query I rowsort
SELECT - 72 + col0 AS col2 FROM tab2 AS cor0
----
-65
6
7

query I rowsort
SELECT DISTINCT + + 39 + + col1 * - cor0.col1 FROM tab1 AS cor0
----
-130
-61
-637

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

query I rowsort
SELECT ALL + ( col1 ) * - col2 + + col2 * cor0.col2 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT ALL - - col2 * col2 + col0 - - col1 FROM tab1 AS cor0
----
2945
3323
9309

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

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

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

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

query I rowsort
SELECT - col2 + - 15 * col1 AS col2 FROM tab0
----
-1323
-1447
-1456

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1535
SELECT col1 + - col1 DIV + col0 + + cor0.col1 FROM tab0 AS cor0
----
169
181
192

skipif mysql # not compatible
query I rowsort label-1535
SELECT col1 + - col1 / + col0 + + cor0.col1 FROM tab0 AS cor0
----
169
181
192

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT - col0 + col0 FROM tab2 WHERE NOT NULL = col2 / + col0 - + col2
----

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

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

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

query I rowsort
SELECT DISTINCT + col1 + - tab1.col1 * col1 FROM tab1
----
-156
-650
-90

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

query I rowsort
SELECT cor0.col2 + + col1 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
310
3448
957

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

query I rowsort
SELECT - col2 + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT - col2 * col1 + - col0 * tab0.col0 FROM tab0
----
-1322
-15383
-3414

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col2 * col1 col0 FROM tab0 AS cor0
----
611884
93654
97

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

query I rowsort
SELECT DISTINCT col0 + col0 + tab1.col1 AS col2 FROM tab1
----
138
173
32

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

query I rowsort
SELECT - col2 + col1 + col2 * col0 AS col1 FROM tab1 cor0
----
134
3601
7597

query I rowsort
SELECT + col2 * col2 * col2 + col1 * - cor0.col2 + col1 FROM tab1 AS cor0
----
156086
184633
883501

query I rowsort
SELECT + 91 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - ( + cor0.col0 ) * col0 + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

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

query I rowsort
SELECT - 71 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

query I rowsort
SELECT ALL - col1 + - 0 FROM tab0
----
-86
-91
-97

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

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

query I rowsort
SELECT DISTINCT + + col1 + 34 FROM tab2 cor0
----
51
65
93

query I rowsort
SELECT ALL + col0 + col0 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
15
4224
6560

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

query I rowsort
SELECT ALL - - cor0.col1 * - 72 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT ALL + 21 + - col1 * cor0.col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
22852
271539
6748

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

query I rowsort
SELECT - col1 * + col1 + col0 * col1 AS col0 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT ALL + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

query I rowsort
SELECT + col1 + + col2 - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2719
-7289
1

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

query I rowsort
SELECT 50 + col1 FROM tab1 AS cor0
----
60
63
76

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

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

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

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

query I rowsort
SELECT 10 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT - 25 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT + col1 + - 28 AS col1 FROM tab1 AS cor0
----
-15
-18
-2

query I rowsort
SELECT col2 * col1 + 21 AS col0 FROM tab1 AS cor0
----
1269
1425
591

query I rowsort
SELECT ALL col0 * + 91 - - cor0.col2 FROM tab1 AS cor0
----
327
5881
7376

query I rowsort
SELECT + + col0 * col0 + 20 FROM tab0 AS cor0
----
1245
596
7941

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1585
SELECT DISTINCT - - col1 * + CAST( - 77 AS SIGNED ) FROM tab0 AS cor0
----
-6622
-7007
-7469

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT - - col1 * + CAST ( - 77 AS INTEGER ) FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT ALL + + col2 * - col2 * col2 + col2 AS col0 FROM tab0 AS cor0
----
-35904
-551286
0

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

query I rowsort
SELECT ALL col1 + + ( 11 ) * col1 FROM tab0 cor0
----
1032
1092
1164

query I rowsort
SELECT + cor0.col1 * 92 + - 31 AS col0 FROM tab2 AS cor0
----
1533
2821
5397

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

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

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

query I rowsort
SELECT col1 * + 63 + - col1 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT col0 * - col1 + + col2 * + col2 * col0 FROM tab0 AS cor0
----
-3360
24072
590337

query I rowsort
SELECT DISTINCT + + col2 * ( - 6 ) AS col0 FROM tab2 AS cor0
----
-156
-162
-228

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

query I rowsort
SELECT + cor0.col0 * + 12 - col2 AS col2 FROM tab2 AS cor0
----
57
910
910

query I rowsort
SELECT ALL - - col1 + - 17 AS col2 FROM tab1 AS cor0
----
-4
-7
9

query I rowsort
SELECT + - col2 + + 75 AS col2 FROM tab0 AS cor0
----
-7
42
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 14 col0 FROM tab1 AS cor0
----
110
68
71

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

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

query I rowsort
SELECT col2 * 2 + tab2.col2 AS col2 FROM tab2
----
114
78
81

query I rowsort
SELECT DISTINCT col1 + - 14 * col0 AS col1 FROM tab2
----
-1033
-1089
-67

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

query I rowsort
SELECT - 6 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT DISTINCT + - 19 + col1 FROM tab2 AS cor0
----
-2
12
40

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1607
SELECT DISTINCT 2 * + col0 + cor0.col2 DIV col1 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT 2 * + col0 + cor0.col2 / col1 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 + + cor0.col1 * 45 col2 FROM tab2 AS cor0
----
1412
2672
782

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab0
----
26

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1613
SELECT col0 DIV + col0 + - ( col1 ) DIV col0 - + col2 FROM tab2
----
-25
-30
-37

skipif mysql # not compatible
query I rowsort label-1613
SELECT col0 / + col0 + - ( col1 ) / col0 - + col2 FROM tab2
----
-25
-30
-37

query I rowsort
SELECT DISTINCT - 20 * col0 - - ( ( - col2 ) + + col0 ) * tab0.col2 FROM tab0
----
-1206
-666
-777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 - col1 * 90 col0 FROM tab1
----
-1177
-2347
-907

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

query I rowsort
SELECT DISTINCT - 90 + - col1 * + col0 + 8 * tab1.col1 * + col0 FROM tab1
----
4390
456
7190

query I rowsort
SELECT ALL - col2 * tab1.col0 * 93 + col1 + - tab1.col1 FROM tab1
----
-15066
-339264
-714240

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

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

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

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

query I rowsort
SELECT ALL ( + tab0.col0 ) + col1 AS col2 FROM tab0
----
110
132
180

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

skipif mysql # not compatible
query I rowsort label-1622
SELECT + ( - col1 ) * - CAST ( 72 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1872
720
936

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

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

query I rowsort
SELECT - 30 + col2 * col2 FROM tab1 AS cor0
----
2886
3219
9186

query I rowsort
SELECT tab2.col2 + + 19 FROM tab2
----
45
46
57

query I rowsort
SELECT 36 + + col1 * col2 FROM tab2
----
1570
682
873

query I rowsort
SELECT DISTINCT 15 * + col0 * col2 AS col1 FROM tab0
----
109470
11880
525

query I rowsort
SELECT 1 + + col0 AS col0 FROM tab2
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT col2 + - col0 DIV CAST( + 65 + col2 * - 55 AS SIGNED ) AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1630
SELECT col2 + - col0 / CAST ( + 65 + col2 * - 55 AS INTEGER ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - ( - tab1.col0 + 84 ) AS col1 FROM tab1
----
-20
-4
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1632
SELECT ALL 67 DIV col2 + + col0 * + 27 FROM tab0 AS cor0
----
1012
2403
650

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL 67 / col2 + + col0 * + 27 FROM tab0 AS cor0
----
1012
2403
650

query I rowsort
SELECT ALL col1 * col1 + 44 FROM tab2 cor0
----
1005
333
3525

onlyif mysql # use DIV operator for integer division
query I rowsort label-1634
SELECT ALL - 60 DIV - col0 + - col2 + - col2 * + col2 FROM tab0 AS cor0
----
-1
-1120
-6806

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL - 60 / - col0 + - col2 + - col2 * + col2 FROM tab0 AS cor0
----
-1
-1120
-6806

query I rowsort
SELECT DISTINCT - 16 * + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-150
-195
-390

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

query I rowsort
SELECT DISTINCT + col0 + 25 FROM tab2
----
103
104
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1638
SELECT ALL col0 DIV col1 + - 7 FROM tab1
----
-1
-1
-7

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL col0 / col1 + - 7 FROM tab1
----
-1
-1
-7

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT + CAST ( - col1 AS INTEGER ) * col1 + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73

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

query I rowsort
SELECT ALL ( 77 * tab2.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 1bb818831a321aec1a29515698c845db

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

skipif mysql # not compatible
query I rowsort label-1642
SELECT + - col2 + CAST ( - 37 AS INTEGER ) * + col0 * - col0 AS col0 FROM tab1 AS cor0
----
151495
236704
279

onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT ALL col1 DIV ( col1 ) + col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL col1 / ( col1 ) + col1 FROM tab0
----
87
92
98

query I rowsort
SELECT ALL 15 * col0 AS col1 FROM tab1
----
1200
45
960

query I rowsort
SELECT + + 51 * col0 + col2 FROM tab2 cor0
----
384
4004
4067

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
3645 values hashing to 5a114c3d024b82b28eeddb04849c8215

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

query I rowsort
SELECT ALL - col1 * + 30 + - col1 * col1 FROM tab0 AS cor0
----
-11011
-12319
-9976

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

query I rowsort
SELECT + 96 + - col1 AS col1 FROM tab0 AS cor0
----
-1
10
5

query I rowsort
SELECT ALL + 18 * + col0 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT DISTINCT + col2 * 83 + + col0 * - 70 FROM tab0 cor0
----
-2367
1059
576

query I rowsort
SELECT ALL - - col1 + + ( + col1 + 54 ) FROM tab0 AS cor0
----
226
236
248

query I rowsort
SELECT + 25 * ( col0 ) AS col2 FROM tab1
----
1600
2000
75

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

query I rowsort
SELECT + 34 * + cor0.col1 + + col2 FROM tab2 cor0
----
1081
2032
616

query I rowsort
SELECT 65 * + cor0.col1 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT ALL + + 31 * + tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to afd2ec55fb56061af90441e653bee903

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

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

query I rowsort
SELECT + 66 * 37 AS col2 FROM tab0
----
2442
2442
2442

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT ( - col0 ) * + 27 + cor0.col0 DIV - col0 FROM tab2 AS cor0
----
-190
-2107
-2134

skipif mysql # not compatible
query I rowsort label-1663
SELECT ( - col0 ) * + 27 + cor0.col0 / - col0 FROM tab2 AS cor0
----
-190
-2107
-2134

query I rowsort
SELECT + 53 + col0 * col1 AS col2 FROM tab1 cor0
----
1093
131
693

query I rowsort
SELECT + 17 * + cor0.col0 + col0 * 29 AS col1 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT - col0 - - ( - 66 ) FROM tab0 AS cor0
----
-101
-155
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1667
SELECT DISTINCT col0 + CAST( 1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT col0 + CAST ( 1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
25
36
90

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

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

query I rowsort
SELECT + col1 + ( - col2 ) * - col2 - + 62 * - col1 AS col2 FROM tab2 AS cor0
----
2515
2682
4393

query I rowsort
SELECT - col2 * 21 + 74 + col0 AS col1 FROM tab0 AS cor0
----
-1559
-595
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1671
SELECT - - col1 DIV col0 + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-1671
SELECT - - col1 / col0 + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1673
SELECT DISTINCT col1 DIV 42 + + 24 + tab0.col0 DIV - 46 FROM tab0
----
25
26

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT col1 / 42 + + 24 + tab0.col0 / - 46 FROM tab0
----
25
26

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1675
SELECT - col1 / 40 col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT - col0 + 12 + - col1 FROM tab1 AS cor0
----
-17
-62
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 * 8 + col0 col1 FROM tab0 AS cor0
----
59192
66337
75307

onlyif mysql # use DIV operator for integer division
query I rowsort label-1678
SELECT + col0 * + col0 + + 60 DIV col1 + - col0 AS col2 FROM tab2 AS cor0
----
43
6007
6165

skipif mysql # not compatible
query I rowsort label-1678
SELECT + col0 * + col0 + + 60 / col1 + - col0 AS col2 FROM tab2 AS cor0
----
43
6007
6165

query I rowsort
SELECT ALL col2 + 45 FROM tab1 cor0
----
102
141
99

query I rowsort
SELECT DISTINCT col1 * 36 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT DISTINCT - - col2 + 72 * + 96 FROM tab0 AS cor0
----
6913
6945
6994

query I rowsort
SELECT ALL + col1 - ( - col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + - col0 + ( col0 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 24 * col1 + + col0 col0 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT 63 + + tab2.col0 AS col2 FROM tab2
----
141
142
70

query I rowsort
SELECT ALL + cor0.col1 + 26 FROM tab2, tab1, tab2 cor0, tab0
----
81 values hashing to 513ef4dc20dcab329d619700f9a7580f

query I rowsort
SELECT ( 51 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL + 1 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT - 26 * tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 53ae45b8d5729024fe949c726b2e88ba

query I rowsort
SELECT + col0 * col0 + col0 * col0 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1470
-352872
-99856

query I rowsort
SELECT - - cor0.col0 + - 37 * col2 * - col2 FROM tab1 AS cor0
----
107895
120277
341072

query I rowsort
SELECT ALL - + 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1693
SELECT + cor0.col1 + ( + col2 ) * col0 DIV 30 FROM tab0 AS cor0
----
112
334
98

skipif mysql # not compatible
query I rowsort label-1693
SELECT + cor0.col1 + ( + col2 ) * col0 / 30 FROM tab0 AS cor0
----
112
334
98

query I rowsort
SELECT - col1 * col0 * col1 + col1 AS col1 FROM tab0
----
-177418
-329218
-736918

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col1 + + tab1.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1697
SELECT - col2 DIV tab2.col1 col1 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1697
SELECT - col2 / tab2.col1 col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT col1 + - col2 * + col2 AS col1 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT + tab2.col0 * col1 + col1 + + col1 AS col1 FROM tab2
----
1377
279
4720

query I rowsort
SELECT DISTINCT tab1.col0 + - tab1.col1 * - col1 FROM tab1
----
164
249
679

query I rowsort
SELECT + - cor0.col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - + 56 * cor0.col2 + + 27 + + col2 AS col0 FROM tab1 AS cor0
----
-2943
-3108
-5253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 + col0 col2 FROM tab0 AS cor0
----
129
64
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT col1 DIV col2 - col1 col0 FROM tab0
----
-84
-90
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1704
SELECT col1 / col2 - col1 col0 FROM tab0
----
-84
-90
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1705
SELECT - 42 * + col2 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT - 42 * + col2 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT DISTINCT col0 + tab0.col1 DIV - 30 AS col0 FROM tab0
----
22
32
86

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT col0 + tab0.col1 / - 30 AS col0 FROM tab0
----
22
32
86

query I rowsort
SELECT ALL - 67 + col2 - 68 FROM tab0
----
-102
-134
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 93 * col1 * + col0 FROM tab2 AS cor0
----
-124899
-20181
-427986

onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT cor0.col2 DIV + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1710
SELECT cor0.col2 / + col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL ( cor0.col2 ) * 17 * 92 FROM tab1 AS cor0
----
150144
84456
89148

query I rowsort
SELECT DISTINCT - 81 * - col0 FROM tab0 AS cor0
----
1944
2835
7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-1713
SELECT ALL + 81 DIV col2 FROM tab0 AS cor0
----
0
2
81

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL + 81 / col2 FROM tab0 AS cor0
----
0
2
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1714
SELECT DISTINCT cor0.col1 + - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
2
62

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT cor0.col1 + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
2
62

query I rowsort
SELECT DISTINCT + + cor0.col1 + cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1716
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col0 - ( - col1 ) * col1 AS col0 FROM tab0
----
6604
9374
983

query I rowsort
SELECT - 28 + col1 + col2 * + tab0.col2 AS col2 FROM tab0
----
1147
6787
70

query I rowsort
SELECT col1 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1720
SELECT col1 + CAST( NULL AS SIGNED ) * 2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT col1 + CAST ( NULL AS INTEGER ) * 2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 + ( + 2 ) AS col2 FROM tab0 cor0
----
88
93
99

query I rowsort
SELECT ALL + col0 + + col1 * - 5 FROM tab0 AS cor0
----
-366
-406
-450

query I rowsort
SELECT + cor0.col2 + - ( - col1 ) AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + 5 AS col1 FROM tab2 AS cor0
----
5
5
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1726
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT + - 6 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1727
SELECT + - 6 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 57 * + col0 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT ALL - ( 57 ) + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-19
-30
-31

query I rowsort
SELECT - + col1 + col1 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - 63 AS col1 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT - - 0 * col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( 66 * - col1 ) - - col2 FROM tab2
----
-1084
-2019
-3868

query I rowsort
SELECT DISTINCT - col1 * + 24 AS col0 FROM tab0
----
-2064
-2184
-2328

query I rowsort
SELECT 76 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT + - 49 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT DISTINCT cor0.col2 * 66 AS col2 FROM tab1, tab2 AS cor0
----
1716
1782
2508

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1738
SELECT ALL + CAST( + cor0.col0 AS SIGNED ) * - tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1091576b2dabfc91057486e7b5f493ef

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL + CAST ( + cor0.col0 AS INTEGER ) * - tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1091576b2dabfc91057486e7b5f493ef

query I rowsort
SELECT - - col0 * + ( + col1 ) * col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT col0 * ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col0 - col2 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT - col2 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col1 + - col1 col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT col2 * - 38 + 62 FROM tab1 AS cor0
----
-1990
-2104
-3586

query I rowsort
SELECT - 51 - + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 674494f13e541ec2834a7dfe1c6d00e1

query I rowsort
SELECT + ( col0 ) + col1 * + 47 FROM tab1 AS cor0
----
1225
534
691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT + 93 * col0 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT ALL - - 71 * col0 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT - + col1 * col1 * + col0 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - ( col0 ) + + 85 AS col1 FROM tab0 AS cor0
----
-4
50
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT - col0 DIV - col0 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1752
SELECT - col0 / - col0 col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1753
SELECT col2 * ( + col2 ) + - col0 + 50 DIV col0 FROM tab0
----
-33
1067
6635

skipif mysql # not compatible
query I rowsort label-1753
SELECT col2 * ( + col2 ) + - col0 + 50 / col0 FROM tab0
----
-33
1067
6635

query I rowsort
SELECT - 99 + + col1 * - col0 FROM tab2 AS cor0
----
-1442
-316
-4701

query I rowsort
SELECT DISTINCT col2 * + col0 + ( - tab0.col1 ) AS col2 FROM tab0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * col2 col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT + col0 + ( col1 ) DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-1757
SELECT + col0 + ( col1 ) / - cor0.col0 AS col1 FROM tab0 AS cor0
----
21
33
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT + + col1 DIV col1 + + 43 * col0 FROM tab1 AS cor0
----
130
2753
3441

skipif mysql # not compatible
query I rowsort label-1758
SELECT + + col1 / col1 + + 43 * col0 FROM tab1 AS cor0
----
130
2753
3441

query I rowsort
SELECT DISTINCT + 59 + + col1 * col2 FROM tab2
----
1593
705
896

query I rowsort
SELECT DISTINCT ( + col2 ) * ( tab1.col1 ) FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1761
SELECT + - cor0.col2 DIV col1 + - 41 * col1 + - ( col2 * - col2 + CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
1874
2844
8689

skipif mysql # not compatible
query I rowsort label-1761
SELECT + - cor0.col2 / col1 + - 41 * col1 + - ( col2 * - col2 + CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
1874
2844
8689

query I rowsort
SELECT DISTINCT 51 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
51

query I rowsort
SELECT + col2 * - 94 AS col1 FROM tab0 cor0
----
-3102
-7708
-94

query I rowsort
SELECT DISTINCT + col1 * 60 * + ( + col0 ) AS col2 FROM tab1
----
38400
4680
62400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 87 col2 FROM tab0
----
-120
-169
-88

query I rowsort
SELECT ALL + 2 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

onlyif mysql # use DIV operator for integer division
query I rowsort label-1767
SELECT ALL - col1 DIV - ( 94 ) AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - col1 / - ( 94 ) AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT - col0 + 60 AS col0 FROM tab0 AS cor0
----
-29
25
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-1769
SELECT + col2 + CAST( col0 + col1 AS SIGNED ) DIV - tab0.col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1769
SELECT + col2 + CAST ( col0 + col1 AS INTEGER ) / - tab0.col1 FROM tab0
----
0
32
81

query I rowsort
SELECT ALL col2 + ( + 1 ) AS col1 FROM tab0
----
2
34
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1771
SELECT ALL CAST( - col0 AS SIGNED ) FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL CAST ( - col0 AS INTEGER ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + + col2 + + cor0.col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - ( ( - col0 ) ) FROM tab2
----
7
78
79

query I rowsort
SELECT 89 * cor0.col0 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT - col1 + cor0.col1 * + ( col1 ) FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1776
SELECT DISTINCT + 61 DIV col1 - - col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT + 61 / col1 - - col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ( - col1 ) - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + + 16 + col2 * col2 FROM tab1 AS cor0
----
2932
3265
9232

query I rowsort
SELECT ALL ( col1 ) * + tab1.col2 * + ( col1 ) + - col1 FROM tab1
----
16211
36478
5690

query I rowsort
SELECT + 23 * - col1 FROM tab2
----
-1357
-391
-713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1781
SELECT + + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1781
SELECT + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 86 * col2 + col0 AS col2 FROM tab0 cor0
----
121
2862
7141

query I rowsort
SELECT 17 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + 46 * cor0.col0 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT - col2 * col0 + - ( col2 ) FROM tab2 cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-1786
SELECT DISTINCT + col1 + - col2 DIV - cor0.col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + col1 + - col2 / - cor0.col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT + 63 * + col0 + - col0 * - col0 FROM tab2 AS cor0
----
10998
11218
490

query I rowsort
SELECT col0 * + cor0.col1 + 71 AS col1 FROM tab1 AS cor0
----
1111
149
711

query I rowsort
SELECT DISTINCT 6 + + col1 AS col2 FROM tab2 cor0
----
23
37
65

query I rowsort
SELECT DISTINCT col1 * - col0 * cor0.col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col0 * + 47 * col2 col2 FROM tab1 AS cor0
----
171399
360864
7560

query I rowsort
SELECT DISTINCT ( + col1 ) - - col0 * + col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT 63 * + col1 AS col2 FROM tab1
----
1638
630
819

query I rowsort
SELECT DISTINCT + 85 + 43 FROM tab0
----
128

query I rowsort
SELECT col2 * - ( - col2 ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT + 47 * 62 - - col1 FROM tab2
----
2931
2945
2973

query I rowsort
SELECT ALL + col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 11 col0 FROM tab0 AS cor0
----
1001
1067
946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col2 FROM tab2 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1801
SELECT col2 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-1801
SELECT col2 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1802
SELECT - cor0.col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT - cor0.col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 12 * col0 FROM tab0 cor0
----
-1068
-288
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * col1 * col0 col1 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-1805
SELECT ALL + col0 DIV + 82 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + col0 / + 82 FROM tab0
----
0
0
1

query I rowsort
SELECT - col0 * ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab2, tab2 AS cor0
----
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1809
SELECT - CAST( 34 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-1836
-1938
-3264

skipif mysql # not compatible
query I rowsort label-1809
SELECT - CAST ( 34 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT ALL ( col1 ) * - col1 * col2 + + col0 * + col1 + - ( - col1 ) FROM tab0 AS cor0
----
-241918
-5917
-670852

query I rowsort
SELECT 11 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1812
SELECT ALL col2 DIV 61 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL col2 / 61 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + 62 FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT + ( + 66 ) AS col1 FROM tab2
----
66
66
66

query I rowsort
SELECT - cor0.col2 FROM tab0, tab2 AS cor0, tab1, tab2 cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 46 col0 FROM tab1 AS cor0
----
1196
460
598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1817
SELECT - + CAST( 13 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
-1118
-1183
-1261

skipif mysql # not compatible
query I rowsort label-1817
SELECT - + CAST ( 13 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
-1118
-1183
-1261

query I rowsort
SELECT ALL + + col1 + ( col0 ) * col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + 14 * - cor0.col2 + - col1 AS col2 FROM tab2 cor0
----
-409
-423
-549

onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT + col2 DIV 39 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1820
SELECT + col2 / 39 AS col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT ALL col1 + + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + cor0.col0 * + col0 * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL - - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col1 + col0 * - ( + 43 ) AS col1 FROM tab2 AS cor0
----
-270
-3295
-3380

query I rowsort
SELECT ALL - + 77 + col1 AS col0 FROM tab1 AS cor0
----
-51
-64
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1826
SELECT DISTINCT + 89 * + col1 + ( + cor0.col1 * - col1 ) - CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT + 89 * + col1 + ( + cor0.col1 * - col1 ) - CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 82 + col2 AS col1 FROM tab2 AS cor0
----
-44
-55
-56

query I rowsort
SELECT DISTINCT - 48 * + col0 + + col0 * col1 FROM tab1 cor0
----
-2432
-2800
-66

query I rowsort
SELECT ALL col0 + - 97 * + col0 FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT 17 * + 93 FROM tab1, tab0 AS cor0
----
9 values hashing to 9691cbc208f03af00054a787ced294ce

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL - 78 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT + cor0.col1 * 29 + 32 AS col0 FROM tab0 AS cor0
----
2526
2671
2845

query I rowsort
SELECT DISTINCT - col0 + + 5 AS col1 FROM tab2 AS cor0
----
-2
-73
-74

query I rowsort
SELECT DISTINCT col2 * + col1 + 68 FROM tab0 AS cor0
----
165
2906
7530

query I rowsort
SELECT ALL + col1 * col1 + - col2 * - col2 FROM tab2 AS cor0
----
1690
1733
4157

query I rowsort
SELECT - 17 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to c2265365b5649c888846aefc3ede9a69

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT ALL - + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT DISTINCT CAST( + 16 AS SIGNED ) * + col2 - + col0 FROM tab1 AS cor0
----
1456
848
861

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT CAST ( + 16 AS INTEGER ) * + col2 - + col0 FROM tab1 AS cor0
----
1456
848
861

query I rowsort
SELECT - 60 * + col2 - - col1 AS col1 FROM tab2 AS cor0
----
-1501
-1589
-2263

query I rowsort
SELECT ALL ( cor0.col1 ) + - col1 * + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT + + 40 - cor0.col1 FROM tab1 AS cor0
----
14
27
30

query I rowsort
SELECT ALL + ( col2 ) + col0 * col0 * + cor0.col2 + - col0 FROM tab2 AS cor0
----
1343
158132
237117

query I rowsort
SELECT DISTINCT cor0.col2 - - col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 + cor0.col1 col1 FROM tab1 AS cor0
----
51
54
67

query I rowsort
SELECT col1 + + 6 FROM tab2 AS cor0
----
23
37
65

query I rowsort
SELECT DISTINCT + + ( - ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - + 73 AS col2 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + 0 * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + - 75 * col0 + + 18 AS col0 FROM tab1 cor0
----
-207
-4782
-5982

query I rowsort
SELECT - ( - col2 ) + + col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1853
SELECT DISTINCT col1 DIV cor0.col0 + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-70

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT col1 / cor0.col0 + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-70

query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL col0 * - 41 * 17 AS col0 FROM tab1
----
-2091
-44608
-55760

query I rowsort
SELECT + col0 * ( + 59 * col2 + - col1 ) FROM tab1 AS cor0
----
214592
452080
9480

query I rowsort
SELECT + col1 * ( - col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 11 - - col0 FROM tab1 AS cor0
----
-8
53
69

query I rowsort
SELECT + + col2 * + 70 + + cor0.col0 FROM tab0 AS cor0
----
105
2334
5829

onlyif mysql # use DIV operator for integer division
query I rowsort label-1860
SELECT - - ( + col0 ) * + col2 - col2 DIV col0 FROM tab1 AS cor0
----
144
3648
7679

skipif mysql # not compatible
query I rowsort label-1860
SELECT - - ( + col0 ) * + col2 - col2 / col0 FROM tab1 AS cor0
----
144
3648
7679

query I rowsort
SELECT - + ( - col1 ) * cor0.col0 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT col1 * 31 FROM tab1
----
310
403
806

query I rowsort
SELECT ALL col1 * 33 FROM tab2
----
1023
1947
561

query I rowsort
SELECT + ( 14 ) FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT ALL - 23 * - col0 * - col1 AS col2 FROM tab1
----
-14720
-1794
-23920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT - 80 * col1 DIV + col1 AS col2 FROM tab1
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-1866
SELECT - 80 * col1 / + col1 AS col2 FROM tab1
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + + cor0.col0 + + col2 - 13 FROM tab2 AS cor0
----
104
21
91

query I rowsort
SELECT DISTINCT - 83 * - col2 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT + col1 * col1 + col0 + col0 * + col1 * 83 FROM tab0 AS cor0
----
178732
291229
680587

onlyif mysql # use DIV operator for integer division
query I rowsort label-1871
SELECT + 53 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
53

skipif mysql # not compatible
query I rowsort label-1871
SELECT + 53 / col2 AS col2 FROM tab0 AS cor0
----
0
1
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + cor0.col0 col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - cor0.col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 47 + + col0 * - cor0.col1 - - col2 FROM tab2 AS cor0
----
-1352
-237
-4623

query I rowsort
SELECT DISTINCT col1 + - col2 - + col2 * + col2 AS col0 FROM tab2
----
-1465
-643
-725

query I rowsort
SELECT DISTINCT + 67 * 47 AS col2 FROM tab1
----
3149

query I rowsort
SELECT ALL + 11 + tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 401629b419f25352770f7ba1264b6293

query I rowsort
SELECT - 95 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT 21 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT cor0.col1 * col2 + - 56 AS col0 FROM tab1 AS cor0
----
1192
1348
514

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT + col1 + + col2 DIV - ( - col1 ) FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-1882
SELECT + col1 + + col2 / - ( - col1 ) FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT - 54 + cor0.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f59384ff798f8debd599863ad9540779

query I rowsort
SELECT - 23 * col0 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + ( + col1 ) col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col0 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - - col0 * - 50 + + col1 FROM tab1 cor0
----
-124
-3190
-3987

query I rowsort
SELECT DISTINCT - col0 + + 13 * + col2 FROM tab2 cor0
----
260
344
415

query I rowsort
SELECT - col1 + 78 FROM tab0 AS cor0
----
-13
-19
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1890
SELECT + col1 + - col1 DIV + ( + col2 ) AS col1 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-1890
SELECT + col1 + - col1 / + ( + col2 ) AS col1 FROM tab0 AS cor0
----
0
84
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1891
SELECT + col0 * CAST( - 17 AS SIGNED ) / - col0 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT + col0 * CAST ( - 17 AS INTEGER ) / - col0 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + 71 FROM tab1 cor0
----
-9
68
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1893
SELECT ALL - col2 - CAST( NULL AS SIGNED ) * 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) * 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 + 62 FROM tab2 AS cor0
----
100
88
89

skipif mysql # not compatible
query I rowsort
SELECT - col0 * - CAST ( - col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab0, tab0 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1897
SELECT DISTINCT - cor0.col0 - CAST( col2 + - col2 AS SIGNED ) FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT - cor0.col0 - CAST ( col2 + - col2 AS INTEGER ) FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1898
SELECT DISTINCT + col2 * + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + col2 * + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT ALL col0 * + 97 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
679
7567
7667

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL col0 * + 97 + col0 / col1 AS col2 FROM tab2 AS cor0
----
679
7567
7667

query I rowsort
SELECT ALL + cor0.col0 + ( col2 + col1 ) * ( col1 ) AS col1 FROM tab1 AS cor0
----
1497
2083
734

query I rowsort
SELECT DISTINCT + col2 * col0 * 3 FROM tab2 AS cor0
----
567
6084
9006

query I rowsort
SELECT + + ( - col1 ) + - col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT 25 * + 90 AS col0 FROM tab0 AS cor0
----
2250
2250
2250

query I rowsort
SELECT + col2 + - 85 * + col2 AS col1 FROM tab0 AS cor0
----
-2772
-6888
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1905
SELECT cor0.col0 + + col2 * + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT cor0.col0 + + col2 * + col1 + 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-1906
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 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-1906
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col1 * + col1 * - col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + - 11 + 4 + + col2 AS col0 FROM tab2 AS cor0
----
19
20
31

query I rowsort
SELECT + col0 + + cor0.col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL + ( - 21 ) FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1911
SELECT ALL CAST( col1 AS SIGNED ) FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT 5 + + ( + col0 ) * 28 AS col1 FROM tab1 AS cor0
----
1797
2245
89

query I rowsort
SELECT DISTINCT col2 * col2 * col0 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL + 80 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1120
158
720

query I rowsort
SELECT ALL - ( cor0.col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1916
SELECT ALL - - col0 DIV + col2 AS col1 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL - - col0 / + col2 AS col1 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT ALL - 19 + col2 FROM tab2 cor0
----
19
7
8

query I rowsort
SELECT ALL + + col0 * cor0.col1 + ( col1 ) AS col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT 51 * + col2 + col1 FROM tab0 AS cor0
----
148
1769
4273

query I rowsort
SELECT - 41 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-130
-65
-76

query I rowsort
SELECT tab1.col1 * - tab1.col2 - - col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - 87 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT - col0 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT col0 * tab2.col0 + col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT tab1.col0 * cor0.col2 * 98 FROM tab1, tab2 AS cor0
----
9 values hashing to fa20d918c9ec3bc3ffc887968ee5adfa

query I rowsort
SELECT col0 * - col1 - - col1 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - 74 * + col2 FROM tab2
----
-1924
-1998
-2812

onlyif mysql # use DIV operator for integer division
query I rowsort label-1928
SELECT ALL - 50 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - 50 / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + 60 * col1 AS col0 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT + 57 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL 90 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1932
SELECT - col0 / - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1932
SELECT - col0 / - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT DISTINCT - - col2 + col1 DIV - col0 + + col2 AS col0 FROM tab1 AS cor0
----
100
114
192

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT - - col2 + col1 / - col0 + + col2 AS col0 FROM tab1 AS cor0
----
100
114
192

query I rowsort
SELECT + tab2.col2 + 25 FROM tab2
----
51
52
63

query I rowsort
SELECT ALL 85 * col2 + col2 * - 82 AS col1 FROM tab2
----
114
78
81

query I rowsort
SELECT ALL + 41 * 14 FROM tab2
----
574
574
574

query I rowsort
SELECT + ( col0 + col2 ) * col2 * + col2 FROM tab0
----
1149804
36
62073

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + cor0.col0 + + col2 + - col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + - col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col2 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1942
SELECT DISTINCT col0 + col0 * col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT col0 + col0 * col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 62 ) + cor0.col1 col1 FROM tab1 AS cor0
----
-36
-49
-52

query I rowsort
SELECT ( + col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT 84 + + col1 * col1 * col0 - - col0 AS col0 FROM tab1 AS cor0
----
13684
2115
6548

query I rowsort
SELECT DISTINCT col2 * + 30 AS col1 FROM tab0
----
2460
30
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1949
SELECT + - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT + - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 57 + - tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 319061ade8730c04b3c34140c086bbe7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 * - col1 col0 FROM tab2
----
-1364
-2596
-748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

query I rowsort
SELECT ALL + + 8 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to a42c42e56e75960d97c09dd731d99c01

query I rowsort
SELECT ALL - 7 AS col2 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1955
SELECT + CAST( + col1 AS SIGNED ) * + col0 * 44 + - col2 * col1 FROM tab1 AS cor0
----
2028
27590
44512

skipif mysql # not compatible
query I rowsort label-1955
SELECT + CAST ( + col1 AS INTEGER ) * + col0 * 44 + - col2 * col1 FROM tab1 AS cor0
----
2028
27590
44512

onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT + cor0.col0 DIV + 98 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1956
SELECT + cor0.col0 / + 98 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 85 * 63 FROM tab1
----
5355
5355
5355

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 + - ( - col1 ) FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1960
SELECT ALL - col1 * - CAST( col2 AS SIGNED ) + col2 FROM tab0 cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL - col1 * - CAST ( col2 AS INTEGER ) + col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + - col2 + col1 + + 6 * - col2 FROM tab1 AS cor0
----
-352
-389
-659

query I rowsort
SELECT ALL col1 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * - ( + 91 ) - col2 col2 FROM tab0
----
-3036
-7544
-92

query I rowsort
SELECT - col1 * + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT - + col2 * + col2 * - col0 + col0 FROM tab2 cor0
----
114155
5110
52806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL 71 + col1 FROM tab2 AS cor0
----
102
130
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1968
SELECT ALL + CAST( 2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + CAST ( 2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - 8 ) AS col2 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - col1 + + tab0.col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col2 * tab1.col1 + + ( + col0 * tab1.col1 ) + + tab1.col0 * 68 AS col1 FROM tab1
----
-1122
4422
5232

query I rowsort
SELECT - 36 + + col0 + + 42 FROM tab1
----
70
86
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1974
SELECT - col1 + - col1 * + CAST( col1 * - col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
243982
678951
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1974
SELECT - col1 + - col1 * + CAST ( col1 * - col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
243982
678951
9312

query I rowsort
SELECT ALL - 0 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col0 + 68 AS col2 FROM tab1 AS cor0
----
-10
-572
-972

query I rowsort
SELECT + 61 + col1 * col2 FROM tab1 AS cor0
----
1309
1465
631

query I rowsort
SELECT - col2 * + col0 * - 54 FROM tab0 AS cor0
----
1890
394092
42768

query I rowsort
SELECT - col2 * col0 * + 90 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-14554
-328310
-691187

query I rowsort
SELECT - col2 + 66 * col0 * + col0 FROM tab2 AS cor0
----
3207
401518
411868

query I rowsort
SELECT + col0 * + col0 * - 81 + - col1 FROM tab2 cor0
----
-4000
-492863
-505538

query I rowsort
SELECT col0 * - ( 59 ) + col0 FROM tab2 cor0
----
-406
-4524
-4582

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab0
----
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1984
SELECT DISTINCT - cor0.col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT - cor0.col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1985
SELECT DISTINCT + col1 DIV - col1 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT + col1 / - col1 AS col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT + 23 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to d3b0357ceadb3a70da7f1649b1ef2a30

query I rowsort
SELECT col0 + col1 * - col2 AS col0 FROM tab0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT ALL - col2 * - col1 - - col2 DIV tab1.col2 FROM tab1
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - col2 * - col1 - - col2 / tab1.col2 FROM tab1
----
1249
1405
571

query I rowsort
SELECT ALL + 23 + - col2 * col1 FROM tab1 AS cor0
----
-1225
-1381
-547

query I rowsort
SELECT col0 * + col2 + col1 * col2 + col2 FROM tab1
----
1620
4275
9024

query I rowsort
SELECT DISTINCT col1 * + col0 + + tab1.col1 AS col1 FROM tab1
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT + col2 DIV tab0.col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1992
SELECT + col2 / tab0.col0 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + tab1.col1 * col0 * - col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + tab0.col0 * col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col0 + col0 + - col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col0 * col1 * + col1 AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT col2 + + col0 * col0 * col0 + col2 * - col1 FROM tab0 WHERE NOT col1 + col2 NOT IN ( + col0 * col0 )
----

query I rowsort
SELECT ALL + 44 AS col0 FROM tab1
----
44
44
44

query I rowsort
SELECT - col0 * + col1 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - tab1.col2 * + col0 + - col2 col0 FROM tab1
----
-207993
-737376
-8802

query I rowsort
SELECT DISTINCT col0 + - tab0.col0 * col1 + + tab0.col0 FROM tab0
----
-2016
-3325
-7921

query I rowsort
SELECT col2 * col0 * - col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT col1 * - tab0.col1 + col0 * col2 AS col1 FROM tab0
----
-6604
-9374
-983

query I rowsort
SELECT ALL col0 / col2 + - col0 + + col2 FROM tab2 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 ) <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2006
SELECT ALL col0 * col1 + col1 DIV - col2 + + col2 * + col1 FROM tab0
----
15560
3395
4900

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL col0 * col1 + col1 / - col2 + + col2 * + col1 FROM tab0
----
15560
3395
4900

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col1 + - col0 + + col2 * + col0 )
----

query I rowsort
SELECT - col0 * tab2.col2 * col2 FROM tab2
----
-114076
-5103
-52728

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 - tab2.col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT - col0 * - col1 - + col0 * + col0 FROM tab2
----
-1482
-4898
168

query I rowsort
SELECT + col1 * + col0 + + col0 - + tab0.col2 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <= col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT + col0 * - col2 + + col2 DIV + col0 AS col1 FROM tab1
----
-144
-3648
-7679

skipif mysql # not compatible
query I rowsort label-2015
SELECT + col0 * - col2 + + col2 / + col0 AS col1 FROM tab1
----
-144
-3648
-7679

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 * + col1 AND NULL
----

query I rowsort
SELECT 88 * + 57 AS col2 FROM tab2
----
5016
5016
5016

query I rowsort
SELECT ALL col2 * tab0.col2 * tab0.col0 + 11 * col1 FROM tab0
----
1102
27082
599437

onlyif mysql # use DIV operator for integer division
query I rowsort label-2019
SELECT 6 + 95 * col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-2019
SELECT 6 + 95 * col1 / - col1 AS col1 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT ALL - - ( col2 ) + col2 AS col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT - - col0 + + 69 AS col0 FROM tab2 AS cor0
----
147
148
76

query I rowsort
SELECT ALL - + col0 + col2 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + ( - 89 ) FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 * col2 + 86 * - 27 FROM tab2 AS cor0
----
111754
2781
50406

query I rowsort
SELECT - - col2 * + col0 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col2 + + col0 * - 65 FROM tab0 AS cor0
----
-1527
-2274
-5703

query I rowsort
SELECT cor0.col1 + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT 85 * cor0.col1 + + ( + ( - col0 ) * + col0 ) AS col0 FROM tab1 cor0
----
-3246
-5295
2201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 - - col0 col2 FROM tab2 AS cor0
----
169
170
98

query I rowsort
SELECT DISTINCT col1 * - cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2031
SELECT - col1 * - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT - col1 * - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + tab2.col0 + col2 AS col0 FROM tab2
----
134
163
65

query I rowsort
SELECT DISTINCT + ( + col0 ) + - col2 AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT + col2 + + 43 * col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
24567
53760
60426

query I rowsort
SELECT + col2 + 43 * col0 FROM tab1 cor0
----
183
2809
3536

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 * - ( + 61 * - col2 ) AS col2 FROM tab1 AS cor0
----
34770
76128
85644

query I rowsort
SELECT DISTINCT col1 * 84 FROM tab2 AS cor0
----
1428
2604
4956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2039
SELECT - col0 * + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT - col0 * + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 * + 16 AS col2 FROM tab0 AS cor0
----
1312
16
528

onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT DISTINCT + - col1 DIV CAST( + ( col1 ) AS SIGNED ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT + - col1 / CAST ( + ( col1 ) AS INTEGER ) FROM tab1 cor0
----
-1

query I rowsort
SELECT col2 * 6 FROM tab0 AS cor0
----
198
492
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT DISTINCT + - col1 DIV - col2 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + - col1 / - col2 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - col2 + - 9 * 57 FROM tab0 AS cor0
----
-514
-546
-595

query I rowsort
SELECT - col2 * - 9 * col2 FROM tab1 AS cor0
----
26244
29241
82944

query I rowsort
SELECT DISTINCT - tab1.col0 * ( tab1.col1 ) + tab1.col2 - - ( 60 + - col1 ) FROM tab1
----
-533
-897
10

query I rowsort
SELECT ALL + col1 * ( + col2 ) + tab2.col2 AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + + cor0.col2 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + + ( 85 ) + + col2 AS col1 FROM tab2 AS cor0
----
111
112
123

query I rowsort
SELECT + + 98 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT + - ( col0 ) * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - 58 * col2 AS col1 FROM tab0 AS cor0
----
-1914
-4756
-58

query I rowsort
SELECT - - 11 + - col1 * col2 FROM tab0 AS cor0
----
-2827
-7451
-86

query I rowsort
SELECT ALL - col0 * - 81 * col0 FROM tab0
----
46656
641601
99225

query I rowsort
SELECT + 23 * col2 * ( + col2 + col1 ) FROM tab0 AS cor0
----
2254
326278
90321

query I rowsort
SELECT + - 81 * + col0 AS col0 FROM tab1 AS cor0
----
-243
-5184
-6480

query I rowsort
SELECT - cor0.col1 * + 73 FROM tab0, tab2 cor0
----
9 values hashing to ea993991fba20e7617d5ae162cbb9577

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - - 14 * cor0.col1 + - col1 + - col1 FROM tab1 AS cor0
----
120
156
312

query I rowsort
SELECT cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT col1 + 57 AS col0 FROM tab2
----
116
74
88

query I rowsort
SELECT ALL + col1 + col2 + + 60 * col1 FROM tab0
----
5279
5633
5918

query I rowsort
SELECT - 74 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT + 6 * col1 * col2 FROM tab0
----
17028
44772
582

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 16 AS REAL ) * col0 col1 FROM tab2 cor0
----
112
1248
1264

query I rowsort
SELECT DISTINCT - - col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - tab1.col1 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - col2 * - cor0.col2 + ( col2 ) AS col0 FROM tab0 cor0
----
1122
2
6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2069
SELECT DISTINCT col0 * + cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT col0 * + cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( + 50 ) + - tab1.col0 * + col1 AS col0 FROM tab1
----
-1090
-128
-690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * tab1.col2 col1 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2072
SELECT - col0 + - col1 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2072
SELECT - col0 + - col1 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + col2 * - 60 FROM tab2 AS cor0
----
-1501
-1589
-2263

onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT DISTINCT + col2 * cor0.col2 DIV - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-21
14
35

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT + col2 * cor0.col2 / - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-21
14
35

query I rowsort
SELECT ALL 12 FROM tab1, tab1 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT - col2 * - col2 * - ( col2 ) AS col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT + ( col1 ) + col1 * col2 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col1 * ( col2 ) + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - col1 * - 49 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT + - col0 + 66 * - col1 * 39 FROM tab1 AS cor0
----
-25804
-33542
-66927

query I rowsort
SELECT + + 38 AS col2 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT - col1 * col2 + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + + 21 - + col1 * col1 AS col0 FROM tab1 AS cor0
----
-148
-655
-79

query I rowsort
SELECT ALL col0 * 90 + + col2 AS col0 FROM tab2 AS cor0
----
657
7046
7148

query I rowsort
SELECT ALL - 70 - - 49 * col0 AS col1 FROM tab2 AS cor0
----
273
3752
3801

query I rowsort
SELECT DISTINCT + col2 * - 78 AS col1 FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT ALL + - cor0.col2 * col1 * cor0.col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT col1 + - ( cor0.col1 + col0 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
16111
2726
4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT ALL + col0 * col0 DIV 8 col1 FROM tab1 cor0
----
1
512
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + col0 * col0 / 8 col1 FROM tab1 cor0
----
1
512
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( - col2 ) * col2 col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + col2 * ( + 3 ) - - col2 AS col1 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT DISTINCT - col1 * 19 FROM tab2 AS cor0
----
-1121
-323
-589

query I rowsort
SELECT ALL - col1 + col0 + col1 * + col0 * col0 FROM tab1
----
211
41014
83267

query I rowsort
SELECT ALL tab0.col2 * - col2 + + tab0.col0 * col2 FROM tab0
----
-297
34
574

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2097
SELECT DISTINCT tab0.col1 * - ( col1 ) + + col1 * + CAST( ( - col0 ) * CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
-184900
-338724
-745290

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT tab0.col1 * - ( col1 ) + + col1 * + CAST ( ( - col0 ) * CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
-184900
-338724
-745290

onlyif mysql # use DIV operator for integer division
query I rowsort label-2098
SELECT + col0 DIV 11 + col0 AS col0 FROM tab2
----
7
85
86

skipif mysql # not compatible
query I rowsort label-2098
SELECT + col0 / 11 + col0 AS col0 FROM tab2
----
7
85
86

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 * - col2 * - ( col2 ) FROM tab2
----
113430
4266
51194

query I rowsort
SELECT DISTINCT - col2 + 73 * 35 AS col1 FROM tab0
----
2473
2522
2554

onlyif mysql # use DIV operator for integer division
query I rowsort label-2101
SELECT ALL col1 DIV tab0.col1 + + col0 * - tab0.col1 * col0 FROM tab0
----
-118824
-49535
-720810

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL col1 / tab0.col1 + + col0 * - tab0.col1 * col0 FROM tab0
----
-118824
-49535
-720810

query I rowsort
SELECT ALL col2 + ( + col1 ) + - col0 FROM tab0
----
63
84
95

query I rowsort
SELECT tab2.col0 + - 56 AS col2 FROM tab2
----
-49
22
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 + col2 * + 33 * col2 col2 FROM tab0
----
221981
35961
68

query I rowsort
SELECT ALL col0 + col0 * - col1 * col0 FROM tab1 AS cor0
----
-231
-40896
-83120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2106
SELECT DISTINCT + col0 + col1 DIV ( col0 ) AS col2 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + col0 + col1 / ( col0 ) AS col2 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT 76 - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1458
-570
-761

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT col0 * col0 - - 68 * + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1293
465153
74628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 * tab2.col0 + col2 col0 FROM tab2
----
-561
-6526
-6598

query I rowsort
SELECT - 92 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT + + 16 * + col0 + - col2 FROM tab1 AS cor0
----
-6
1184
967

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT ALL - cor0.col0 + - col0 DIV ( + col2 ) FROM tab0 AS cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - cor0.col0 + - col0 / ( + col2 ) FROM tab0 AS cor0
----
-24
-70
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2114
SELECT + col2 * col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT + col2 * col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT + + ( col0 ) * ( col2 ) DIV col0 + - 45 FROM tab1 AS cor0
----
12
51
9

skipif mysql # not compatible
query I rowsort label-2116
SELECT + + ( col0 ) * ( col2 ) / col0 + - 45 FROM tab1 AS cor0
----
12
51
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT + col2 DIV col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2117
SELECT + col2 / col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT 82 * + col0 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT - cor0.col0 * + col0 - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT tab2.col0 + col0 + + 87 * - col1 AS col2 FROM tab2
----
-1321
-2683
-4977

onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT DISTINCT tab0.col0 DIV + tab0.col2 + + 66 * col2 col2 FROM tab0
----
101
2178
5413

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT tab0.col0 / + tab0.col2 + + 66 * col2 col2 FROM tab0
----
101
2178
5413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + col0 col1 FROM tab1
----
11
72
88

query I rowsort
SELECT DISTINCT + 60 FROM tab0, tab1, tab1 AS cor0
----
60

query I rowsort
SELECT ALL 80 * col1 - col1 AS col1 FROM tab0
----
6794
7189
7663

query I rowsort
SELECT col2 * col2 * col1 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT - col1 * col0 - 77 * - col0 FROM tab2 AS cor0
----
1404
322
4740

query I rowsort
SELECT ALL - - col0 + - 57 AS col1 FROM tab2 AS cor0
----
-50
21
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2128
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT - cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + 4 FROM tab0 AS cor0
----
28
39
93

query I rowsort
SELECT col2 * 86 - - 22 * col0 FROM tab2 AS cor0
----
2476
3952
5006

query I rowsort
SELECT ALL col0 + - col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL col1 + col0 * cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2134
SELECT ALL - 93 + col2 * col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL - 93 + col2 * col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 + col2 * - cor0.col0 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-3448
-7342
1190

query I rowsort
SELECT ALL + 10 * - 25 AS col2 FROM tab2
----
-250
-250
-250

query I rowsort
SELECT - cor0.col1 + col2 * - col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-193
-2891
-7471

query I rowsort
SELECT ALL + + 68 * col2 AS col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT ( ( col2 ) ) * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + + ( col2 ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2141
SELECT ALL + + ( + col0 ) DIV col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL + + ( + col0 ) / col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - 61 * + ( - col2 ) - - col1 * + col2 AS col2 FROM tab2 cor0
----
2484
2964
3120

query I rowsort
SELECT 90 * - col2 * col1 FROM tab1 AS cor0
----
-112320
-126360
-51300

query I rowsort
SELECT + col0 * col0 + col2 AS col1 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT ALL - col2 + 98 AS col1 FROM tab1 AS cor0
----
2
41
44

query I rowsort
SELECT DISTINCT + col0 + + 34 - - col0 AS col1 FROM tab1 cor0
----
162
194
40

query I rowsort
SELECT ALL - + ( ( col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - + 43 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT DISTINCT 72 * + col0 AS col0 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT DISTINCT + 32 * cor0.col0 * + col0 FROM tab2 AS cor0
----
1568
194688
199712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * col2 col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL - col1 - - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 30 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT + tab1.col1 * + ( + tab1.col1 * col2 ) FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT - + col2 + + 24 * + col2 FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2157
SELECT ALL col2 + col0 * CAST( col0 + cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1261
1401
15301

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL col2 + col0 * CAST ( col0 + cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1261
1401
15301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT - - col1 * - cor0.col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col2 * - col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2161
SELECT + 64 * - col0 + CAST( + col0 AS SIGNED ) - col2 AS col0 FROM tab2 AS cor0
----
-468
-4940
-5015

skipif mysql # not compatible
query I rowsort label-2161
SELECT + 64 * - col0 + CAST ( + col0 AS INTEGER ) - col2 AS col0 FROM tab2 AS cor0
----
-468
-4940
-5015

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2162
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 58 * col1 * col2 - + col2 AS col2 FROM tab0 AS cor0
----
164571
432714
5625

query I rowsort
SELECT + col0 * - col2 - - cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT col0 * + col2 - + 53 FROM tab0 AS cor0
----
-18
7245
739

query I rowsort
SELECT + + col0 + col2 * + col1 * + 81 FROM tab0 AS cor0
----
229902
604511
7892

query I rowsort
SELECT + 36 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - col0 + - 7 FROM tab1 cor0
----
-10
-71
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab2.col0 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col0 * - col2 * col2 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT - 24 * + 5 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29d7da7d36b826cb1636053c1044c28c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT + + cor0.col1 DIV + 70 + 24 FROM tab2 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-2172
SELECT + + cor0.col1 / + 70 + 24 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT - col0 * - col1 + 0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col1 + - ( col2 ) FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + col1 * + 7 col2 FROM tab2 AS cor0
----
198
224
491

query I rowsort
SELECT ALL + - col0 + col2 + 38 * - cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-155655
-243184
-291

query I rowsort
SELECT cor0.col2 * + cor0.col1 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - col0 * 19 + + 37 AS col0 FROM tab1 cor0
----
-1179
-1483
-20

query I rowsort
SELECT ALL + tab1.col0 * tab1.col0 AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL tab1.col0 * col0 * tab1.col2 AS col1 FROM tab1
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2181
SELECT DISTINCT - col2 + col0 DIV col2 - + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - col2 + col0 / col2 - + col0 / col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT ALL + cor0.col0 + col1 DIV cor0.col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + cor0.col0 + col1 / cor0.col1 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2183
SELECT + - col1 + col1 DIV + 40 FROM tab2 AS cor0
----
-17
-31
-58

skipif mysql # not compatible
query I rowsort label-2183
SELECT + - col1 + col1 / + 40 FROM tab2 AS cor0
----
-17
-31
-58

query I rowsort
SELECT + col1 + ( + col2 ) * col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + col0 * + col1 - ( col0 ) AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - col0 - 24 * + col1 AS col1 FROM tab2 AS cor0
----
-1494
-487
-751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2187
SELECT col0 / - CAST( NULL AS SIGNED ) + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT col0 / - CAST ( NULL AS INTEGER ) + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * ( 87 + + col0 ) FROM tab2
----
2538
4290
6308

query I rowsort
SELECT - 65 + + col0 AS col2 FROM tab2 AS cor0
----
-58
13
14

query I rowsort
SELECT - tab2.col2 * 51 AS col1 FROM tab2
----
-1326
-1377
-1938

query I rowsort
SELECT - - cor1.col1 * cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4a2f25e7025075a0ce048be425c35957

query I rowsort
SELECT ALL - col2 * - tab1.col0 + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - col2 * col1 + + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - col1 * + col0 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL 15 FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT DISTINCT + - col1 + col0 * 32 FROM tab1 AS cor0
----
2038
2547
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT + tab2.col0 - + tab2.col0 * 62 FROM tab2, tab2 AS cor0
----
9 values hashing to 04c39039b4048d900af1c8e9b7691776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2199
SELECT DISTINCT 3 DIV col2 AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT 3 / col2 AS col1 FROM tab0
----
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2200
SELECT CAST( NULL AS SIGNED ) / + tab1.col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT CAST ( NULL AS INTEGER ) / + tab1.col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 7 * - cor0.col0 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-505
-656
-75

query I rowsort
SELECT ALL + + col1 * + col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - col1 + - 67 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT - 73 * col0 - col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

onlyif mysql # use DIV operator for integer division
query I rowsort label-2205
SELECT ALL + col1 + + col0 DIV - col1 + + 10 AS col2 FROM tab2 AS cor0
----
23
41
68

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL + col1 + + col0 / - col1 + + 10 AS col2 FROM tab2 AS cor0
----
23
41
68

query I rowsort
SELECT DISTINCT - 96 * + 90 - + col0 AS col2 FROM tab2 AS cor0
----
-8647
-8718
-8719

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2207
SELECT - + CAST( NULL AS SIGNED ) * - 53 + - cor0.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-2207
SELECT - + CAST ( NULL AS INTEGER ) * - 53 + - cor0.col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 46 AS col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT col2 * cor0.col2 * col0 + + ( - 32 * - col0 ) AS col2 FROM tab0 AS cor0
----
1155
26904
601284

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2210
SELECT ALL - cor0.col0 / + 38 + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL - cor0.col0 / + 38 + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 34 ) * + col2 col1 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT ALL 67 + col2 + cor0.col1 FROM tab0 cor0
----
165
186
240

onlyif mysql # use DIV operator for integer division
query I rowsort label-2213
SELECT + + CAST( - col0 AS SIGNED ) - col1 DIV - 63 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2213
SELECT + + CAST ( - col0 AS INTEGER ) - col1 / - 63 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT + 75 * - col0 AS col1 FROM tab0 cor0
----
-1800
-2625
-6675

query I rowsort
SELECT DISTINCT - col2 * - col0 * - col2 + - 16 FROM tab2 AS cor0
----
-114092
-5119
-52744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2216
SELECT ALL CAST( - col0 AS SIGNED ) + + col1 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL CAST ( - col0 AS INTEGER ) + + col1 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2217
SELECT DISTINCT 19 + + col1 DIV + col2 + col2 * - col0 FROM tab0 cor0
----
-7278
-771
81

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT 19 + + col1 / + col2 + col2 * - col0 FROM tab0 cor0
----
-7278
-771
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( + 9 ) col0 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab2, tab1 cor0
----
87

query I rowsort
SELECT col0 * col1 + tab2.col1 * - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * - 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - 99 AS col2 FROM tab2 cor0
----
-2574
-2673
-3762

query I rowsort
SELECT col1 * - 53 * - col0 FROM tab0 AS cor0
----
109392
179935
429247

query I rowsort
SELECT DISTINCT col2 + 11 FROM tab2 AS cor0
----
37
38
49

query I rowsort
SELECT DISTINCT 77 FROM tab1, tab1 AS cor0
----
77

query I rowsort
SELECT + col0 + + ( cor0.col0 ) * + cor0.col1 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT 62 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT + col1 * - 12 AS col0 FROM tab0 AS cor0
----
-1032
-1092
-1164

query I rowsort
SELECT - 37 * col1 AS col0 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT ALL - tab2.col2 * col2 AS col2 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 75 * - 21 + + col0 * 40 col1 FROM tab2 AS cor0
----
1855
4695
4735

query I rowsort
SELECT DISTINCT col1 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - 50 * + 45 FROM tab0 AS cor0
----
-2250
-2250
-2250

onlyif mysql # use DIV operator for integer division
query I rowsort label-2234
SELECT DISTINCT col2 DIV col0 + + col1 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT col2 / col0 + + col1 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL - ( - col1 ) * col2 - col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2236
SELECT CAST( NULL AS SIGNED ) * ( - col1 + + CAST( - 81 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT CAST ( NULL AS INTEGER ) * ( - col1 + + CAST ( - 81 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( cor0.col0 ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - 83 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab1, tab0, tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT + - ( - ( col2 ) ) DIV ( + col1 ) FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2240
SELECT + - ( - ( col2 ) ) / ( + col1 ) FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 + + col0 * col1 col2 FROM tab0 AS cor0
----
2046
3377
8081

query I rowsort
SELECT - tab2.col0 + + ( col2 + - 17 ) * - 2 FROM tab2
----
-121
-27
-96

query I rowsort
SELECT ALL - tab2.col2 * + col2 AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL + 81 * + col1 AS col0 FROM tab1
----
1053
2106
810

query I rowsort
SELECT ALL ( 85 ) AS col0 FROM tab2
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT col2 * + col0 + - 98 DIV - 47 FROM tab1
----
164
3650
7682

skipif mysql # not compatible
query I rowsort label-2246
SELECT col2 * + col0 + - 98 / - 47 FROM tab1
----
164
3650
7682

query I rowsort
SELECT col0 + + col0 + + col2 * - col1 AS col2 FROM tab1 cor0
----
-1088
-1398
-442

query I rowsort
SELECT 46 - col2 * 42 FROM tab0
----
-1340
-3398
4

query I rowsort
SELECT ALL tab2.col1 * - col0 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL + + col1 + - col0 * - 89 FROM tab2 AS cor0
----
654
7001
7048

query I rowsort
SELECT DISTINCT - - col1 + + ( + 7 ) AS col2 FROM tab0 AS cor0
----
104
93
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT DISTINCT + col0 DIV + 18 FROM tab1 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + col0 / + 18 FROM tab1 AS cor0
----
0
3
4

query I rowsort
SELECT - col2 + - col2 + col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - cor0.col0 * - col2 + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT + - col1 * + 62 FROM tab2 AS cor0
----
-1054
-1922
-3658

query I rowsort
SELECT ALL + + col0 * + col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT - col2 + - ( - col2 ) * col1 DIV - col2 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-2257
SELECT - col2 + - ( - col2 ) * col1 / - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - col0 * - 77 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT + col2 * cor0.col2 + col1 * col1 + cor0.col1 FROM tab1 AS cor0
----
3359
3618
9398

query I rowsort
SELECT ( - col1 ) * col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL ( col2 ) * + col0 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT - - 55 * + col2 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT + ( - 13 ) AS col2 FROM tab0
----
-13
-13
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT ALL - col2 DIV ( - col2 * - col2 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - col2 / ( - col2 * - col2 ) FROM tab0
----
-1
0
0

query I rowsort
SELECT - col1 * col0 + cor0.col0 * cor0.col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1455
-2169
-96

query I rowsort
SELECT - + 51 + col2 FROM tab2 cor0
----
-13
-24
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT col1 * col2 DIV + col0 + col0 AS col0 FROM tab2 cor0
----
126
87
97

skipif mysql # not compatible
query I rowsort label-2267
SELECT col1 * col2 / + col0 + col0 AS col0 FROM tab2 cor0
----
126
87
97

query I rowsort
SELECT DISTINCT tab1.col0 * 8 FROM tab1
----
24
512
640

onlyif mysql # use DIV operator for integer division
query I rowsort label-2269
SELECT DISTINCT + cor0.col0 DIV 80 + ( col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8100

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + cor0.col0 / 80 + ( col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8100

query I rowsort
SELECT ALL col0 * col2 - col2 * + col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT DISTINCT + col1 * - col1 + + 76 AS col0 FROM tab0 AS cor0
----
-7320
-8205
-9333

query I rowsort
SELECT ALL + col1 + 45 FROM tab2 AS cor0
----
104
62
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT DISTINCT + col1 DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT + col1 / CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - - cor0.col0 * 3 AS col2 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT DISTINCT + col2 * + 42 + - cor0.col0 FROM tab2 AS cor0
----
1014
1127
1517

query I rowsort
SELECT DISTINCT + col2 + + 17 AS col0 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT + col2 * + col1 + cor0.col1 * - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + + 21 FROM tab0 AS cor0
----
103
22
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT + + cor0.col1 DIV 69 + - col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2279
SELECT + + cor0.col1 / 69 + - col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - col1 * + col1 - col2 * col1 AS col0 FROM tab1 cor0
----
-1417
-2080
-670

query I rowsort
SELECT DISTINCT - col1 - col1 AS col0 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( col1 * + cor0.col0 + col1 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2287
SELECT ALL - col0 * - col2 DIV + col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - col0 * - col2 / + col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT cor0.col2 + col2 * - col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 + + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2 + + col1 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 + col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * col2 IN ( + tab0.col2 + + tab0.col0 )
----

query I rowsort
SELECT + col0 * col1 * col2 AS col1 FROM tab2
----
119652
51034
5859

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - col0 <= NULL
----

query I rowsort
SELECT cor0.col2 + - col2 + col1 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT ALL + - cor0.col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + - cor0.col0 / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + tab2.col2 + tab2.col1 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col2 - + 28 col0 FROM tab1
----
1220
1376
542

query I rowsort
SELECT + + 18 + col2 AS col1 FROM tab2 AS cor0
----
44
45
56

query I rowsort
SELECT ALL + 87 * + col0 + col2 * - 72 FROM tab1 AS cor0
----
-3627
1464
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT - col0 * - col2 + + ( + col0 + - col2 ) DIV col2 FROM tab0
----
69
7298
792

skipif mysql # not compatible
query I rowsort label-2301
SELECT - col0 * - col2 + + ( + col0 + - col2 ) / col2 FROM tab0
----
69
7298
792

query I rowsort
SELECT - + col0 * + 50 - - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-1653
1638
3012

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT ALL + col2 + ( 82 ) * col2 + 22 DIV + col1 col0 FROM tab2 AS cor0
----
2158
2241
3155

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + col2 + ( 82 ) * col2 + 22 / + col1 col0 FROM tab2 AS cor0
----
2158
2241
3155

query I rowsort
SELECT ALL + col0 * - col2 + col1 * + col0 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT DISTINCT - col1 + + 18 * - tab0.col2 + col2 * 15 AS col0 FROM tab0
----
-100
-185
-337

query I rowsort
SELECT DISTINCT + col1 + - ( - tab0.col0 ) AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + cor0.col1 + col2 + - col1 * col0 FROM tab2 AS cor0
----
-1288
-159
-4517

skipif mysql # not compatible
query I rowsort
SELECT - col0 + + CAST ( col0 AS REAL ) * - col2 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - cor0.col1 + + ( 76 ) * col0 AS col0 FROM tab1 AS cor0
----
202
4854
6067

query I rowsort
SELECT ALL col0 * 25 AS col2 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT - - 24 * col0 AS col0 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + col1 * - 36 AS col2 FROM tab1 cor0
----
-774
3288
7212

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2313
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 * 42 - + col1 col2 FROM tab2 AS cor0
----
3721
3749
3763

onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT ALL col0 * col0 * + col2 + + 30 DIV - col1 FROM tab0 AS cor0
----
1225
19008
649522

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL col0 * col0 * + col2 + + 30 / - col1 FROM tab0 AS cor0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - + col0 col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2317
SELECT DISTINCT 55 + cor0.col0 + + CAST( + col1 AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
1023
3614
423

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT 55 + cor0.col0 + + CAST ( + col1 AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
1023
3614
423

query I rowsort
SELECT DISTINCT 4 + - col0 * 34 AS col2 FROM tab0 AS cor0
----
-1186
-3022
-812

query I rowsort
SELECT DISTINCT + - col0 - - col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + 35 + - col2 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
-2803
-62
-7427

query I rowsort
SELECT DISTINCT - 90 * col2 AS col0 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT DISTINCT - 80 * col1 + + col1 * 10 * - col1 FROM tab2 AS cor0
----
-12090
-39530
-4250

query I rowsort
SELECT ALL + cor0.col0 + col0 * + 68 AS col0 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT DISTINCT ( + col2 ) - - col0 * 56 AS col1 FROM tab0 AS cor0
----
1377
1961
5066

onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT ALL - ( col2 ) DIV + col1 + col0 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - ( col2 ) / + col1 + col0 FROM tab2
----
7
77
78

query I rowsort
SELECT 69 + - 34 FROM tab1
----
35
35
35

query I rowsort
SELECT DISTINCT + - 62 + + col2 AS col0 FROM tab2 AS cor0
----
-24
-35
-36

query I rowsort
SELECT + - 93 + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2157
-3488
-8192

query I rowsort
SELECT + + cor0.col2 + col0 * + col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT + ( + col0 ) * - col0 AS col1 FROM tab2
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * col0 col2 FROM tab0 AS cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2333
SELECT DISTINCT + - col1 DIV + col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + - col1 / + col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - - col2 * - cor0.col1 + + col1 * - col2 + col2 FROM tab2 AS cor0
----
-1254
-1647
-3042

query I rowsort
SELECT DISTINCT - col1 * + col0 - + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ( col1 + - col0 ) FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col1 + cor0.col2 * - col1 col1 FROM tab2 cor0
----
-1449
-591
-779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col2 col1 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2340
SELECT col1 DIV + col2 + - CAST( - 32 + col0 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
-2048
-3840
87

skipif mysql # not compatible
query I rowsort label-2340
SELECT col1 / + col2 + - CAST ( - 32 + col0 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
-2048
-3840
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2341
SELECT - - 80 * - col1 + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
-1281
-2473
-4642

skipif mysql # not compatible
query I rowsort label-2341
SELECT - - 80 * - col1 + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
-1281
-2473
-4642

query I rowsort
SELECT + col1 * cor0.col0 * cor0.col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT cor0.col1 * - 74 FROM tab1 cor0
----
-1924
-740
-962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2344
SELECT + tab2.col0 * + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2344
SELECT + tab2.col0 * + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 * - 50 col0 FROM tab1
----
204800
320000
450

query I rowsort
SELECT + col0 * - col1 + col0 AS col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + col0 * 30 + + col2 FROM tab1 AS cor0
----
144
1977
2496

query I rowsort
SELECT + + col0 * col2 * + col2 - - 30 AS col0 FROM tab1 cor0
----
207966
737310
8778

query I rowsort
SELECT - cor0.col0 + - 79 AS col0 FROM tab0 AS cor0
----
-103
-114
-168

onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT - - col1 * - col1 DIV cor0.col1 - - col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-2350
SELECT - - col1 * - col1 / cor0.col1 - - col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - - 30 * col0 + - col1 FROM tab1 AS cor0
----
1910
2387
64

query I rowsort
SELECT ALL cor0.col1 + + 64 * - col1 AS col2 FROM tab0 cor0
----
-5418
-5733
-6111

query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 + tab2.col0 * col0 * - col1 + + ( - 94 ) col0 FROM tab2
----
-106153
-1586
-359024

onlyif mysql # use DIV operator for integer division
query I rowsort label-2355
SELECT col1 + - col2 * + col0 DIV + col0 + CAST( - col0 AS SIGNED ) * - col0 FROM tab0
----
1321
629
7930

skipif mysql # not compatible
query I rowsort label-2355
SELECT col1 + - col2 * + col0 / + col0 + CAST ( - col0 AS INTEGER ) * - col0 FROM tab0
----
1321
629
7930

query I rowsort
SELECT + tab0.col1 + - 39 FROM tab0
----
47
52
58

query I rowsort
SELECT + col0 * - 73 - - col0 FROM tab1
----
-216
-4608
-5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2358
SELECT + col1 * + col2 + + col1 DIV + col2 + - 33 * + col1 FROM tab0
----
-3007
2
4460

skipif mysql # not compatible
query I rowsort label-2358
SELECT + col1 * + col2 + + col1 / + col2 + - 33 * + col1 FROM tab0
----
-3007
2
4460

query I rowsort
SELECT DISTINCT + col2 - 56 FROM tab2
----
-18
-29
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - tab1.col1 * + col0 col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT 47 + 15 * col0 + - 45 FROM tab0
----
1337
362
527

query I rowsort
SELECT + + 2 * col2 * col2 FROM tab1 AS cor0
----
18432
5832
6498

query I rowsort
SELECT - ( 77 ) * col0 + col2 FROM tab1 AS cor0
----
-177
-4871
-6064

query I rowsort
SELECT 60 * 59 * - col1 FROM tab2 cor0
----
-109740
-208860
-60180

query I rowsort
SELECT DISTINCT + 11 * col1 AS col1 FROM tab1 cor0
----
110
143
286

query I rowsort
SELECT + cor0.col2 * 65 AS col0 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT ALL - 14 * + 57 AS col0 FROM tab2 AS cor0
----
-798
-798
-798

query I rowsort
SELECT DISTINCT + col2 * 30 AS col2 FROM tab2 AS cor0
----
1140
780
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2369
SELECT + CAST( - col1 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-2369
SELECT + CAST ( - col1 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2370
SELECT - + cor0.col0 * + ( col0 * + CAST( cor0.col2 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
-1225
-19008
-649522

skipif mysql # not compatible
query I rowsort label-2370
SELECT - + cor0.col0 * + ( col0 * + CAST ( cor0.col2 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT - cor0.col0 - - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + 30 + - col2 ) * - col1 AS col0 FROM tab2
----
-236
-93
136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT CAST( - col2 AS SIGNED ) * col0 col0 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2373
SELECT CAST ( - col2 AS INTEGER ) * col0 col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT 36 * col2 FROM tab1
----
1944
2052
3456

query I rowsort
SELECT - 17 * + col1 FROM tab0
----
-1462
-1547
-1649

query I rowsort
SELECT DISTINCT + + cor0.col1 + - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( col0 ) + - 25 FROM tab2 cor0
----
-18
53
54

query I rowsort
SELECT DISTINCT col0 * - col1 + ( + cor0.col1 ) - col2 AS col0 FROM tab1 AS cor0
----
-106
-1123
-687

query I rowsort
SELECT DISTINCT - col1 + col1 * col1 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT col1 * col0 * - tab2.col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT ALL + 14 - - col2 AS col0 FROM tab1
----
110
68
71

query I rowsort
SELECT DISTINCT col0 - + 28 FROM tab0
----
-4
61
7

query I rowsort
SELECT DISTINCT - tab0.col0 * - col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 94 * + tab0.col0 AS col1 FROM tab0
----
2256
3290
8366

query I rowsort
SELECT ALL - ( tab1.col0 + tab1.col0 ) * - col0 AS col2 FROM tab1
----
12800
18
8192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT col1 + 17 DIV - col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2387
SELECT col1 + 17 / - col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT DISTINCT - col0 * - col0 * + col0 AS col0 FROM tab0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col0 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + 62 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - 21 + 10 * tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8c5974748f5205263b3e949dd80e266e

query I rowsort
SELECT - col2 * - cor0.col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2395
SELECT + - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT + - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + cor0.col0 ) FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL 75 * + col2 FROM tab2 cor0
----
1950
2025
2850

query I rowsort
SELECT DISTINCT + col2 * + 78 * col0 + col0 FROM tab1 AS cor0
----
12639
284608
599120

query I rowsort
SELECT ALL - - 55 * + col2 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT ( - 43 ) + - col2 * col0 FROM tab2 AS cor0
----
-2071
-232
-3045

query I rowsort
SELECT 43 + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e040dd19ef805c1a6d94fad959b43bc3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT col0 * + tab2.col0 - 4 DIV + tab2.col0 AS col1 FROM tab2
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-2402
SELECT col0 * + tab2.col0 - 4 / + tab2.col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT tab1.col0 + ( 5 ) * col0 AS col0 FROM tab1
----
18
384
480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2404
SELECT - col0 - CAST( 44 AS SIGNED ) * col2 AS col0 FROM tab1
----
-2379
-2572
-4304

skipif mysql # not compatible
query I rowsort label-2404
SELECT - col0 - CAST ( 44 AS INTEGER ) * col2 AS col0 FROM tab1
----
-2379
-2572
-4304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + 73 col1 FROM tab0 cor0
----
150
150
150

query I rowsort
SELECT ALL - ( 74 ) + + col1 * + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
16150
36430
5626

query I rowsort
SELECT DISTINCT 16 * + tab1.col1 AS col0 FROM tab1
----
160
208
416

query I rowsort
SELECT + col0 + 42 * col2 AS col0 FROM tab1 AS cor0
----
2271
2458
4112

query I rowsort
SELECT DISTINCT - col2 * col2 * + col0 + - 71 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-108467
-4606
-47190

query I rowsort
SELECT ALL ( col1 ) + + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT 15 * col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
138240
43740
48735

query I rowsort
SELECT ALL - + 69 + col0 AS col1 FROM tab0 cor0
----
-34
-45
20

query I rowsort
SELECT DISTINCT col0 * 41 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT - 29 * 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 - - col1 * + col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + col0 * - col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - col0 + col0 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - + col2 * col1 + ( col2 ) FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2419
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) + col2 * col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) + col2 * col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 + - 82 AS col2 FROM tab0 AS cor0
----
-168
-173
-179

onlyif mysql # use DIV operator for integer division
query I rowsort label-2421
SELECT col0 DIV cor0.col2 + 60 FROM tab1 AS cor0
----
60
60
61

skipif mysql # not compatible
query I rowsort label-2421
SELECT col0 / cor0.col2 + 60 FROM tab1 AS cor0
----
60
60
61

query I rowsort
SELECT DISTINCT - col2 + col2 * - cor0.col2 - - col1 * - ( - col1 ) FROM tab1 AS cor0
----
-2294
-3206
-9143

query I rowsort
SELECT DISTINCT - col1 - 66 * + 24 AS col1 FROM tab0 AS cor0
----
-1670
-1675
-1681

query I rowsort
SELECT ALL - - col2 + - 4 * col0 FROM tab1 AS cor0
----
-199
-224
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT ALL col2 DIV + 65 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL col2 / + 65 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col1 + col1 + + col0 AS col2 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL col1 + cor0.col1 * - 47 AS col0 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT ALL - ( col2 ) * + ( cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + + 65 * col1 AS col0 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT col2 + 82 FROM tab0
----
115
164
83

query I rowsort
SELECT DISTINCT ( col2 ) * col2 + ( 82 ) * - tab1.col2 * ( col1 * tab1.col1 ) FROM tab1
----
-1321152
-2990412
-464151

query I rowsort
SELECT + - cor0.col1 * - col0 * - 85 FROM tab2 AS cor0
----
-114155
-18445
-391170

query I rowsort
SELECT ALL - 54 + - col0 * col2 FROM tab1
----
-216
-3702
-7734

query I rowsort
SELECT ALL 60 * col2 AS col1 FROM tab2
----
1560
1620
2280

onlyif mysql # use DIV operator for integer division
query I rowsort label-2435
SELECT DISTINCT col1 + col1 - - cor0.col0 * cor0.col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
384
58
616

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT col1 + col1 - - cor0.col0 * cor0.col2 / + col1 AS col2 FROM tab1 AS cor0
----
384
58
616

query I rowsort
SELECT - cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2437
SELECT DISTINCT col1 DIV - cor0.col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT col1 / - cor0.col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT ALL + tab1.col2 * col0 + + 49 FROM tab1
----
211
3697
7729

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79

query I rowsort
SELECT ALL col1 + col1 * + col1 * - col0 AS col2 FROM tab1
----
-13507
-2002
-6390

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2, tab2 AS cor3
----
13122 values hashing to 5affb545e3b7d306d5d8504d5f786ff4

query I rowsort
SELECT ALL + ( - col2 ) * + col2 * col1 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT 98 * 15 + + col0 + - ( - col0 + col0 ) AS col2 FROM tab0 cor0
----
1494
1505
1559

query I rowsort
SELECT - col0 + col0 + - col0 AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 92 * cor0.col1 * - col1 FROM tab2 AS cor0
----
26588
320252
88412

query I rowsort
SELECT ALL 43 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT DISTINCT + + col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + + col2 / + col1 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2448
SELECT ALL CAST( col2 AS SIGNED ) + - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL CAST ( col2 AS INTEGER ) + - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - 62 * 11 * + col2 FROM tab0
----
-22506
-55924
-682

query I rowsort
SELECT ALL col0 * col0 + col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT + 7 * - col2 FROM tab1 AS cor0
----
-378
-399
-672

query I rowsort
SELECT DISTINCT + - 36 + + col1 * col1 FROM tab0 cor0
----
7360
8245
9373

query I rowsort
SELECT DISTINCT 2 * cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
185
256
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2454
SELECT ALL 92 * ( col2 + - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL 92 * ( col2 + - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - cor0.col2 ) * + col0 - col0 * - 70 AS col1 FROM tab2 AS cor0
----
679
7488
8532

query I rowsort
SELECT + col0 + + 4 FROM tab1 cor0
----
68
7
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( - col0 AS REAL ) col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - col2 * col2 col0 FROM tab0 cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2459
SELECT - CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2459
SELECT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - - col1 * 47 AS col0 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT + ( - cor0.col1 ) + + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2462
SELECT DISTINCT - col0 * col1 DIV 6 AS col2 FROM tab1
----
-106
-13
-173

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - col0 * col1 / 6 AS col2 FROM tab1
----
-106
-13
-173

query I rowsort
SELECT + col0 + - col2 + col1 FROM tab1 AS cor0
----
-25
-3
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2464
SELECT + col0 DIV - cor0.col2 + + col0 + col1 FROM tab1 AS cor0
----
29
73
93

skipif mysql # not compatible
query I rowsort label-2464
SELECT + col0 / - cor0.col2 + + col0 + col1 FROM tab1 AS cor0
----
29
73
93

query I rowsort
SELECT + 28 * + 0 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - cor0.col0 + ( 35 ) AS col2 FROM tab0 cor0
----
-54
0
11

query I rowsort
SELECT ALL + col2 + - 67 FROM tab1 AS cor0
----
-10
-13
29

query I rowsort
SELECT col2 + + col0 * + cor0.col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - + col0 * - ( - col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb

query I rowsort
SELECT ALL + - col2 * ( col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2472
SELECT DISTINCT col1 DIV - col2 col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT col1 / - col2 col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - + 8 + cor0.col0 FROM tab1 AS cor0
----
-5
56
72

query I rowsort
SELECT - 6 AS col1 FROM tab0 cor0
----
-6
-6
-6

query I rowsort
SELECT 13 - - ( col1 ) FROM tab1 AS cor0
----
23
26
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2476
SELECT - 88 - 33 DIV - col1 AS col1 FROM tab2 AS cor0
----
-87
-87
-88

skipif mysql # not compatible
query I rowsort label-2476
SELECT - 88 - 33 / - col1 AS col1 FROM tab2 AS cor0
----
-87
-87
-88

query I rowsort
SELECT DISTINCT + ( 51 ) * col2 FROM tab1 AS cor0
----
2754
2907
4896

query I rowsort
SELECT col0 + ( col2 ) FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 79 + col0 col1 FROM tab0
----
114
2631
6567

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2480
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2480
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab0.col2 col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col2 + 75 * col0 FROM tab0
----
1833
2626
6757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT tab0.col1 + + CAST( NULL AS SIGNED ) / col0 + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT tab0.col1 + + CAST ( NULL AS INTEGER ) / col0 + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col0 * col0 + col2 AS col1 FROM tab1
----
262201
512096
81

query I rowsort
SELECT col2 + 95 * + tab0.col1 + + col2 FROM tab0
----
8236
8809
9217

query I rowsort
SELECT 76 * + 83 FROM tab1, tab2 AS cor0
----
9 values hashing to 3762ccb873872ebb83fc49f7eb7f9745

query I rowsort
SELECT - 78 * col2 AS col1 FROM tab0 cor0
----
-2574
-6396
-78

query I rowsort
SELECT ALL - 3 + + cor0.col0 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a20d8bf4170301881546563179a5db81

query I rowsort
SELECT ALL col2 + - col1 * 39 AS col0 FROM tab2 AS cor0
----
-1182
-2275
-625

onlyif mysql # use DIV operator for integer division
query I rowsort label-2490
SELECT DISTINCT col0 DIV - col1 + col2 col1 FROM tab1 AS cor0
----
51
54
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT col0 / - col1 + col2 col1 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * - col1 - 43 FROM tab0 AS cor0
----
-7439
-8324
-9452

query I rowsort
SELECT - col1 + 80 FROM tab0 AS cor0
----
-11
-17
-6

query I rowsort
SELECT ALL cor0.col2 + + 38 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
3301
3540
3687

query I rowsort
SELECT - col1 + + col0 * col0 FROM tab2
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-2496
SELECT 21 * col1 DIV - cor0.col1 + 47 AS col1 FROM tab0 cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-2496
SELECT 21 * col1 / - cor0.col1 + 47 AS col1 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT - 9 * - col2 + + cor0.col0 FROM tab2 AS cor0
----
250
312
421

query I rowsort
SELECT ( - col0 ) * col2 + - ( - col1 ) AS col2 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT + - 70 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-108
-96
-97

query I rowsort
SELECT + 44 * - cor0.col1 FROM tab1 AS cor0
----
-1144
-440
-572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT + CAST( NULL AS SIGNED ) * col0 + - col2 / + 12 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT + CAST ( NULL AS INTEGER ) * col0 + - col2 / + 12 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + 56 FROM tab0
----
142
147
153

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT - tab2.col0 + CAST( NULL AS DECIMAL ) + - tab2.col0 * + col2 * 70 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT - tab2.col0 + CAST ( NULL AS REAL ) + - tab2.col0 * + col2 * 70 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT - 19 * col2 DIV col0 FROM tab2 AS cor0
----
-6
-73
-9

skipif mysql # not compatible
query I rowsort label-2504
SELECT - 19 * col2 / col0 FROM tab2 AS cor0
----
-6
-73
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2505
SELECT + CAST( col1 AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2505
SELECT + CAST ( col1 AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 * + 45 + col2 FROM tab2 AS cor0
----
342
3536
3593

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT 86 DIV col1 + ( col2 ) * + col2 FROM tab2 cor0
----
1449
677
731

skipif mysql # not compatible
query I rowsort label-2507
SELECT 86 / col1 + ( col2 ) * + col2 FROM tab2 cor0
----
1449
677
731

query I rowsort
SELECT 10 * 8 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - 80 AS col0 FROM tab1
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT col1 * + col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT ALL + - 46 + col1 DIV 24 AS col0 FROM tab1 AS cor0
----
-45
-46
-46

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL + - 46 + col1 / 24 AS col0 FROM tab1 AS cor0
----
-45
-46
-46

query I rowsort
SELECT + 34 * col0 + + col1 FROM tab2 AS cor0
----
269
2703
2711

query I rowsort
SELECT ALL col1 * col1 * 78 FROM tab1 AS cor0
----
13182
52728
7800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col1 * 31 * col1 AS col0 FROM tab2
----
107911
29791
8959

onlyif mysql # use DIV operator for integer division
query I rowsort label-2518
SELECT DISTINCT 58 * col1 + col0 DIV 75 FROM tab2
----
1798
3423
987

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT 58 * col1 + col0 / 75 FROM tab2
----
1798
3423
987

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab0, tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT 53 + col0 + col0 FROM tab2
----
209
211
67

query I rowsort
SELECT ( tab1.col2 ) - - col1 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2522
SELECT + 31 + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT + 31 + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + cor0.col0 * - col1 * 31 AS col2 FROM tab2 AS cor0
----
-142740
-41712
-6734

query I rowsort
SELECT 88 * + col1 AS col1 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT DISTINCT - - col0 + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT ALL - cor0.col0 * col1 + - cor0.col1 DIV + col1 AS col1 FROM tab2 cor0
----
-1344
-218
-4603

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - cor0.col0 * col1 + - cor0.col1 / + col1 AS col1 FROM tab2 cor0
----
-1344
-218
-4603

query I rowsort
SELECT - + col1 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - - col1 + + 97 AS col2 FROM tab1 AS cor0
----
107
110
123

query I rowsort
SELECT - col2 + col2 * - 90 FROM tab1
----
-4914
-5187
-8736

query I rowsort
SELECT tab1.col2 * + col2 * col1 + + 49 * + 19 * col1 AS col1 FROM tab1
----
100022
131911
41800

query I rowsort
SELECT + col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - - 91 * col1 FROM tab0 cor0
----
7826
8281
8827

query I rowsort
SELECT cor0.col1 + - 12 * col2 FROM tab1 AS cor0
----
-1139
-622
-674

onlyif mysql # use DIV operator for integer division
query I rowsort label-2534
SELECT - 29 DIV 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT - 29 / 90 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2535
SELECT + CAST( cor0.col1 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2535
SELECT + CAST ( cor0.col1 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + 38 * col2 FROM tab2 cor0
----
1026
1444
988

query I rowsort
SELECT ALL - col2 * ( - col2 ) FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2538
SELECT DISTINCT + + col0 DIV 78 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT + + col0 / 78 FROM tab2 cor0
----
0
1

query I rowsort
SELECT col2 * 58 + col2 AS col0 FROM tab0 AS cor0
----
1947
4838
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2540
SELECT col0 * - CAST( ( col2 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-2540
SELECT col0 * - CAST ( ( col2 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col0 + ( 93 ) FROM tab1 AS cor0
----
13
29
90

query I rowsort
SELECT DISTINCT + + col0 * 95 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT ALL col1 * - cor0.col1 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
636080
753660
912708

query I rowsort
SELECT ALL + col1 - + ( + col0 ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - - col2 - ( col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - cor0.col0 + - col1 * col1 - - col1 FROM tab0 AS cor0
----
-7334
-8279
-9347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2549
SELECT ALL col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 13 + + col2 AS col2 FROM tab0 AS cor0
----
14
46
95

query I rowsort
SELECT DISTINCT col0 - - 46 FROM tab0 AS cor0
----
135
70
81

query I rowsort
SELECT - col0 + - 9 AS col1 FROM tab2 AS cor0
----
-16
-87
-88

query I rowsort
SELECT + col0 + + 34 AS col2 FROM tab2 AS cor0
----
112
113
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT - col2 DIV col0 + col0 * col2 * col2 FROM tab2
----
114076
5100
52728

skipif mysql # not compatible
query I rowsort label-2554
SELECT - col2 / col0 + col0 * col2 * col2 FROM tab2
----
114076
5100
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT - 43 DIV cor0.col2 + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 698ca889e3bae33a7b6b883e810e607f

skipif mysql # not compatible
query I rowsort label-2555
SELECT - 43 / cor0.col2 + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 698ca889e3bae33a7b6b883e810e607f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 46 col1 FROM tab1
----
110
126
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT DISTINCT col0 + col0 * CAST( ( - col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT col0 + col0 * CAST ( ( - col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + cor0.col1 + - col0 * + 26 FROM tab1 AS cor0
----
-1654
-2067
-52

query I rowsort
SELECT 64 * + col0 + 20 AS col1 FROM tab0 AS cor0
----
1556
2260
5716

query I rowsort
SELECT ALL 43 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + - col2 col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT ( col0 ) * ( + col0 ) * col0 - 62 * + tab1.col0 AS col0 FROM tab1
----
-159
258176
507040

query I rowsort
SELECT - 60 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT + 69 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT + 69 / + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 - + col2 * col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL 37 * + col1 FROM tab0 AS cor0
----
3182
3367
3589

onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT + 47 * col0 + + 79 * col1 - col2 DIV col0 FROM tab2 AS cor0
----
2775
5056
8327

skipif mysql # not compatible
query I rowsort label-2567
SELECT + 47 * col0 + + 79 * col1 - col2 / col0 FROM tab2 AS cor0
----
2775
5056
8327

query I rowsort
SELECT 45 * + col1 * 65 + + col1 AS col0 FROM tab0
----
251636
266266
283822

query I rowsort
SELECT ALL col0 * - col0 * + col1 FROM tab2
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT ALL tab0.col1 DIV - 63 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL tab0.col1 / - 63 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - ( + 29 ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT - cor0.col1 * 59 + - col1 AS col1 FROM tab2 AS cor0
----
-1020
-1860
-3540

query I rowsort
SELECT - col2 * col1 + cor0.col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + + col1 + cor0.col0 * 15 AS col1 FROM tab2 AS cor0
----
1202
1229
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 * cor0.col1 col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 376453c0324eaa3e7fde793170f1722d

query I rowsort
SELECT + ( 17 ) FROM tab1 AS cor0
----
17
17
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2577
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 31 + + col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
152
207
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2579
SELECT ALL + CAST( NULL AS SIGNED ) + col1 * col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 * col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + 43 AS col0 FROM tab0 AS cor0
----
129
134
140

query I rowsort
SELECT ( tab1.col2 ) * + col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - ( cor0.col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + + 82 * + col1 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT DISTINCT - 34 * col2 + col1 FROM tab1 AS cor0
----
-1810
-1928
-3251

query I rowsort
SELECT ALL + cor0.col2 * col0 * - cor0.col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2587
SELECT ALL - + col2 * col0 + ( col2 ) DIV col2 FROM tab0 AS cor0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - + col2 * col0 + ( col2 ) / col2 FROM tab0 AS cor0
----
-34
-7297
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT + cor0.col0 * col2 + - 62 AS col2 FROM tab2 AS cor0
----
127
1966
2940

query I rowsort
SELECT DISTINCT + + 21 + - col1 FROM tab1 AS cor0
----
-5
11
8

query I rowsort
SELECT + + 76 AS col0 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT + 78 * col2 AS col2 FROM tab1 cor0
----
4212
4446
7488

query I rowsort
SELECT + col0 + - col1 * col1 FROM tab1
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2594
SELECT + - 99 DIV - col0 FROM tab1 AS cor0
----
1
1
33

skipif mysql # not compatible
query I rowsort label-2594
SELECT + - 99 / - col0 FROM tab1 AS cor0
----
1
1
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT ALL - + cor0.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-2595
SELECT ALL - + cor0.col1 / col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * + col2 + - col2 * + col2 + col1 FROM tab2 AS cor0
----
-509
1411
1575

query I rowsort
SELECT + col1 + 75 * col0 AS col0 FROM tab2
----
556
5909
5942

query I rowsort
SELECT ALL - ( + col1 * col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 - 92 FROM tab1
----
-156
-172
-95

query I rowsort
SELECT + tab0.col2 - + 10 FROM tab0
----
-9
23
72

query I rowsort
SELECT DISTINCT 37 * col2 AS col1 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT ( + col0 ) + col1 + col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT - + 14 * col1 FROM tab0 cor0
----
-1204
-1274
-1358

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col2 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - 64 * - 36 AS col1 FROM tab2 AS cor0
----
2304

onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT - col2 DIV col1 AS col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT - col2 / col1 AS col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT - tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL - col1 - - col0 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - 68 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT - - col0 - ( col1 ) * cor0.col1 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT - cor0.col1 * + 91 + col2 * col0 + - col1 FROM tab2 AS cor0
----
-2663
-3400
1438

query I rowsort
SELECT - col2 * - col1 * col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT col0 * - 68 FROM tab2 AS cor0
----
-476
-5304
-5372

query I rowsort
SELECT - col0 * + 74 AS col1 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT 53 * - col0 AS col1 FROM tab1
----
-159
-3392
-4240

query I rowsort
SELECT + + col0 * + ( - col2 ) + - col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + col1 - 75 * ( - col1 * col0 ) FROM tab2 AS cor0
----
100742
16306
345209

query I rowsort
SELECT cor0.col1 + - col1 * col1 FROM tab2 AS cor0
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( col0 ) * - col2 col1 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT col1 * col0 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT col2 + col0 + - col0 AS col1 FROM tab2
----
26
27
38

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 + tab2.col2 ) AND NOT col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col0 * - tab0.col1 AS col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT DISTINCT - col2 * - col1 DIV + col1 + - col2 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT - col2 * - col1 / + col1 + - col2 AS col1 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2625
SELECT col0 + - col0 * + tab1.col1 + - col0 DIV - col2 AS col1 FROM tab1
----
-575
-75
-960

skipif mysql # not compatible
query I rowsort label-2625
SELECT col0 + - col0 * + tab1.col1 + - col0 / - col2 AS col1 FROM tab1
----
-575
-75
-960

query I rowsort
SELECT ALL col0 * - col2 + col2 + col0 FROM tab1 AS cor0
----
-105
-3527
-7504

query I rowsort
SELECT + col2 * - col0 * + cor0.col1 + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - col2 * col1 + col1 + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT ALL - + col1 * + col0 + col1 DIV cor0.col1 FROM tab2 AS cor0
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - + col1 * + col0 + col1 / cor0.col1 FROM tab2 AS cor0
----
-1342
-216
-4601

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + col0 + col0 AS col2 FROM tab2 AS cor0
----
203
2184
3160

onlyif mysql # use DIV operator for integer division
query I rowsort label-2632
SELECT ALL + col1 + cor0.col1 DIV col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL + col1 + cor0.col1 / col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL col1 - - col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - col0 + + col2 * + col1 AS col0 FROM tab0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2635
SELECT DISTINCT - col0 - col1 DIV col0 FROM tab0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT - col0 - col1 / col0 FROM tab0
----
-27
-37
-90

query I rowsort
SELECT col2 + + col1 * col2 * cor0.col1 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT + 6 * - col2 FROM tab0 AS cor0
----
-198
-492
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * - col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + 25 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT 64 * col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
132096
217280
518336

query I rowsort
SELECT DISTINCT col1 * + 37 AS col1 FROM tab2
----
1147
2183
629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col0 FROM tab0
----
30
30
30

query I rowsort
SELECT ALL - - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col1 + col0 FROM tab2 WHERE NOT ( + col2 > NULL ) AND NOT ( - col0 ) IN ( + col2 )
----

query I rowsort
SELECT - 94 + col2 AS col2 FROM tab1 AS cor0
----
-37
-40
2

query I rowsort
SELECT col0 - - col0 * - col0 FROM tab1
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2647
SELECT 32 DIV + 31 + + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2647
SELECT 32 / + 31 + + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT col2 * - 30 + tab0.col2 + - 19 * col1 AS col0 FROM tab0
----
-1872
-2591
-4107

query I rowsort
SELECT ( col0 ) * + tab2.col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 88 * 32 + - col1 FROM tab0
----
2719
2725
2730

query I rowsort
SELECT DISTINCT - 23 FROM tab1, tab1 AS cor0
----
-23

query I rowsort
SELECT DISTINCT col1 + - col0 * - col0 AS col1 FROM tab0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-2653
SELECT + col2 + + cor0.col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-2653
SELECT + col2 + + cor0.col2 / + col1 AS col0 FROM tab2 AS cor0
----
26
27
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2654
SELECT ALL - CAST( + col1 * - col0 AS SIGNED ) + + tab2.col1 * - col2 AS col2 FROM tab2
----
-620
3068
697

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - CAST ( + col1 * - col0 AS INTEGER ) + + tab2.col1 * - col2 AS col2 FROM tab2
----
-620
3068
697

query I rowsort
SELECT DISTINCT + + ( - col0 ) + col0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2656
SELECT + col1 DIV col1 + 25 AS col1 FROM tab0 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-2656
SELECT + col1 / col1 + 25 AS col1 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - col2 + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ALL ( col0 ) * + 55 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 * 95 AS col0 FROM tab1 AS cor0
----
10368
5985
6534

onlyif mysql # use DIV operator for integer division
query I rowsort label-2660
SELECT ALL - - 92 * cor0.col0 DIV + col1 + 0 FROM tab2 AS cor0
----
121
20
427

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - - 92 * cor0.col0 / + col1 + 0 FROM tab2 AS cor0
----
121
20
427

query I rowsort
SELECT ALL tab0.col1 + 23 FROM tab0, tab0 AS cor0
----
9 values hashing to ddd4ed39f1cf356da22540247fd21a95

query I rowsort
SELECT - + 43 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT col1 * - col1 + 40 FROM tab2 AS cor0
----
-249
-3441
-921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * cor0.col1 + 75 * 20 * col2 + + ( - col0 ) * - col0 col0 FROM tab2 AS cor0
----
41386
46618
63887

query I rowsort
SELECT + col1 + col2 * 34 FROM tab0 AS cor0
----
1208
131
2879

query I rowsort
SELECT DISTINCT 79 + col1 AS col1 FROM tab0 AS cor0
----
165
170
176

query I rowsort
SELECT + - 36 * col1 AS col0 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT ALL + ( - col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + + 26 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT - 25 + + col1 FROM tab0 AS cor0
----
61
66
72

query I rowsort
SELECT col2 + cor0.col0 * - col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col1 + + 1 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + - col0 + - col0 + + col2 FROM tab1 AS cor0
----
-64
-71
48

query I rowsort
SELECT ALL col1 + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - col2 * + 41 AS col0 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT ALL cor0.col2 * 16 + cor0.col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-4186
-735
215

query I rowsort
SELECT DISTINCT - + col2 * 12 * 41 + + col2 FROM tab2 AS cor0
----
-12766
-13257
-18658

query I rowsort
SELECT ALL - cor0.col2 * 52 - + 71 FROM tab0 AS cor0
----
-123
-1787
-4335

query I rowsort
SELECT ALL - + col1 + - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2681
SELECT + CAST( NULL AS DECIMAL ) / - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT + CAST ( NULL AS REAL ) / - col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2682
SELECT DISTINCT 35 DIV 80 col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT 35 / 80 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT tab2.col2 - col2 * - col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - - ( 60 ) * cor0.col0 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT + ( 87 ) FROM tab1 AS cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 * col2 col0 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2688
SELECT + ( col0 ) + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT + ( col0 ) + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 69 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT - - col0 * + col0 + 36 FROM tab2 AS cor0
----
6120
6277
85

query I rowsort
SELECT ( 21 ) FROM tab0
----
21
21
21

query I rowsort
SELECT ALL 91 * + col0 + - ( col2 ) + col1 * col1 AS col2 FROM tab1
----
5867
7353
895

query I rowsort
SELECT DISTINCT col2 * 70 FROM tab1
----
3780
3990
6720

query I rowsort
SELECT DISTINCT - col1 * - 65 * + col2 AS col1 FROM tab2
----
41990
54405
99710

query I rowsort
SELECT DISTINCT - tab2.col2 * - ( 5 * + col0 ) FROM tab2
----
10140
15010
945

query I rowsort
SELECT - 44 FROM tab2, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT + col0 * + col0 + col2 * - col2 FROM tab0 AS cor0
----
-513
1197
1224

query I rowsort
SELECT DISTINCT col1 + - 80 AS col0 FROM tab1 cor0
----
-54
-67
-70

query I rowsort
SELECT ALL + col2 * cor0.col2 + - col1 - - col0 * ( col1 ) * - col0 FROM tab0 AS cor0
----
-118921
-48533
-714178

query I rowsort
SELECT - - cor0.col0 * - 28 AS col2 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT ALL + cor0.col2 * 69 * 38 AS col1 FROM tab1 AS cor0
----
141588
149454
251712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * col1 + col2 * col2 col1 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT + cor0.col1 * - ( 54 ) + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-1242
3108
6978

onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT + 46 DIV tab2.col0 FROM tab2
----
0
0
6

skipif mysql # not compatible
query I rowsort label-2704
SELECT + 46 / tab2.col0 FROM tab2
----
0
0
6

query I rowsort
SELECT - ( 57 ) AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT - tab0.col0 * - ( - col0 * + col2 ) - - col1 FROM tab0
----
-1128
-18922
-649431

query I rowsort
SELECT ALL col1 + - ( col1 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + + col2 * - 52 + - 57 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-2834
-2943
-4142

query I rowsort
SELECT - col1 * 15 FROM tab0 cor0
----
-1290
-1365
-1455

query I rowsort
SELECT col2 + cor0.col1 * + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT col1 * col0 + tab0.col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col1 * ( tab1.col2 ) + + col2 + ( - col0 ) FROM tab1
----
1264
1455
563

query I rowsort
SELECT DISTINCT ( tab0.col0 ) AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + + col1 * + col0 + + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT 16 * + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 468b7772a1c0d35637601bbc1e1d0ba6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT ALL 45 DIV - col1 AS col2 FROM tab1
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL 45 / - col1 AS col2 FROM tab1
----
-1
-3
-4

query I rowsort
SELECT ALL tab2.col1 * + 27 * - col0 FROM tab2
----
-124254
-36261
-5859

query I rowsort
SELECT ( - col2 + + col1 ) AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT + col2 + col0 * - 3 - ( + col2 + + ( col2 ) ) FROM tab2 AS cor0
----
-260
-275
-48

query I rowsort
SELECT - - col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ( + col2 ) * + col0 + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT + + col1 * cor0.col2 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT col0 * col2 + - col0 * col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + col0 + col0 + - 62 FROM tab1 AS cor0
----
1058
19
642

query I rowsort
SELECT 44 + - col0 * + col1 FROM tab1
----
-34
-596
-996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 74 * - col2 col0 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT + col1 * + cor0.col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - col0 + ( - col1 ) * col1 AS col0 FROM tab1 cor0
----
-164
-249
-679

query I rowsort
SELECT - - col0 - col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col2 + - 52 AS col1 FROM tab1 AS cor0
----
2
44
5

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - col2 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT - + col0 * + col2 + col2 FROM tab2 cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT col1 * col2 DIV col1 AS col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2734
SELECT col1 * col2 / col1 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col2 * + ( + cor0.col1 ) * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT col0 * - 1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT ALL + cor0.col1 DIV - 34 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + cor0.col1 / - 34 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col0 - - col1 col2 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT ALL col0 DIV - tab2.col1 col1 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL col0 / - tab2.col1 col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT ( col1 + - ( - 86 ) ) FROM tab2
----
103
117
145

onlyif mysql # use DIV operator for integer division
query I rowsort label-2741
SELECT + cor0.col1 DIV + ( 71 ) - col2 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2741
SELECT + cor0.col1 / + ( 71 ) - col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + col1 * 79 - col1 FROM tab2 AS cor0
----
1326
2418
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col0 ) + col1 col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT + 8 * + col2 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT - 44 * + 34 AS col0 FROM tab0 cor0
----
-1496
-1496
-1496

query I rowsort
SELECT ALL col0 - - col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT col0 + col1 * + col2 * ( 26 ) AS col2 FROM tab0 AS cor0
----
194101
2557
73812

query I rowsort
SELECT ALL - + 91 * col2 AS col2 FROM tab1 cor0
----
-4914
-5187
-8736

query I rowsort
SELECT - - col2 * 7 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT ALL + ( 8 ) + - col1 AS col1 FROM tab0 AS cor0
----
-78
-83
-89

query I rowsort
SELECT ALL - ( - cor0.col2 ) * - col2 - + col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL + + col0 + col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT col1 + col1 + col1 * col0 FROM tab1 AS cor0
----
1066
130
660

query I rowsort
SELECT DISTINCT + 44 * - col2 - - 93 AS col0 FROM tab1 AS cor0
----
-2283
-2415
-4131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col1 FROM tab1 AS cor0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) + + ( col1 ) col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - cor0.col0 + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ( - col1 ) * - col2 + 37 * 48 AS col2 FROM tab0
----
1873
4614
9238

query I rowsort
SELECT col1 + + col2 * col0 * col2 AS col1 FROM tab1
----
207946
737293
8774

query I rowsort
SELECT - + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col1 + col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2762
SELECT ALL tab0.col1 + - col2 * col2 DIV col1 FROM tab0
----
18
74
97

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL tab0.col1 + - col2 * col2 / col1 FROM tab0
----
18
74
97

query I rowsort
SELECT ALL + tab2.col2 FROM tab2 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT col2 / col2 + - col1 / + col1 FROM tab0 WHERE NOT NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * + col0 - + col0 * - col0 AS col0 FROM tab1
----
12800
18
8192

query I rowsort
SELECT ALL col1 - tab0.col1 * + col1 FROM tab0 WHERE + col1 = NULL
----

query I rowsort
SELECT col2 * + col1 * col0 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT ( NULL ) <> + col1 + col0
----

query I rowsort
SELECT + col1 * - col2 * + col0 AS col0 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT col0 DIV tab1.col0 + - col2 * col2 AS col1 FROM tab1
----
-2915
-3248
-9215

skipif mysql # not compatible
query I rowsort label-2771
SELECT col0 / tab1.col0 + - col2 * col2 AS col1 FROM tab1
----
-2915
-3248
-9215

query I rowsort
SELECT ALL + col2 - - col1 * col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT col0 + col1 * col2 AS col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT tab1.col1 + col2 * col2 AS col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT DISTINCT - col0 + col2 DIV col2 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - col0 + col2 / col2 FROM tab1
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2777
SELECT ALL col2 * tab1.col1 DIV + col1 + col0 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL col2 * tab1.col1 / + col1 + col0 FROM tab1
----
121
176
57

query I rowsort
SELECT - col1 + + col1 * - col2 * + col0 AS col2 FROM tab1
----
-36490
-4238
-99853

onlyif mysql # use DIV operator for integer division
query I rowsort label-2779
SELECT DISTINCT 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-2779
SELECT DISTINCT col1 / col1 col1 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2780
SELECT col2 DIV col1 col0 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2780
SELECT col2 / col1 col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 * + col1 FROM tab1 AS cor0
----
234
40960
83200

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-2783
SELECT + col0 + col1 DIV col2 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-2783
SELECT + col0 + col1 / col2 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 + + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL col1 + + col0 FROM tab2 WHERE NOT NULL > - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT + + col1 + - col2 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-2786
SELECT + + col1 + - col2 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT DISTINCT + - cor0.col1 + col1 * - col1 AS col1 FROM tab2 cor0
----
-306
-3540
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT ALL - col0 * + col1 * col2 + col2 DIV + col1 FROM tab2 AS cor0
----
-119652
-51032
-5859

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL - col0 * + col1 * col2 + col2 / + col1 FROM tab2 AS cor0
----
-119652
-51032
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 + cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
-108
-858
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-2790
SELECT DISTINCT col0 DIV + col0 + col2 * col0 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT col0 / + col0 + col2 * col0 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT - col0 + - col2 * + cor0.col0 * + col0 + - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1379
-164346
-243478

onlyif mysql # use DIV operator for integer division
query I rowsort label-2792
SELECT ALL col1 * col1 DIV + tab2.col0 + col1 col1 FROM tab2
----
103
168
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL col1 * col1 / + tab2.col0 + col1 col1 FROM tab2
----
103
168
20

query I rowsort
SELECT DISTINCT - col2 + + col0 * - col1 AS col1 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT - ( 90 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL - col1 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT col0 + + 42 AS col0 FROM tab1 AS cor0
----
106
122
45

query I rowsort
SELECT - col2 * 33 AS col1 FROM tab2 AS cor0
----
-1254
-858
-891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2798
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 40 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 40 FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + ( col0 + tab1.col2 ) FROM tab1
----
1210
1482
2288

query I rowsort
SELECT + - cor0.col1 + + col0 * - col1 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + 75 * - col2 AS col1 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query III rowsort
SELECT * FROM tab0 WHERE col2 * - col2 + col1 * - col1 < - col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 * col0 * - tab2.col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT + col1 * - tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL IN ( + col1 + + col0 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT + col2 + col2 * + col1 IN ( - col1 )
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2808
SELECT + + col1 + col2 DIV col1 col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2808
SELECT + + col1 + col2 / col1 col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT ALL col1 DIV tab0.col1 + col1 * col2 AS col0 FROM tab0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL col1 / tab0.col1 + col1 * col2 AS col0 FROM tab0
----
2839
7463
98

query I rowsort
SELECT - col0 * col0 * 64 AS col2 FROM tab2
----
-3136
-389376
-399424

onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT + col1 DIV col1 + col2 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2811
SELECT + col1 / col1 + col2 AS col2 FROM tab0
----
2
34
83

query I rowsort
SELECT + col0 * - ( 85 ) + col1 FROM tab1 AS cor0
----
-229
-5430
-6787

query I rowsort
SELECT - cor0.col1 * col2 + col2 AS col1 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col2 + + col0 * + 90 AS col1 FROM tab2
----
657
7046
7148

query I rowsort
SELECT - - cor0.col0 + - cor0.col2 * col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - cor0.col2 * 32 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e9bd98bd0b109bb81e666f77d070e90f

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237

query I rowsort
SELECT col2 * + 38 AS col1 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT - tab2.col1 - - col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ( + col0 ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT ALL + CAST( 13 AS SIGNED ) DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + CAST ( 13 AS INTEGER ) / - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 72 AS col2 FROM tab2 AS cor0
----
-504
-5616
-5688

query I rowsort
SELECT ALL ( + col0 ) + col0 + + col0 FROM tab2 cor0
----
21
234
237

query I rowsort
SELECT 85 * ( col2 ) * col0 AS col2 FROM tab0 AS cor0
----
2975
620330
67320

query I rowsort
SELECT ALL + 75 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
-2389
-6059
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT DISTINCT 21 DIV + 83 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT 21 / + 83 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT - col2 + col2 * + 4 AS col1 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT ALL + col1 + + col1 * - 75 AS col0 FROM tab2 AS cor0
----
-1258
-2294
-4366

query I rowsort
SELECT - + col2 * - cor0.col2 + + ( col1 ) + + col0 AS col0 FROM tab2 cor0
----
1540
767
813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + 35 + col0 AS col2 FROM tab0 AS cor0
----
124
59
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + - cor0.col1 + col1 col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2834
SELECT ALL col0 + 12 DIV col1 AS col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL col0 + 12 / col1 AS col2 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT DISTINCT col1 * + ( col1 ) * col2 AS col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT + 33 FROM tab1, tab0 AS cor0
----
33

query I rowsort
SELECT - col0 + - 5 FROM tab1
----
-69
-8
-85

query I rowsort
SELECT ALL + - 60 AS col2 FROM tab2 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * - col1 + - cor0.col1 * col1 col0 FROM tab1 AS cor0
----
-1430
-2106
-680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2841
SELECT ALL CAST( + col1 AS SIGNED ) * col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL CAST ( + col1 AS INTEGER ) * col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 col0 FROM tab2, tab1 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + 3 AS REAL ) + + col0 * + col1 FROM tab0 AS cor0
----
2067
3398
8102

query I rowsort
SELECT DISTINCT + 77 + col0 - col0 AS col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT - 82 + + col1 AS col2 FROM tab1
----
-56
-69
-72

query I rowsort
SELECT + ( cor0.col1 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - col2 * - 50 AS col2 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT DISTINCT tab1.col0 + + tab1.col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT - - cor0.col2 + + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
9 values hashing to 08980ba33c72425c650f4b0533f5a9d7

query I rowsort
SELECT ( col0 * - col2 ) - - col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + 12 * - 40 AS col1 FROM tab1, tab1 AS cor0
----
-480

query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2853
SELECT - tab2.col0 * col0 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT - tab2.col0 * col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 + col2 col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT col2 + - tab2.col2 * col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT + 84 + col1 + + 82 FROM tab2
----
183
197
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * col2 + - 35 * + 62 col1 FROM tab0
----
-2098
206
3734

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2858
SELECT + col1 * CAST( - col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2858
SELECT + col1 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2859
SELECT - col0 * + CAST( + 51 AS SIGNED ) + + col0 * 5 + - col2 AS col1 FROM tab0 AS cor0
----
-1137
-1611
-4176

skipif mysql # not compatible
query I rowsort label-2859
SELECT - col0 * + CAST ( + 51 AS INTEGER ) + + col0 * 5 + - col2 AS col1 FROM tab0 AS cor0
----
-1137
-1611
-4176

query I rowsort
SELECT ALL + col0 * + 3 * + col0 FROM tab1 AS cor0
----
12288
19200
27

query I rowsort
SELECT DISTINCT col0 + + 78 AS col2 FROM tab1 cor0
----
142
158
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2862
SELECT - col2 * col1 + + col0 + + col2 DIV + 88 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-2862
SELECT - col2 * col1 + + col0 + + col2 / + 88 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2863
SELECT DISTINCT - cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + cor0.col1 * + 50 + col0 AS col0 FROM tab0 AS cor0
----
4324
4639
4885

query I rowsort
SELECT DISTINCT + - cor0.col0 * 7 FROM tab0 AS cor0
----
-168
-245
-623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + col1 col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - + col1 * - cor0.col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - col0 + - 53 AS col2 FROM tab2 AS cor0
----
-131
-132
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 80 * col0 + + col1 col0 FROM tab0 AS cor0
----
2092
2994
7302

query I rowsort
SELECT ALL + - col2 + + col0 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + + 32 + - ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
1337
222
4608

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + 58 AS col1 FROM tab0 cor0
----
7454
8339
9467

query I rowsort
SELECT - + 71 FROM tab2 cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + - cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - 4 + - col0 FROM tab0 AS cor0
----
-28
-39
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2876
SELECT - col1 + - col2 DIV - 34 AS col2 FROM tab0 AS cor0
----
-86
-89
-97

skipif mysql # not compatible
query I rowsort label-2876
SELECT - col1 + - col2 / - 34 AS col2 FROM tab0 AS cor0
----
-86
-89
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2877
SELECT + 64 * col0 + + CAST( col1 AS SIGNED ) * + cor0.col2 DIV - ( cor0.col2 ) col1 FROM tab0 AS cor0
----
1450
2143
5605

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2877
SELECT + 64 * col0 + + CAST ( col1 AS INTEGER ) * + cor0.col2 / - ( cor0.col2 ) col1 FROM tab0 AS cor0
----
1450
2143
5605

query I rowsort
SELECT - col1 + + col1 * col0 * + tab2.col2 FROM tab2
----
119593
51017
5828

query I rowsort
SELECT ( + 57 ) + col2 AS col2 FROM tab1 AS cor0
----
111
114
153

query I rowsort
SELECT col0 * - 98 + col2 AS col2 FROM tab2 AS cor0
----
-659
-7618
-7704

query I rowsort
SELECT ALL - ( col0 ) + - cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + - col1 - - cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col1 * col0 - col2 * + 33 * 74 AS col2 FROM tab1 AS cor0
----
-131946
-139834
-235472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 * + col1 col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT - 65 + + col0 AS col1 FROM tab2 cor0
----
-58
13
14

query I rowsort
SELECT ALL - 27 * - 72 + col2 FROM tab1 AS cor0
----
1998
2001
2040

query I rowsort
SELECT ALL - ( + cor0.col2 ) + col0 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT DISTINCT 51 - + col2 DIV col1 FROM tab2 AS cor0
----
49
51

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT 51 - + col2 / col1 FROM tab2 AS cor0
----
49
51

query I rowsort
SELECT - col2 + 64 * + col1 AS col0 FROM tab0
----
5471
5742
6207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * 18 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * 18 FROM tab2
----
NULL

query I rowsort
SELECT - col0 * col2 + - tab2.col0 + col1 FROM tab2
----
-165
-2047
-3064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 52 col0 FROM tab1
----
62
65
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2893
SELECT DISTINCT + col0 DIV - col2 + 67 AS col0 FROM tab0
----
32
66
67

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + col0 / - col2 + 67 AS col0 FROM tab0
----
32
66
67

query I rowsort
SELECT ALL col2 + - 54 * col2 AS col2 FROM tab1
----
-2862
-3021
-5088

query I rowsort
SELECT ALL - col2 + + tab2.col0 * - ( + col0 + - 20 ) * col2 AS col1 FROM tab2
----
-117650
-177156
2430

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2897
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 65 col1 FROM tab1 AS cor0
----
-15
1
62

query I rowsort
SELECT + ( - 38 ) + cor0.col2 * 97 AS col1 FROM tab2 AS cor0
----
2484
2581
3648

query I rowsort
SELECT ( col0 ) + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL col2 + + 23 * + cor0.col1 FROM tab1 AS cor0
----
287
395
652

query I rowsort
SELECT DISTINCT - - cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT ALL - col2 DIV 50 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL - col2 / 50 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 9 + - cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-18
-4105
-6409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * - col2 * col2 col2 FROM tab2
----
-25012
-26973
-53428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2906
SELECT - CAST( NULL AS SIGNED ) * 94 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT - CAST ( NULL AS INTEGER ) * 94 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2907
SELECT - ( tab0.col2 ) DIV col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2907
SELECT - ( tab0.col2 ) / col2 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 + col0 * + col2 * + col1 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT - + col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - + 56 * col2 FROM tab1 cor0
----
-3024
-3192
-5376

query I rowsort
SELECT 86 * tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0d70d6d78daa852f0f5d7642f27b0274

query I rowsort
SELECT ALL - ( + 89 ) AS col1 FROM tab1
----
-89
-89
-89

query I rowsort
SELECT - ( - col0 ) * + col2 AS col1 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT ALL + ( - col2 ) DIV - col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL + ( - col2 ) / - col2 FROM tab1
----
1
1
1

query I rowsort
SELECT - 57 * col0 FROM tab2 AS cor0
----
-399
-4446
-4503

query I rowsort
SELECT + ( col1 ) * ( 47 ) * - col1 FROM tab2 AS cor0
----
-13583
-163607
-45167

query I rowsort
SELECT + + cor0.col1 * - cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 87 AS REAL ) AS col2 FROM tab0, tab2 AS cor0
----
-87

query I rowsort
SELECT - - cor0.col0 + - ( + 74 ) * col2 * + col2 FROM tab0 AS cor0
----
-39
-497487
-80562

query I rowsort
SELECT DISTINCT tab1.col2 * + 41 FROM tab1, tab1 AS cor0
----
2214
2337
3936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2921
SELECT ALL + + col0 * 34 DIV + 13 + - col0 AS col2 FROM tab0 AS cor0
----
143
38
56

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL + + col0 * 34 / + 13 + - col0 AS col2 FROM tab0 AS cor0
----
143
38
56

query I rowsort
SELECT ALL + col2 + + 74 * col2 AS col0 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT + col0 * 64 AS col1 FROM tab0 AS cor0
----
1536
2240
5696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2924
SELECT ALL + col0 * CAST( 95 AS SIGNED ) + cor0.col1 * - ( + col2 ) FROM tab2 AS cor0
----
-172
5876
6859

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + col0 * CAST ( 95 AS INTEGER ) + cor0.col1 * - ( + col2 ) FROM tab2 AS cor0
----
-172
5876
6859

query I rowsort
SELECT + + 90 * col0 * cor0.col0 FROM tab0 AS cor0
----
110250
51840
712890

query I rowsort
SELECT ALL ( - 57 ) AS col1 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL + 67 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 * col1 col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2929
SELECT - col2 + 21 DIV - col2 AS col2 FROM tab0 AS cor0
----
-22
-33
-82

skipif mysql # not compatible
query I rowsort label-2929
SELECT - col2 + 21 / - col2 AS col2 FROM tab0 AS cor0
----
-22
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2930
SELECT - CAST( 29 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-2930
SELECT - CAST ( 29 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT + 53 * - col0 + ( col2 + col1 * tab2.col2 ) AS col0 FROM tab2
----
-2574
-3503
493

query I rowsort
SELECT ALL - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ( col2 ) * - 37 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT + - ( + col1 ) * - ( + cor0.col0 * col0 ) AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + col2 * - cor0.col1 * - col2 AS col2 FROM tab0 cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2936
SELECT - - col0 DIV - 7 FROM tab2 AS cor0
----
-1
-11
-11

skipif mysql # not compatible
query I rowsort label-2936
SELECT - - col0 / - 7 FROM tab2 AS cor0
----
-1
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
18

query I rowsort
SELECT ALL - col0 + - 36 AS col1 FROM tab0 AS cor0
----
-125
-60
-71

query I rowsort
SELECT DISTINCT + col2 * + col2 + 42 FROM tab2 AS cor0
----
1486
718
771

query I rowsort
SELECT 2 + 47 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT DISTINCT 5 DIV + 98 + - col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT 5 / + 98 + - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL - + ( - col0 ) + + col1 FROM tab2 AS cor0
----
137
38
96

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT DISTINCT + - col1 DIV col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT + - col1 / col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT ALL - col0 * col1 + ( col2 ) FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2946
SELECT CAST( - col1 + + col1 AS SIGNED ) * ( - ( + col2 ) * + col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2946
SELECT CAST ( - col1 + + col1 AS INTEGER ) * ( - ( + col2 ) * + col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - 55 ) AS col0 FROM tab2
----
-55

query I rowsort
SELECT + cor1.col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - cor0.col0 + - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * + cor0.col0 * 88 col0 FROM tab1 AS cor0
----
360512
563280
795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 * cor0.col1 col0 FROM tab1 cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2952
SELECT DISTINCT + col1 - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT + col1 - col2 / col1 AS col0 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT ALL + 91 AS col0 FROM tab1 cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col1 col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - col0 * col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - col1 + + col0 * - 65 FROM tab1
----
-221
-4170
-5213

query I rowsort
SELECT col0 + tab0.col1 AS col1 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT col2 DIV col2 - + 15 * + col0 AS col1 FROM tab1
----
-1199
-44
-959

skipif mysql # not compatible
query I rowsort label-2958
SELECT col2 / col2 - + 15 * + col0 AS col1 FROM tab1
----
-1199
-44
-959

query I rowsort
SELECT - - 24 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL + col1 * col2 + - cor0.col0 * col0 AS col1 FROM tab1 cor0
----
-3526
-5152
1395

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + 16 AS col1 FROM tab1 AS cor0
----
1264
1420
586

query I rowsort
SELECT ALL 66 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-2963
SELECT DISTINCT + col2 * - col1 DIV - col1 + + tab1.col0 AS col1 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT + col2 * - col1 / - col1 + + tab1.col0 AS col1 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT ALL ( + col2 ) * - CAST( - col0 AS SIGNED ) + tab0.col1 DIV + tab0.col1 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL ( + col2 ) * - CAST ( - col0 AS INTEGER ) + tab0.col1 / + tab0.col1 FROM tab0
----
36
7299
793

query I rowsort
SELECT 92 + col1 AS col2 FROM tab1
----
102
105
118

query I rowsort
SELECT - col1 * tab2.col1 + col1 AS col2 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + + col0 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - + col0 * - col0 * + col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + 83 - 89 AS col1 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + 68 + 52 FROM tab0 AS cor0
----
120

query I rowsort
SELECT ALL - + 91 * col1 AS col2 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT DISTINCT + 41 AS col1 FROM tab1 cor0
----
41

query I rowsort
SELECT + 53 * col1 FROM tab1 AS cor0
----
1378
530
689

query I rowsort
SELECT + col2 + - col0 * cor0.col0 - - col0 AS col1 FROM tab0 cor0
----
-1189
-519
-7750

query I rowsort
SELECT ALL - ( + 6 ) FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT - - col0 * col1 - - col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL col1 * 21 AS col0 FROM tab2
----
1239
357
651

query I rowsort
SELECT DISTINCT col1 * + tab2.col2 + + col1 * + 58 FROM tab2
----
1632
2635
4956

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab2, tab1 AS cor0
----
60

query I rowsort
SELECT DISTINCT 37 + + ( col1 ) * + ( cor0.col1 ) AS col2 FROM tab2 cor0
----
326
3518
998

query I rowsort
SELECT ALL + col2 * + cor0.col2 * col1 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
119795
32480
75790

query I rowsort
SELECT ( 62 ) + col0 FROM tab0 cor0
----
151
86
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 * col1 col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT - - ( + col2 ) + + col0 AS col1 FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT DISTINCT - ( + 4 ) + cor0.col1 DIV 31 AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT - ( + 4 ) + cor0.col1 / 31 AS col2 FROM tab1 AS cor0
----
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT - + col2 DIV 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT - + col2 / 98 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab0, tab0 AS cor0
----
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2988
SELECT ALL + + col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL + + col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + ( - col2 ) col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - col1 * - 64 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT - - col0 + + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2992
SELECT - + 34 + 64 + - cor0.col1 * CAST( NULL AS DECIMAL ) * + 73 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT - + 34 + 64 + - cor0.col1 * CAST ( NULL AS REAL ) * + 73 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 14 + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-13
19
68

query I rowsort
SELECT DISTINCT + tab1.col1 + + 63 FROM tab1
----
73
76
89

query I rowsort
SELECT 70 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT - + 10 + 22 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT col1 + ( col0 ) * col1 - - col0 FROM tab0
----
2174
3527
8279

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2998
SELECT col0 * - CAST( NULL AS SIGNED ) * col0 + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT col0 * - CAST ( NULL AS INTEGER ) * col0 + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 85 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL cor0.col1 + col2 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-673
-7125
63

query I rowsort
SELECT ALL - col0 * col2 - - col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + + col2 - - cor0.col2 * - col0 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + col2 * col2 + col1 * 27 FROM tab0 AS cor0
----
2620
3411
9181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + 17 col2 FROM tab1 AS cor0
----
1057
657
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3006
SELECT + col1 DIV cor0.col0 col2 FROM tab1 cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3006
SELECT + col1 / cor0.col0 col2 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT - col1 + - col1 * + col0 AS col2 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - col2 + col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - - col0 + cor0.col0 * 72 AS col2 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT 86 + - col0 * 14 * - col0 AS col1 FROM tab2 AS cor0
----
772
85262
87460

query I rowsort
SELECT + + cor0.col1 + 83 AS col2 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT ALL + 24 FROM tab2, tab0 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3013
SELECT + + CAST( NULL AS SIGNED ) + - cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3013
SELECT + + CAST ( NULL AS INTEGER ) + - cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 + + 66 FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT + cor0.col0 * col2 - + col1 AS col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + - col0 - - ( col1 * + col1 + cor0.col2 ) AS col1 FROM tab2 cor0
----
248
3429
981

query I rowsort
SELECT + col1 * tab2.col1 + col0 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT ALL - col0 * - col0 * col0 AS col2 FROM tab1
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT DISTINCT + tab0.col1 DIV col1 col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + tab0.col1 / col1 col0 FROM tab0
----
1

query I rowsort
SELECT col0 * 96 + cor0.col1 * col1 AS col1 FROM tab0 cor0
----
12769
16825
9700

query I rowsort
SELECT + 10 + ( col2 ) AS col0 FROM tab2
----
36
37
48

query I rowsort
SELECT DISTINCT + col0 + col0 * + col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + - 88 * + col2 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT + col1 * - col1 * 21 AS col1 FROM tab0 AS cor0
----
-155316
-173901
-197589

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3025
SELECT - 55 + + col2 * + CAST( + col0 AS SIGNED ) * - cor0.col0 col2 FROM tab0 AS cor0
----
-1280
-19063
-649577

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3025
SELECT - 55 + + col2 * + CAST ( + col0 AS INTEGER ) * - cor0.col0 col2 FROM tab0 AS cor0
----
-1280
-19063
-649577

onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT + cor0.col0 DIV col1 + - 2 * - col2 FROM tab1 AS cor0
----
108
120
198

skipif mysql # not compatible
query I rowsort label-3026
SELECT + cor0.col0 / col1 + - 2 * - col2 FROM tab1 AS cor0
----
108
120
198

query I rowsort
SELECT DISTINCT - 70 + col0 FROM tab2 AS cor0
----
-63
8
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3028
SELECT DISTINCT + cor0.col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + cor0.col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3029
SELECT - ( + col2 ) DIV cor0.col1 + - col2 * - col2 + col0 * ( + col2 * col0 ) FROM tab2 AS cor0
----
158860
2052
238600

skipif mysql # not compatible
query I rowsort label-3029
SELECT - ( + col2 ) / cor0.col1 + - col2 * - col2 + col0 * ( + col2 * col0 ) FROM tab2 AS cor0
----
158860
2052
238600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * - col1 col0 FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT ALL - 13 * + col0 + 41 AS col0 FROM tab1 cor0
----
-791
-999
2

query I rowsort
SELECT DISTINCT 88 + col2 * + col2 FROM tab2 AS cor0
----
1532
764
817

query I rowsort
SELECT - col2 * + col1 + col0 * col2 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT ALL - cor0.col0 + col0 + - ( col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3035
SELECT ALL - col2 + + col2 DIV - col1 FROM tab1 cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL - col2 + + col2 / - col1 FROM tab1 cor0
----
-103
-56
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3036
SELECT DISTINCT cor0.col1 * + col0 + - CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-774
3298
637

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT cor0.col1 * + col0 + - CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT + + col0 * col1 + - 60 FROM tab2 AS cor0
----
1283
157
4542

query I rowsort
SELECT ( + tab2.col0 * + col1 ) AS col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT col0 * + col2 + - col2 + tab1.col1 DIV 43 FROM tab1
----
108
3591
7584

skipif mysql # not compatible
query I rowsort label-3039
SELECT col0 * + col2 + - col2 + tab1.col1 / 43 FROM tab1
----
108
3591
7584

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab2, tab1 AS cor0
----
-4

query I rowsort
SELECT - ( col2 ) * tab1.col1 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3042
SELECT ALL + CAST( NULL AS SIGNED ) * 38 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL + CAST ( NULL AS INTEGER ) * 38 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 51 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-8
20
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT DISTINCT - 0 * col2 DIV - 28 + ( col2 + col2 ) AS col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT - 0 * col2 / - 28 + ( col2 + col2 ) AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT col1 * + tab1.col2 * - col2 FROM tab1
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 col1 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3047
SELECT ALL col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col1 - - col0 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT cor0.col0 + ( - col2 ) AS col1 FROM tab2 cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3050
SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 48 * 58 AS col2 FROM tab1, tab1 AS cor0
----
2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + tab2.col0 - - col1 col1 FROM tab2
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT tab1.col2 * + ( + col2 ) - - col1 DIV - 72 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-3053
SELECT tab1.col2 * + ( + col2 ) - - col1 / - 72 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + col0 + 48 AS col0 FROM tab0
----
137
72
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3055
SELECT DISTINCT CAST( + 1 AS SIGNED ) + col2 * - col0 AS col1 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT CAST ( + 1 AS INTEGER ) + col2 * - col0 AS col1 FROM tab0
----
-34
-7297
-791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3056
SELECT + CAST( ( cor0.col2 ) AS SIGNED ) FROM tab1, tab2, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif mysql # not compatible
query I rowsort label-3056
SELECT + CAST ( ( cor0.col2 ) AS INTEGER ) FROM tab1, tab2, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3057
SELECT DISTINCT - 62 * + col1 * - cor0.col0 + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT - 62 * + col1 * - cor0.col0 + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( 0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3059
SELECT ( - cor0.col2 ) + - col2 DIV + 37 AS col1 FROM tab1 AS cor0
----
-55
-58
-98

skipif mysql # not compatible
query I rowsort label-3059
SELECT ( - cor0.col2 ) + - col2 / + 37 AS col1 FROM tab1 AS cor0
----
-55
-58
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT ALL + col2 + + ( + col0 ) * col1 DIV col0 + col1 AS col1 FROM tab0
----
195
205
264

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL + col2 + + ( + col0 ) * col1 / col0 + col1 AS col1 FROM tab0
----
195
205
264

query I rowsort
SELECT DISTINCT + col0 + 58 AS col0 FROM tab1
----
122
138
61

query I rowsort
SELECT ALL 59 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL + col1 + 34 FROM tab1 AS cor0
----
44
47
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3064
SELECT ALL - 58 DIV + col0 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-197
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL - 58 / + col0 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-197
-2028
-3002

query I rowsort
SELECT DISTINCT + col1 + 97 * + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
130288
21080
446453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( cor0.col1 ) * - col2 col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - - 3 + - col1 * - cor0.col2 + col1 * col0 FROM tab1 AS cor0
----
1213
1485
2291

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + - 20 + - 6 * - col0 * 16 AS col0 FROM tab0 cor0
----
2284
3340
8524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT + + ( col1 ) DIV + col0 + ( col0 ) FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-3070
SELECT + + ( col1 ) / + col0 + ( col0 ) FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT ALL + 68 * - 74 * - col0 FROM tab0 AS cor0
----
120768
176120
447848

onlyif mysql # use DIV operator for integer division
query I rowsort label-3072
SELECT DISTINCT + col0 DIV 28 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + col0 / 28 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * col0 col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL 86 * + 71 - + col0 FROM tab2 AS cor0
----
6027
6028
6099

query I rowsort
SELECT 88 * 15 + - col1 AS col1 FROM tab0 AS cor0
----
1223
1229
1234

onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT - - CAST( 15 AS SIGNED ) * col0 * ( 47 ) + - col2 DIV + 2 FROM tab2 AS cor0
----
4922
54977
55676

skipif mysql # not compatible
query I rowsort label-3076
SELECT - - CAST ( 15 AS INTEGER ) * col0 * ( 47 ) + - col2 / + 2 FROM tab2 AS cor0
----
4922
54977
55676

query I rowsort
SELECT DISTINCT col0 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT + - 19 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT - 26 * col2 * col1 AS col1 FROM tab1 AS cor0
----
-14820
-32448
-36504

query I rowsort
SELECT DISTINCT + + col1 * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ( col1 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col0 * - col1 + + col2 * 25 AS col0 FROM tab0
----
-1239
-3370
-6049

query I rowsort
SELECT - + cor0.col2 + + col2 * + 21 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT DISTINCT + - col0 - - col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3086
SELECT DISTINCT + col0 DIV ( - col2 ) + + col1 * - cor0.col0 AS col0 FROM tab0 cor0
----
-2064
-3430
-8100

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + col0 / ( - col2 ) + + col1 * - cor0.col0 AS col0 FROM tab0 cor0
----
-2064
-3430
-8100

onlyif mysql # use DIV operator for integer division
query I rowsort label-3087
SELECT - col0 + tab0.col0 * - tab0.col0 DIV col0 FROM tab0
----
-178
-48
-70

skipif mysql # not compatible
query I rowsort label-3087
SELECT - col0 + tab0.col0 * - tab0.col0 / col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT - col0 + - 43 AS col2 FROM tab2 cor0
----
-121
-122
-50

query I rowsort
SELECT ALL + ( + 86 ) FROM tab1, tab0 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT col0 + ( - 66 ) AS col1 FROM tab0 AS cor0
----
-31
-42
23

query I rowsort
SELECT ALL + cor0.col0 * col0 + - ( col1 ) - + col1 FROM tab2 AS cor0
----
-13
5966
6207

query I rowsort
SELECT ALL col2 + 26 FROM tab2 AS cor0
----
52
53
64

query I rowsort
SELECT ALL - col0 - + ( - ( + col0 ) * - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT - col1 * 6 FROM tab2 AS cor0
----
-102
-186
-354

query I rowsort
SELECT ALL + col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 80 * - col1 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT ALL + col2 + - cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT + col1 DIV - 23 AS col2 FROM tab0 AS cor0
----
-3
-3
-4

skipif mysql # not compatible
query I rowsort label-3098
SELECT + col1 / - 23 AS col2 FROM tab0 AS cor0
----
-3
-3
-4

query I rowsort
SELECT - col1 + 17 * col0 AS col2 FROM tab0 AS cor0
----
1422
322
498

onlyif mysql # use DIV operator for integer division
query I rowsort label-3100
SELECT DISTINCT col2 + + col1 DIV col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT col2 + + col1 / col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT - col2 * col2 + + col1 * 97 AS col0 FROM tab0 cor0
----
2103
7253
9408

query I rowsort
SELECT ALL - - col2 + - 91 FROM tab0 AS cor0
----
-58
-9
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3103
SELECT DISTINCT col2 DIV col1 + - col2 AS col2 FROM tab1 AS cor0
----
-52
-89

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT col2 / col1 + - col2 AS col2 FROM tab1 AS cor0
----
-52
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + + col0 col0 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + col1 * - tab0.col2 + + col2 col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + cor0.col0 + col1 col2 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + col0 * col2 + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 / col1 )
----

query I rowsort
SELECT ALL - col0 + - tab1.col2 * + col1 + col2 AS col0 FROM tab1
----
-1232
-1353
-577

query I rowsort
SELECT + col2 * + col1 + + col0 + - col2 FROM tab0
----
131
2829
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-3110
SELECT DISTINCT col1 + + col0 * col0 DIV col2 FROM tab1
----
26
79
81

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT col1 + + col0 * col0 / col2 FROM tab1
----
26
79
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND col2 + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT ALL col0 DIV col1 + + tab2.col1 AS col0 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL col0 / col1 + + tab2.col1 AS col0 FROM tab2
----
21
31
60

query I rowsort
SELECT col1 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + col1 * col1 * col1 AS col2 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + col1 - col0 * col0 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT col2 * + col0 * + col1 AS col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT + cor0.col1 * + col1 AS col0 FROM tab1 cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col1 col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT DISTINCT tab2.col2 * col1 DIV col0 FROM tab2
----
119
19
8

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT tab2.col2 * col1 / col0 FROM tab2
----
119
19
8

query I rowsort
SELECT DISTINCT 54 * + col0 AS col1 FROM tab1
----
162
3456
4320

query I rowsort
SELECT - 3 - + col1 FROM tab0
----
-100
-89
-94

query I rowsort
SELECT DISTINCT - 86 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT - col1 DIV 38 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3124
SELECT - col1 / 38 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - cor0.col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + cor0.col0 + 34 * ( col2 ) + + 86 FROM tab1 AS cor0
----
1925
2088
3430

query I rowsort
SELECT + cor0.col0 + 28 FROM tab1 cor0
----
108
31
92

query I rowsort
SELECT DISTINCT col2 * 93 * col0 FROM tab0 AS cor0
----
3255
678714
73656

query I rowsort
SELECT ALL + col1 + col0 * 46 AS col1 FROM tab0 AS cor0
----
1190
1707
4185

onlyif mysql # use DIV operator for integer division
query I rowsort label-3130
SELECT tab1.col1 - 4 DIV 37 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif mysql # not compatible
query I rowsort label-3130
SELECT tab1.col1 - 4 / 37 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * + tab2.col2 col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col2 * + col2 + - col1 AS col1 FROM tab2
----
1427
617
698

query I rowsort
SELECT - col1 * col0 + - tab2.col2 * col2 FROM tab2
----
-2787
-5278
-946

query I rowsort
SELECT ALL + col2 * col1 * col1 AS col1 FROM tab0
----
244068
679042
9409

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( - col0 * col1 / tab0.col0 + - col1 * col2 )
----

query I rowsort
SELECT col1 * + tab0.col2 - - tab0.col2 FROM tab0
----
2871
7544
98

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 * col0 col1 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT 27 * - col1 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT + col1 + + tab2.col1 * + col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT - col2 FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT tab1.col2 + tab1.col2 + - col0 FROM tab1
----
105
112
50

query I rowsort
SELECT + tab1.col0 + - col0 * col0 AS col2 FROM tab1
----
-4032
-6
-6320

query III rowsort
SELECT * FROM tab0 WHERE + tab0.col1 NOT BETWEEN - col2 AND col1
----

query I rowsort
SELECT DISTINCT col2 * col2 * col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2 + col2
----

query I rowsort
SELECT ALL - col2 - ( col2 + col2 ) AS col1 FROM tab2 AS cor0
----
-114
-78
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT ALL + col0 * + col0 * + col0 + - cor0.col1 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
339
474552
493039

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL + col0 * + col0 * + col0 + - cor0.col1 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
339
474552
493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col0 + - col0 col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL col1 - col2 * + col0 AS col0 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT - col0 * - ( 40 ) - - col0 AS col2 FROM tab2 AS cor0
----
287
3198
3239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col0 col2 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3152
SELECT DISTINCT - - col1 DIV - CAST( col0 AS SIGNED ) FROM tab2 cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT - - col1 / - CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3153
SELECT + + col2 * - ( cor0.col1 ) + col0 - CAST( NULL AS DECIMAL ) * - col1 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT + + col2 * - ( cor0.col1 ) + col0 - CAST ( NULL AS REAL ) * - col1 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3154
SELECT - - col2 DIV + col0 + col2 AS col2 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-3154
SELECT - - col2 / + col0 + col2 AS col2 FROM tab0 AS cor0
----
1
34
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3155
SELECT DISTINCT + col0 * ( - col0 + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + col0 * ( - col0 + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT + CAST( 63 AS SIGNED ) + col2 * + col0 FROM tab2 cor0
----
2091
252
3065

skipif mysql # not compatible
query I rowsort label-3156
SELECT + CAST ( 63 AS INTEGER ) + col2 * + col0 FROM tab2 cor0
----
2091
252
3065

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - 59 + 76 * col1 FROM tab0 AS cor0
----
6477
6857
7313

onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT DISTINCT + cor0.col0 DIV - col1 + col1 col1 FROM tab2 AS cor0
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + cor0.col0 / - col1 + col1 col1 FROM tab2 AS cor0
----
13
31
58

query I rowsort
SELECT + + 55 + - col1 FROM tab2 AS cor0
----
-4
24
38

query I rowsort
SELECT DISTINCT col1 * ( - col2 ) * col0 + col2 * - col2 FROM tab1 AS cor0
----
-109056
-39729
-7128

query I rowsort
SELECT 96 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT + col2 DIV col1 - 10 * - col2 FROM tab2
----
260
270
382

skipif mysql # not compatible
query I rowsort label-3163
SELECT + col2 / col1 - 10 * - col2 FROM tab2
----
260
270
382

query I rowsort
SELECT DISTINCT - 66 + col2 FROM tab1 AS cor0
----
-12
-9
30

query I rowsort
SELECT 18 * col2 * ( cor0.col1 * col2 ) AS col2 FROM tab1 AS cor0
----
1364688
2156544
584820

query I rowsort
SELECT ALL - + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - 4 * + col1 * ( col2 ) FROM tab0 AS cor0
----
-11352
-29848
-388

query I rowsort
SELECT + 95 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT ALL col2 * col0 * col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT + 70 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT ALL - tab2.col2 - - tab2.col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT 77 * + col1 FROM tab2
----
1309
2387
4543

query I rowsort
SELECT 1 + + col1 AS col2 FROM tab2
----
18
32
60

query I rowsort
SELECT 11 + col1 * col1 FROM tab1 AS cor0
----
111
180
687

query I rowsort
SELECT ALL 96 * col1 FROM tab1 AS cor0
----
1248
2496
960

query I rowsort
SELECT ALL + + col2 * + ( + col2 ) AS col1 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3178
SELECT DISTINCT cor0.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT cor0.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT - tab1.col1 * 29 AS col2 FROM tab1
----
-290
-377
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - ( + cor0.col1 ) col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT 42 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT 64 * - 19 + col1 AS col0 FROM tab1 AS cor0
----
-1190
-1203
-1206

query I rowsort
SELECT cor0.col1 * + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + + col1 col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3185
SELECT ALL - CAST( + col0 AS SIGNED ) + - col1 * + col1 FROM tab0 cor0
----
-7420
-8370
-9444

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - CAST ( + col0 AS INTEGER ) + - col1 * + col1 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL - 29 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to eb8b36589592eb8217153525a5c8d606

query I rowsort
SELECT 84 * + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to bf5d0040fbd7fb88d76fe768ab001543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT ALL + - 95 DIV + 49 + col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + - 95 / + 49 + col1 FROM tab2 AS cor0
----
16
30
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3189
SELECT - cor0.col2 + col2 * + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT - cor0.col2 + col2 * + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3191
SELECT - ( + col2 ) + - 68 DIV - 62 AS col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT - ( + col2 ) + - 68 / - 62 AS col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL - 39 + col0 * cor0.col0 FROM tab1 AS cor0
----
-30
4057
6361

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - - 54 + + col0 FROM tab1 AS cor0
----
118
134
57

query I rowsort
SELECT DISTINCT col0 * + col2 + - 49 AS col1 FROM tab0 AS cor0
----
-14
7249
743

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + ( 10 ) * col0 FROM tab0 AS cor0
----
-336
-7031
-875

query I rowsort
SELECT DISTINCT - 34 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-238
-2652
-2686

query I rowsort
SELECT DISTINCT + 34 + + col1 AS col1 FROM tab2 AS cor0
----
51
65
93

query I rowsort
SELECT DISTINCT col2 + 7 AS col1 FROM tab0
----
40
8
89

query I rowsort
SELECT DISTINCT - col0 + + col1 * col0 + tab2.col0 * + col1 AS col2 FROM tab2
----
2607
427
9126

query I rowsort
SELECT DISTINCT - col0 + col2 * 53 AS col2 FROM tab2 AS cor0
----
1300
1424
1935

query I rowsort
SELECT ALL 7 AS col2 FROM tab0 cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3203
SELECT ALL + col0 * col2 + CAST( - 76 + - col2 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
112
20254
4389

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + col0 * col2 + CAST ( - 76 + - col2 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
112
20254
4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab1.col0 ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - ( + col2 * + col2 + - ( 8 ) ) AS col1 FROM tab1
----
-2908
-3241
-9208

query I rowsort
SELECT DISTINCT col2 * - col0 * - col0 + col2 AS col2 FROM tab0
----
1226
19041
649604

query I rowsort
SELECT - col2 * ( col1 ) * col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - ( 59 ) * col2 + 68 * + col2 AS col2 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT - + 63 FROM tab2 cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT + ( - col1 + col0 ) AS col2 FROM tab0
----
-2
-62

query I rowsort
SELECT ( - col1 * col2 ) AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + 22 + cor1.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
39
53
81

query I rowsort
SELECT + 7 * col1 AS col1 FROM tab1
----
182
70
91

query I rowsort
SELECT - 53 * tab2.col0 FROM tab2
----
-371
-4134
-4187

query I rowsort
SELECT ALL 12 * col1 FROM tab1
----
120
156
312

query I rowsort
SELECT col2 * col0 * col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col0 * col1 * 18 FROM tab1
----
-11520
-1404
-18720

query I rowsort
SELECT - 72 * 81 FROM tab1, tab1 AS cor0
----
9 values hashing to 69fa8f1b126a5962af6b5d0191a735d4

query I rowsort
SELECT col0 * + col0 * 71 FROM tab1 AS cor0
----
290816
454400
639

query I rowsort
SELECT DISTINCT cor0.col0 + 51 * col0 FROM tab2 cor0
----
364
4056
4108

query I rowsort
SELECT + ( 37 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to b8def841e97863779a391f3a05d3eb92

query I rowsort
SELECT ALL - + col2 * col2 * + col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - col0 * 51 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT ALL - - col2 * + 11 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT + col1 * ( + ( col2 ) + col1 ) FROM tab2 AS cor0
----
1798
5015
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-3226
SELECT + + col2 DIV - 61 + + ( - cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3226
SELECT + + col2 / - 61 + + ( - cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col0 + col1 * 1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col0 * col1 + col2 AS col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT col1 * col1 + + col1 AS col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT 2 * - 69 * + cor0.col2 FROM tab1 AS cor0
----
-13248
-7452
-7866

onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT + col0 + col1 DIV col1 col1 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3231
SELECT + col0 + col1 / col1 col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT 93 * - col0 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT - 18 - - col0 FROM tab1
----
-15
46
62

query I rowsort
SELECT + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3235
SELECT ALL CAST( NULL AS DECIMAL ) + - cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL CAST ( NULL AS REAL ) + - cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 13 AS col2 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT ALL ( - ( col2 ) ) * - 0 * 63 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * col1 + + col0 * - col2 FROM tab1 AS cor0
----
-3078
-6432
1242

onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT ( col2 ) * cor0.col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3239
SELECT ( col2 ) * cor0.col0 / + col2 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col0 + - cor0.col2 * col2 + 60 * - col1 FROM tab1 cor0
----
-3785
-4473
-9916

query I rowsort
SELECT col0 * ( col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - cor0.col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + 11 + - col0 FROM tab1 AS cor0
----
-53
-69
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3245
SELECT - - cor1.col2 DIV 68 AS col1 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708

skipif mysql # not compatible
query I rowsort label-3245
SELECT - - cor1.col2 / 68 AS col1 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3246
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT + + 75 - col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-6009
-6166
26

query I rowsort
SELECT + + col2 + - col2 * + 46 * col2 FROM tab1 AS cor0
----
-134082
-149397
-423840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT cor0.col1 + col2 + cor0.col2 DIV - 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-3249
SELECT cor0.col1 + col2 + cor0.col2 / - col1 col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3250
SELECT + col1 + + CAST( NULL AS SIGNED ) * - ( col1 + col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT + col1 + + CAST ( NULL AS INTEGER ) * - ( col1 + col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab1, tab2, tab2 AS cor0
----
-94

query I rowsort
SELECT ALL tab0.col0 * + 69 FROM tab0
----
1656
2415
6141

query I rowsort
SELECT 10 + 1 FROM tab1
----
11
11
11

query I rowsort
SELECT DISTINCT tab0.col0 * - col0 * col0 FROM tab0
----
-13824
-42875
-704969

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 62 AS REAL ) FROM tab2
----
62
62
62

query I rowsort
SELECT - - col0 * cor0.col2 AS col1 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3257
SELECT DISTINCT + col1 + + ( - col1 ) DIV + 55 + - col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + col1 + + ( - col1 ) / + 55 + - col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 19 * col2 + tab0.col1 AS col2 FROM tab0
----
-1467
-541
78

query I rowsort
SELECT + + 81 * - col2 - - col0 FROM tab2 AS cor0
----
-2028
-2180
-2999

query I rowsort
SELECT DISTINCT - + cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col2 * + col1 * + col2 FROM tab2 cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3262
SELECT + 77 * + col0 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
546
6084
6162

skipif mysql # not compatible
query I rowsort label-3262
SELECT + 77 * + col0 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT DISTINCT col2 * - col1 * + ( - col2 ) FROM tab1 AS cor0
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - cor0.col2 * col1 col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + + col0 * - col1 - ( - cor0.col0 + + col1 ) AS col0 FROM tab1 AS cor0
----
-101
-586
-973

query I rowsort
SELECT - + col0 * - col1 + col0 * - 70 - col0 AS col2 FROM tab2 AS cor0
----
-280
-4266
-936

query I rowsort
SELECT DISTINCT + + 49 + - col0 FROM tab1 cor0
----
-15
-31
46

query I rowsort
SELECT - ( - 59 ) - col0 * ( + col1 ) * - tab1.col2 AS col1 FROM tab1
----
36539
4271
99899

query I rowsort
SELECT ALL - - col2 * + col2 AS col1 FROM tab2 cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT + col2 DIV cor0.col0 col1 FROM tab2 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3270
SELECT + col2 / cor0.col0 col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - 76 + col0 * - col2 * 24 FROM tab2 AS cor0
----
-4612
-48748
-72124

query I rowsort
SELECT DISTINCT + col1 * col2 * cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT DISTINCT 83 + col2 * CAST( 14 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
492
506
632

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT 83 + col2 * CAST ( 14 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
492
506
632

query I rowsort
SELECT col1 * ( + cor0.col2 ) FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT ALL - - col2 DIV - 83 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - - col2 / - 83 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + - col2 * ( - col0 * col2 + + cor0.col1 ) FROM tab0 AS cor0
----
-62
23298
590974

query I rowsort
SELECT - col1 + - 0 * - cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + - col0 + - 10 FROM tab2 AS cor0
----
-17
-88
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT DISTINCT - col1 DIV - col1 - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT - col1 / - col1 - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL + col1 + 6 * - col1 AS col2 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col1 * 72 + 36 * - col0 FROM tab0 AS cor0
----
3348
5328
5724

query I rowsort
SELECT - + col0 * - 9 AS col2 FROM tab1 cor0
----
27
576
720

query I rowsort
SELECT ALL + cor0.col1 + ( + 10 ) FROM tab0 AS cor0
----
101
107
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT DISTINCT col2 DIV - col0 - 40 FROM tab1 AS cor0
----
-40
-41
-58

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT col2 / - col0 - 40 FROM tab1 AS cor0
----
-40
-41
-58

query I rowsort
SELECT DISTINCT col2 * - col0 * + col1 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL ( col2 ) + col0 * 77 FROM tab2 cor0
----
566
6032
6121

query I rowsort
SELECT DISTINCT + 94 + col1 AS col0 FROM tab2 cor0
----
111
125
153

query I rowsort
SELECT + cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3292
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 64 + col2 * - ( cor0.col1 ) + + col2 / + 56 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 64 + col2 * - ( cor0.col1 ) + + col2 / + 56 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 - + col0 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + 99 + col0 FROM tab1 AS cor0
----
102
163
179

query I rowsort
SELECT ALL + col0 + 35 + - col0 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT + col1 * ( - col2 ) FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3298
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) / - 19 + + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT + + CAST ( NULL AS REAL ) / - 19 + + col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + ( - 90 ) + - col1 FROM tab1 AS cor0
----
-100
-103
-116

query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + tab2.col0 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + tab0.col0 + ( - ( col2 ) + col1 ) * col0 FROM tab0
----
1296
3395
890

query I rowsort
SELECT + 27 * cor1.col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 12a005d73295bc114855a49ce19539a5

query I rowsort
SELECT ALL + + 78 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3307
SELECT DISTINCT col0 * col1 + col1 * 52 * col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT col0 * col1 + col1 * 52 * col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3308
SELECT ALL - - col0 * - CAST( NULL AS SIGNED ) + - col1 / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) + - col1 / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - tab2.col2 + col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT 18 FROM tab2, tab1, tab1 cor0, tab0
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298

query I rowsort
SELECT col0 * + 7 FROM tab2
----
49
546
553

query I rowsort
SELECT ALL + col2 * + col2 + + col0 * col1 FROM tab0 AS cor0
----
14823
3153
3396

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3313
SELECT DISTINCT + col1 * + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + col1 * + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + col2 * - 29 + cor0.col2 FROM tab0 cor0
----
-2296
-28
-924

query I rowsort
SELECT - col1 * ( - cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3316
SELECT 78 DIV + col1 col1 FROM tab1 AS cor0
----
3
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3316
SELECT 78 / + col1 col1 FROM tab1 AS cor0
----
3
6
7

query I rowsort
SELECT ALL col1 * - col0 + - 86 AS col1 FROM tab2 AS cor0
----
-1429
-303
-4688

query I rowsort
SELECT - col0 * col2 + - 62 FROM tab2 cor0
----
-2090
-251
-3064

query I rowsort
SELECT 17 AS col2 FROM tab0 cor0
----
17
17
17

query I rowsort
SELECT DISTINCT - col0 + col1 * 5 AS col0 FROM tab1 cor0
----
-14
-15
127

query I rowsort
SELECT + + 93 * col0 + ( col1 ) FROM tab2 AS cor0
----
682
7313
7364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT - - col2 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-3322
SELECT - - col2 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT cor0.col0 * - ( col0 ) * col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + ( - 20 ) FROM tab1 cor0
----
-20

query I rowsort
SELECT DISTINCT + + col0 * + col1 * + cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + col0 + col2 * col1 * - col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT 36 * - col1 + - col0 FROM tab0 AS cor0
----
-3120
-3365
-3527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 + - 75 col2 FROM tab1 AS cor0
----
-156
-156
-156

query I rowsort
SELECT ALL + 72 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT ( - tab2.col1 ) * + col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 44 * col0 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT - col2 + col0 + 86 AS col2 FROM tab1 AS cor0
----
35
70
93

query I rowsort
SELECT - col1 + - cor0.col0 * - ( - col1 ) FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - 3 AS col1 FROM tab2
----
-3
-3
-3

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + 68 + - col0 FROM tab0 cor0
----
-21
33
44

query I rowsort
SELECT DISTINCT 53 + - col1 * - 92 AS col1 FROM tab0 AS cor0
----
7965
8425
8977

query I rowsort
SELECT col0 + col1 * ( 20 ) FROM tab1 AS cor0
----
264
340
523

query I rowsort
SELECT - 38 + col2 FROM tab0 AS cor0
----
-37
-5
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - cor0.col1 * 52 col0 FROM tab1, tab2 cor0
----
9 values hashing to 3539954d4208a5db4be9971f422bc75a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3344
SELECT ALL - col1 DIV + col0 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-193
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - col1 / + col0 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-193
-2028
-3002

query I rowsort
SELECT - col2 * - col1 * 19 + - col0 * cor0.col1 FROM tab1 AS cor0
----
10190
22672
26598

query I rowsort
SELECT - col0 * col2 + - ( + cor0.col0 + - col2 ) FROM tab0 AS cor0
----
-69
-7305
-783

query I rowsort
SELECT DISTINCT 77 * + tab2.col0 FROM tab2, tab1 cor0
----
539
6006
6083

query I rowsort
SELECT col0 * col1 + 16 FROM tab0 AS cor0
----
2080
3411
8115

query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + cor1.col1 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 95981a80d3d59cb4fd463f4a7ad46da1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT DISTINCT + col2 DIV - tab0.col0 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT + col2 / - tab0.col0 AS col1 FROM tab0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT ALL + col2 DIV + col1 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL + col2 / + col1 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + 72 FROM tab1, tab1 AS cor0
----
72

query I rowsort
SELECT ALL 10 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT DISTINCT + col1 * + ( ( col0 ) ) AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + col0 - 0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3357
SELECT + 9 DIV 70 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3357
SELECT + 9 / 70 FROM tab2 AS cor0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 cor0, tab2 cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT ALL - + col1 + + ( col2 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3360
SELECT DISTINCT - - col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - - col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + tab0.col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - ( - 41 ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT ALL + col0 * col2 DIV 2 FROM tab0
----
17
3649
396

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL + col0 * col2 / 2 FROM tab0
----
17
3649
396

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 94 AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + ( + 92 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL - col2 * + 2 AS col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT ALL col1 * 78 + - ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
2025
716
934

query I rowsort
SELECT DISTINCT - col0 - - col2 * - 41 FROM tab1 AS cor0
----
-2217
-2401
-4016

query I rowsort
SELECT ALL cor0.col2 * 35 FROM tab1 AS cor0
----
1890
1995
3360

query I rowsort
SELECT + - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - - col1 + + ( col1 ) FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col1 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT ALL + - col0 - col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - - col0 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT ALL + + 6 DIV 96 + col0 + 86 * col1 AS col1 FROM tab2 cor0
----
1541
2673
5152

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + + 6 / 96 + col0 + 86 * col1 AS col1 FROM tab2 cor0
----
1541
2673
5152

query I rowsort
SELECT + - col0 * ( - col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - + 74 + col1 FROM tab0 AS cor0
----
12
17
23

query I rowsort
SELECT ALL 49 + col0 FROM tab1 AS cor0
----
113
129
52

query I rowsort
SELECT DISTINCT - col2 * col2 * col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT col2 * col0 + col0 + + col0 AS col2 FROM tab0 AS cor0
----
105
7476
840

query I rowsort
SELECT + + ( col1 ) + ( 55 ) + + col1 FROM tab1 AS cor0
----
107
75
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - ( col0 ) + 38 + + 12 FROM tab0 AS cor0
----
139
74
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3384
SELECT DISTINCT col2 + col0 * - CAST( NULL AS SIGNED ) + 71 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT col2 + col0 * - CAST ( NULL AS INTEGER ) + 71 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - col0 col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT + col1 * - col2 + + col0 * - col1 AS col2 FROM tab2 cor0
----
-1054
-1989
-6136

query I rowsort
SELECT + col1 + + col2 * + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - 5 * + cor0.col2 + col2 FROM tab2 AS cor0
----
-104
-108
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col2 + + col2 col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - 8 + col2 * - cor0.col0 FROM tab1 AS cor0
----
-170
-3656
-7688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 * col1 col0 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * col2 * col2 - + col1 * col1 col1 FROM tab2 AS cor0
----
14017
18715
54504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 + - col0 col0 FROM tab0 AS cor0
----
-47
18
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT - + col2 DIV - col2 + col0 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3394
SELECT - + col2 / - col2 + col0 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT ALL tab0.col2 * col0 + + tab0.col2 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT ALL - col0 DIV col0 + tab2.col1 * col0 FROM tab2
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL - col0 / col0 + tab2.col1 * col0 FROM tab2
----
1342
216
4601

query I rowsort
SELECT cor0.col2 + - 84 AS col2 FROM tab0 AS cor0
----
-2
-51
-83

query I rowsort
SELECT ALL ( - 21 ) + - col2 FROM tab0 AS cor0
----
-103
-22
-54

query I rowsort
SELECT col0 * - col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT 33 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL cor0.col2 + cor0.col1 * + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - 80 FROM tab1, tab0 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + - 52 col0 FROM tab1
----
-1092
-130
-692

query I rowsort
SELECT 88 * col1 FROM tab2
----
1496
2728
5192

query I rowsort
SELECT - ( 80 * col0 ) AS col1 FROM tab2
----
-560
-6240
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3406
SELECT ALL CAST( NULL AS SIGNED ) + - col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3407
SELECT + ( - col0 ) + col1 DIV col2 + + col2 * + tab0.col0 FROM tab0
----
7210
770
97

skipif mysql # not compatible
query I rowsort label-3407
SELECT + ( - col0 ) + col1 / col2 + + col2 * + tab0.col0 FROM tab0
----
7210
770
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3408
SELECT ALL CAST( - 39 AS SIGNED ) + + tab0.col1 FROM tab0
----
47
52
58

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL CAST ( - 39 AS INTEGER ) + + tab0.col1 FROM tab0
----
47
52
58

query I rowsort
SELECT ( ( col0 ) ) * col1 * col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT col0 * col1 + + col0 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3411
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV + col1 + - col0 AS col2 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT CAST ( col1 AS INTEGER ) / + col1 + - col0 AS col2 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT - col1 * + tab2.col1 * tab2.col0 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT ALL CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + - 48 * tab0.col2 col0 FROM tab0
----
-1572
-36
-3924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3415
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3415
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 * + 24 AS col1 FROM tab2
----
1416
408
744

query I rowsort
SELECT ALL col2 * - col2 * + col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - cor0.col0 * col0 + - col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT - - col0 * + col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL col2 * - col2 + col0 * - col2 * col2 FROM tab2 AS cor0
----
-115520
-53404
-5832

query I rowsort
SELECT DISTINCT + - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 + - ( - col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + 18 - - tab0.col1 FROM tab0, tab0 AS cor0
----
104
109
115

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1 cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT + col1 * + 18 + + col1 + col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
190
247
494

skipif mysql # not compatible
query I rowsort label-3426
SELECT + col1 * + 18 + + col1 + col1 / + col2 AS col1 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT DISTINCT + col2 * 14 AS col0 FROM tab0
----
1148
14
462

query I rowsort
SELECT - - col0 + + col0 * + col2 * col1 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT - - cor0.col1 + col1 + col0 AS col2 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT - col2 + col2 + + col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 5 + col0 * col0 FROM tab2 AS cor0
----
54
6089
6246

onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT ALL col1 DIV - cor0.col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL col1 / - cor0.col0 FROM tab0 cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + col2 * ( col1 ) col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col1 + col0 + col2 AS col2 FROM tab2
----
134
163
65

query I rowsort
SELECT - - cor0.col2 * + col0 + 83 FROM tab2 AS cor0
----
2111
272
3085

query I rowsort
SELECT - + cor0.col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - tab0.col0 + - 27 FROM tab0, tab0 AS cor0
----
9 values hashing to fbe79fcd126f908ff209f81d402a7b77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3438
SELECT DISTINCT col0 + col1 * - CAST( - ( col0 ) * - col2 AS SIGNED ) FROM tab2
----
-119574
-50955
-5852

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT col0 + col1 * - CAST ( - ( col0 ) * - col2 AS INTEGER ) FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT DISTINCT col2 * + tab2.col1 + col0 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT - col2 * - col0 * 98 + + col0 * col0 FROM tab0
----
4655
723125
78192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col2 * - col0 col0 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT col1 DIV - CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3442
SELECT col1 / - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT + col1 * + 79 AS col0 FROM tab2 AS cor0
----
1343
2449
4661

query I rowsort
SELECT DISTINCT - col2 * - 1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 6 FROM tab1, tab1 AS cor0
----
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3446
SELECT DISTINCT col1 + + CAST( ( + col1 ) AS SIGNED ) * 12 AS col1 FROM tab2 cor0
----
221
403
767

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT col1 + + CAST ( ( + col1 ) AS INTEGER ) * 12 AS col1 FROM tab2 cor0
----
221
403
767

query I rowsort
SELECT col1 * ( col0 + - col2 * + col1 ) AS col1 FROM tab0
----
-242004
-6014
-670943

query I rowsort
SELECT ALL col1 * + 27 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1105
1674
3127

query I rowsort
SELECT 40 + - col2 + col0 AS col2 FROM tab0 AS cor0
----
31
47
74

query I rowsort
SELECT DISTINCT + 89 * - col1 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT + - 47 * col0 * - col0 + 6 + - col2 AS col2 FROM tab1 AS cor0
----
192461
300710
375

query I rowsort
SELECT ALL - 93 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-4
-58
-69

query I rowsort
SELECT - + 43 * - 42 AS col1 FROM tab2 AS cor0
----
1806
1806
1806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3454
SELECT ALL - CAST( NULL AS DECIMAL ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - CAST ( NULL AS REAL ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL tab1.col0 - 38 FROM tab1
----
-35
26
42

query I rowsort
SELECT ALL - col2 - + 99 * - tab2.col0 FROM tab2
----
666
7696
7783

query I rowsort
SELECT ALL + col1 - - 27 FROM tab0
----
113
118
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 48 - - col1 col0 FROM tab1
----
-2566
-2726
-4595

query I rowsort
SELECT - 17 * col2 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT 5 * col2 * 97 FROM tab0 AS cor0
----
16005
39770
485

query I rowsort
SELECT DISTINCT - ( col0 + col2 ) * - col0 FROM tab0
----
1260
1368
15219

query I rowsort
SELECT - 88 * tab2.col0 AS col1 FROM tab2
----
-616
-6864
-6952

query I rowsort
SELECT - ( - 19 ) AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 11 ) * col1 * col1 col0 FROM tab2
----
-10571
-3179
-38291

query I rowsort
SELECT ALL 19 AS col1 FROM tab0
----
19
19
19

query I rowsort
SELECT 54 * col0 AS col2 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT ( - col1 ) * 10 * + col1 FROM tab2 AS cor0
----
-2890
-34810
-9610

query I rowsort
SELECT - col1 * tab0.col0 + col2 * col1 AS col1 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT ALL - + col1 * col2 + - col2 * - cor0.col1 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * + cor0.col0 + + CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - cor0.col2 * 77 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aa79fe915f87c8ab9be417fb5d6c1eb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 + col1 * - col1 col0 FROM tab1
----
-26
-647
-76

query I rowsort
SELECT ALL cor0.col2 + + col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT + col1 * cor0.col2 + 84 FROM tab0 AS cor0
----
181
2922
7546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 7 + + col1 col0 FROM tab0 AS cor0
----
79
84
90

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT tab2.col2 * col0 + - ( + 25 + col0 * 7 ) FROM tab2
----
115
1457
2424

query I rowsort
SELECT - tab0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + 55 AS col0 FROM tab1 AS cor0
----
-114
-45
-621

onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT ALL col1 * - tab1.col2 + 80 DIV - col0 + + col0 AS col1 FROM tab1
----
-1169
-1427
-507

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL col1 * - tab1.col2 + 80 / - col0 + + col0 AS col1 FROM tab1
----
-1169
-1427
-507

query I rowsort
SELECT - tab1.col0 * + col2 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col1 + - tab2.col0 * tab2.col1 * 36 FROM tab2
----
-165613
-48331
-7781

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 + - cor0.col2 * - ( - 19 + col0 * + ( col0 ) ) FROM tab0 AS cor0
----
1207
19470
654688

query I rowsort
SELECT + - 46 * - cor0.col0 + + col2 FROM tab2 AS cor0
----
349
3614
3672

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab0, tab0 AS cor0
----
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT ALL - - ( col0 ) DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - - ( col0 ) / col1 AS col0 FROM tab1 AS cor0
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT ALL ( - col1 ) + col2 DIV ( col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL ( - col1 ) + col2 / ( col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col2 + + cor0.col0 + col0 AS col0 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT + 97 + col0 FROM tab0 AS cor0
----
121
132
186

onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT ALL + col1 DIV - 6 FROM tab2
----
-2
-5
-9

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + col1 / - 6 FROM tab2
----
-2
-5
-9

query I rowsort
SELECT col2 - col1 * col2 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL col2 + - 72 * col1 FROM tab1
----
-1818
-663
-840

query I rowsort
SELECT ALL - tab2.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3496
SELECT + CAST( NULL AS SIGNED ) + + col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT + CAST ( NULL AS INTEGER ) + + col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 71 col0 FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT - col1 * + 48 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
-380
-455
-572

query I rowsort
SELECT + + col2 - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT 12 * 97 - - col1 * + 31 AS col1 FROM tab0 AS cor0
----
3830
3985
4171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3504
SELECT ALL CAST( NULL AS SIGNED ) + - 73 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL CAST ( NULL AS INTEGER ) + - 73 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT DISTINCT - 91 + 71 * cor0.col1 DIV col1 FROM tab2 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT - 91 + 71 * cor0.col1 / col1 FROM tab2 cor0
----
-20

query I rowsort
SELECT col1 * col1 + col1 + col2 AS col2 FROM tab1
----
167
278
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + + col1 + + tab1.col0 col2 FROM tab1
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3508
SELECT ALL col2 + - ( col0 ) DIV col2 AS col2 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL col2 + - ( col0 ) / col2 AS col2 FROM tab0
----
-34
33
81

query I rowsort
SELECT + ( col0 * + col2 ) + ( + col2 + col1 ) * + 85 FROM tab1
----
16945
6962
9343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 10 * cor0.col1 col1 FROM tab1 cor0
----
157
226
314

query I rowsort
SELECT col2 + - 79 - col1 * + col1 AS col0 FROM tab2 cor0
----
-1013
-330
-3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 + col2 * ( + col2 + col0 ) col1 FROM tab2
----
2652
4405
938

query I rowsort
SELECT + ( tab0.col0 + - col2 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT - 38 * - col1 AS col0 FROM tab0
----
3268
3458
3686

query I rowsort
SELECT DISTINCT 69 + + 47 AS col2 FROM tab1
----
116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3516
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 94 + + col1 + - col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 94 + + col1 + - col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL 82 * col1 AS col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT + cor0.col2 + + col0 * - ( - 3 ) AS col0 FROM tab0 AS cor0
----
105
106
349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 * ( - ( + col2 ) ) * - 23 col2 FROM tab1 AS cor0
----
176560
3723
83840

query I rowsort
SELECT DISTINCT - col2 * - col2 - col1 AS col2 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT + - col2 * col0 + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - - 12 * - col2 * - col2 FROM tab2 AS cor0
----
17328
8112
8748

query I rowsort
SELECT col1 * col0 + + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + col0 * col2 + ( cor0.col0 * - col1 ) FROM tab2 AS cor0
----
-2574
-28
1659

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3525
SELECT + col2 + + col0 - CAST( NULL AS SIGNED ) * 79 * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT + col2 + + col0 - CAST ( NULL AS INTEGER ) * 79 * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 49 * col0 AS col0 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT 96 * + col1 FROM tab2 AS cor0
----
1632
2976
5664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3528
SELECT - col2 * + col0 - ( ( col2 ) ) / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT - col2 * + col0 - ( ( col2 ) ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab2 cor3
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT DISTINCT - 81 * 0 AS col1 FROM tab2, tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 77 * + col1 + col2 col1 FROM tab0 AS cor0
----
-158895
-261414
-623541

query I rowsort
SELECT ALL + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3534
SELECT DISTINCT + + col1 * + ( + col2 * cor0.col0 ) + + 51 + + cor0.col1 * cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT + + col1 * + ( + col2 * cor0.col0 ) + + 51 + + cor0.col1 * cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT DISTINCT col2 + col2 DIV col1 + col1 AS col2 FROM tab2 AS cor0
----
57
58
85

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT col2 + col2 / col1 + col1 AS col2 FROM tab2 AS cor0
----
57
58
85

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 - + col1 AS col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL col0 + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + ( + col1 ) col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col2 * ( + 53 ) AS col2 FROM tab2 AS cor0
----
1378
1431
2014

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col0 + cor0.col2 * + col2 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT ALL - + col1 * - cor0.col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT - ( + col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT DISTINCT + + ( col1 ) DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT + + ( col1 ) / - col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL + 47 AS col0 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT + col1 + 74 FROM tab2
----
105
133
91

query I rowsort
SELECT + - 33 * cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1ae98b00fc45346dda555ad1945cf133

query I rowsort
SELECT DISTINCT - tab0.col1 * 67 FROM tab0, tab2 AS cor0
----
-5762
-6097
-6499

query I rowsort
SELECT DISTINCT ( - 89 ) FROM tab1, tab1 cor0
----
-89

query I rowsort
SELECT + cor0.col2 + + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + - col0 + - 2 AS col0 FROM tab0 AS cor0
----
-26
-37
-91

query I rowsort
SELECT + col0 + col0 * + cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT col2 + 76 AS col2 FROM tab2 AS cor0
----
102
103
114

query I rowsort
SELECT col1 - + col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + 25 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT DISTINCT 38 * col2 FROM tab1
----
2052
2166
3648

query I rowsort
SELECT ALL + 10 + + col0 AS col0 FROM tab1
----
13
74
90

query I rowsort
SELECT col1 * - col2 * - tab0.col1 AS col0 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3558
SELECT col2 DIV ( col2 ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3558
SELECT col2 / ( col2 ) AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3560
SELECT CAST( NULL AS DECIMAL ) + - col1 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT CAST ( NULL AS REAL ) + - col1 * col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT DISTINCT + col2 + ( - col0 ) DIV - col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + col2 + ( - col0 ) / - col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab0
----
-1

query I rowsort
SELECT ALL + 84 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col2 FROM tab1
----
34
34
34

query I rowsort
SELECT - + col1 * - col2 * - 48 FROM tab0 AS cor0
----
-136224
-358176
-4656

query I rowsort
SELECT - 9 * + col2 AS col0 FROM tab1 AS cor0
----
-486
-513
-864

query I rowsort
SELECT DISTINCT + 64 * col0 AS col0 FROM tab0
----
1536
2240
5696

query I rowsort
SELECT + 1 AS col1 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT ALL 63 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT DISTINCT col2 * 37 FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT - cor0.col0 + 31 FROM tab1 AS cor0
----
-33
-49
28

query I rowsort
SELECT DISTINCT - col1 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + - 24 + + col0 * col2 FROM tab2 AS cor0
----
165
2004
2978

query I rowsort
SELECT + col1 * 19 * col2 AS col2 FROM tab2
----
12274
15903
29146

query I rowsort
SELECT + col2 + + 46 FROM tab2 cor0
----
72
73
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT ALL CAST( col0 AS SIGNED ) * cor0.col0 + - ( - col2 ) * col0 FROM tab2 AS cor0
----
238
8112
9243

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL CAST ( col0 AS INTEGER ) * cor0.col0 + - ( - col2 ) * col0 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT DISTINCT - + 65 + 90 AS col1 FROM tab1 cor0
----
25

query I rowsort
SELECT - + col2 * col0 + cor0.col2 * 72 AS col1 FROM tab2 cor0
----
-156
-266
1755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - cor0.col2 ) col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - 94 * + col0 AS col2 FROM tab2 AS cor0
----
-658
-7332
-7426

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3581
SELECT ALL 26 * + col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL 26 * + col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) * col1 AS col2 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT - 54 * + cor0.col2 * 90 FROM tab1, tab2 AS cor0
----
9 values hashing to 473faa449aabab280888a0683bc0e8b7

query I rowsort
SELECT ALL - 35 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 74 + + col0 * col2 ) col1 FROM tab2
----
115
1954
2928

query I rowsort
SELECT col2 + - ( 20 ) * col2 * - col1 FROM tab0
----
149322
1941
56793

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + - col1 * 78 * + 1 FROM tab2 AS cor0
----
-1326
-2418
-4602

query I rowsort
SELECT - - col0 - - 19 * 88 AS col1 FROM tab1 AS cor0
----
1675
1736
1752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3590
SELECT ALL + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - 31 + col0 AS col1 FROM tab2
----
3
73
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3592
SELECT col1 DIV 92 + + tab1.col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3592
SELECT col1 / 92 + + tab1.col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - 43 col1 FROM tab1 AS cor0
----
-107
-123
-46

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col0 + ( col1 ) * col2 FROM tab2 AS cor0
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT + cor0.col0 + 26 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ebdeb51e500e531413429a2e13358484

query I rowsort
SELECT ALL - col2 * - 66 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT col1 * - 63 FROM tab1 AS cor0
----
-1638
-630
-819

query I rowsort
SELECT DISTINCT col0 + + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT ALL - 1 DIV col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - 1 / col1 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - ( - col1 ) + - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab2 AS cor0
----
93

query I rowsort
SELECT ALL + 60 AS col0 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT + 91 * + col0 * cor0.col0 FROM tab1 AS cor0
----
372736
582400
819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3606
SELECT ALL - - CAST( NULL AS SIGNED ) * + 60 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 60 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col2 * 45 + + tab0.col1 AS col2 FROM tab0
----
127796
335881
4462

query I rowsort
SELECT DISTINCT + tab2.col1 + + col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT col2 * - col0 + col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT tab2.col0 * col2 * - col0 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT ALL - col1 DIV col1 + col0 * col1 AS col0 FROM tab1
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - col1 / col1 + col0 * col1 AS col0 FROM tab1
----
1039
639
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3612
SELECT DISTINCT 17 * col1 DIV col1 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT 17 * col1 / col1 FROM tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT + 99 + col2 + ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7528
8462
9509

query I rowsort
SELECT ALL - - col0 + + col1 * 78 FROM tab1 AS cor0
----
1094
2031
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col2 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3616
SELECT DISTINCT + 8 * col2 DIV + col0 FROM tab1 AS cor0
----
144
7
9

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT + 8 * col2 / + col0 FROM tab1 AS cor0
----
144
7
9

query I rowsort
SELECT ALL + 27 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT ALL + + 24 + - col2 FROM tab0 AS cor0
----
-58
-9
23

query I rowsort
SELECT - - 4 + col0 FROM tab1 AS cor0
----
68
7
84

query I rowsort
SELECT ALL - 57 + col2 * col0 AS col2 FROM tab1 AS cor0
----
105
3591
7623

query I rowsort
SELECT DISTINCT - - 91 AS col0 FROM tab2, tab0, tab0 AS cor0
----
91

query I rowsort
SELECT DISTINCT + col1 * + tab1.col2 * - col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT 13 * - col0 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT DISTINCT 92 + col0 - + 53 FROM tab1 AS cor0
----
103
119
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT + 23 * - col2 + + col1 - col2 * - tab0.col1 * - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3625
SELECT + 23 * - col2 + + col1 - col2 * - tab0.col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 45 AS col0 FROM tab2
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3627
SELECT ALL - col2 + - 23 DIV 36 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL - col2 + - 23 / 36 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col2 * - 82 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT + 87 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT ALL 9 * col1 AS col2 FROM tab2
----
153
279
531

query I rowsort
SELECT ALL col1 + ( 42 ) FROM tab2
----
101
59
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3632
SELECT ALL + cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL + cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * 62 FROM tab1 AS cor0
----
1612
620
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3634
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 * 7 FROM tab0 AS cor0
----
231
574
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + tab0.col1 col1 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL + - cor1.col1 * - 34 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 019e6b754fed1102c994dfbb57358193

query I rowsort
SELECT ALL + col0 * + 30 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-1329
-2826
-6816

query I rowsort
SELECT DISTINCT col1 * - 38 FROM tab2 AS cor0
----
-1178
-2242
-646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3641
SELECT ALL + CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + CAST ( NULL AS REAL ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * ( - col1 ) + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + col0 + col1 + cor0.col2 FROM tab2 AS cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * + col2 * + col0 col1 FROM tab2 AS cor0
----
-12285
-131820
-195130

query I rowsort
SELECT DISTINCT col2 * col1 + + 81 * + col0 AS col2 FROM tab2 AS cor0
----
1404
7045
7852

query I rowsort
SELECT ALL - col1 * cor0.col2 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL 12 * cor0.col1 FROM tab0 AS cor0
----
1032
1092
1164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3649
SELECT DISTINCT col0 + col1 * + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT col0 + col1 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col0 col2 FROM tab1 cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 + - col2 col1 FROM tab1 AS cor0
----
-143
-146
-185

query I rowsort
SELECT + col1 * ( + 93 ) + + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-2718
-6471
2256

query I rowsort
SELECT - 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT - 69 FROM tab0, tab2 AS cor0
----
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3655
SELECT ALL - col2 - CAST( + 56 AS SIGNED ) * + col1 FROM tab1 cor0
----
-1510
-617
-824

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - col2 - CAST ( + 56 AS INTEGER ) * + col1 FROM tab1 cor0
----
-1510
-617
-824

query I rowsort
SELECT + col1 * - ( col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT DISTINCT 45 DIV + 42 AS col2 FROM tab0, tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT 45 / + 42 AS col2 FROM tab0, tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 37 ) * + cor0.col1 col2 FROM tab1, tab1 AS cor0, tab2, tab1 cor1
----
81 values hashing to a4b479044c61b7e6029c5ac32eb39a73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT col1 * col0 + + cor0.col2 DIV + 58 + col1 AS col1 FROM tab2 cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-3659
SELECT col1 * col0 + + cor0.col2 / + 58 + col1 AS col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + ( - col1 ) - - col1 * 22 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT - cor0.col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT 83 * + col1 - col0 FROM tab1
----
2155
766
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 90 ) col1 FROM tab2
----
90

query I rowsort
SELECT ALL + 57 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 23b62d6905061dab566f3a9e15667302

query I rowsort
SELECT ALL 78 * - col0 FROM tab2
----
-546
-6084
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3666
SELECT + CAST( NULL AS SIGNED ) - - ( + tab2.col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT + CAST ( NULL AS INTEGER ) - - ( + tab2.col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - 53 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT ALL - - ( 89 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL - - ( 89 ) / - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + 25 * - cor0.col0 FROM tab1, tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT 78 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT ( 1 ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT - col0 - - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + + col1 * col2 * col1 + col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
2052
36342
8544

query I rowsort
SELECT - col2 + cor0.col1 * + 17 FROM tab0 AS cor0
----
1429
1465
1648

query I rowsort
SELECT - - col2 * + 12 + col1 AS col1 FROM tab2 AS cor0
----
355
371
473

query I rowsort
SELECT + col0 + 73 FROM tab2 AS cor0
----
151
152
80

query I rowsort
SELECT DISTINCT - 36 * tab0.col2 * - col1 FROM tab0
----
102168
268632
3492

query I rowsort
SELECT ALL tab1.col2 AS col2 FROM tab1, tab0, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT - col0 + 88 + 85 * - col2 AS col1 FROM tab2 AS cor0
----
-2200
-2214
-3221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3682
SELECT DISTINCT + col1 * CAST( 64 AS SIGNED ) FROM tab2 AS cor0
----
1088
1984
3776

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT + col1 * CAST ( 64 AS INTEGER ) FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT + col2 * - ( - col1 * col2 ) AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + 11 * - col2 AS col2 FROM tab0 AS cor0
----
-11
-363
-902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3685
SELECT CAST( col1 AS SIGNED ) * - col2 - - col2 FROM tab0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort label-3685
SELECT CAST ( col1 AS INTEGER ) * - col2 - - col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT + col0 + - col1 * + col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT + + 80 * col2 FROM tab0 AS cor0
----
2640
6560
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3688
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col1 + col1 * col1 AS col1 FROM tab0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col1 FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - - col0 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT ALL + ( col2 ) DIV 70 + + col1 * - col0 * tab2.col2 FROM tab2
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL + ( col2 ) / 70 + + col1 * - col0 * tab2.col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + 57 * - col2 FROM tab2
----
-1482
-1539
-2166

query I rowsort
SELECT cor0.col1 * col2 * + ( ( + cor0.col0 ) ) FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + ( + col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + col0 * + ( tab2.col2 ) FROM tab2
----
2054
216
3040

query I rowsort
SELECT - tab1.col0 * - 80 FROM tab1
----
240
5120
6400

query I rowsort
SELECT - col0 + ( - col1 ) + - col1 * + cor0.col1 FROM tab2 AS cor0
----
-3618
-385
-999

query I rowsort
SELECT ALL + col0 + - 77 + col2 FROM tab2 AS cor0
----
-43
27
40

query I rowsort
SELECT DISTINCT + col2 + - 33 * - col1 FROM tab2 AS cor0
----
1050
1973
599

onlyif mysql # use DIV operator for integer division
query I rowsort label-3701
SELECT + - col1 DIV col1 + + cor0.col0 DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3701
SELECT + - col1 / col1 + + cor0.col0 / + col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 72 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

query I rowsort
SELECT - col1 + 84 * 91 * col0 FROM tab0 AS cor0
----
183370
267443
680225

query I rowsort
SELECT - 37 * + 60 * col0 FROM tab1 AS cor0
----
-142080
-177600
-6660

query I rowsort
SELECT ALL - cor0.col2 * + 44 FROM tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT ALL - - ( col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT ( col1 ) * - col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + 77 AS col0 FROM tab2 cor0
----
-77
-77
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT - ( - col0 ) DIV cor0.col0 AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3709
SELECT - ( - col0 ) / cor0.col0 AS col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3710
SELECT DISTINCT + col0 * ( col0 ) DIV + col1 AS col2 FROM tab0 cor0
----
12
6
87

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT + col0 * ( col0 ) / + col1 AS col2 FROM tab0 cor0
----
12
6
87

query I rowsort
SELECT - col0 * 50 AS col2 FROM tab1 AS cor0
----
-150
-3200
-4000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3712
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col0 * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col0 * + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 + 52 FROM tab2 AS cor0
----
130
131
59

query I rowsort
SELECT - + col2 * + ( col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col2 * 60 FROM tab1
----
3240
3420
5760

query I rowsort
SELECT - - ( + cor0.col1 ) * col0 * + 17 FROM tab0 AS cor0
----
137683
35088
57715

query I rowsort
SELECT - 16 FROM tab2 cor0
----
-16
-16
-16

query I rowsort
SELECT - - 55 * - col0 AS col2 FROM tab1 AS cor0
----
-165
-3520
-4400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * + col0 col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL + ( 70 ) * + col2 FROM tab1 AS cor0
----
3780
3990
6720

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - + 85 * + col0 + col2 FROM tab1 AS cor0
----
-201
-5383
-6704

query I rowsort
SELECT + 19 * col2 + cor0.col2 * - col0 FROM tab2 cor0
----
-1534
-2280
324

query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + 34 * col0 AS col2 FROM tab2 cor0
----
238
2652
2686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 + + col2 col1 FROM tab2 AS cor0
----
100
101
112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3727
SELECT col0 DIV + col0 + + col2 AS col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-3727
SELECT col0 / + col0 + + col2 AS col2 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT + 3 * + tab2.col1 AS col0 FROM tab2
----
177
51
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT ALL + col0 DIV - 39 AS col1 FROM tab2
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL + col0 / - 39 AS col1 FROM tab2
----
-2
-2
0

query I rowsort
SELECT + cor0.col0 + 72 FROM tab0 AS cor0
----
107
161
96

query I rowsort
SELECT ALL - cor0.col2 * col2 * + col2 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-157542
-185833
-885776

query I rowsort
SELECT ALL - col2 * + col1 + + col0 * ( - col0 ) FROM tab1
----
-1413
-4666
-7648

query I rowsort
SELECT ALL 1 + - col0 FROM tab1
----
-2
-63
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3734
SELECT DISTINCT + col0 * - col0 + CAST( NULL AS DECIMAL ) * - 53 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT + col0 * - col0 + CAST ( NULL AS REAL ) * - 53 AS col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT ALL - col2 DIV col2 + - 53 FROM tab1
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - col2 / col2 + - 53 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT ALL tab1.col2 * col2 + - 68 FROM tab1
----
2848
3181
9148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col0 col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + - col2 + - ( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - cor0.col1 * 4 + + ( col0 ) FROM tab2 AS cor0
----
-117
-158
11

query I rowsort
SELECT ALL + col2 * - ( - col0 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - col1 + col0 * 90 FROM tab2 AS cor0
----
599
6961
7093

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3742
SELECT DISTINCT + + col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + + col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * ( - cor0.col2 ) + col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1155
232
2805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( - col1 ) * col1 col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL + tab2.col1 * - col2 AS col2 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col2 FROM tab2
----
17
17
17

query I rowsort
SELECT + 24 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT - + col1 * + ( cor0.col1 ) + - col2 FROM tab2 AS cor0
----
-327
-3507
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + col1 * + col0 col2 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3750
SELECT ALL + CAST( - col0 AS SIGNED ) * - col0 * ( + col0 + + col2 ) FROM tab2 AS cor0
----
1666
632736
730197

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + CAST ( - col0 AS INTEGER ) * - col0 * ( + col0 + + col2 ) FROM tab2 AS cor0
----
1666
632736
730197

query I rowsort
SELECT + col1 * + 32 + + col0 AS col0 FROM tab2 AS cor0
----
1966
623
999

query I rowsort
SELECT - col2 * cor0.col1 + col2 + col2 AS col1 FROM tab0 AS cor0
----
-2772
-7298
-95

query I rowsort
SELECT 28 * - ( + col2 ) * 85 - - 34 FROM tab0 AS cor0
----
-195126
-2346
-78506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT - 97 DIV + cor0.col1 + col0 * col0 FROM tab2 cor0
----
46
6083
6236

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 97 / + cor0.col1 + col0 * col0 FROM tab2 cor0
----
46
6083
6236

query I rowsort
SELECT 28 + col0 + col2 AS col0 FROM tab0 AS cor0
----
199
64
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 52 col0 FROM tab2 AS cor0
----
-1352
-1404
-1976

query I rowsort
SELECT + col1 * cor0.col2 * + col0 + col2 * - col2 FROM tab2 cor0
----
118976
49590
5130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + col2 col0 FROM tab0 AS cor0
----
-14
18
67

query I rowsort
SELECT col0 + col0 + - col0 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - + 28 + cor0.col0 * col0 * col1 + + col0 FROM tab1 AS cor0
----
209
40996
83252

query I rowsort
SELECT + 15 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT + - cor0.col2 * cor0.col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL 40 AS col0 FROM tab2, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

query I rowsort
SELECT col1 + col2 + + col0 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3766
SELECT DISTINCT - col1 * - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT - col1 * - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col2 - - col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL - + cor0.col0 + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col0 + col1 * + 52 FROM tab0
----
4496
4821
5079

query I rowsort
SELECT DISTINCT - 77 + + col1 * col2 FROM tab2 AS cor0
----
1457
569
760

query I rowsort
SELECT + ( col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT DISTINCT + + ( - col2 ) DIV col2 + - 7 * + col2 FROM tab1 AS cor0
----
-379
-400
-673

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT + + ( - col2 ) / col2 + - 7 * + col2 FROM tab1 AS cor0
----
-379
-400
-673

query I rowsort
SELECT col0 - - col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + 9 * - col2 + col0 * + 38 AS col0 FROM tab2 AS cor0
----
23
2660
2730

query I rowsort
SELECT DISTINCT col0 * col2 + ( - col0 ) * + cor0.col0 FROM tab2 AS cor0
----
-3239
-4056
140

query I rowsort
SELECT DISTINCT - + cor0.col2 + + col1 + - col2 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT - col1 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
95

query I rowsort
SELECT ALL col2 + 54 FROM tab2 AS cor0
----
80
81
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( col1 ) col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - - col1 * 63 FROM tab0 AS cor0
----
5418
5733
6111

query I rowsort
SELECT DISTINCT + col0 - - 52 AS col0 FROM tab2 AS cor0
----
130
131
59

query I rowsort
SELECT ALL 58 + + col2 AS col0 FROM tab1
----
112
115
154

query I rowsort
SELECT ALL col0 + - col1 * + col1 AS col2 FROM tab1
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 * + col2 col2 FROM tab1 cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - 98 * + col2 col2 FROM tab1 AS cor0
----
-122304
-137592
-55860

query I rowsort
SELECT ALL + col0 * + col1 + - cor0.col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + 17 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
17

query I rowsort
SELECT DISTINCT - cor0.col0 * 69 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT + 68 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - 68 * cor0.col2 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab0, tab0 AS cor0
----
77

query I rowsort
SELECT ALL col2 * col2 - - col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT 97 * 48 - tab1.col1 FROM tab1
----
4630
4643
4646

query I rowsort
SELECT - ( - 39 ) AS col0 FROM tab1 AS cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 - tab2.col0 col2 FROM tab2
----
1365
598
722

query I rowsort
SELECT - col0 + 1 + - tab0.col1 AS col1 FROM tab0
----
-109
-131
-179

query I rowsort
SELECT ALL col1 - 42 * + col0 * col0 FROM tab0
----
-24106
-332591
-51353

query I rowsort
SELECT ALL - 82 - + col2 FROM tab1
----
-136
-139
-178

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 + 64 - - col1 AS col0 FROM tab1 AS cor0
----
1117
168
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 61 + col0 * col0 col2 FROM tab1 cor0
----
4157
6461
70

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9

query I rowsort
SELECT + - col2 + + col0 * - col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT - col1 * + 34 AS col2 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT ALL + - 98 AS col2 FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT - CAST( NULL AS DECIMAL ) 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-3806
SELECT - CAST ( NULL AS REAL ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + ( ( + col2 ) * - col2 ) FROM tab1
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3808
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT 60 + - tab0.col1 FROM tab0
----
-26
-31
-37

query I rowsort
SELECT - + 93 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT ALL 46 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3812
SELECT ALL - CAST( - col2 AS SIGNED ) FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - CAST ( - col2 AS INTEGER ) FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( + col0 ) ) * 62 + + col0 col1 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT DISTINCT + - col2 - ( + cor0.col0 ) * col0 * col0 FROM tab0 AS cor0
----
-13857
-42876
-705051

query I rowsort
SELECT ALL + 69 - - 35 FROM tab1 AS cor0
----
104
104
104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3816
SELECT DISTINCT CAST( col0 AS SIGNED ) * cor0.col0 * col2 FROM tab1 AS cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT CAST ( col0 AS INTEGER ) * cor0.col0 * col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - 88 * + cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1688092a1528c8577b0cd808ddf99200

query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab2, tab0 cor0, tab1 cor1, tab1, tab2 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT + col1 DIV - col1 + 97 - + col2 FROM tab2
----
58
69
70

skipif mysql # not compatible
query I rowsort label-3819
SELECT + col1 / - col1 + 97 - + col2 FROM tab2
----
58
69
70

query I rowsort
SELECT ALL 50 + + col0 AS col1 FROM tab0
----
139
74
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT ALL - ( col1 ) DIV tab2.col1 + col2 + col0 DIV - ( 79 ) AS col0 FROM tab2
----
25
26
36

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - ( col1 ) / tab2.col1 + col2 + col0 / - ( 79 ) AS col0 FROM tab2
----
25
26
36

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL + 59 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 + + col1 * col0 col1 FROM tab0 AS cor0
----
2146
3477
8181

query I rowsort
SELECT ( col1 ) + - col2 * - col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT DISTINCT col1 * + tab1.col0 + - col2 FROM tab1
----
24
583
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3827
SELECT ALL - - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * 78 + col2 + cor0.col2 * - col2 AS col1 FROM tab2 cor0
----
-2678
-2808
-4370

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3829
SELECT col0 * CAST( ( col0 ) AS SIGNED ) + + col1 FROM tab1 AS cor0
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-3829
SELECT col0 * CAST ( ( col0 ) AS INTEGER ) + + col1 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT DISTINCT - - col0 DIV - 41 - - col0 FROM tab0 AS cor0
----
24
35
87

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT - - col0 / - 41 - - col0 FROM tab0 AS cor0
----
24
35
87

query I rowsort
SELECT DISTINCT - col0 + ( cor0.col1 * col2 ) AS col1 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - col2 - + 79 AS col2 FROM tab1 cor0
----
-133
-136
-175

query I rowsort
SELECT - col0 * col2 * cor0.col2 AS col0 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - - col1 * 92 + col1 AS col0 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT DISTINCT col1 * ( col0 ) - - col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col1 * - ( col2 ) * - col1 + ( col2 + + col1 ) AS col1 FROM tab1 AS cor0
----
16333
36584
5767

query I rowsort
SELECT + cor0.col2 * ( + col1 + - col0 ) FROM tab0 AS cor0
----
164
2046
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3838
SELECT DISTINCT cor0.col1 + - CAST( NULL AS SIGNED ) * 93 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT cor0.col1 + - CAST ( NULL AS INTEGER ) * 93 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * 84 + col1 * - col1 AS col1 FROM tab1 AS cor0
----
3860
4688
7895

query I rowsort
SELECT DISTINCT + col1 + ( 72 ) * + col1 FROM tab0 AS cor0
----
6278
6643
7081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3841
SELECT DISTINCT + - col1 DIV + cor0.col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT + - col1 / + cor0.col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT + col0 + - col0 * col1 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 * cor0.col0 col2 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - - cor0.col1 + - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT tab2.col0 * 17 FROM tab2
----
119
1326
1343

query I rowsort
SELECT + col1 * - 9 AS col1 FROM tab0
----
-774
-819
-873

query I rowsort
SELECT + tab2.col1 * + tab2.col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT - col0 + + col1 + col1 * col0 FROM tab1 AS cor0
----
101
586
973

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query I rowsort
SELECT + cor0.col2 * + ( 22 ) FROM tab2 cor0
----
572
594
836

skipif mysql # not compatible
query I rowsort
SELECT col1 * - CAST ( - col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col2 + + col0 * 95 AS col2 FROM tab0 AS cor0
----
2313
3326
8537

query I rowsort
SELECT + + 56 + 7 AS col0 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT + - col1 * col1 + col1 + + cor0.col2 AS col0 FROM tab0 cor0
----
-7277
-8108
-9311

query I rowsort
SELECT + ( + col1 ) + col1 * col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - ( 27 ) * - col0 AS col2 FROM tab0 cor0
----
2403
648
945

query I rowsort
SELECT ALL + - col2 + - col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-133
-143
-262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col1 + + ( col1 ) AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL - col0 * + 76 FROM tab2
----
-532
-5928
-6004

query I rowsort
SELECT ALL - 40 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT + col0 + - 52 AS col1 FROM tab2
----
-45
26
27

query I rowsort
SELECT - col0 * ( + tab2.col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + 17 * - col2 FROM tab1 AS cor0
----
-1632
-918
-969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3865
SELECT CAST( col2 AS SIGNED ) * col1 col0 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3865
SELECT CAST ( col2 AS INTEGER ) * col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 36 * cor0.col1 + 10 FROM tab2 AS cor0
----
1126
2134
622

query I rowsort
SELECT - + col2 + cor0.col2 - 97 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - 32 - col1 FROM tab2 AS cor0
----
-49
-63
-91

query I rowsort
SELECT DISTINCT - - col0 + - col1 * 65 AS col1 FROM tab2 AS cor0
----
-1026
-2008
-3757

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + - col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - 14 + col0 * + col2 FROM tab1 AS cor0
----
148
3634
7666

query I rowsort
SELECT ALL + col0 + + cor0.col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL ( + col1 ) * + col2 + col0 * col1 * col1 FROM tab1 AS cor0
----
14768
3432
6970

query I rowsort
SELECT + - col2 * col0 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col0 * + col0 + ( 91 ) * + col1 + + ( 33 ) FROM tab1
----
2408
5039
7616

query I rowsort
SELECT ALL tab2.col0 + col1 * + col1 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL AND col0 NOT IN ( col2 )
----

query I rowsort
SELECT col2 * col2 + col0 * - col1 FROM tab1 cor0
----
2609
2838
8176

query I rowsort
SELECT col2 * col1 * cor0.col0 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
100009
36580
4888

query I rowsort
SELECT col1 * col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT tab1.col0 - col0 * - col0 FROM tab1
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3884
SELECT DISTINCT + col2 DIV col0 + - col1 * - col1 FROM tab0
----
7397
8281
9409

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT + col2 / col0 + - col1 * - col1 FROM tab0
----
7397
8281
9409

query I rowsort
SELECT + col0 * + col1 + col1 FROM tab1 cor0
----
104
1053
650

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = ( NULL ) OR NOT ( col2 * col1 ) NOT BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT - col2 * col2 + + col0 AS col0 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL 99 + + tab2.col2 * col0 + col2 * - col2 FROM tab2
----
-441
1451
1657

onlyif mysql # use DIV operator for integer division
query I rowsort label-3889
SELECT - + 81 * col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-211
-7857
-89

skipif mysql # not compatible
query I rowsort label-3889
SELECT - + 81 * col1 / + col2 AS col2 FROM tab0 AS cor0
----
-211
-7857
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - cor0.col0 col1 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3891
SELECT col1 * col1 DIV col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3891
SELECT col1 * col1 / col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - - col1 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT col1 + + col2 * + tab0.col1 AS col1 FROM tab0 WHERE NULL IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT DISTINCT + tab2.col2 DIV - col0 col2 FROM tab2
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT + tab2.col2 / - col0 col2 FROM tab2
----
-3
0

query I rowsort
SELECT - tab1.col0 + - col0 + - col2 * - col1 FROM tab1
----
1088
1398
442

query III rowsort
SELECT * FROM tab0 WHERE NULL = - col0
----

query I rowsort
SELECT DISTINCT col0 * col0 * col2 + col0 + col2 AS col0 FROM tab1
----
233593
543
614576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3898
SELECT ALL tab1.col2 DIV - col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL tab1.col2 / - col2 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3899
SELECT col0 DIV col0 - - col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3899
SELECT col0 / col0 - - col1 FROM tab2
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT DISTINCT col1 DIV col1 col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT col1 / col1 col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + col0 * col2 - col0 * + col0 FROM tab1
----
-448
1280
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col2 FROM tab0
----
172
182
194

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT + col0 + col1 * - col0 - - col2 AS col1 FROM tab0 WHERE NOT + col1 * col2 NOT IN ( col1 * - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - col1 IN ( col2 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col1 - tab1.col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + col0 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT + col2 + - col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-3908
SELECT + col2 + - col2 / cor0.col2 AS col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT ALL + - 90 AS col2 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT ALL col2 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL col2 / cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3911
SELECT - ( - col2 ) * col1 + 52 DIV - col2 AS col2 FROM tab0 AS cor0
----
2837
45
7462

skipif mysql # not compatible
query I rowsort label-3911
SELECT - ( - col2 ) * col1 + 52 / - col2 AS col2 FROM tab0 AS cor0
----
2837
45
7462

query I rowsort
SELECT col1 * - col0 + col0 AS col1 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3913
SELECT - tab2.col0 DIV + col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3913
SELECT - tab2.col0 / + col1 AS col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT ALL - col0 + + col0 + col1 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2 WHERE ( NULL ) NOT IN ( + col1 / - col0 + col2 / col1 )
----

skipif mysql # not compatible
query I rowsort
SELECT 50 * col2 + - CAST ( + 56 AS REAL ) AS col1 FROM tab0 AS cor0
----
-6
1594
4044

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT IN ( + tab2.col0 * + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + tab1.col2 - - col1 * col0 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL col2 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * col0 ) NOT IN ( col2 - col0 )
----

query I rowsort
SELECT + col0 + col1 * tab2.col1 AS col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT ALL - col1 * col1 - + col1 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT ALL - tab1.col1 + col1 * + col2 FROM tab1
----
1235
1378
560

query I rowsort
SELECT ALL col0 / + col0 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT - col1 + + col1 DIV col2 + tab0.col0 AS col2 FROM tab0
----
-1
-60
35

skipif mysql # not compatible
query I rowsort label-3925
SELECT - col1 + + col1 / col2 + tab0.col0 AS col2 FROM tab0
----
-1
-60
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 + + col2 col2 FROM tab0
----
246
3
99

query I rowsort
SELECT DISTINCT + + col2 + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + cor0.col2 + col2 * + col1 * 62 FROM tab0 AS cor0
----
175989
462726
6015

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab0 cor0
----
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT col2 + col0 DIV + 98 + + 87 FROM tab1 cor0
----
141
144
183

skipif mysql # not compatible
query I rowsort label-3930
SELECT col2 + col0 / + 98 + + 87 FROM tab1 cor0
----
141
144
183

query I rowsort
SELECT ALL - + 68 + col1 * 86 AS col0 FROM tab1 AS cor0
----
1050
2168
792

query I rowsort
SELECT DISTINCT + - col1 + col0 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
-27
7296
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3933
SELECT ( + col0 ) + CAST( + 29 * + col2 AS SIGNED ) + - col1 * 69 col0 FROM tab1 cor0
----
-225
1027
1967

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3933
SELECT ( + col0 ) + CAST ( + 29 * + col2 AS INTEGER ) + - col1 * 69 col0 FROM tab1 cor0
----
-225
1027
1967

query I rowsort
SELECT + + cor0.col2 + col2 + ( col2 ) AS col2 FROM tab0 AS cor0
----
246
3
99

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 col1 * col0 + + ( col0 * + col2 ) + 55 FROM tab0 AS cor0
----
15452
2911
3485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + + col0 + col1 col2 FROM tab1 cor0
----
107
1133
714

query I rowsort
SELECT ALL + 67 * col2 FROM tab0 AS cor0
----
2211
5494
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT DISTINCT - cor0.col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT - cor0.col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 + col2 * ( col0 ) FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col2 * ( + col0 * col1 ) AS col1 FROM tab1 cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3942
SELECT ALL - - col0 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL - - col0 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col0 + + ( 62 ) * col1 + CAST ( - col1 * - col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
1621
2752
5114

onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT + col2 * col1 DIV - col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3944
SELECT + col2 * col1 / - col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col1 * + 15 * col1 + 72 * + col0 AS col1 FROM tab0 AS cor0
----
-109212
-117807
-138615

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3946
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + col0 / col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + col0 / col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 68 FROM tab0, tab2 cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT ALL - col2 * 85 * - tab0.col0 + - col2 * col1 FROM tab0
----
2878
612868
64482

query I rowsort
SELECT DISTINCT 56 + 1 AS col1 FROM tab0
----
57

query I rowsort
SELECT ( + 91 ) * col0 + 76 AS col2 FROM tab0
----
2260
3261
8175

query I rowsort
SELECT ALL - - 93 * tab0.col0 AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 05eded35106e8078989c1b5f13c7b876

query I rowsort
SELECT ALL col0 * col2 + - col1 AS col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT - tab0.col1 * 66 - col1 AS col2 FROM tab0
----
-5762
-6097
-6499

query I rowsort
SELECT ( - ( col1 ) ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + + col0 * - 14 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT DISTINCT ( col2 ) + col0 * + 13 AS col1 FROM tab1 AS cor0
----
1136
889
93

query I rowsort
SELECT DISTINCT - - 24 + + ( cor0.col0 ) FROM tab0 AS cor0
----
113
48
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT DISTINCT col1 + - col2 DIV tab1.col0 AS col0 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT col1 + - col2 / tab1.col0 AS col0 FROM tab1
----
10
12
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3960
SELECT - col2 * col1 + + col0 + - CAST( - col0 AS SIGNED ) * tab0.col2 AS col2 FROM tab0
----
-2022
-27
-75

skipif mysql # not compatible
query I rowsort label-3960
SELECT - col2 * col1 + + col0 + - CAST ( - col0 AS INTEGER ) * tab0.col2 AS col2 FROM tab0
----
-2022
-27
-75

query I rowsort
SELECT col2 * 44 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT tab1.col0 + 92 + - col0 AS col0 FROM tab1
----
92
92
92

query I rowsort
SELECT 90 + - col0 AS col1 FROM tab1 cor0
----
10
26
87

query I rowsort
SELECT + 66 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + 64 FROM tab0, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * col1 + - col2 col0 FROM tab2 AS cor0
----
1526
2825
5402

query I rowsort
SELECT ALL - col0 * 21 AS col0 FROM tab1
----
-1344
-1680
-63

query I rowsort
SELECT DISTINCT + 58 FROM tab1, tab2, tab0 AS cor0, tab0
----
58

query I rowsort
SELECT ALL - - col0 * 19 FROM tab2 cor0
----
133
1482
1501

query I rowsort
SELECT - col1 * 90 * - col0 FROM tab2 AS cor0
----
120870
19530
414180

query I rowsort
SELECT DISTINCT ( - 63 ) * + cor0.col2 FROM tab1 AS cor0
----
-3402
-3591
-6048

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + - 30 * cor0.col0 FROM tab0 AS cor0
----
-1050
-2670
-720

query I rowsort
SELECT col1 * 34 FROM tab1 cor0
----
340
442
884

query I rowsort
SELECT 50 * + col0 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT ALL - col1 * 40 AS col0 FROM tab0
----
-3440
-3640
-3880

query I rowsort
SELECT 65 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3980
SELECT + CAST( - 11 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

skipif mysql # not compatible
query I rowsort label-3980
SELECT + CAST ( - 11 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT col1 * ( - col1 ) * col1 - col2 * 86 DIV + cor0.col0 FROM tab0 AS cor0
----
-636174
-753650
-912675

skipif mysql # not compatible
query I rowsort label-3981
SELECT col1 * ( - col1 ) * col1 - col2 * 86 / + cor0.col0 FROM tab0 AS cor0
----
-636174
-753650
-912675

query I rowsort
SELECT ALL - col2 * 83 AS col1 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT DISTINCT - - col0 + - ( - col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + + col0 + 15 AS col2 FROM tab0 AS cor0
----
104
39
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3985
SELECT - col2 DIV - ( - col1 * - col1 + + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3985
SELECT - col2 / - ( - col1 * - col1 + + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * 85 FROM tab0 AS cor0
----
2805
6970
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3987
SELECT col1 + 1 DIV + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3987
SELECT col1 + 1 / + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + + ( 6 ) AS col2 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT - 12 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT DISTINCT + ( - 88 ) AS col2 FROM tab2, tab2 AS cor0
----
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3991
SELECT + + cor0.col1 DIV - col1 - + col1 AS col1 FROM tab0 cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-3991
SELECT + + cor0.col1 / - col1 - + col1 AS col1 FROM tab0 cor0
----
-87
-92
-98

query I rowsort
SELECT ALL 14 * - ( - cor0.col2 ) FROM tab0 AS cor0
----
1148
14
462

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 17 AS REAL ) * + col0 FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT - - col0 + + 54 AS col2 FROM tab1 AS cor0
----
118
134
57

query I rowsort
SELECT DISTINCT 82 * + col1 + col0 FROM tab1 AS cor0
----
1146
2135
884

query I rowsort
SELECT - 99 + 4 AS col0 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT 65 * - col0 * - col0 + col2 DIV col2 AS col2 FROM tab0 cor0
----
37441
514866
79626

skipif mysql # not compatible
query I rowsort label-3997
SELECT 65 * - col0 * - col0 + col2 / col2 AS col2 FROM tab0 cor0
----
37441
514866
79626

query I rowsort
SELECT ALL - col2 - - col0 * col1 * col2 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT + 52 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT DISTINCT + 14 + - col0 FROM tab0 AS cor0
----
-10
-21
-75

query I rowsort
SELECT ALL + 22 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL ( - 12 + + col0 ) AS col2 FROM tab2
----
-5
66
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT ALL + 16 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL + 16 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + - col0 * 33 FROM tab0
----
-1058
-2846
-706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + cor0.col1 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 * ( - col1 * + col2 + ( 7 ) ) FROM tab2 AS cor0
----
-10863
-25730
-90093

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4007
SELECT + 71 * col1 + + CAST( 92 AS SIGNED ) FROM tab1
----
1015
1938
802

skipif mysql # not compatible
query I rowsort label-4007
SELECT + 71 * col1 + + CAST ( 92 AS INTEGER ) FROM tab1
----
1015
1938
802

query I rowsort
SELECT ALL 60 * col1 * + col2 AS col0 FROM tab1
----
34200
74880
84240

query I rowsort
SELECT ALL col0 + 55 * - 70 AS col0 FROM tab2 AS cor0
----
-3771
-3772
-3843

query I rowsort
SELECT DISTINCT - col0 + - 47 * 4 AS col0 FROM tab2 AS cor0
----
-195
-266
-267

query I rowsort
SELECT cor0.col2 + - 16 AS col1 FROM tab2 AS cor0
----
10
11
22

query I rowsort
SELECT ALL + col0 * col2 + ( col0 ) - + 71 FROM tab1 AS cor0
----
3641
7689
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT DISTINCT - col1 DIV + ( col0 ) AS col1 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT - col1 / + ( col0 ) AS col1 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT DISTINCT + col0 + 80 FROM tab2 AS cor0
----
158
159
87

query I rowsort
SELECT ALL + col2 * - 44 + cor0.col2 * cor0.col2 AS col1 FROM tab2 cor0
----
-228
-459
-468

query I rowsort
SELECT DISTINCT - col2 + col1 * 90 AS col2 FROM tab1 AS cor0
----
1074
2286
843

onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT DISTINCT col1 DIV 13 + + cor0.col0 FROM tab0 AS cor0
----
30
42
96

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT col1 / 13 + + cor0.col0 FROM tab0 AS cor0
----
30
42
96

query I rowsort
SELECT DISTINCT col2 * + ( col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + col1 + - 93 AS col0 FROM tab2 AS cor0
----
-34
-62
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4020
SELECT - ( 42 ) * tab1.col2 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT - ( 42 ) * tab1.col2 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 * - col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - 18 + col2 AS col2 FROM tab1 cor0
----
36
39
78

query I rowsort
SELECT 32 * - col2 FROM tab1 cor0
----
-1728
-1824
-3072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 * col2 col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 27 * col0 col0 FROM tab1 AS cor0
----
1718
2147
55

query I rowsort
SELECT ( col1 ) + col2 + 58 AS col2 FROM tab0 AS cor0
----
156
177
231

query I rowsort
SELECT + col1 * 65 * + col1 FROM tab1 cor0
----
10985
43940
6500

onlyif mysql # use DIV operator for integer division
query I rowsort label-4028
SELECT ALL + col2 * - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + col2 * - col2 / col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 31 + - 40 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT + 12 * - col1 + + col1 FROM tab1 cor0
----
-110
-143
-286

query I rowsort
SELECT DISTINCT + col2 + + col1 - + cor0.col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + - 18 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
-134316
-1746
-51084

query I rowsort
SELECT + ( col2 ) * cor0.col0 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT - + 12 + + col1 + 11 * + ( - col1 ) FROM tab2 AS cor0
----
-182
-322
-602

query I rowsort
SELECT DISTINCT - 79 FROM tab1, tab2 AS cor0, tab2, tab1 cor1
----
-79

query I rowsort
SELECT + col2 * - 74 FROM tab1
----
-3996
-4218
-7104

query I rowsort
SELECT - col1 * - col2 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT ALL col2 * - col0 + col1 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT 26 FROM tab0, tab2 cor0
----
26

query I rowsort
SELECT DISTINCT - - col1 * + 21 AS col0 FROM tab0 cor0
----
1806
1911
2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-4041
SELECT DISTINCT + col0 DIV 9 FROM tab1 AS cor0
----
0
7
8

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT + col0 / 9 FROM tab1 AS cor0
----
0
7
8

query I rowsort
SELECT + - col2 * + 5 + - col0 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
-165
-410
-5

query I rowsort
SELECT DISTINCT - - col0 + - 0 + + ( col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col0 + - col2 - - col1 AS col2 FROM tab1 cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + 81 col1 FROM tab0 AS cor0
----
-10
-16
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT - + col2 DIV 75 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT - + col2 / 75 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT ALL - cor0.col0 * + ( + col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 86 col2 FROM tab1 AS cor0
----
112
96
99

query I rowsort
SELECT + col1 + + col1 * col2 * col1 AS col0 FROM tab0 AS cor0
----
244154
679133
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 17 + cor0.col0 * col2 * - col1 col2 FROM tab0 AS cor0
----
-2800
-662605
-67704

query I rowsort
SELECT DISTINCT + col0 - col1 * col2 * 7 AS col1 FROM tab0 AS cor0
----
-19842
-52145
-644

query I rowsort
SELECT DISTINCT 22 + + col2 * + cor0.col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
2941
3335
9318

query I rowsort
SELECT + col0 * - col0 + + col0 * - 72 FROM tab0 AS cor0
----
-14329
-2304
-3745

query I rowsort
SELECT + + ( col2 ) * col1 + + col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col2 + col0 * cor0.col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4056
SELECT CAST( NULL AS SIGNED ) * - 94 + col2 * 20 + - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT CAST ( NULL AS INTEGER ) * - 94 + col2 * 20 + - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 61 * + col2 AS col2 FROM tab1 cor0
----
3294
3477
5856

query I rowsort
SELECT - 48 * + col1 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT + - 49 * 78 + col2 AS col2 FROM tab2 cor0
----
-3784
-3795
-3796

query I rowsort
SELECT ALL - cor0.col0 + - col2 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2007
3359
7928

query I rowsort
SELECT ALL - + 61 + + col1 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
1282
156
4541

query I rowsort
SELECT ALL - 73 + cor0.col1 FROM tab1 AS cor0
----
-47
-60
-63

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab0 cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + 30 * - col2 col2 FROM tab0 AS cor0
----
-1023
-2542
-31

query I rowsort
SELECT + - col1 * - 69 - cor0.col2 FROM tab0 AS cor0
----
5901
6197
6692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + col2 col1 FROM tab0
----
40
8
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4067
SELECT - col0 + CAST( - col2 AS SIGNED ) * - cor0.col2 FROM tab0 AS cor0
----
-34
1065
6635

skipif mysql # not compatible
query I rowsort label-4067
SELECT - col0 + CAST ( - col2 AS INTEGER ) * - cor0.col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT col2 * col1 + cor0.col2 - + col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT ALL + col0 DIV CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + col0 / CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col1 + + col1 + + col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT - + col1 * 99 + - 87 AS col0 FROM tab0 AS cor0
----
-8601
-9096
-9690

query I rowsort
SELECT ALL col0 + 22 AS col2 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT - col0 * + 15 + + col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1449
-526
-8059

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4074
SELECT ALL + ( col2 * - CAST( NULL AS SIGNED ) + col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + ( col2 * - CAST ( NULL AS INTEGER ) + col1 ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + col2 col0 FROM tab1
----
140
143
182

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4076
SELECT + + col2 + + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT + + col2 + + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 92 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT + tab1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT col2 DIV + col1 + + col0 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-4079
SELECT col2 / + col1 + + col0 FROM tab2
----
7
78
81

query I rowsort
SELECT DISTINCT col2 * col1 + col1 + col0 * ( col1 ) FROM tab0
----
15652
3589
4988

onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT col0 * - col2 + + 49 DIV - col0 FROM tab1
----
-178
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4081
SELECT col0 * - col2 + + 49 / - col0 FROM tab1
----
-178
-3648
-7680

query I rowsort
SELECT cor0.col1 - col2 * + col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT col2 + - ( tab2.col1 ) FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL col2 * + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4085
SELECT DISTINCT + col0 + + col0 DIV col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT + col0 + + col0 / col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT col1 * ( + 80 ) FROM tab2
----
1360
2480
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT DISTINCT ( + 30 ) DIV col1 + col2 col1 FROM tab1
----
55
60
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT ( + 30 ) / col1 + col2 col1 FROM tab1
----
55
60
98

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab0, tab1 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + + 76 + 4 col1 FROM tab0 AS cor0
----
115
7378
872

query I rowsort
SELECT + 10 * col0 AS col2 FROM tab2
----
70
780
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT tab0.col0 DIV - col1 + + tab0.col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4092
SELECT tab0.col0 / - col1 + + tab0.col1 FROM tab0
----
86
91
97

query I rowsort
SELECT col2 * - 27 + - col1 + + col0 FROM tab0
----
-2216
-89
-953

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4094
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 + + col1 FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - 84 * + col0 AS col0 FROM tab2 AS cor0
----
588
6552
6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT ALL + col1 + - col1 DIV - cor0.col2 + 21 * - col0 FROM tab0 AS cor0
----
-1777
-416
-541

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + col1 + - col1 / - cor0.col2 + 21 * - col0 FROM tab0 AS cor0
----
-1777
-416
-541

query I rowsort
SELECT DISTINCT + col0 * - col2 + 98 AS col1 FROM tab2 AS cor0
----
-1930
-2904
-91

query I rowsort
SELECT col0 + - ( - tab0.col1 ) AS col0 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT DISTINCT + ( - col0 ) DIV col1 FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + ( - col0 ) / col1 FROM tab1
----
-6
0

query I rowsort
SELECT - 57 + 73 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4103
SELECT CAST( - 68 AS SIGNED ) * col2 col2 FROM tab0 AS cor0
----
-2244
-5576
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4103
SELECT CAST ( - 68 AS INTEGER ) * col2 col2 FROM tab0 AS cor0
----
-2244
-5576
-68

query I rowsort
SELECT DISTINCT - + 28 + + col2 FROM tab1 AS cor0
----
26
29
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4105
SELECT ALL - ( cor0.col1 ) + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - ( cor0.col1 ) + col1 / col2 AS col0 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT DISTINCT + - 38 + - col0 AS col0 FROM tab1 AS cor0
----
-102
-118
-41

query I rowsort
SELECT - cor0.col0 * - col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + 56 AS col1 FROM tab2, tab0, tab2 AS cor0
----
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT + col2 + + col0 DIV 79 FROM tab0 cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-4109
SELECT + col2 + + col0 / 79 FROM tab0 cor0
----
1
33
83

query I rowsort
SELECT - - col1 + 3 AS col1 FROM tab2 cor0
----
20
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4111
SELECT - + col1 DIV - 82 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4111
SELECT - + col1 / - 82 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col0 * col0 + - 11 AS col1 FROM tab0
----
1214
565
7910

query I rowsort
SELECT - - cor0.col2 + + ( col2 ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT CAST( + 71 AS SIGNED ) FROM tab2 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-4114
SELECT CAST ( + 71 AS INTEGER ) FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT ALL - cor0.col1 + - 15 AS col2 FROM tab0 cor0
----
-101
-106
-112

query I rowsort
SELECT DISTINCT 53 * - 74 AS col1 FROM tab0 AS cor0
----
-3922

query I rowsort
SELECT col1 * 12 FROM tab0 cor0
----
1032
1092
1164

query I rowsort
SELECT ALL ( + col2 ) * - col0 + cor0.col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4119
SELECT ALL col0 DIV + 86 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL col0 / + 86 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4120
SELECT DISTINCT CAST( NULL AS SIGNED ) + 73 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 73 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 1 * col1 - - col1 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4122
SELECT ALL + CAST( NULL AS SIGNED ) * col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 - - col0 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + ( + col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + 69 - col2 AS col1 FROM tab1 AS cor0
----
-27
12
15

query I rowsort
SELECT ALL col2 * - 80 FROM tab1 AS cor0
----
-4320
-4560
-7680

query I rowsort
SELECT ALL - 57 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT col1 - - 45 FROM tab0
----
131
136
142

query I rowsort
SELECT ALL col2 + + 52 AS col0 FROM tab1
----
106
109
148

query I rowsort
SELECT + 95 * 64 FROM tab1, tab0 AS cor0
----
9 values hashing to 798d162c38d3b4fe3fe475e2895bc291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + 61 FROM tab0, tab0 AS cor0, tab2, tab1 cor1
----
81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1

query I rowsort
SELECT ALL - 75 * + col2 FROM tab0
----
-2475
-6150
-75

query I rowsort
SELECT ALL + ( 8 * col1 + 14 ) FROM tab1
----
118
222
94

query I rowsort
SELECT ALL 85 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4136
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL 99 * - col0 AS col2 FROM tab2 AS cor0
----
-693
-7722
-7821

onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT DISTINCT + ( col2 ) * + col2 + - col1 DIV - col0 FROM tab0 AS cor0
----
1092
3
6725

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT + ( col2 ) * + col2 + - col1 / - col0 FROM tab0 AS cor0
----
1092
3
6725

query I rowsort
SELECT - + col0 * + 77 + + col1 FROM tab1 AS cor0
----
-205
-4918
-6147

query I rowsort
SELECT ALL col1 + + ( + col0 ) + col0 FROM tab2 cor0
----
175
215
45

query I rowsort
SELECT ( ( + col0 ) * col2 ) + 58 FROM tab1
----
220
3706
7738

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT 52 * tab1.col2 DIV col1 FROM tab1
----
108
296
384

skipif mysql # not compatible
query I rowsort label-4142
SELECT 52 * tab1.col2 / col1 FROM tab1
----
108
296
384

query I rowsort
SELECT 66 + col0 + - col0 FROM tab1
----
66
66
66

query I rowsort
SELECT - cor0.col2 + col1 * + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-13616
-2082
-6457

query I rowsort
SELECT - 59 * + col2 + + 36 AS col2 FROM tab2 AS cor0
----
-1498
-1557
-2206

onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT + - cor0.col1 * + col2 + col1 - - 99 DIV cor0.col1 FROM tab0 AS cor0
----
-2751
-7370
1

skipif mysql # not compatible
query I rowsort label-4146
SELECT + - cor0.col1 * + col2 + col1 - - 99 / cor0.col1 FROM tab0 AS cor0
----
-2751
-7370
1

query I rowsort
SELECT col2 + - col0 AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + col0 + 57 AS col2 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT ALL + col1 + col2 * + col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT + - col1 * col0 * + cor0.col2 + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT - col2 * ( - col0 ) + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + col2 + - col1 * + 3 FROM tab1 AS cor0
----
-24
27
57

query I rowsort
SELECT col0 + col1 * col0 * + cor0.col0 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT ALL 7 AS col0 FROM tab0
----
7
7
7

query I rowsort
SELECT - col1 + - col2 * ( col1 ) * + tab0.col1 AS col0 FROM tab0
----
-244154
-679133
-9506

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2, tab1 cor3
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

query I rowsort
SELECT DISTINCT + col0 * - col2 * + 44 FROM tab1 AS cor0
----
-160512
-337920
-7128

query I rowsort
SELECT cor0.col2 * + ( cor0.col2 * col1 ) + ( - col2 ) FROM tab2 AS cor0
----
22572
24510
39858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + col0 col0 FROM tab0 cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 * col1 col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT 43 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d

query I rowsort
SELECT col2 + + col2 AS col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4163
SELECT ALL + col1 * CAST( col1 AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + col1 * CAST ( col1 AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT ALL - - col2 + - col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT NULL > - col2
----

query I rowsort
SELECT DISTINCT + col1 + tab1.col0 * col0 * - col0 AS col1 FROM tab1
----
-1
-262134
-511987

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col1 + - col2 * - col0 * col1 + + tab2.col0 )
----

query I rowsort
SELECT + col1 + - col2 + + col2 FROM tab0
----
86
91
97

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 * - col0 ) <> ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL col0 - - tab2.col0 AS col1 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL - col1 - col1 AS col0 FROM tab1 WHERE ( - col2 * + col2 ) <> NULL
----

query I rowsort
SELECT - col0 + col2 AS col1 FROM tab0 WHERE NOT col1 = + col0 / + col2 + - col0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4173
SELECT DISTINCT + col0 + col0 DIV 53 - col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT + col0 + col0 / 53 - col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT 49 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT 35 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col1 + col0 AS col0 FROM tab2 AS cor0
----
-2009
-213
-2940

query I rowsort
SELECT DISTINCT - 92 + + col2 AS col1 FROM tab1 AS cor0
----
-35
-38
4

query I rowsort
SELECT ALL - ( col2 ) * - col1 - - 18 FROM tab0 AS cor0
----
115
2856
7480

query I rowsort
SELECT - - col2 + col0 * - 58 AS col2 FROM tab1 AS cor0
----
-120
-3655
-4544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col1 FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT 19 * - col2 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT - cor0.col1 * cor0.col0 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
-180
-40903
-83104

query I rowsort
SELECT ALL 62 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - col1 * col1 * col0 AS col1 FROM tab1 cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * - cor0.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6b6947fcb54b3e9529d0c75cfb5b2d32

query I rowsort
SELECT DISTINCT - 89 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-89

query I rowsort
SELECT - + 30 + + col1 FROM tab2 AS cor0
----
-13
1
29

query I rowsort
SELECT DISTINCT 67 FROM tab1, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
67

query I rowsort
SELECT + col2 + - col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + 75 + col0 FROM tab1 cor0
----
139
155
78

query I rowsort
SELECT + col1 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + + 43 * col0 + col1 * - col1 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-11178
-7453
-7905

query I rowsort
SELECT + cor0.col0 + col2 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT + col1 * + col2 + col1 + col1 FROM tab0 AS cor0
----
291
3010
7644

query I rowsort
SELECT col2 + + ( + col0 ) AS col1 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col2 AS REAL ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - col2 * col2 + - ( - 27 ) + + col1 FROM tab0 cor0
----
-6606
-976
123

query I rowsort
SELECT - cor0.col2 * + col0 + - 76 + col1 FROM tab1 AS cor0
----
-212
-3714
-7743

onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT DISTINCT CAST( col0 AS SIGNED ) * tab2.col2 DIV col1 AS col0 FROM tab2
----
176
34
6

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT CAST ( col0 AS INTEGER ) * tab2.col2 / col1 AS col0 FROM tab2
----
176
34
6

query I rowsort
SELECT tab0.col2 * col0 * col2 AS col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT - cor1.col2 * - 76 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a1aba64fb1204a4cba9ce2717ece3e42

query I rowsort
SELECT + col2 * + col0 * - col1 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) * col0 * col1 col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + 80 * col0 * col2 FROM tab1
----
12960
291840
614400

query I rowsort
SELECT DISTINCT col0 * col0 - - col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL col2 * col0 * col1 - - cor0.col0 * col0 FROM tab2 AS cor0
----
125736
57275
5908

query I rowsort
SELECT ALL col1 * - col1 + + col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT + col2 * col2 + - tab2.col0 * col0 FROM tab2
----
-4797
-5408
680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT + col0 * col2 + + col0 DIV - col0 AS col0 FROM tab2
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-4209
SELECT + col0 * col2 + + col0 / - col0 AS col0 FROM tab2
----
188
2027
3001

query I rowsort
SELECT + col1 - + tab0.col1 * col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT tab2.col0 * - col2 + - tab2.col0 * + col1 AS col1 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT DISTINCT - col0 * + col1 - col1 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
242004
6014
670943

query I rowsort
SELECT DISTINCT + - col2 + + col2 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT DISTINCT + 21 DIV + col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + 21 / + col1 FROM tab0
----
0

query I rowsort
SELECT ALL - ( + 54 ) * - col1 - + col2 * col2 FROM tab1
----
-1512
-2709
-8514

query I rowsort
SELECT DISTINCT - 7 FROM tab0, tab2 cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT DISTINCT - col2 DIV 92 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - col2 / 92 AS col0 FROM tab0
----
0

query I rowsort
SELECT - 59 * col0 FROM tab0 cor0
----
-1416
-2065
-5251

query I rowsort
SELECT - ( - col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + 68 * - col2 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT + 40 * col2 FROM tab2 AS cor0
----
1040
1080
1520

query I rowsort
SELECT ALL - + col1 * - col1 + col0 * - col0 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT col0 * - col0 + + col0 * + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - + col2 * col2 - col1 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL + + col2 + col0 - + col0 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col0 * + col2 * - cor0.col0 col2 FROM tab2 AS cor0
----
-1292
-158125
-237141

query I rowsort
SELECT ALL col1 * - col0 - col0 * col1 * col0 AS col2 FROM tab2 AS cor0
----
-107440
-1736
-363558

query I rowsort
SELECT DISTINCT - 86 + - cor0.col0 FROM tab2 cor0
----
-164
-165
-93

query I rowsort
SELECT col0 + + col1 * - col0 AS col2 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + col2 * col2 - - tab0.col2 * + col2 FROM tab0
----
13448
2
2178

query I rowsort
SELECT DISTINCT col1 + + col1 + col2 / col0 AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( - col2 * col2 + col1 )
----

query I rowsort
SELECT - col0 * - col2 + - col2 + cor0.col1 FROM tab1 AS cor0
----
134
3601
7597

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - cor0.col0 * col0 + col2 + col0 )
----

query I rowsort
SELECT DISTINCT col0 * col0 * col0 FROM tab2 AS cor0
----
343
474552
493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-4237
SELECT - cor0.col2 * col1 DIV col0 AS col1 FROM tab0 cor0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-4237
SELECT - cor0.col2 * col1 / col0 AS col1 FROM tab0 cor0
----
-118
-2
-83

query I rowsort
SELECT - col1 * - col2 + - col1 * col1 * col0 AS col2 FROM tab1
----
-12272
-5830
-624

query I rowsort
SELECT ALL tab2.col1 - col1 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( + col0 + col2 ) AND col0
----

query I rowsort
SELECT + tab2.col0 + + tab2.col1 / tab2.col2 AS col2 FROM tab2 WHERE NOT col2 + - col1 + col2 / col0 <> col1
----

query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - col2 + col1 - col2 FROM tab1
----
-104
-179
-82

query I rowsort
SELECT DISTINCT + col0 * - col2 + col0 + col1 FROM tab0
----
-682
-7118
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * col1 + + col1 <= ( + col0 * col2 )
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 * - col2 )
----

query I rowsort
SELECT + tab2.col1 + col1 + + col2 FROM tab2
----
144
72
89

query I rowsort
SELECT ALL + col1 * + col0 * col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col1 + col0 * col0 + col1 FROM tab0
----
1419
748
8103

query I rowsort
SELECT ALL tab0.col2 * - tab0.col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + col0 * col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( col1 + col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - col0 + col0 - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL - col0 + - col0 * + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - + col1 + - col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + tab1.col0 AS col2 FROM tab1, tab2, tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + cor0.col2 * col1 col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col2 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT tab1.col2 + col2 * + col0 + + col2 * - col2 FROM tab1
----
-1440
-2700
456

onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT tab1.col2 + + tab1.col1 DIV tab1.col2 - + col1 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-4262
SELECT tab1.col2 + + tab1.col1 / tab1.col2 - + col1 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT DISTINCT col1 + - col0 * col1 DIV - col1 - - col1 AS col1 FROM tab0
----
196
229
271

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT col1 + - col0 * col1 / - col1 - - col1 AS col1 FROM tab0
----
196
229
271

query I rowsort
SELECT - col2 * + col1 + + col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT tab1.col2 - - col2 * - tab1.col2 AS col2 FROM tab1
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - col0 col1 FROM tab0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT DISTINCT col1 * - col2 DIV + col2 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT col1 * - col2 / + col2 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 + col0 * + col0 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT ALL + 24 + - 7 * + col2 FROM tab0 AS cor0
----
-207
-550
17

query I rowsort
SELECT ALL - col0 + col1 + - col2 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT col2 + 64 * col1 AS col1 FROM tab1 cor0
----
1718
697
928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4272
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 45 ) + - col1 + cor0.col1 * 1 * + col2 AS col0 FROM tab1 cor0
----
1190
1333
515

query I rowsort
SELECT ALL + + ( 94 ) FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ALL - col0 + + 44 AS col1 FROM tab0 AS cor0
----
-45
20
9

query I rowsort
SELECT ALL - + ( + col0 ) + col2 FROM tab1 cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 - + ( 58 ) col1 FROM tab2
----
-51
20
21

query I rowsort
SELECT - + col0 * col2 + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - col2 * ( col0 ) * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4280
SELECT ALL - CAST( 6 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-103
-92
-97

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - CAST ( 6 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-103
-92
-97

query I rowsort
SELECT + tab2.col2 + + col1 - tab2.col0 * col1 FROM tab2
----
-1288
-159
-4517

query I rowsort
SELECT ALL 25 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

query I rowsort
SELECT - col1 * - 56 + + tab0.col1 * col1 AS col2 FROM tab0
----
12212
13377
14841

query I rowsort
SELECT DISTINCT col0 * col2 + - 3 FROM tab2 AS cor0
----
186
2025
2999

query I rowsort
SELECT - col2 * 60 + + cor0.col1 AS col1 FROM tab0 cor0
----
-1894
-4829
37

query I rowsort
SELECT + col2 * - col2 + - 49 AS col0 FROM tab2 AS cor0
----
-1493
-725
-778

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col2 * + col1 col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - col0 + ( + col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL cor0.col2 * 48 - + 61 AS col0 FROM tab2 AS cor0
----
1187
1235
1763

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4291
SELECT DISTINCT - CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - col0 + ( + 90 * + col1 + - ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
1186
2391
893

query I rowsort
SELECT DISTINCT - cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4294
SELECT ALL col2 DIV - ( ( - tab2.col0 ) ) FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL col2 / - ( ( - tab2.col0 ) ) FROM tab2
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4295
SELECT DISTINCT - - col2 * - cor0.col1 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - - col2 * - cor0.col1 / col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col0 * col0 - col0 * col0 * - 28 FROM tab2 AS cor0
----
1421
176436
180989

onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT + col0 DIV + col0 + cor0.col0 AS col2 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4297
SELECT + col0 / + col0 + cor0.col0 AS col2 FROM tab1 cor0
----
4
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4298
SELECT - cor0.col1 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-4298
SELECT - cor0.col1 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - cor0.col1 * + 55 FROM tab2 AS cor0
----
-1705
-3245
-935

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT - 50 * - col2 + col2 * 94 FROM tab2 AS cor0
----
3744
3888
5472

query I rowsort
SELECT + - cor0.col1 * - col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4303
SELECT - CAST( + 9 AS SIGNED ) * col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT - CAST ( + 9 AS INTEGER ) * col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT - tab0.col1 DIV - col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4305
SELECT - tab0.col1 / - col0 AS col0 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT 12 DIV - tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT 12 / - tab1.col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT DISTINCT col2 + - col1 + - 86 DIV - col0 AS col2 FROM tab1
----
48
56
84

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT col2 + - col1 + - 86 / - col0 AS col2 FROM tab1
----
48
56
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4308
SELECT 22 DIV - col2 col1 FROM tab0
----
-22
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4308
SELECT 22 / - col2 col1 FROM tab0
----
-22
0
0

query I rowsort
SELECT - - 90 * tab1.col1 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 65d6e4a43a87cca85b0d3a00f67fb876

query I rowsort
SELECT + 30 * col0 FROM tab0
----
1050
2670
720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4311
SELECT ALL + - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + - col2 / col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT + cor0.col0 DIV - 23 AS col2 FROM tab1 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-4312
SELECT + cor0.col0 / - 23 AS col2 FROM tab1 AS cor0
----
-2
-3
0

query I rowsort
SELECT - + cor0.col0 * col0 + 36 * + col1 AS col2 FROM tab1 AS cor0
----
-3736
-5932
927

query I rowsort
SELECT col1 * - cor0.col2 + 94 AS col0 FROM tab0 AS cor0
----
-2744
-3
-7368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4315
SELECT - col1 * + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT - col1 * + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 66 + col1 AS col0 FROM tab2 AS cor0
----
493
5207
5231

query I rowsort
SELECT ALL col2 * col1 + + col2 AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT + col1 + col0 + col2 * + col1 FROM tab1
----
1341
1433
644

onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT - col1 DIV - col2 + 73 FROM tab1 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4319
SELECT - col1 / - col2 + 73 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4321
SELECT - 16 * - col2 + - ( col2 ) + + col2 / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT - 16 * - col2 + - ( col2 ) + + col2 / CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 - 91 FROM tab0 AS cor0
----
2747
6
7371

query I rowsort
SELECT 96 + + col0 FROM tab0 AS cor0
----
120
131
185

query I rowsort
SELECT ALL - ( - col0 ) + 44 AS col2 FROM tab2 cor0
----
122
123
51

query I rowsort
SELECT ALL 67 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT ALL 28 * col0 + col2 FROM tab1
----
138
1849
2336

query I rowsort
SELECT - ( col0 ) * ( ( col2 ) ) + col1 * + 15 AS col1 FROM tab0 AS cor0
----
-5933
1420
498

query I rowsort
SELECT ALL + cor1.col0 * 61 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 233083f3fa81c79e1f5705a062dea5f1

query I rowsort
SELECT + col1 + col0 + - col2 * col0 AS col0 FROM tab0
----
-682
-7118
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT ALL - tab0.col0 DIV + col0 + - 99 AS col1 FROM tab0
----
-100
-100
-100

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL - tab0.col0 / + col0 + - 99 AS col1 FROM tab0
----
-100
-100
-100

query I rowsort
SELECT DISTINCT col2 + col0 * + col2 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT + col1 + ( col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT DISTINCT + col0 * + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT + col0 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col0 FROM tab2, tab2 cor0, tab0 AS cor1, tab0, tab1 cor2
----
243 values hashing to e956d3f80eb399afdf802a25fe175be7

query I rowsort
SELECT - 88 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT - col2 + 53 FROM tab0 AS cor0
----
-29
20
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4338
SELECT + tab2.col2 DIV - 38 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4338
SELECT + tab2.col2 / - 38 FROM tab2
----
-1
0
0

query I rowsort
SELECT 69 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1716
-1856
-2543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + 8 + + col2 col2 FROM tab2 cor0
----
-33
-44
28

query I rowsort
SELECT - 81 - - col1 AS col1 FROM tab2 AS cor0
----
-22
-50
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 + + col1 col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4343
SELECT CAST( + col1 AS SIGNED ) - + col1 * CAST( - col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-4343
SELECT CAST ( + col1 AS INTEGER ) - + col1 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col1 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 * col0 AS REAL ) - - col1 * col1 * - col2 FROM tab0
----
-243276
-671744
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT 91 - - col2 DIV col0 AS col2 FROM tab1
----
109
91
92

skipif mysql # not compatible
query I rowsort label-4346
SELECT 91 - - col2 / col0 AS col2 FROM tab1
----
109
91
92

query I rowsort
SELECT + ( 74 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT ALL - col0 * 98 FROM tab1
----
-294
-6272
-7840

query I rowsort
SELECT ALL - 88 - col0 AS col2 FROM tab2 cor0
----
-166
-167
-95

query I rowsort
SELECT - ( - col2 ) + - 91 AS col0 FROM tab1 cor0
----
-34
-37
5

query I rowsort
SELECT DISTINCT 34 + + col1 * - col0 FROM tab2 AS cor0
----
-1309
-183
-4568

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4352
SELECT DISTINCT ( col1 ) * CAST( - col0 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT ( col1 ) * CAST ( - col0 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + cor0.col2 * - col0 * + col2 + cor0.col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT ALL + col2 * - col1 + col2 * + 34 AS col2 FROM tab2 AS cor0
----
-650
646
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col1 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - col0 + + col2 - + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4357
SELECT - col0 DIV + col1 - - 6 FROM tab1 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-4357
SELECT - col0 / + col1 - - 6 FROM tab1 AS cor0
----
0
0
6

query I rowsort
SELECT ALL + - 77 * + col0 + + col0 - + 34 * - col0 AS col2 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT - 29 + - cor0.col2 FROM tab1 AS cor0
----
-125
-83
-86

query I rowsort
SELECT ALL ( cor0.col2 ) + - 43 + + 66 FROM tab2 AS cor0
----
49
50
61

query I rowsort
SELECT + 76 * col0 - cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
3002
343
3900

query I rowsort
SELECT DISTINCT cor0.col0 - cor0.col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + ( - col0 ) + + ( - col1 ) AS col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT + - col1 * + ( + col0 ) + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-240
-4288
-8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col1 * + col2 * + col0 + - col0 FROM tab0 AS cor0
----
3360
664029
68088

onlyif mysql # use DIV operator for integer division
query I rowsort label-4368
SELECT ALL + - col1 DIV + 98 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + - col1 / + 98 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * 40 + + col1 AS col1 FROM tab1 AS cor0
----
146
2570
3213

query I rowsort
SELECT + col2 + col0 + + col1 AS col0 FROM tab0 AS cor0
----
133
143
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4371
SELECT DISTINCT - CAST( + ( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - CAST ( + ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 96 * col2 AS col2 FROM tab1 cor0
----
5184
5472
9216

query I rowsort
SELECT DISTINCT + - ( + 48 ) * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-480
-624

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to 7ccb6e2515d95809a8c30b73a5cf5f46

query I rowsort
SELECT ALL - 69 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

query I rowsort
SELECT + 94 * col2 FROM tab0
----
3102
7708
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT DISTINCT - col0 + + col0 DIV - 83 + + 37 AS col1 FROM tab0 AS cor0
----
-53
13
2

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - col0 + + col0 / - 83 + + 37 AS col1 FROM tab0 AS cor0
----
-53
13
2

query I rowsort
SELECT DISTINCT col0 * col0 * - 43 FROM tab0 AS cor0
----
-24768
-340603
-52675

query I rowsort
SELECT DISTINCT + col1 * col1 - 94 * col2 * - ( 86 ) FROM tab1 AS cor0
----
437212
460888
776233

query I rowsort
SELECT - 53 * col0 FROM tab2
----
-371
-4134
-4187

query I rowsort
SELECT DISTINCT - tab2.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 + 51 col2 FROM tab2 AS cor0
----
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4383
SELECT DISTINCT + col0 DIV - 83 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT + col0 / - 83 col1 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4384
SELECT ALL - ( col0 ) * + col2 + + CAST( NULL AS SIGNED ) * + 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - ( col0 ) * + col2 + + CAST ( NULL AS INTEGER ) * + 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4385
SELECT CAST( NULL AS SIGNED ) * cor0.col2 + col0 * - 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT CAST ( NULL AS INTEGER ) * cor0.col2 + col0 * - 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4387
SELECT ALL - CAST( 46 AS SIGNED ) + + col0 FROM tab0 cor0
----
-11
-22
43

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - CAST ( 46 AS INTEGER ) + + col0 FROM tab0 cor0
----
-11
-22
43

query I rowsort
SELECT ALL - cor0.col2 * + 73 FROM tab2 AS cor0
----
-1898
-1971
-2774

query I rowsort
SELECT col2 * - ( + col0 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL 74 * + 95 FROM tab2 AS cor0
----
7030
7030
7030

query I rowsort
SELECT ALL - 63 * + col1 FROM tab0 cor0
----
-5418
-5733
-6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-4392
SELECT + col2 DIV + col2 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4392
SELECT + col2 / + col2 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT ALL cor0.col0 + - col1 DIV col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL cor0.col0 + - col1 / col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4394
SELECT - CAST( NULL AS SIGNED ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT - CAST ( NULL AS INTEGER ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4395
SELECT - 44 DIV + 20 + col2 AS col1 FROM tab1 cor0
----
52
55
94

skipif mysql # not compatible
query I rowsort label-4395
SELECT - 44 / + 20 + col2 AS col1 FROM tab1 cor0
----
52
55
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT 82 + - 13 DIV col2 FROM tab1 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-4396
SELECT 82 + - 13 / col2 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT - ( 73 ) * - col2 * - 53 + - 0 FROM tab1
----
-208926
-220533
-371424

query I rowsort
SELECT 95 - col2 * ( - 80 ) FROM tab1 AS cor0
----
4415
4655
7775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT + col0 * col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT + col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4400
SELECT + 7 * + col1 - CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT + 7 * + col1 - CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + ( - col2 + ( + col2 ) ) * + col0 * + col2 col1 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT - CAST( col0 AS SIGNED ) DIV - tab1.col2 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4402
SELECT - CAST ( col0 AS INTEGER ) / - tab1.col2 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ( + col1 ) * + col2 * + 86 FROM tab0
----
244068
641732
8342

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL cor1.col2 * - 1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * + col0 col1 FROM tab1 AS cor0
----
1088
1360
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col1 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT ALL + - col2 + + 9 FROM tab0 AS cor0
----
-24
-73
8

query I rowsort
SELECT - col2 + + 51 * col0 FROM tab2 cor0
----
330
3952
3991

query I rowsort
SELECT ALL 38 * + cor0.col0 * col0 - + col2 * - col0 AS col2 FROM tab0 cor0
----
22680
308296
46585

query I rowsort
SELECT DISTINCT + ( - 13 + - col2 * col0 ) FROM tab0
----
-48
-7311
-805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4412
SELECT CAST( + col0 * - col0 AS SIGNED ) AS col1 FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-4412
SELECT CAST ( + col0 * - col0 AS INTEGER ) AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - cor0.col2 * - ( cor0.col0 ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
189
2028
3002

query I rowsort
SELECT + + 47 + col0 FROM tab0 cor0
----
136
71
82

query I rowsort
SELECT - + cor0.col0 + col2 * col1 - col1 AS col1 FROM tab2 AS cor0
----
1397
550
799

query I rowsort
SELECT DISTINCT - col0 + 93 - + ( + col1 ) FROM tab1
----
0
19
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT DISTINCT + col2 DIV + cor0.col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT + col2 / + cor0.col2 FROM tab1 cor0
----
1

query I rowsort
SELECT col0 * + ( 93 ) FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT ALL - - cor0.col0 * 30 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT + - col0 + ( - col2 ) - + col2 * - 78 FROM tab1 AS cor0
----
4155
4325
7312

query I rowsort
SELECT - + col2 * ( 5 ) * col1 AS col0 FROM tab2 AS cor0
----
-3230
-4185
-7670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4422
SELECT ALL + CAST( + col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + CAST ( + col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + - ( - col1 ) * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + 63 * col0 col2 FROM tab0 AS cor0
----
1555
2248
5650

query I rowsort
SELECT ALL col0 * - ( col2 + col2 ) AS col1 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT DISTINCT - 75 * - col2 * + col1 FROM tab0
----
212850
559650
7275

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col0 FROM tab1
----
81
81
81

query I rowsort
SELECT DISTINCT + + col2 * 87 AS col0 FROM tab1 cor0
----
4698
4959
8352

query I rowsort
SELECT ALL col1 * + ( col1 ) + col1 * col2 FROM tab0 cor0
----
10234
15743
9506

query I rowsort
SELECT + col1 * col2 * + cor0.col1 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT col0 * 62 FROM tab0 AS cor0
----
1488
2170
5518

onlyif mysql # use DIV operator for integer division
query I rowsort label-4433
SELECT DISTINCT + tab0.col0 DIV tab0.col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT + tab0.col0 / tab0.col1 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4434
SELECT DISTINCT + ( tab1.col0 ) * CAST( 39 AS SIGNED ) AS col2 FROM tab1
----
117
2496
3120

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + ( tab1.col0 ) * CAST ( 39 AS INTEGER ) AS col2 FROM tab1
----
117
2496
3120

query I rowsort
SELECT col1 * + col2 - ( 81 ) * col2 AS col1 FROM tab2
----
-1350
-2432
-572

query I rowsort
SELECT ALL col2 - col2 * + 9 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT DISTINCT col0 * ( + cor0.col1 ) + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col0 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - + col2 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4440
SELECT col1 + CAST( - col2 * col1 AS SIGNED ) AS col0 FROM tab1
----
-1235
-1378
-560

skipif mysql # not compatible
query I rowsort label-4440
SELECT col1 + CAST ( - col2 * col1 AS INTEGER ) AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) + - col2 * col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col1 * col1 + - cor0.col0 + + col2 FROM tab2 AS cor0
----
248
3429
981

query I rowsort
SELECT ALL + 38 + 25 AS col2 FROM tab2
----
63
63
63

query I rowsort
SELECT - col1 + - col2 * - tab0.col0 AS col1 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT ALL + CAST( col1 AS SIGNED ) * + tab0.col1 + col0 DIV - col1 AS col2 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + CAST ( col1 AS INTEGER ) * + tab0.col1 + col0 / - col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 70 + - 62 * col0 FROM tab1
----
-116
-3898
-4890

query I rowsort
SELECT ALL 81 + + 44 AS col0 FROM tab0
----
125
125
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) + - col1 col0 FROM tab2
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 52 + col0 col0 FROM tab1 cor0
----
116
132
55

query I rowsort
SELECT 32 + ( col2 ) FROM tab0
----
114
33
65

query I rowsort
SELECT ( - col1 ) + - col0 * - tab0.col0 AS col1 FROM tab0
----
1128
490
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4452
SELECT ALL CAST( NULL AS DECIMAL ) * - col2 + + col2 / ( ( col1 ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL CAST ( NULL AS REAL ) * - col2 + + col2 / ( ( col1 ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 41 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ALL - 23 + + col2 AS col1 FROM tab1 AS cor0
----
31
34
73

query I rowsort
SELECT - + 73 + col0 * - 37 FROM tab0 AS cor0
----
-1368
-3366
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col1 * col0 col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col1 ) * - col0 * cor0.col1 col1 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + 22 + col1 AS col2 FROM tab1 cor0
----
32
35
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT DISTINCT - cor0.col0 * - col2 - 66 DIV + 94 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT - cor0.col0 * - col2 - 66 / + 94 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + 94 + + col1 AS col1 FROM tab1 cor0
----
104
107
120

query I rowsort
SELECT + 5 * cor0.col0 + - 84 FROM tab0 AS cor0
----
36
361
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4462
SELECT DISTINCT - + ( - col2 ) + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT - + ( - col2 ) + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - + 85 + col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7311
8196
9324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 col2 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT + 27 + cor0.col1 * 23 FROM tab1 cor0
----
257
326
625

query I rowsort
SELECT ALL - ( + col2 ) + cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 43 + col0 AS col0 FROM tab1 cor0
----
-40
21
37

query I rowsort
SELECT DISTINCT + 88 * cor0.col2 AS col1 FROM tab1 AS cor0
----
4752
5016
8448

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4469
SELECT ALL col1 * - ( 72 * col2 ) + CAST( col2 AS SIGNED ) * col0 AS col1 FROM tab2
----
-108420
-43510
-60075

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL col1 * - ( 72 * col2 ) + CAST ( col2 AS INTEGER ) * col0 AS col1 FROM tab2
----
-108420
-43510
-60075

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4470
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 * - ( col2 ) + col1 FROM tab0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col1 FROM tab0, tab2 AS cor0
----
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT ALL col2 DIV + 87 + col1 * + col2 AS col0 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL col2 / + 87 + col1 * + col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 * + tab2.col2 col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - col2 * + ( + cor0.col0 ) - cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT - tab1.col2 * tab1.col0 + tab1.col1 + + col1 FROM tab1
----
-110
-3628
-7654

query I rowsort
SELECT ALL col0 + 4 * col0 AS col0 FROM tab2
----
35
390
395

query I rowsort
SELECT - col1 * 22 FROM tab2
----
-1298
-374
-682

query I rowsort
SELECT DISTINCT col0 * 55 * - col0 FROM tab1 AS cor0
----
-225280
-352000
-495

query I rowsort
SELECT + col0 * - col2 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - + 32 + + col1 FROM tab2 AS cor0
----
-1
-15
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + ( col2 ) * col0 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - 37 + col2 * col1 AS col0 FROM tab0 AS cor0
----
2801
60
7425

query I rowsort
SELECT ( 66 ) + col2 AS col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT DISTINCT - + ( - 98 ) AS col0 FROM tab1 cor0
----
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4488
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 + col1 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-4488
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT DISTINCT + 70 + - col1 DIV col0 AS col0 FROM tab0 AS cor0
----
67
68
69

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT + 70 + - col1 / col0 AS col0 FROM tab0 AS cor0
----
67
68
69

query I rowsort
SELECT - col0 * - 72 + + col2 FROM tab0 AS cor0
----
1761
2521
6490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4491
SELECT CAST( - col1 AS SIGNED ) * - col2 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-4491
SELECT CAST ( - col1 AS INTEGER ) * - col2 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 96 col0 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT + col0 * + 9 + cor0.col0 AS col0 FROM tab1 AS cor0
----
30
640
800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4494
SELECT CAST( NULL AS SIGNED ) - - 96 / + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT CAST ( NULL AS INTEGER ) - - 96 / + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4495
SELECT ( col1 ) / - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT ( col1 ) / - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4496
SELECT ALL cor0.col2 DIV col1 AS col0 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL cor0.col2 / col1 AS col0 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + col2 col1 FROM tab1 AS cor0
----
141
144
183

query I rowsort
SELECT DISTINCT 33 * - col2 + + 83 AS col1 FROM tab2 AS cor0
----
-1171
-775
-808

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL 46 AS col0 FROM tab2 cor0
----
46
46
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4501
SELECT - + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT - + col0 / col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 + col1 * col1 col1 FROM tab1 AS cor0
----
172
241
748

query I rowsort
SELECT ALL + - 83 AS col1 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ALL - - col2 * 66 AS col1 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT + col0 + cor0.col0 * 50 AS col2 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT col2 * 68 * 66 AS col1 FROM tab2 AS cor0
----
116688
121176
170544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4507
SELECT - - col0 * + CAST( - ( col0 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4507
SELECT - - col0 * + CAST ( - ( col0 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4508
SELECT - + col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT - + col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + + col2 + + col2 col0 FROM tab1
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT - - 54 DIV 39 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4510
SELECT - - 54 / 39 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT ALL - tab0.col2 * col1 DIV 41 FROM tab0
----
-182
-2
-69

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - tab0.col2 * col1 / 41 FROM tab0
----
-182
-2
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - col1 * + 8 FROM tab2
----
-136
-248
-472

query I rowsort
SELECT 99 * col2 + 75 FROM tab2 AS cor0
----
2649
2748
3837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4515
SELECT ALL + CAST( + 2 * - col1 AS SIGNED ) AS col2 FROM tab0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + CAST ( + 2 * - col1 AS INTEGER ) AS col2 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT ALL col1 + + col1 * + col0 * - col0 FROM tab1 cor0
----
-208
-40950
-83187

query I rowsort
SELECT + col0 * - col0 * col1 + col2 AS col2 FROM tab1 AS cor0
----
-180
-40903
-83104

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab2
----
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4519
SELECT DISTINCT + col1 + + col2 DIV col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + col1 + + col2 / col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT col0 + 95 AS col0 FROM tab2 AS cor0
----
102
173
174

query I rowsort
SELECT col0 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL 76 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

query I rowsort
SELECT ALL ( - col1 ) - - ( 33 ) * col1 FROM tab2
----
1888
544
992

query I rowsort
SELECT DISTINCT + 87 + col1 * col0 FROM tab2 AS cor0
----
1430
304
4689

query I rowsort
SELECT + cor0.col1 * col2 * + ( + col0 + - col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 86 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT + col2 + + 80 * col1 + col1 FROM tab1 AS cor0
----
1149
2160
867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * col0 col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - + col0 * col2 + col2 + - col0 FROM tab1 AS cor0
----
-111
-3655
-7664

query I rowsort
SELECT + + 53 + - cor0.col1 FROM tab2, tab2 cor0
----
9 values hashing to affa9430a531ebb6bf1d6415021cdc30

query I rowsort
SELECT + + col0 * cor0.col1 + cor0.col1 * col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT DISTINCT 57 * - col1 FROM tab1 AS cor0
----
-1482
-570
-741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT ALL - CAST( 97 AS SIGNED ) FROM tab0 cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - CAST ( 97 AS INTEGER ) FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT + ( + col2 ) + col0 + - ( col1 ) FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT - 20 * - cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
161980
41280
67900

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4536
SELECT DISTINCT + col1 * + CAST( col2 * col0 AS SIGNED ) FROM tab0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + col1 * + CAST ( col2 * col0 AS INTEGER ) FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL ( 88 ) * cor0.col2 * 25 FROM tab0 cor0
----
180400
2200
72600

query I rowsort
SELECT - + ( col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 61 * 11 AS col1 FROM tab2 AS cor0
----
671
671
671

query I rowsort
SELECT DISTINCT + ( 27 ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT + ( col0 ) + - cor0.col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 47 * - 67 FROM tab2 AS cor0
----
-3149
-3149
-3149

query I rowsort
SELECT + col0 - + col0 * - col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT DISTINCT + + col2 + col1 * col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL col2 + 22 FROM tab2 AS cor0
----
48
49
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT - col1 + col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4546
SELECT - col1 + col0 / - col0 AS col0 FROM tab0 AS cor0
----
-87
-92
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4547
SELECT - col2 DIV - 3 + - col2 FROM tab1 AS cor0
----
-36
-38
-64

skipif mysql # not compatible
query I rowsort label-4547
SELECT - col2 / - 3 + - col2 FROM tab1 AS cor0
----
-36
-38
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * 1 + col2 col2 FROM tab0 AS cor0
----
111
30
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4549
SELECT ALL - col0 DIV col0 + - cor0.col1 * - CAST( ( - col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-290
-3482
-962

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - col0 / col0 + - cor0.col1 * - CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-290
-3482
-962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4550
SELECT + col2 * + 41 + + col2 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
10086
2442
42

skipif mysql # not compatible
query I rowsort label-4550
SELECT + col2 * + 41 + + col2 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
10086
2442
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4551
SELECT ALL - - ( 79 ) * col1 * CAST( NULL AS SIGNED ) + 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - - ( 79 ) * col1 * CAST ( NULL AS INTEGER ) + 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + ( col2 * col1 ) FROM tab2
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT DISTINCT + col2 DIV - col0 + col1 col1 FROM tab1
----
10
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + col2 / - col0 + col1 col1 FROM tab1
----
10
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + - tab1.col2 * + col1 - + col1 col1 FROM tab1
----
-1165
-1376
-523

query I rowsort
SELECT DISTINCT + + ( + 14 ) FROM tab1 cor0
----
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4556
SELECT + CAST( col2 AS SIGNED ) + - col0 + col0 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4556
SELECT + CAST ( col2 AS INTEGER ) + - col0 + col0 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT ALL - 30 DIV 99 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL - 30 / 99 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT + + ( col0 ) * col2 + + col2 * - 57 + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2917
2207
398

skipif mysql # not compatible
query I rowsort label-4558
SELECT + + ( col0 ) * col2 + + col2 * - 57 + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-2917
2207
398

query I rowsort
SELECT ( - 39 ) * - tab0.col2 + + 70 FROM tab0
----
109
1357
3268

query I rowsort
SELECT - - 74 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4561
SELECT - CAST( NULL AS SIGNED ) + - col0 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT - CAST ( NULL AS INTEGER ) + - col0 * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 61 * - col0 AS col1 FROM tab2
----
-427
-4758
-4819

onlyif mysql # use DIV operator for integer division
query I rowsort label-4563
SELECT + col2 DIV tab1.col1 + + col0 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-4563
SELECT + col2 / tab1.col1 + + col0 FROM tab1
----
5
69
87

query I rowsort
SELECT ALL + col1 * + 2 AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ( + tab2.col1 ) + + col0 FROM tab2
----
137
38
96

query I rowsort
SELECT + col2 + - 49 AS col0 FROM tab2
----
-11
-22
-23

query I rowsort
SELECT DISTINCT - - cor0.col1 - col1 * - col2 * - col2 FROM tab1 AS cor0
----
-119795
-32480
-75790

query I rowsort
SELECT ALL - + col0 + + ( col1 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT cor0.col1 * + col1 - - col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col2 col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL 10 * col0 FROM tab2
----
70
780
790

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col0 * CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col1 * 59 + col2 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
-606515
-88580
5626

query I rowsort
SELECT ALL - - col0 + - 16 * - col2 FROM tab2 AS cor0
----
439
494
687

query I rowsort
SELECT ALL col1 + - cor0.col0 + + cor0.col1 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT ALL - col2 - col1 AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT - 3 + - tab1.col1 FROM tab1
----
-13
-16
-29

query I rowsort
SELECT DISTINCT + tab1.col2 - + col1 * col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL + col0 - - col1 * col1 AS col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT col2 + ( col0 + - col2 ) FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT ALL + col1 + col2 DIV - 41 FROM tab1 AS cor0
----
11
25
9

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + col1 + col2 / - 41 FROM tab1 AS cor0
----
11
25
9

query I rowsort
SELECT - cor0.col0 + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * + ( 37 ) + - col0 FROM tab0 AS cor0
----
1260
3204
864

query I rowsort
SELECT ALL + - col1 + - ( + col1 ) + col0 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-229
-7480
-964

query I rowsort
SELECT DISTINCT col2 * - 96 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT col1 + - col1 + + col1 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 25 + cor0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a6ed3281296396ad9508018a409a9e60

onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT + col1 - - ( col0 + + CAST( ( col1 ) AS SIGNED ) ) DIV 23 col0 FROM tab0 AS cor0
----
102
90
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4589
SELECT + col1 - - ( col0 + + CAST ( ( col1 ) AS INTEGER ) ) / 23 col0 FROM tab0 AS cor0
----
102
90
98

query I rowsort
SELECT ALL - col0 * - col2 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT + 22 FROM tab1, tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT col0 * - 36 AS col1 FROM tab1 AS cor0
----
-108
-2304
-2880

onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT col1 DIV 65 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT col1 / 65 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * - ( tab1.col2 ) FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT + col2 * 69 DIV - col0 AS col1 FROM tab1
----
-1242
-61
-82

skipif mysql # not compatible
query I rowsort label-4595
SELECT + col2 * 69 / - col0 AS col1 FROM tab1
----
-1242
-61
-82

query I rowsort
SELECT ALL + 43 AS col2 FROM tab1
----
43
43
43

query I rowsort
SELECT 21 * + col0 AS col0 FROM tab2 AS cor0
----
147
1638
1659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 + tab2.col2 ) col2 FROM tab2
----
55
58
85

query I rowsort
SELECT - 92 * - col2 AS col2 FROM tab2
----
2392
2484
3496

query I rowsort
SELECT DISTINCT - col0 * - 74 AS col2 FROM tab1
----
222
4736
5920

query I rowsort
SELECT DISTINCT - tab0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - ( - 60 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
60

query I rowsort
SELECT - + 50 + + cor0.col2 FROM tab1 AS cor0
----
4
46
7

query I rowsort
SELECT DISTINCT - 37 * - col2 + - col0 + 90 FROM tab2 cor0
----
1082
1417
974

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT ALL col1 DIV - col2 + + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL col1 / - col2 + + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - ( + col2 ) + - 84 AS col1 FROM tab1 AS cor0
----
-138
-141
-180

query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col0 AS col2 FROM tab1, tab0 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * - col2 col1 FROM tab1
----
-4968
-5244
-8832

query I rowsort
SELECT + col1 * - col0 - + 82 * + col0 FROM tab1
----
-324
-5888
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4610
SELECT + col2 + CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT + col2 + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * ( col0 ) + cor0.col2 AS col0 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT ALL cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + col0 * + col1 + 62 AS col1 FROM tab1 AS cor0
----
1102
140
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * - 82 col0 FROM tab0 AS cor0
----
-1968
-2870
-7298

query I rowsort
SELECT ALL + + col1 + + 88 * + col2 + col1 FROM tab0 AS cor0
----
282
3076
7398

query I rowsort
SELECT + ( col1 ) + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - cor0.col2 * + 77 FROM tab2 cor0
----
-2002
-2079
-2926

query I rowsort
SELECT col2 - - cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

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 91 * + col1 + - col2 * col2 FROM tab1 AS cor0
----
-2339
-550
-8033

query I rowsort
SELECT 93 * - col1 - - col1 FROM tab1 cor0
----
-1196
-2392
-920

query I rowsort
SELECT + col1 * + 86 + col1 * - col1 - 33 FROM tab2 AS cor0
----
1140
1560
1672

onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT + + col2 DIV + col0 + - cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-4623
SELECT + + col2 / + col0 + - cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4624
SELECT + CAST( cor0.col0 AS SIGNED ) * - col0 * 70 FROM tab0 AS cor0
----
-40320
-554470
-85750

skipif mysql # not compatible
query I rowsort label-4624
SELECT + CAST ( cor0.col0 AS INTEGER ) * - col0 * 70 FROM tab0 AS cor0
----
-40320
-554470
-85750

query I rowsort
SELECT DISTINCT + 90 * col0 FROM tab1 AS cor0
----
270
5760
7200

query I rowsort
SELECT - - 41 * + col2 AS col0 FROM tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT col0 + col0 * + 14 AS col2 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT col1 * col0 + 60 * + 55 + col0 AS col2 FROM tab0 AS cor0
----
11488
5388
6730

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT - col0 * col2 + - col1 DIV 80 + + col1 AS col2 FROM tab0
----
-707
-7208
61

skipif mysql # not compatible
query I rowsort label-4630
SELECT - col0 * col2 + - col1 / 80 + + col1 AS col2 FROM tab0
----
-707
-7208
61

query I rowsort
SELECT DISTINCT - + col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + - 62 + ( + col2 ) * - cor0.col1 FROM tab2 AS cor0
----
-1596
-708
-899

query I rowsort
SELECT - cor0.col1 * + 5 + + col1 FROM tab2 AS cor0
----
-124
-236
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4634
SELECT ALL 44 DIV cor0.col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL 44 / cor0.col0 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 + - col2 col1 FROM tab0 AS cor0
----
-117
-166
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4636
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col0 + - ( + col0 + + col0 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col1 + cor0.col0 * col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + col1 * - 96 AS col2 FROM tab1
----
-1248
-2496
-960

query I rowsort
SELECT ALL + - 49 * cor0.col2 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 614f1eb4ac9db08fe4bd339dd83d280f

query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT col1 + - 3 * col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 + - col2 * 28 col0 FROM tab2 AS cor0
----
-2407
-5330
-973

query I rowsort
SELECT + ( col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - col0 * 22 FROM tab2 AS cor0
----
-154
-1716
-1738

onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT DISTINCT + col2 + 70 DIV - col0 FROM tab2 AS cor0
----
17
26
38

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + col2 + 70 / - col0 FROM tab2 AS cor0
----
17
26
38

query I rowsort
SELECT - 43 + - col0 FROM tab0 AS cor0
----
-132
-67
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4648
SELECT DISTINCT col0 + + tab0.col1 DIV - tab0.col2 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT col0 + + tab0.col1 / - tab0.col2 FROM tab0
----
-62
22
88

query I rowsort
SELECT col1 * 16 AS col2 FROM tab1
----
160
208
416

query I rowsort
SELECT + col2 + - ( - col2 + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4651
SELECT CAST( NULL AS SIGNED ) - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4651
SELECT CAST ( NULL AS INTEGER ) - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT tab2.col0 * tab2.col0 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 368b2268fa85c1d99bbd086f4591b02b

query I rowsort
SELECT - col2 + + col0 * - 43 FROM tab1
----
-183
-2809
-3536

query I rowsort
SELECT + col1 + 73 AS col0 FROM tab1 AS cor0
----
83
86
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4655
SELECT DISTINCT - + col0 * col2 + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3000

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT - + col0 * col2 + col2 / col1 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3000

query I rowsort
SELECT ALL + + col0 + + col2 * col1 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-3462
-5072
1398

query I rowsort
SELECT DISTINCT col0 * + ( + 64 ) + + col0 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT + + col0 + - 16 * + 25 AS col0 FROM tab1 cor0
----
-320
-336
-397

query I rowsort
SELECT ALL col0 - + 3 AS col1 FROM tab2 cor0
----
4
75
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4660
SELECT DISTINCT + col2 * - CAST( NULL AS DECIMAL ) * + cor0.col0 + col2 + ( 19 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT + col2 * - CAST ( NULL AS REAL ) * + cor0.col0 + col2 + ( 19 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT ALL col0 DIV + 13 + + tab2.col0 * - col1 AS col0 FROM tab2
----
-1337
-217
-4596

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL col0 / + 13 + + tab2.col0 * - col1 AS col0 FROM tab2
----
-1337
-217
-4596

query I rowsort
SELECT DISTINCT + + cor0.col1 + - col2 - - col1 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT DISTINCT - cor0.col2 - - col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT col0 * + ( col2 ) - + col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL + + col2 + col1 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 + - ( - ( + col1 ) ) FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( col2 ) + col1 * col2 col2 FROM tab0 AS cor0
----
14924
194
5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4669
SELECT ALL - - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - - col1 / col1 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4670
SELECT ALL + col0 + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * ( 75 ) col1 FROM tab0 cor0
----
2475
6150
75

query I rowsort
SELECT DISTINCT col1 * 50 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
32000
3900
52000

onlyif mysql # use DIV operator for integer division
query I rowsort label-4673
SELECT DISTINCT - col1 + 87 * + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
61
74
77

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT - col1 + 87 * + col2 / col2 AS col2 FROM tab1 AS cor0
----
61
74
77

query I rowsort
SELECT + + col2 + - ( col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - col1 + 1 AS col1 FROM tab0 cor0
----
-85
-90
-96

query I rowsort
SELECT ALL - 0 - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL ( - 64 ) AS col1 FROM tab2 cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 AS col0 FROM tab2, tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT ( + col2 ) + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + 35 * col2 + col2 * - cor0.col0 FROM tab0 AS cor0
----
-4428
0
363

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4681
SELECT ALL + ( col0 ) + col2 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-1365
-598
-722

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + ( col0 ) + col2 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT + tab1.col1 * 62 FROM tab1
----
1612
620
806

query I rowsort
SELECT col2 * col2 + col0 * col2 AS col2 FROM tab0 AS cor0
----
14022
1881
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT - cor0.col2 / + col0 + - col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT - cor0.col2 / + col0 + - col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT ALL - 29 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to eb8b36589592eb8217153525a5c8d606

query I rowsort
SELECT - 52 * - 15 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6b43e850a7c75583920f5c9d7d52d4b7

query I rowsort
SELECT ALL - + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col1 * col2 + ( + col1 ) - - col0 FROM tab2 cor0
----
-1397
-550
-799

query I rowsort
SELECT DISTINCT col1 + - col2 * + col2 - + 65 * - col2 FROM tab1
----
-2963
466
620

query I rowsort
SELECT DISTINCT + col2 + - 45 AS col1 FROM tab2 AS cor0
----
-18
-19
-7

query I rowsort
SELECT ALL - + col2 + + 41 AS col1 FROM tab2 AS cor0
----
14
15
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT col1 - - col1 * col1 FROM tab2
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT ALL col0 DIV tab0.col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL col0 / tab0.col0 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - col2 * col0 * col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT col0 * 25 AS col1 FROM tab2 cor0
----
175
1950
1975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * col2 col2 FROM tab2 cor0
----
-2392
-2484
-3496

query I rowsort
SELECT - 16 * col2 + tab1.col0 FROM tab1
----
-1456
-848
-861

query I rowsort
SELECT + + cor0.col1 + col0 * cor0.col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + + col0 + col2 + col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL + - col2 + - 94 * - cor0.col1 FROM tab1 AS cor0
----
1126
2390
883

onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT ALL - - col0 DIV - col0 + cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
120
175
56

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - - col0 / - col0 + cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
120
175
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col1 col0 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4705
SELECT ( - col2 ) * - CAST( - col0 * col0 AS SIGNED ) AS col0 FROM tab1
----
-233472
-486
-614400

skipif mysql # not compatible
query I rowsort label-4705
SELECT ( - col2 ) * - CAST ( - col0 * col0 AS INTEGER ) AS col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT - 21 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4707
SELECT + col1 * - CAST( - 95 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
1007
1331
2524

skipif mysql # not compatible
query I rowsort label-4707
SELECT + col1 * - CAST ( - 95 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
1007
1331
2524

query I rowsort
SELECT + 21 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL - col1 * - ( tab0.col2 * col2 ) AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - - col1 + 7 * + 75 FROM tab2 AS cor0
----
542
556
584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 * col0 col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - 40 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + ( + col2 ) + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 53 + col0 col1 FROM tab0 AS cor0
----
4582
4912
5176

query I rowsort
SELECT ALL col2 * 38 + - cor0.col0 - col1 AS col0 FROM tab0 cor0
----
-94
1144
2936

query I rowsort
SELECT DISTINCT - ( col1 ) + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT tab2.col0 - + tab2.col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT ALL - tab1.col0 DIV + 59 + + col0 col0 FROM tab1
----
3
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - tab1.col0 / + 59 + + col0 col0 FROM tab1
----
3
63
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4719
SELECT - CAST( 32 AS SIGNED ) FROM tab0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-4719
SELECT - CAST ( 32 AS INTEGER ) FROM tab0
----
-32
-32
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4720
SELECT - ( - cor0.col1 ) * cor0.col0 + + CAST( col2 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
-3008
-6640
-84

skipif mysql # not compatible
query I rowsort label-4720
SELECT - ( - cor0.col1 ) * cor0.col0 + + CAST ( col2 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
-3008
-6640
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT + 42 * col1 * - col1 + col1 DIV col0 col1 FROM tab1 cor0
----
-28384
-4200
-7098

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4721
SELECT + 42 * col1 * - col1 + col1 / col0 col1 FROM tab1 cor0
----
-28384
-4200
-7098

onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT 89 * col0 + + col2 * - col2 + - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-2097
-2650
2446

skipif mysql # not compatible
query I rowsort label-4722
SELECT 89 * col0 + + col2 * - col2 + - col2 / col2 AS col1 FROM tab1 AS cor0
----
-2097
-2650
2446

query I rowsort
SELECT ALL cor0.col0 + + 96 - + 61 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 26dcc1a516efc886f024567f0df7be32

query I rowsort
SELECT - - 14 * col0 AS col1 FROM tab0 cor0
----
1246
336
490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4726
SELECT + + col1 * cor0.col0 + + col0 DIV - col0 FROM tab2 AS cor0
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-4726
SELECT + + col1 * cor0.col0 + + col0 / - col0 FROM tab2 AS cor0
----
1342
216
4601

onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT ALL col2 - - col1 * tab0.col1 DIV + col0 FROM tab0
----
175
269
341

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL col2 - - col1 * tab0.col1 / + col0 FROM tab0
----
175
269
341

query I rowsort
SELECT col1 * + 76 FROM tab1 AS cor0
----
1976
760
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4729
SELECT + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 9 + + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2280
-3710
-8900

onlyif mysql # use DIV operator for integer division
query I rowsort label-4731
SELECT DISTINCT - 27 * col1 * col2 + + col0 DIV + col1 AS col0 FROM tab1
----
-15384
-33690
-37908

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - 27 * col1 * col2 + + col0 / + col1 AS col0 FROM tab1
----
-15384
-33690
-37908

onlyif mysql # use DIV operator for integer division
query I rowsort label-4732
SELECT 66 + tab0.col2 + + col1 DIV col2 col1 FROM tab0
----
101
149
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4732
SELECT 66 + tab0.col2 + + col1 / col2 col1 FROM tab0
----
101
149
164

query I rowsort
SELECT ALL - col2 + cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col0 + - col2 + col1 AS col2 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT DISTINCT 66 * - cor0.col0 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT + + 25 * - col0 - - ( + col1 ) FROM tab2 AS cor0
----
-144
-1891
-1958

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT DISTINCT - 17 DIV col0 col2 FROM tab2
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT - 17 / col0 col2 FROM tab2
----
-2
0

query I rowsort
SELECT ALL - col1 * + col1 + col0 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT - 48 + - cor0.col2 + + ( col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
1104
1302
465

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT 1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT col0 + - col2 * - 54 FROM tab0 AS cor0
----
1806
4517
89

query I rowsort
SELECT col0 * - 21 + 62 + - col0 AS col0 FROM tab1 AS cor0
----
-1346
-1698
-4

query I rowsort
SELECT col0 + + 27 FROM tab0 AS cor0
----
116
51
62

query I rowsort
SELECT - cor0.col2 * + col1 + 76 + + col1 AS col2 FROM tab1 AS cor0
----
-1159
-1302
-484

query I rowsort
SELECT + col0 + + tab2.col1 * - col0 AS col0 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT DISTINCT + col0 DIV + col0 + + col2 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + col0 / + col0 + + col2 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT ALL + 28 * - 10 FROM tab0 AS cor0
----
-280
-280
-280

query I rowsort
SELECT ALL - + col1 * + ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4750
SELECT ALL 62 DIV col2 FROM tab0 AS cor0
----
0
1
62

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL 62 / col2 FROM tab0 AS cor0
----
0
1
62

query I rowsort
SELECT ALL - col1 - ( col0 ) AS col2 FROM tab2
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT - col2 DIV + 37 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4752
SELECT - col2 / + 37 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + ( col1 ) * - col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ( - 69 ) * col0 FROM tab0 cor0
----
-1656
-2415
-6141

query I rowsort
SELECT ALL + col2 * col0 * + col2 + + ( - 45 * + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-4330
22266
594341

query I rowsort
SELECT - ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col0 col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL - + cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT 72 * col2 AS col1 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT DISTINCT - tab2.col0 + + col0 FROM tab2
----
0

query I rowsort
SELECT col0 + tab1.col2 * + ( - tab1.col1 * + col2 ) + 32 FROM tab1
----
-119696
-32394
-75781

query I rowsort
SELECT tab0.col2 * col2 * - col1 AS col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT - col2 * cor0.col1 + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4765
SELECT DISTINCT - col2 * - col2 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-34
1065
6635

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT - col2 * - col2 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT - - col1 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + - 31 * col0 AS col1 FROM tab1 AS cor0
----
-1984
-2480
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4768
SELECT DISTINCT + ( cor0.col2 ) * - CAST( - 2 AS SIGNED ) * col0 AS col1 FROM tab1 cor0
----
15360
324
7296

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + ( cor0.col2 ) * - CAST ( - 2 AS INTEGER ) * col0 AS col1 FROM tab1 cor0
----
15360
324
7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 93 * + col2 col0 FROM tab0
----
-3036
-7544
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4770
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * + col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL + 18 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT 8 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

onlyif mysql # use DIV operator for integer division
query I rowsort label-4774
SELECT ALL - + col0 + col1 DIV - 71 col0 FROM tab0 cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL - + col0 + col1 / - 71 col0 FROM tab0 cor0
----
-25
-36
-90

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3

query I rowsort
SELECT ALL + col2 * cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col0 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT - 74 + col0 FROM tab0 AS cor0
----
-39
-50
15

query I rowsort
SELECT DISTINCT + col0 * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4780
SELECT ALL + CAST( 21 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
117
75
78

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + CAST ( 21 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
117
75
78

query I rowsort
SELECT + + ( - col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 93 - ( - cor0.col2 + + 29 ) FROM tab2 AS cor0
----
102
90
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * - col1 * ( - tab0.col0 ) col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4785
SELECT - col1 DIV col0 + tab2.col1 * + col1 FROM tab2
----
289
3481
957

skipif mysql # not compatible
query I rowsort label-4785
SELECT - col1 / col0 + tab2.col1 * + col1 FROM tab2
----
289
3481
957

query I rowsort
SELECT + - 14 AS col1 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4787
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - col2 + - 79 * col1 FROM tab1 AS cor0
----
-2000
-733
-931

query I rowsort
SELECT DISTINCT + - 28 + col1 * + 81 * + col0 AS col0 FROM tab0 AS cor0
----
167156
274967
655991

query I rowsort
SELECT - 43 + + col2 AS col2 FROM tab2 AS cor0
----
-16
-17
-5

query I rowsort
SELECT + ( tab2.col2 + col1 ) FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT - - col2 * 77 AS col2 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT + + col2 * col0 + + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - 62 * + cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-1612
-620
-806

query I rowsort
SELECT - col1 + col1 * + 15 FROM tab1 AS cor0
----
140
182
364

query I rowsort
SELECT + col0 + 34 - - col2 FROM tab1 AS cor0
----
155
210
91

query I rowsort
SELECT DISTINCT + - 24 + col1 AS col0 FROM tab0 AS cor0
----
62
67
73

query I rowsort
SELECT ALL + ( 55 ) FROM tab0 cor0
----
55
55
55

query I rowsort
SELECT 60 * - col2 FROM tab0
----
-1980
-4920
-60

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab2, tab2 AS cor0
----
-6

query I rowsort
SELECT ALL + - col0 + - 21 AS col0 FROM tab2 AS cor0
----
-100
-28
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4803
SELECT - col2 DIV - col2 - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-4803
SELECT - col2 / - col2 - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
2917
3250
9217

query I rowsort
SELECT - ( - cor0.col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL ( col0 ) + - tab1.col2 FROM tab1
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 95 ) + col0 * + 93 col0 FROM tab1
----
374
6047
7535

query I rowsort
SELECT + col2 * col1 + 92 AS col0 FROM tab1 AS cor0
----
1340
1496
662

onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT ALL 1 * + col2 + col0 DIV col1 + tab0.col0 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL 1 * + col2 + col0 / col1 + tab0.col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT DISTINCT - col2 DIV - 9 AS col0 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT - col2 / - 9 AS col0 FROM tab2 AS cor0
----
2
3
4

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 76 * col0 FROM tab1
----
-228
-4864
-6080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4812
SELECT ALL - - col0 * + CAST( + col1 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - - col0 * + CAST ( + col1 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4813
SELECT cor0.col0 * 40 + col1 DIV - col0 FROM tab0 AS cor0
----
1398
3559
957

skipif mysql # not compatible
query I rowsort label-4813
SELECT cor0.col0 * 40 + col1 / - col0 FROM tab0 AS cor0
----
1398
3559
957

query I rowsort
SELECT - col2 * + col1 - 55 FROM tab2 AS cor0
----
-1589
-701
-892

query I rowsort
SELECT + cor0.col2 * - ( 15 ) * - col2 AS col1 FROM tab1 AS cor0
----
138240
43740
48735

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4816
SELECT + col1 * CAST( + col0 * cor0.col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
106135
1546
358982

skipif mysql # not compatible
query I rowsort label-4816
SELECT + col1 * CAST ( + col0 * cor0.col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT + col0 * + 5 + 36 AS col0 FROM tab0 AS cor0
----
156
211
481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * ( + ( + col2 ) ) col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab2, tab0, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - 46 AS col1 FROM tab0 cor0
----
46
46
46

query I rowsort
SELECT - ( + 92 ) FROM tab2 cor0
----
-92
-92
-92

query I rowsort
SELECT ALL + + col2 + - 59 FROM tab2 AS cor0
----
-21
-32
-33

query I rowsort
SELECT DISTINCT col2 * col0 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4824
SELECT CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 66 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
66

query I rowsort
SELECT + ( - 90 ) FROM tab2, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - cor0.col0 col1 FROM tab0, tab0 cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4828
SELECT ALL + col2 DIV col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL + col2 / col0 AS col0 FROM tab2
----
0
0
3

query I rowsort
SELECT - 28 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT col1 DIV + 37 AS col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4830
SELECT col1 / + 37 AS col0 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT - cor0.col2 * - 97 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT 82 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL tab2.col2 - + col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + + ( - col0 * - col1 ) FROM tab1
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4835
SELECT ALL tab2.col2 DIV 71 + - col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL tab2.col2 / 71 + - col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + tab1.col2 + + col0 * - col2 - - col1 col1 FROM tab1
----
-389
1549
2780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4837
SELECT ALL col1 - CAST( col0 + cor0.col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL col1 - CAST ( col0 + cor0.col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + cor0.col1 + + 86 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 21ba6badc2e2d538b9d76ba7685c7aa3

query I rowsort
SELECT ALL + + col0 * cor0.col0 + col0 * + col2 * col2 FROM tab0 AS cor0
----
1260
26712
606357

query I rowsort
SELECT + 47 - col0 FROM tab1 AS cor0
----
-17
-33
44

query I rowsort
SELECT ALL - ( - 71 ) + - col2 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-7309
-754
35

query I rowsort
SELECT DISTINCT 89 * + col2 - + cor0.col2 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT cor0.col0 + + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4844
SELECT ALL + - cor0.col1 * col0 + - col1 + CAST( NULL AS DECIMAL ) * 15 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-4844
SELECT ALL + - cor0.col1 * col0 + - col1 + CAST ( NULL AS REAL ) * 15 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 34 * col1 FROM tab0 cor0
----
-2924
-3094
-3298

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) * col2 + col0 + - 20 FROM tab1 AS cor0
----
-2933
-3205
-9156

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col1 + 5 FROM tab2 AS cor0
----
1539
651
842

query I rowsort
SELECT DISTINCT 51 * - col2 AS col1 FROM tab2 cor0
----
-1326
-1377
-1938

query I rowsort
SELECT ALL + + col1 + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + - col0 + 2 FROM tab1 AS cor0
----
-1
-62
-78

query I rowsort
SELECT ALL - + 62 * + col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT DISTINCT col2 - - col0 * + tab2.col2 * + tab2.col0 FROM tab2
----
1350
158210
237196

query I rowsort
SELECT DISTINCT + - ( + col1 ) + cor0.col1 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT + + cor0.col2 * - col2 + - col0 * col1 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT DISTINCT + col1 * - col2 - - col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT 35 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT - col2 - ( col1 + col1 ) * col1 * + ( - col0 ) FROM tab2
----
13427
45624
543010

query I rowsort
SELECT ALL - cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 78 + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
3570
7602
84

query I rowsort
SELECT DISTINCT col0 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4861
SELECT ALL + - 59 + ( col0 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + - 59 + ( col0 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 84 AS col0 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT + + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 63 + - col2 FROM tab2 AS cor0
----
25
36
37

query I rowsort
SELECT ALL + col0 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - - col2 * + col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 98 AS col1 FROM tab1 cor0
----
-98

query I rowsort
SELECT DISTINCT col1 + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT ALL + 59 + - col1 DIV 98 AS col0 FROM tab1 cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + 59 + - col1 / 98 AS col0 FROM tab1 cor0
----
59
59
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4870
SELECT - col2 * + col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT - col2 * + col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 67 * col1 + 30 * + col1 + - col1 AS col2 FROM tab0 cor0
----
8256
8736
9312

query I rowsort
SELECT ALL - - col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - + ( + cor0.col1 ) * cor0.col0 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT DISTINCT col1 * 73 AS col2 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT DISTINCT + + col0 * - col0 + col1 * col0 AS col2 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT - col2 * + 80 FROM tab2 cor0
----
-2080
-2160
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 41 * col0 col1 FROM tab1 AS cor0
----
26240
3198
42640

query I rowsort
SELECT ALL + 50 * - col0 AS col2 FROM tab0
----
-1200
-1750
-4450

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4879
SELECT - col2 * - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4879
SELECT - col2 * - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 99 * + col1 col0 FROM tab1 AS cor0
----
-102960
-63360
-7722

query I rowsort
SELECT + - cor0.col0 * + col0 * + col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT - col2 * cor0.col2 * + ( - cor0.col0 ) FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - col0 * - 33 * + col0 FROM tab0 AS cor0
----
19008
261393
40425

query I rowsort
SELECT - - col2 * 50 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT - col0 * 49 AS col1 FROM tab2 AS cor0
----
-343
-3822
-3871

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94

query I rowsort
SELECT col0 * col0 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 + - col2 col0 FROM tab0
----
-28
-77
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4890
SELECT col1 + cor0.col2 * - CAST( - col2 * + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
194
611975
93740

skipif mysql # not compatible
query I rowsort label-4890
SELECT col1 + cor0.col2 * - CAST ( - col2 * + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
194
611975
93740

query I rowsort
SELECT cor0.col0 * col0 + - ( ( - cor0.col0 ) ) AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab2 cor0
----
70

query I rowsort
SELECT DISTINCT - ( + 93 ) AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-93

query I rowsort
SELECT DISTINCT + + col0 + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - - 55 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
1344
1960
4984

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT + col0 DIV - col0 + col0 * + col1 AS col1 FROM tab2
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-4896
SELECT + col0 / - col0 + col0 * + col1 AS col1 FROM tab2
----
1342
216
4601

query I rowsort
SELECT col1 * tab1.col2 * tab1.col0 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + col0 * col0 * - tab2.col1 + col2 * tab2.col0 AS col0 FROM tab2
----
-103095
-1330
-356928

query I rowsort
SELECT - col0 * + col1 + col2 AS col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT tab0.col1 * - col1 * + col1 + col2 AS col0 FROM tab0
----
-636023
-753489
-912672

query I rowsort
SELECT - tab1.col2 - + col1 * col2 AS col1 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT - col2 * col2 + col0 * - tab0.col1 AS col1 FROM tab0
----
-14823
-3153
-3396

query I rowsort
SELECT ALL col0 * - col0 + - col0 AS col1 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT - col0 / - col1 + - col0 + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 46 + tab2.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 30ed062442ecf0dc71361fa5285ffe40

query I rowsort
SELECT - col1 * - cor0.col1 + - col0 + + col0 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL 83 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT DISTINCT + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN NULL AND + col1 + col0 * - col2
----

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4912
SELECT ALL col1 DIV - col1 + col0 * col2 DIV + col2 - col1 AS col1 FROM tab0 AS cor0
----
-3
-63
-63

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL col1 / - col1 + col0 * col2 / + col2 - col1 AS col1 FROM tab0 AS cor0
----
-3
-63
-63

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT col2 + col1 * - tab2.col1 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT ALL - col1 * col0 + - col1 * - col1 FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT ALL - col1 * + col0 + + col0 * col1 * + col1 + - col1 FROM tab1 AS cor0
----
12467
1924
5750

onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT ALL - col2 * + col1 * + col0 - + col1 DIV - tab0.col0 FROM tab0
----
-3393
-664117
-68109

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - col2 * + col1 * + col0 - + col1 / - tab0.col0 FROM tab0
----
-3393
-664117
-68109

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col0 * + tab0.col2 * col1
----

query I rowsort
SELECT DISTINCT - col0 - - col1 * col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT + col1 + tab2.col2 * col2 AS col0 FROM tab2
----
1461
735
760

query I rowsort
SELECT col0 FROM tab1 WHERE NULL NOT IN ( - col1 * - col1 + col0 )
----

query I rowsort
SELECT ALL col0 + + col0 FROM tab0 WHERE ( NULL ) NOT IN ( col1 * + col1 + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN NULL AND ( + tab2.col2 )
----

query I rowsort
SELECT col2 + + col2 + tab0.col0 * + col0 FROM tab0
----
1227
642
8085

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT + tab0.col2 + tab0.col2 - col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT 78 + + col2 FROM tab1
----
132
135
174

query I rowsort
SELECT - col0 * col0 - col0 AS col2 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT + cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT 95 + 12 * col0 AS col1 FROM tab2 AS cor0
----
1031
1043
179

query I rowsort
SELECT + col1 * 18 AS col1 FROM tab0 AS cor0
----
1548
1638
1746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col2 FROM tab1 AS cor0
----
4

query I rowsort
SELECT ALL - + ( col0 ) * + 24 AS col2 FROM tab0 cor0
----
-2136
-576
-840

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT 81 * - col2 FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT ALL + 74 + col1 * - col0 * - col2 FROM tab1 AS cor0
----
36554
4286
99914

query I rowsort
SELECT DISTINCT 70 * + col0 AS col1 FROM tab1 AS cor0
----
210
4480
5600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4938
SELECT col0 + col1 * - CAST( 78 AS SIGNED ) col1 FROM tab0 AS cor0
----
-6684
-7009
-7531

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4938
SELECT col0 + col1 * - CAST ( 78 AS INTEGER ) col1 FROM tab0 AS cor0
----
-6684
-7009
-7531

query I rowsort
SELECT 1 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col2 FROM tab0 AS cor0
----
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT + col0 DIV + 20 AS col1 FROM tab2 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-4941
SELECT + col0 / + 20 AS col1 FROM tab2 AS cor0
----
0
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4942
SELECT - - col0 DIV ( ( col0 ) ) + ( - 2 ) + col0 AS col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-4942
SELECT - - col0 / ( ( col0 ) ) + ( - 2 ) + col0 AS col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT col2 * - 3 AS col0 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT + col2 * 72 AS col2 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT - + col2 + ( col0 ) + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4946
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT DISTINCT - 48 DIV col0 FROM tab2 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT - 48 / col0 FROM tab2 AS cor0
----
-6
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4948
SELECT - - ( - cor0.col2 ) + - cor0.col1 * + CAST( - cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-4948
SELECT - - ( - cor0.col2 ) + - cor0.col1 * + CAST ( - cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT - 21 FROM tab1, tab0 AS cor0
----
-21

query I rowsort
SELECT ALL ( cor0.col1 ) * col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - col0 * col0 * col1 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT DISTINCT col0 + CAST( col2 AS SIGNED ) FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT col0 + CAST ( col2 AS INTEGER ) FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT DISTINCT + col0 DIV col1 + - col0 * + col1 DIV - col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT + col0 / col1 + - col0 * + col1 / - col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 * col1 * + col1 + col2 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT ALL + ( col1 ) + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - ( + cor0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - col2 * + col0 * - tab2.col1 + col0 AS col1 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT 73 + 89 AS col0 FROM tab1
----
162
162
162

query I rowsort
SELECT - 85 + col1 * tab1.col2 AS col0 FROM tab1
----
1163
1319
485

onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT 65 DIV + col0 + col0 AS col0 FROM tab1
----
24
65
80

skipif mysql # not compatible
query I rowsort label-4961
SELECT 65 / + col0 + col0 AS col0 FROM tab1
----
24
65
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT col1 + tab1.col1 DIV - tab1.col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4962
SELECT col1 + tab1.col1 / - tab1.col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - col1 + + col2 * + col0 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT - ( + col0 ) + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4965
SELECT DISTINCT col0 DIV col2 + cor0.col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT col0 / col2 + cor0.col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT - - 37 + col0 AS col0 FROM tab1 AS cor0
----
101
117
40

query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 * col1 - + col0 AS col2 FROM tab0 AS cor0
----
-35
2728
7282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 * col0 + col0 col2 FROM tab2 cor0
----
-22752
-271440
-6720

query I rowsort
SELECT ALL + - 30 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-310
-403
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * col1 col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + col0 * col1 + 70 AS col1 FROM tab0 AS cor0
----
2134
3465
8169

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4972
SELECT ALL + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 + - ( col0 ) FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 - - col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col2 * + cor0.col0 + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT cor0.col1 + + 52 * col2 * col2 FROM tab1 AS cor0
----
151658
168958
479245

query I rowsort
SELECT - + 34 AS col2 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT ( + col1 ) + col2 + + col0 * col2 FROM tab1 AS cor0
----
242
3715
7789

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * col1 AS col2 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT + ( - ( col0 ) ) + - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + col2 * + 6 * col0 + cor0.col2 AS col1 FROM tab1 cor0
----
1026
21945
46176

onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT DISTINCT + + cor0.col2 + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
52
89

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + + cor0.col2 + - col2 / col1 AS col2 FROM tab1 AS cor0
----
52
89

query I rowsort
SELECT ALL ( 13 ) * col2 + col0 FROM tab1 cor0
----
1328
705
805

onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT + col2 * cor0.col2 + col2 + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
1482
702
760

skipif mysql # not compatible
query I rowsort label-4985
SELECT + col2 * cor0.col2 + col2 + col1 / col0 AS col1 FROM tab2 AS cor0
----
1482
702
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4986
SELECT ALL + + col1 + + col2 DIV col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL + + col1 + + col2 / col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT - - cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT - col2 + + col1 * - col0 AS col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT + col1 * + col2 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT col2 * col2 * col1 AS col0 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT ALL - col1 * - col1 * col1 AS col2 FROM tab0 cor0
----
636056
753571
912673

query I rowsort
SELECT + col1 + - col2 + col1 AS col1 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT ALL tab2.col2 + - tab2.col0 + tab2.col2 AS col2 FROM tab2
----
-26
-3
47

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + col0 + + col1 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT col2 * + col1 * + col1 + col2 + - col2 * col1 * + col1 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-4999
SELECT ALL col2 * col2 DIV - col0 + col2 * + col1 + - col1 FROM tab0
----
0
2707
7296

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL col2 * col2 / - col0 + col2 * + col1 + - col1 FROM tab0
----
0
2707
7296

query I rowsort
SELECT col1 + - col2 + col0 * + col1 FROM tab0
----
2117
3491
8108

query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + - col2 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5004
SELECT - col1 DIV col2 + col2 + + col0 AS col0 FROM tab0
----
-61
170
55

skipif mysql # not compatible
query I rowsort label-5004
SELECT - col1 / col2 + col2 + + col0 AS col0 FROM tab0
----
-61
170
55

query I rowsort
SELECT DISTINCT + col0 + col2 * tab1.col1 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT col2 * + col0 + - col1 AS col2 FROM tab0
----
-62
706
7207

query I rowsort
SELECT DISTINCT col2 + col2 * - tab2.col0 * col2 AS col2 FROM tab2
----
-114038
-5076
-52702

query I rowsort
SELECT + + col0 + - ( 48 ) * + col0 FROM tab2 AS cor0
----
-329
-3666
-3713

onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT - cor0.col0 DIV 87 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT - cor0.col0 / 87 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5010
SELECT col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5011
SELECT + - col0 * 52 DIV 43 AS col1 FROM tab0 AS cor0
----
-107
-29
-42

skipif mysql # not compatible
query I rowsort label-5011
SELECT + - col0 * 52 / 43 AS col1 FROM tab0 AS cor0
----
-107
-29
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT - cor0.col2 + - ( col0 ) DIV col1 col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5012
SELECT - cor0.col2 + - ( col0 ) / col1 col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - + 85 + 63 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - cor0.col0 + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5015
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - - 59 + - col2 FROM tab0 cor0
----
-23
26
58

query I rowsort
SELECT - 7 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT + - col2 * - col0 + col1 + + col2 FROM tab0 AS cor0
----
133
7471
911

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5019
SELECT - CAST( 87 AS SIGNED ) AS col0 FROM tab0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-5019
SELECT - CAST ( 87 AS INTEGER ) AS col0 FROM tab0
----
-87
-87
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5020
SELECT ALL + col2 * col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + col2 * col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL - cor0.col2 + + 14 AS col1 FROM tab2 cor0
----
-12
-13
-24

query I rowsort
SELECT ALL col2 * col0 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + 30 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 80 col2 FROM tab1
----
-4320
-4560
-7680

query I rowsort
SELECT DISTINCT tab2.col0 * 30 AS col1 FROM tab2
----
210
2340
2370

onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT + 94 DIV - 99 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5027
SELECT + 94 / - 99 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + col1 * 26 * ( col1 ) FROM tab1
----
17576
2600
4394

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT col0 DIV - col0 - col1 AS col2 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-5029
SELECT col0 / - col0 - col1 AS col2 FROM tab1
----
-11
-14
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL col1 + + ( cor0.col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT 40 * col2 AS col1 FROM tab0
----
1320
3280
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5033
SELECT DISTINCT col0 * ( col1 ) - - CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT col0 * ( col1 ) - - CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT - - 69 * tab0.col2 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 4bbba0f9c9873bcc185dfd3b722487a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5035
SELECT ALL - tab1.col2 DIV - col2 - - col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - tab1.col2 / - col2 - - col1 FROM tab1
----
11
14
27

query I rowsort
SELECT - 82 * - 17 FROM tab1
----
1394
1394
1394

query I rowsort
SELECT tab1.col1 * + ( + col0 ) AS col0 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5038
SELECT CAST( 31 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-5038
SELECT CAST ( 31 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT cor0.col1 * - 2 + + col2 AS col2 FROM tab2 AS cor0
----
-35
-92
4

query I rowsort
SELECT ALL - 92 - + col2 * col0 AS col1 FROM tab2
----
-2120
-281
-3094

query I rowsort
SELECT - 78 + + col2 FROM tab0 cor0
----
-45
-77
4

query I rowsort
SELECT + - col2 + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 AS col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT - - col2 * + col0 * + col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - ( - col2 * col0 ) AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab0, tab1 AS cor0
----
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5047
SELECT DISTINCT - + col2 DIV - col1 - cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT - + col2 / - col1 - cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT DISTINCT 63 - col2 DIV col1 AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT 63 - col2 / col1 AS col1 FROM tab0 AS cor0
----
63

query I rowsort
SELECT DISTINCT - cor0.col0 - - col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5050
SELECT DISTINCT - - col0 DIV - col2 AS col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT - - col0 / - col2 AS col2 FROM tab1 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + col0 col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - - 25 * ( col2 ) * ( - col1 * - col0 ) AS col2 FROM tab1 AS cor0
----
105300
2496000
912000

onlyif mysql # use DIV operator for integer division
query I rowsort label-5053
SELECT cor0.col1 * - col1 DIV col1 + col1 * + col1 AS col1 FROM tab2 cor0
----
272
3422
930

skipif mysql # not compatible
query I rowsort label-5053
SELECT cor0.col1 * - col1 / col1 + col1 * + col1 AS col1 FROM tab2 cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT + col2 * 9 AS col0 FROM tab1 cor0
----
486
513
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5055
SELECT - CAST( col1 AS SIGNED ) * + col0 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort label-5055
SELECT - CAST ( col1 AS INTEGER ) * + col0 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) * + col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col0 + - 11 + col0 AS col0 FROM tab2 AS cor0
----
145
147
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT ALL + - 34 DIV col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + - 34 / col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ( cor0.col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT 28 * col0 * + tab2.col1 + col0 FROM tab2
----
128934
37683
6083

query I rowsort
SELECT - tab0.col0 + 95 * + col1 FROM tab0
----
8146
8556
9180

query I rowsort
SELECT + + 80 + col2 * col2 * + col2 FROM tab1 cor0
----
157544
185273
884816

query I rowsort
SELECT - tab1.col2 * + ( + col2 + + col0 ) * col2 FROM tab1
----
-1622016
-166212
-393129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - col2 * 26 col1 FROM tab2 AS cor0
----
-598
-695
-909

query I rowsort
SELECT DISTINCT - col1 * ( col1 ) + + col1 * col0 FROM tab0 AS cor0
----
-182
-5332
-6014

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5066
SELECT - col2 + - CAST( NULL AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT - col2 + - CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * 1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 - + cor0.col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col2 - - 93 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1619
2910
5513

query I rowsort
SELECT ALL + + col0 + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + col2 + + col1 * + 89 AS col2 FROM tab0 AS cor0
----
7687
8181
8634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5072
SELECT + col2 * - col2 * - CAST( 92 AS SIGNED ) FROM tab1
----
268272
298908
847872

skipif mysql # not compatible
query I rowsort label-5072
SELECT + col2 * - col2 * - CAST ( 92 AS INTEGER ) FROM tab1
----
268272
298908
847872

query I rowsort
SELECT - tab1.col0 + + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f8c8144a1e750f938e34a2795af6b4c2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT ALL col2 * col0 + - tab0.col0 * + col0 + + col0 DIV - 80 AS col2 FROM tab0
----
-1190
-624
216

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL col2 * col0 + - tab0.col0 * + col0 + + col0 / - 80 AS col2 FROM tab0
----
-1190
-624
216

query I rowsort
SELECT 11 + col1 + 86 FROM tab1
----
107
110
123

query I rowsort
SELECT ALL - tab0.col1 - + tab0.col0 AS col1 FROM tab0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 72 * col1 col0 FROM tab2 AS cor0
----
1186
2205
4222

query I rowsort
SELECT + + col1 * 0 - + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col2 + ( - col0 * + col2 ) FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT 82 FROM tab0, tab2 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + 82 AS col0 FROM tab0 AS cor0
----
-1982
-3313
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5082
SELECT ALL - - col1 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL - - col1 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5083
SELECT ALL + col0 * 89 + col2 + col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + col0 * 89 + col2 + col2 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 88 FROM tab0 AS cor0
----
-55
-6
-87

query I rowsort
SELECT + tab2.col0 + - col2 + col1 AS col1 FROM tab2
----
11
111
58

query I rowsort
SELECT DISTINCT - tab2.col2 * - col0 + + col1 * col2 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT - col0 * col0 + - cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
-4736
-7440
-87

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( + col2 AS REAL ) + col2 FROM tab1 cor0
----
0

query I rowsort
SELECT + - 43 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1132
-44
-6767

onlyif mysql # use DIV operator for integer division
query I rowsort label-5091
SELECT - 80 * - col1 * col0 + col0 DIV + col1 FROM tab0 AS cor0
----
165120
271600
647920

skipif mysql # not compatible
query I rowsort label-5091
SELECT - 80 * - col1 * col0 + col0 / + col1 FROM tab0 AS cor0
----
165120
271600
647920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5092
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 75 * col0 * col1 + ( col0 ) * cor0.col1 * + 88 FROM tab2 cor0
----
218909
35371
750126

query I rowsort
SELECT ALL cor0.col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - 30 + + col2 FROM tab2 AS cor0
----
-3
-4
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT col0 + 84 DIV col2 AS col0 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-5096
SELECT col0 + 84 / col2 AS col0 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT + + col0 + - col2 + + col2 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - 98 * col1 + col2 + 6 AS col1 FROM tab1 AS cor0
----
-1172
-2488
-917

query I rowsort
SELECT + 60 + + 60 AS col2 FROM tab2 AS cor0
----
120
120
120

query I rowsort
SELECT DISTINCT - - 71 AS col2 FROM tab2 AS cor0
----
71

query I rowsort
SELECT DISTINCT + 21 * col1 AS col1 FROM tab0 AS cor0
----
1806
1911
2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT ALL col1 DIV + col1 + ( cor0.col1 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL col1 / + col1 + ( cor0.col1 ) / - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 16 * col0 AS col2 FROM tab2 AS cor0
----
-112
-1248
-1264

query I rowsort
SELECT DISTINCT - col2 + - col2 * 52 AS col1 FROM tab0 AS cor0
----
-1749
-4346
-53

query I rowsort
SELECT ALL - 96 AS col2 FROM tab1 cor0
----
-96
-96
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5106
SELECT - - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT - - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col1 * ( - col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - cor0.col0 * 94 FROM tab2 AS cor0
----
-658
-7332
-7426

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5109
SELECT + CAST( NULL AS SIGNED ) * 88 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT + CAST ( NULL AS INTEGER ) * 88 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col0 + - cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
11
111
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5111
SELECT + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col1 * - 11 + col0 FROM tab0 AS cor0
----
-1032
-912
-922

query I rowsort
SELECT ALL - tab1.col0 * 72 AS col1 FROM tab1
----
-216
-4608
-5760

query I rowsort
SELECT ALL - + col2 * - col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + col0 * - 11 + col1 + col1 * 48 FROM tab1 AS cor0
----
1194
1307
1517

query I rowsort
SELECT - - cor0.col0 - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - col2 * + col1 + - 73 FROM tab0 AS cor0
----
-170
-2911
-7535

query I rowsort
SELECT - - ( col1 ) + + cor0.col1 + col1 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT DISTINCT 47 + cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
106
64
78

query I rowsort
SELECT - tab1.col2 * col0 * col0 + col0 * 42 * - col2 AS col2 FROM tab1
----
-386688
-7290
-936960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5122
SELECT + col1 * 24 + col0 DIV + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
241
313
625

skipif mysql # not compatible
query I rowsort label-5122
SELECT + col1 * 24 + col0 / + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
241
313
625

query I rowsort
SELECT - col2 * ( col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - + tab0.col0 + 63 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 86cfc83b3309ffe8f13959249586b2ac

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT ALL - CAST( NULL AS DECIMAL ) col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL - CAST ( NULL AS REAL ) col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT tab0.col2 * + col1 * + tab0.col0 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - + cor0.col0 + + col1 + col0 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + col0 * + 86 FROM tab2 AS cor0
----
602
6708
6794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 + 63 * col0 + - col1 col2 FROM tab1 AS cor0
----
243
4102
5107

query I rowsort
SELECT ALL - col2 + - ( col2 ) * ( + col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
-1
-2785
-7453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col2 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + - ( col1 ) + col1 + ( - col1 ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + tab1.col1 + + col0 * + col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT 46 * 87 AS col0 FROM tab0
----
4002
4002
4002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5135
SELECT DISTINCT - cor1.col0 DIV + 88 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT - cor1.col0 / + 88 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
0

query I rowsort
SELECT DISTINCT + col0 + ( col1 * - 86 ) FROM tab2
----
-1383
-2659
-4996

query I rowsort
SELECT ALL - col1 + + ( tab2.col2 ) + - 18 AS col1 FROM tab2
----
-22
-51
3

query I rowsort
SELECT + ( col1 ) + - col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 78 * + col2 + col1 AS col2 FROM tab1
----
4238
4456
7501

query I rowsort
SELECT DISTINCT + + col1 + 75 FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT ALL - - col2 * ( - 90 ) AS col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - tab2.col0 + + ( col1 ) FROM tab2
----
-19
-62
24

query I rowsort
SELECT + + col1 * + cor0.col2 + - col1 AS col1 FROM tab0 cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + 95 col1 FROM tab2
----
-121
-122
-133

onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT ALL + col0 - col1 DIV - 35 FROM tab2
----
7
79
79

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL + col0 - col1 / - 35 FROM tab2
----
7
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5147
SELECT + col0 DIV ( - col2 ) + cor0.col1 * col2 + + 41 * col2 AS col2 FROM tab0 AS cor0
----
103
10823
4191

skipif mysql # not compatible
query I rowsort label-5147
SELECT + col0 / ( - col2 ) + cor0.col1 * col2 + + 41 * col2 AS col2 FROM tab0 AS cor0
----
103
10823
4191

onlyif mysql # use DIV operator for integer division
query I rowsort label-5148
SELECT cor0.col1 DIV col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5148
SELECT cor0.col1 / col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT + col2 + - 67 * col2 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT - col0 * ( col0 ) - cor0.col2 FROM tab0 AS cor0
----
-1226
-609
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT DISTINCT - 96 DIV col2 + + 15 DIV - col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - 96 / col2 + + 15 / - col2 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 18 * col2 col2 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT - 31 * + col1 AS col1 FROM tab0
----
-2666
-2821
-3007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab0.col2 col0 FROM tab0
----
171
36
57

query I rowsort
SELECT 14 * col2 + + ( col1 ) AS col1 FROM tab1 AS cor0
----
1357
782
808

query I rowsort
SELECT DISTINCT + 63 * cor0.col1 FROM tab2 AS cor0
----
1071
1953
3717

query I rowsort
SELECT ALL + - 36 * col1 * + 96 + + col2 FROM tab0 cor0
----
-297183
-314414
-335231

onlyif mysql # use DIV operator for integer division
query I rowsort label-5158
SELECT ALL - ( - col2 ) DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL - ( - col2 ) / - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT + col0 + ( 29 + - col2 ) * + ( col0 ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-12008
13884
441

onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT ALL col0 DIV col0 + + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL col0 / col0 + + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL col0 * + ( - col1 ) - - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT DISTINCT cor0.col0 * ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5163
SELECT + col0 + CAST( - col1 AS SIGNED ) * - col2 FROM tab1 cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-5163
SELECT + col0 + CAST ( - col1 AS INTEGER ) * - col2 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT + col0 + - ( + 35 ) AS col1 FROM tab2 AS cor0
----
-28
43
44

query I rowsort
SELECT DISTINCT + + col0 * + col1 + 1 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT DISTINCT + col1 * col1 - col0 * col1 AS col0 FROM tab2 cor0
----
-1054
-1121
744

query I rowsort
SELECT DISTINCT col0 * 23 AS col2 FROM tab1 AS cor0
----
1472
1840
69

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 * col1 + col0 + - col0 AS col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL - col1 * 31 - 67 * col2 FROM tab1 AS cor0
----
-4129
-4424
-6835

onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT ALL col2 * col0 + - ( - col1 * col0 ) + + col0 DIV - col0 AS col1 FROM tab1
----
239
4287
8719

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL col2 * col0 + - ( - col1 * col0 ) + + col0 / - col0 AS col1 FROM tab1
----
239
4287
8719

query I rowsort
SELECT ALL col1 * + col2 * 36 + col0 AS col0 FROM tab1
----
20584
45008
50547

onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT ALL 83 + col1 DIV + col2 FROM tab0
----
180
84
85

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL 83 + col1 / + col2 FROM tab0
----
180
84
85

query I rowsort
SELECT DISTINCT - - 75 AS col2 FROM tab0, tab1, tab1 AS cor0
----
75

query I rowsort
SELECT ALL + 93 * + col0 + + col0 FROM tab1
----
282
6016
7520

query I rowsort
SELECT ALL - cor1.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + 91 * + ( col2 * + ( + col1 ) ) FROM tab0 AS cor0
----
258258
679042
8827

query I rowsort
SELECT DISTINCT - - 1 * + col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 AS col1 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * cor0.col0 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + - 95 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT cor0.col2 * ( cor0.col1 ) FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + + col1 col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL - col0 * - 38 AS col2 FROM tab1 AS cor0
----
114
2432
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5184
SELECT DISTINCT - - 21 * col1 + cor0.col1 + CAST( + cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
1978
2093
2231

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - - 21 * col1 + cor0.col1 + CAST ( + cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT 23 * cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c2c3417081c7f0f20bb517f6c814db29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 + col2 + col0 * tab1.col0 * 36 col0 FROM tab1
----
147561
230544
426

query I rowsort
SELECT col1 * + 12 * col0 AS col1 FROM tab0 AS cor0
----
24768
40740
97188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5188
SELECT - CAST( + 17 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-20
-81
-97

skipif mysql # not compatible
query I rowsort label-5188
SELECT - CAST ( + 17 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-20
-81
-97

query I rowsort
SELECT + 25 + col1 AS col2 FROM tab2
----
42
56
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - tab0.col1 ) col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + 56 * col0 + col0 AS col1 FROM tab1
----
171
3648
4560

query I rowsort
SELECT ( - 63 ) + - col0 * + col1 FROM tab0
----
-2127
-3458
-8162

query I rowsort
SELECT - col1 * + col0 + col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL ( - col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col0 * col2 - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + 86 * col0 AS col2 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT DISTINCT 36 * + col0 * col0 + + col0 FROM tab0 AS cor0
----
20760
285245
44135

query I rowsort
SELECT - ( col2 ) - - 88 FROM tab2 AS cor0
----
50
61
62

query I rowsort
SELECT DISTINCT - - col2 * - col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col2 * + col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5201
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) * 30 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) * 30 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 - + 67 * - cor0.col2 FROM tab2 cor0
----
1664
1802
2467

query I rowsort
SELECT - - cor0.col0 + - ( col0 + cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT ALL - 69 DIV 51 FROM tab2, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - 69 / 51 FROM tab2, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 * - col1 * col2 col0 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5206
SELECT ALL + CAST( NULL AS SIGNED ) + - 17 + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + CAST ( NULL AS INTEGER ) + - 17 + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5207
SELECT ALL - + col2 + - ( + col0 + + CAST( NULL AS SIGNED ) ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - + col2 + - ( + col0 + + CAST ( NULL AS INTEGER ) ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 * + col1 col2 FROM tab2 cor0
----
-1462
-2666
-5074

query I rowsort
SELECT - ( 10 ) AS col0 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + - col2 - col1 AS col2 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5211
SELECT + col0 * tab2.col1 + + col1 DIV + col1 AS col1 FROM tab2
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-5211
SELECT + col0 * tab2.col1 + + col1 / + col1 AS col1 FROM tab2
----
1344
218
4603

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * col2 ) NOT IN ( tab1.col2 * + col2 * col0 - - col1 )
----

query I rowsort
SELECT tab1.col2 * + col1 + + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + col0 * col0 AS col2 FROM tab0 WHERE NULL IN ( col0 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - col1 + tab2.col1 FROM tab2 WHERE NOT NULL IN ( - col1 * + tab2.col0 )
----

query I rowsort
SELECT DISTINCT col1 + col0 + col1 AS col1 FROM tab0
----
196
229
271

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( + col1 ) NOT IN ( col2 )
----

query I rowsort
SELECT col0 + col0 AS col1 FROM tab1 WHERE col0 IN ( col2 )
----

query I rowsort
SELECT ALL + col0 * col2 + - col2 AS col0 FROM tab2
----
162
2002
2964

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( col2 * + tab2.col1 )
----

query I rowsort
SELECT ALL + col1 * - col2 * + col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT tab1.col1 - + col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col2 + + col2 * col1 - col0 FROM tab0
----
2781
61
7291

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( + col1 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 * + col1 ) = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col2 * tab1.col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + col0 * - col2 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * - tab2.col0 col2 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT - col0 + - col1 + + col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL tab0.col0 * - col1 + col1 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT + col0 DIV tab1.col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5234
SELECT + col0 / tab1.col0 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT ALL + + cor0.col2 * - cor0.col1 + + col0 DIV + col0 AS col2 FROM tab0 cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + + cor0.col2 * - cor0.col1 + + col0 / + col0 AS col2 FROM tab0 cor0
----
-2837
-7461
-96

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( col0 * - col1 + col1 )
----

query I rowsort
SELECT DISTINCT + col1 - col1 * col0 * - col1 AS col0 FROM tab0 AS cor0
----
177590
329412
737100

onlyif mysql # use DIV operator for integer division
query I rowsort label-5239
SELECT ALL - col1 + + col1 + + col1 DIV - col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL - col1 + + col1 + + col1 / - col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT ( NULL ) <> - col0 + col2 - + col2
----

query I rowsort
SELECT col1 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <> ( + col2 - - col1 )
----

query I rowsort
SELECT 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5244
SELECT - CAST( 3 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif mysql # not compatible
query I rowsort label-5244
SELECT - CAST ( 3 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT - cor0.col0 - + 55 * - col2 AS col1 FROM tab2 AS cor0
----
1352
1478
2011

query I rowsort
SELECT ALL col1 * + 92 AS col0 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT ALL col2 * + 93 - 77 AS col2 FROM tab2 AS cor0
----
2341
2434
3457

query I rowsort
SELECT DISTINCT col1 * - 13 AS col1 FROM tab2 AS cor0
----
-221
-403
-767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5249
SELECT col1 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT col1 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 + - ( - cor0.col2 ) FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + col0 * 75 + col2 AS col0 FROM tab2 cor0
----
552
5876
5963

query I rowsort
SELECT ALL - - cor0.col0 * ( + col2 ) FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) + col2 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ( + cor0.col0 ) * col0 + - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT 68 - + col0 AS col1 FROM tab1 AS cor0
----
-12
4
65

query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT 76 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT DISTINCT + + 69 DIV col0 - - col0 AS col2 FROM tab0 AS cor0
----
26
36
89

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT + + 69 / col0 - - col0 AS col2 FROM tab0 AS cor0
----
26
36
89

query I rowsort
SELECT ALL cor0.col0 * - cor0.col0 + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c3972741ff878e102cd32f24309075c0

query I rowsort
SELECT tab2.col0 + tab2.col0 * - col2 AS col2 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL + - 79 FROM tab1 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL - col2 * col2 + 47 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1694
-2779
-8605

query I rowsort
SELECT ALL + col1 + - col2 * col1 AS col0 FROM tab1
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5264
SELECT ALL cor0.col1 * + CAST( NULL AS SIGNED ) + + col1 / - col1 + 5 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL cor0.col1 * + CAST ( NULL AS INTEGER ) + + col1 / - col1 + 5 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + 41 * + col2 FROM tab2 AS cor0
----
1100
1479
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT ALL - col2 DIV + col0 - col2 AS col1 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL - col2 / + col0 - col2 AS col1 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT + 28 + - col1 AS col0 FROM tab0
----
-58
-63
-69

query I rowsort
SELECT col0 + + col0 * + 7 FROM tab0
----
192
280
712

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT ALL + col2 * col1 + + col1 DIV - tab0.col1 - col1 * col0 FROM tab0
----
-3299
-638
773

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + col2 * col1 + + col1 / - tab0.col1 - col1 * col0 FROM tab0
----
-3299
-638
773

query I rowsort
SELECT col0 + 46 * col1 FROM tab0 cor0
----
3980
4275
4497

query I rowsort
SELECT DISTINCT - + col0 + + 87 FROM tab1 AS cor0
----
23
7
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col2 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 + col0 * tab1.col0 * + col1 FROM tab1
----
180
40903
83104

query I rowsort
SELECT DISTINCT col2 * + tab0.col1 * - col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - col2 * 1 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT + 11 DIV 90 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5276
SELECT + 11 / 90 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + col1 * - col1 AS col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - col2 * ( - col2 ) + col1 + col2 * col1 FROM tab2
----
1597
2107
2269

query I rowsort
SELECT DISTINCT - 11 * tab0.col0 AS col0 FROM tab0
----
-264
-385
-979

query I rowsort
SELECT - ( + 93 ) + col2 FROM tab1
----
-36
-39
3

query I rowsort
SELECT ALL 17 * + col2 FROM tab0 cor0
----
1394
17
561

query I rowsort
SELECT - 61 * col2 AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * col1 + - col2 * col2 col0 FROM tab1 AS cor0
----
-3349
-3592
-9385

query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) + - col1 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5285
SELECT col0 * col0 + tab0.col2 DIV + col0 FROM tab0
----
1225
577
7921

skipif mysql # not compatible
query I rowsort label-5285
SELECT col0 * col0 + tab0.col2 / + col0 FROM tab0
----
1225
577
7921

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2 cor0
----
87

query I rowsort
SELECT DISTINCT col0 + col0 - ( 80 + col1 ) * col1 FROM tab2 AS cor0
----
-1491
-3427
-8045

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5288
SELECT DISTINCT col2 + col2 - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
253
37
90

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT col2 + col2 - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT + - cor0.col2 + - col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - - col0 + col1 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - 53 * + col0 AS col0 FROM tab2 AS cor0
----
-371
-4134
-4187

query I rowsort
SELECT DISTINCT - - col1 * - 7 FROM tab0 AS cor0
----
-602
-637
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 80 col0 FROM tab1 AS cor0
----
134
137
176

query I rowsort
SELECT DISTINCT col2 * - ( - 97 ) FROM tab1 AS cor0
----
5238
5529
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5295
SELECT + cor0.col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5295
SELECT + cor0.col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col2 + 7 FROM tab2 AS cor0
----
33
34
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5297
SELECT ALL + - col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + - col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - col1 + ( cor0.col2 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col1 * col1 - - ( 21 + - tab2.col2 ) AS col2 FROM tab2
----
-306
-3486
-967

onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT ALL + col2 + ( col0 + - col0 ) * cor0.col2 DIV col1 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + col2 + ( col0 + - col0 ) * cor0.col2 / col1 AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5301
SELECT DISTINCT + col0 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT + col0 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT 62 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT DISTINCT - col0 + cor0.col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT - col0 + cor0.col0 / + col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT - cor0.col2 * - col0 * col0 AS col0 FROM tab2 cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + cor0.col0 + - col1 col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col2 + + col2 * cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
134
3601
7597

query I rowsort
SELECT - 62 + - col1 * + col0 * - col1 FROM tab1 AS cor0
----
13458
1966
6338

query I rowsort
SELECT + cor0.col1 + - col1 + - cor0.col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 + + col0 * col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT 40 + - col0 + - col0 * + col0 FROM tab0 cor0
----
-1220
-560
-7970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5311
SELECT ALL CAST( NULL AS SIGNED ) * - 62 + tab1.col0 * - col2 * - col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL CAST ( NULL AS INTEGER ) * - 62 + tab1.col0 * - col2 * - col2 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + + col2 + col1 FROM tab2 cor0
----
111
85
93

query I rowsort
SELECT ALL ( + tab2.col2 ) * + col0 + col2 * col0 FROM tab2
----
378
4056
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-5314
SELECT DISTINCT + - col1 DIV + cor0.col0 + - col1 + + cor0.col0 FROM tab1 AS cor0
----
-31
54
67

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT + - col1 / + cor0.col0 + - col1 + + cor0.col0 FROM tab1 AS cor0
----
-31
54
67

query I rowsort
SELECT 56 * cor0.col0 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT DISTINCT - ( - col1 ) * - col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT + + 46 * col2 + - col0 * col2 - col0 FROM tab1 AS cor0
----
-1090
-3344
2319

onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT + col1 DIV col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5318
SELECT + col1 / col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 58 + col0 FROM tab2 AS cor0
----
136
137
65

query I rowsort
SELECT - - 38 * cor0.col2 - col2 FROM tab1 AS cor0
----
1998
2109
3552

onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT - - col1 DIV col0 + col1 AS col1 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-5321
SELECT - - col1 / col0 + col1 AS col1 FROM tab1 AS cor0
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 * 94 col2 FROM tab0 AS cor0
----
-2170
-3193
-8275

onlyif mysql # use DIV operator for integer division
query I rowsort label-5323
SELECT col1 DIV 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT col1 / 63 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 16 * cor0.col2 FROM tab1 AS cor0
----
-1536
-864
-912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5325
SELECT - CAST( NULL AS SIGNED ) + + 50 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5325
SELECT - CAST ( NULL AS INTEGER ) + + 50 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 45 + - col2 FROM tab1 AS cor0
----
-12
-51
-9

query I rowsort
SELECT + - col2 - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + col1 * col2 - - 78 FROM tab1
----
1326
1482
648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * col0 col0 FROM tab0 cor0
----
-1152
-1680
-4272

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
57

query I rowsort
SELECT - 93 FROM tab0, tab1 cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT + col1 DIV + 28 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5332
SELECT + col1 / + 28 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5333
SELECT CAST( ( + col2 ) * - col1 + - col0 AS SIGNED ) FROM tab2
----
-1612
-725
-844

skipif mysql # not compatible
query I rowsort label-5333
SELECT CAST ( ( + col2 ) * - col1 + - col0 AS INTEGER ) FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT col1 + + 80 FROM tab0 AS cor0
----
166
171
177

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ( cor0.col2 ) + - col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-5337
SELECT + col1 + - col2 DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5337
SELECT + col1 + - col2 / - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 97 + col2 AS col2 FROM tab1
----
-1
-40
-43

query I rowsort
SELECT ALL + ( cor0.col1 ) * ( - cor0.col1 * col0 ) AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-5340
SELECT ALL - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL - col2 / col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5341
SELECT DISTINCT 5 + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT 5 + col1 / - col1 AS col0 FROM tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT 74 * + col1 AS col0 FROM tab2 AS cor0
----
1258
2294
4366

onlyif mysql # use DIV operator for integer division
query I rowsort label-5343
SELECT DISTINCT + + 23 + - col0 DIV 7 FROM tab0 AS cor0
----
11
18
20

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT + + 23 + - col0 / 7 FROM tab0 AS cor0
----
11
18
20

query I rowsort
SELECT DISTINCT - col1 + ( - col2 ) FROM tab2
----
-55
-58
-85

query I rowsort
SELECT - cor0.col0 * - ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( + col1 * col2 ) + + 22 * + col0 * col2 col2 FROM tab0
----
10179
261492
839598

query I rowsort
SELECT - col1 * - col0 * ( col2 ) - + tab1.col0 AS col0 FROM tab1
----
36416
4209
99760

query I rowsort
SELECT DISTINCT + col2 + - 9 FROM tab0
----
-8
24
73

query I rowsort
SELECT + 77 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT col2 * col0 + + col1 * col0 + - ( ( + col2 ) ) * + col2 FROM tab2 cor0
----
-323
2901
5954

onlyif mysql # use DIV operator for integer division
query I rowsort label-5351
SELECT col0 * 32 DIV - col1 + + col0 FROM tab1 AS cor0
----
-116
-140
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT col0 * 32 / - col1 + + col0 FROM tab1 AS cor0
----
-116
-140
0

query I rowsort
SELECT col2 * 50 + 26 * + col0 FROM tab1 AS cor0
----
2778
4514
6880

query I rowsort
SELECT DISTINCT - col0 + 78 * + col0 FROM tab1 cor0
----
231
4928
6160

query I rowsort
SELECT ALL + 66 * 65 - col0 FROM tab0 AS cor0
----
4201
4255
4266

query I rowsort
SELECT DISTINCT + + cor0.col1 * - cor0.col1 + cor0.col1 * cor0.col2 * - 69 FROM tab2 AS cor0
----
-109327
-44863
-58714

query I rowsort
SELECT ALL + 31 * + col1 * col2 - ( col2 ) FROM tab2 AS cor0
----
19988
25920
47528

query I rowsort
SELECT ALL ( - col2 ) + + col2 * + col1 - col1 * col1 FROM tab0 AS cor0
----
-4591
-901
-9313

query I rowsort
SELECT + 59 AS col2 FROM tab0 cor0
----
59
59
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5361
SELECT - CAST( - 7 AS SIGNED ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
182
189
266

skipif mysql # not compatible
query I rowsort label-5361
SELECT - CAST ( - 7 AS INTEGER ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT DISTINCT + col0 + - col2 - col2 AS col1 FROM tab2 AS cor0
----
-47
26
3

query I rowsort
SELECT + 44 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + col1 * + 10 FROM tab1
----
100
130
260

query I rowsort
SELECT ALL + col2 * - col1 * col2 AS col0 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT + col0 * + 32 AS col1 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT DISTINCT - + col1 * ( + 69 ) AS col0 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT + 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL 64 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col2 FROM tab1, tab1 AS cor0
----
32

query I rowsort
SELECT cor0.col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL 9 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT DISTINCT col1 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + + col2 * col0 + + col1 * + col2 * ( - col0 ) + col2 FROM tab1 AS cor0
----
-32775
-3996
-92064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * cor0.col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col1 * - col1 * + tab2.col0 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT - 8 FROM tab1, tab0 AS cor0
----
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT ALL col2 DIV + 93 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL col2 / + 93 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col1 * col2 + + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + 25 + col2 AS col1 FROM tab0
----
107
26
58

query I rowsort
SELECT DISTINCT + ( col1 ) + col0 + col1 FROM tab2
----
113
196
69

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) + + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - ( col0 ) + + col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + tab2.col2 * + col1 AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT - + 88 * - col1 FROM tab2 AS cor0
----
1496
2728
5192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 + - col1 col0 FROM tab1
----
37
50
53

query I rowsort
SELECT 32 * 13 * col1 AS col2 FROM tab2
----
12896
24544
7072

query I rowsort
SELECT ALL - ( + col0 ) + col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 60 col1 FROM tab0
----
-1980
-4920
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5390
SELECT ALL 15 * col0 + + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL 15 * col0 + + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT - col2 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-5391
SELECT - col2 + col2 / col1 AS col0 FROM tab1 AS cor0
----
-52
-52
-89

query I rowsort
SELECT + - 90 AS col0 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL + + 25 * + col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT DISTINCT + col0 * + col0 * + cor0.col2 + col1 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab0 cor0
----
-84

query I rowsort
SELECT DISTINCT - + col0 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + col1 + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + 14 * col2 + 34 AS col1 FROM tab2 AS cor0
----
398
412
566

onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT ALL - cor0.col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - cor0.col2 / col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - col1 * col2 * + cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
-611802
-93621
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col1 col1 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5402
SELECT + col2 DIV col1 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5402
SELECT + col2 / col1 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 62 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-416888
-62
-67518

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab1
----
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5405
SELECT - col2 + col0 * CAST( 66 + col2 AS SIGNED ) FROM tab1 AS cor0
----
12864
306
7815

skipif mysql # not compatible
query I rowsort label-5405
SELECT - col2 + col0 * CAST ( 66 + col2 AS INTEGER ) FROM tab1 AS cor0
----
12864
306
7815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col1 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5408
SELECT + - col0 DIV cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5408
SELECT + - col0 / cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 * + col1 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT 71 * + col0 AS col2 FROM tab2
----
497
5538
5609

query I rowsort
SELECT - 60 + col1 FROM tab1
----
-34
-47
-50

query I rowsort
SELECT + col1 + - 70 * + col1 FROM tab2 cor0
----
-1173
-2139
-4071

query I rowsort
SELECT cor0.col1 + - ( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col0 * 57 FROM tab2 cor0
----
-399
-4446
-4503

query I rowsort
SELECT ALL + - cor0.col1 + + col1 AS col1 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 * 97 * - col0 col2 FROM tab1 AS cor0
----
-23571
-502848
-628560

query I rowsort
SELECT DISTINCT ( + 62 ) FROM tab2 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col1 + col2 col0 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-5419
SELECT DISTINCT ( col1 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT ( col1 ) / + col0 AS col1 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT ALL + 66 FROM tab1 cor0
----
66
66
66

query I rowsort
SELECT ALL + - 40 * col1 AS col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 10 ) col1 FROM tab1
----
10
10
10

query I rowsort
SELECT ( + 58 ) + + col2 AS col1 FROM tab0 AS cor0
----
140
59
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5424
SELECT ALL + - 88 + 96 DIV - col0 FROM tab0 AS cor0
----
-89
-90
-92

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + - 88 + 96 / - col0 FROM tab0 AS cor0
----
-89
-90
-92

query I rowsort
SELECT - ( col0 ) * + col1 + ( cor0.col2 ) * - cor0.col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT DISTINCT + col1 - + 23 AS col0 FROM tab0
----
63
68
74

query I rowsort
SELECT ALL + - ( col1 ) * col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT 79 + col2 * - col1 - 83 FROM tab1 AS cor0
----
-1252
-1408
-574

onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT + + 46 * col2 + col0 - col1 DIV + 96 AS col2 FROM tab0 cor0
----
1542
3861
80

skipif mysql # not compatible
query I rowsort label-5429
SELECT + + 46 * col2 + col0 - col1 / + 96 AS col2 FROM tab0 cor0
----
1542
3861
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT CAST( - col0 AS SIGNED ) + + col1 * col1 - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
37
674
90

skipif mysql # not compatible
query I rowsort label-5430
SELECT CAST ( - col0 AS INTEGER ) + + col1 * col1 - col2 / - col2 AS col1 FROM tab1 AS cor0
----
37
674
90

query I rowsort
SELECT DISTINCT 60 + tab2.col1 + tab2.col2 FROM tab2
----
115
118
145

query I rowsort
SELECT - col2 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT + ( col1 ) * col0 + - 16 FROM tab2 AS cor0
----
1327
201
4586

query I rowsort
SELECT 93 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5435
SELECT 2 + + tab0.col1 * + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5435
SELECT 2 + + tab0.col1 * + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 55 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL ( + col2 ) * tab1.col2 + col0 + 27 * - col0 FROM tab1
----
1585
2838
7136

query I rowsort
SELECT - cor0.col2 * 18 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT ALL + col2 + 99 * col1 FROM tab1 AS cor0
----
1047
1383
2628

query I rowsort
SELECT ALL cor2.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + + 21 col1 FROM tab1 AS cor0
----
101
24
85

query I rowsort
SELECT ALL + 39 * col2 AS col1 FROM tab0 cor0
----
1287
3198
39

query I rowsort
SELECT DISTINCT col0 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT ( col1 ) + col0 * col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col0 * - 46 + - col1 FROM tab1 AS cor0
----
112
2934
3667

onlyif mysql # use DIV operator for integer division
query I rowsort label-5446
SELECT DISTINCT col2 * - col2 + col1 DIV - 56 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT col2 * - col2 + col1 / - 56 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + 42 * col1 FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT ALL + 41 * col1 FROM tab1 AS cor0
----
1066
410
533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - 65 * col1 col2 FROM tab1 AS cor0
----
-1687
-586
-765

query I rowsort
SELECT DISTINCT - ( - 64 ) AS col0 FROM tab2 AS cor0
----
64

query I rowsort
SELECT + 58 - 19 * - col2 AS col1 FROM tab1 AS cor0
----
1084
1141
1882

query I rowsort
SELECT ALL 2 * - col0 + + col0 * ( col1 ) FROM tab1 AS cor0
----
512
72
880

query I rowsort
SELECT - - col0 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5454
SELECT DISTINCT - CAST( 15 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-255
-465
-885

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT - CAST ( 15 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-255
-465
-885

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5455
SELECT ALL - CAST( col1 AS SIGNED ) * - col2 * - 28 + + col0 * col1 FROM tab0 cor0
----
-200837
-77400
679

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - CAST ( col1 AS INTEGER ) * - col2 * - 28 + + col0 * col1 FROM tab0 cor0
----
-200837
-77400
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5456
SELECT - CAST( col1 AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT - CAST ( col1 AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + 95 * - col2 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT - 38 * + col2 AS col2 FROM tab1 AS cor0
----
-2052
-2166
-3648

query I rowsort
SELECT col0 * - col2 + + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + 14 + + col1 AS col0 FROM tab2 AS cor0
----
31
45
73

query I rowsort
SELECT + col2 * + 94 * - col2 FROM tab2
----
-135736
-63544
-68526

onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT DISTINCT col2 DIV - 56 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT col2 / - 56 AS col1 FROM tab0
----
-1
0

query I rowsort
SELECT ALL + col0 + + col1 * cor0.col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - - col2 + + cor0.col1 + ( ( - cor0.col1 ) ) * + col2 AS col1 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT ALL + col1 * - ( - 61 * col0 ) FROM tab2 cor0
----
13237
280722
81923

query I rowsort
SELECT ALL col2 * 1 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * + col2 * - col0 col0 FROM tab1
----
-182400
-384000
-8100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5469
SELECT ALL + + col2 * CAST( 3 AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
165
235
368

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + + col2 * CAST ( 3 AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
165
235
368

onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT ALL - cor0.col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - cor0.col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col1 + col0 * col2 + - col2 FROM tab1 AS cor0
----
134
3601
7597

query I rowsort
SELECT ALL cor0.col2 * - 49 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT DISTINCT - + col0 * - 1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - + col0 * col2 * col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT DISTINCT - col1 + - col0 DIV col0 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-5475
SELECT DISTINCT - col1 + - col0 / col0 col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT + + col0 + col2 * + ( - cor0.col0 * + 24 ) FROM tab2 cor0
----
-4529
-48594
-71969

query I rowsort
SELECT ALL - cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + 71 FROM tab1 cor0
----
-25
14
17

query I rowsort
SELECT DISTINCT - + col0 * 26 FROM tab2 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT ALL col0 + col1 * - 69 AS col1 FROM tab2
----
-1094
-2132
-3993

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5481
SELECT ( - col0 + - CAST( col2 AS SIGNED ) ) FROM tab2
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-5481
SELECT ( - col0 + - CAST ( col2 AS INTEGER ) ) FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL 69 * col1 + col1 + + col0 FROM tab1
----
1823
764
990

query I rowsort
SELECT + col0 * + 57 * cor0.col2 AS col0 FROM tab1 AS cor0
----
207936
437760
9234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col0 + - col0 * + col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - ( col0 ) + CAST ( + 90 AS REAL ) * + col0 + cor0.col2 FROM tab2 cor0
----
650
6968
7069

onlyif mysql # use DIV operator for integer division
query I rowsort label-5487
SELECT ( + tab1.col1 ) DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5487
SELECT ( + tab1.col1 ) / + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( col1 ) - col2 * col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT col2 * + col1 - cor0.col0 FROM tab0 AS cor0
----
2814
62
7373

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 + tab1.col0 * tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col0 + + col0 * 83 + - col2 * - col1 FROM tab1
----
1656
5946
7968

query I rowsort
SELECT ALL tab2.col1 * col0 + + ( 59 ) * - col0 FROM tab2
----
-196
-3318
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5494
SELECT ALL - ( col1 ) / + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - ( col1 ) / + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 37 * - col0 + 35 FROM tab1
----
146
2403
2995

query I rowsort
SELECT DISTINCT - 22 * col1 + - 73 * 21 FROM tab0
----
-3425
-3535
-3667

query I rowsort
SELECT ALL - col1 + col2 + - col0 * col2 FROM tab2
----
-193
-2061
-2981

query I rowsort
SELECT ALL + col0 * col2 + col0 + col2 FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT + + col1 + - cor0.col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT DISTINCT - col2 DIV col1 + + cor0.col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1113
699
79

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT - col2 / col1 + + cor0.col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1113
699
79

query I rowsort
SELECT 41 * col1 + - ( cor0.col1 ) FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT DISTINCT - + col1 + - col1 * col1 FROM tab2 AS cor0
----
-306
-3540
-992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col2 col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5504
SELECT ALL 66 + col1 * CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL 66 + col1 * CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 61 FROM tab2 AS cor0
----
61

query I rowsort
SELECT DISTINCT + col0 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col0 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - 85 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ( 70 ) FROM tab2
----
70
70
70

query I rowsort
SELECT - + col2 * - col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
13448
2
2178

query I rowsort
SELECT - - col0 * 43 + + col0 + + col0 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT col2 * 51 FROM tab0 cor0
----
1683
4182
51

query I rowsort
SELECT - ( + cor0.col2 ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 87 * cor0.col2 * col0 FROM tab0 cor0
----
3045
634926
68904

query I rowsort
SELECT DISTINCT - - cor0.col2 - - col1 * col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT cor0.col1 * - cor0.col2 + cor0.col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL ( + cor0.col0 ) + - col0 * 84 FROM tab0 AS cor0
----
-1992
-2905
-7387

query I rowsort
SELECT + + 64 * col2 + col1 AS col0 FROM tab1 AS cor0
----
3482
3658
6157

query I rowsort
SELECT ALL + col0 + 72 FROM tab0 cor0
----
107
161
96

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + col2 + col1 - col1 AS col2 FROM tab1 AS cor0
----
54
57
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL - col0 * + 1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort
SELECT - col1 + - CAST ( + ( col2 ) AS REAL ) AS col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - 76 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

query I rowsort
SELECT DISTINCT - + col1 * col1 + col2 * + col0 FROM tab1 AS cor0
----
-514
3548
7511

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - 72 * col0 col1 FROM tab0 AS cor0
----
-2485
-936
890

query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 * - col0 * col2 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT ALL + col2 * + tab0.col2 + tab0.col2 * col1 - + col0 * - 83 AS col1 FROM tab0
----
21573
3003
5919

query I rowsort
SELECT col0 * + col0 - 83 AS col1 FROM tab1
----
-74
4013
6317

query I rowsort
SELECT ALL col2 + col0 - + 45 * - col0 AS col1 FROM tab1
----
192
3001
3776

query I rowsort
SELECT ALL 35 FROM tab1, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT - col2 + + col1 * - col2 FROM tab0
----
-2871
-7544
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5534
SELECT ALL - tab2.col2 + + CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - tab2.col2 + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT + col0 + - col0 * + col1 * + 38 FROM tab2 AS cor0
----
-174798
-50955
-8239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5536
SELECT ALL - tab0.col2 + CAST( + col1 AS SIGNED ) * col2 col2 FROM tab0
----
2805
7380
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL - tab0.col2 + CAST ( + col1 AS INTEGER ) * col2 col2 FROM tab0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT + col0 + + 45 DIV - col0 AS col1 FROM tab2 AS cor0
----
1
78
79

skipif mysql # not compatible
query I rowsort label-5537
SELECT + col0 + + 45 / - col0 AS col1 FROM tab2 AS cor0
----
1
78
79

query I rowsort
SELECT ALL + col2 * 50 AS col2 FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT ALL col2 + ( - col0 ) * + col1 AS col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + 21 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - col1 + - 92 FROM tab1
----
-102
-105
-118

query I rowsort
SELECT ALL col2 + + col2 + + col0 AS col0 FROM tab1
----
111
178
272

query I rowsort
SELECT ( 49 ) * tab2.col1 * + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e309d38f00f691f95f710d6d82c55709

query I rowsort
SELECT + + col0 * col0 - col0 * ( col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
-2019
-2304
-7120

query I rowsort
SELECT + col0 * - 80 + col2 AS col0 FROM tab2 AS cor0
----
-533
-6214
-6282

onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT col2 DIV - tab1.col0 AS col2 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5546
SELECT col2 / - tab1.col0 AS col2 FROM tab1
----
-1
-18
0

query I rowsort
SELECT col2 * + ( - tab0.col1 + + tab0.col0 ) * - col1 FROM tab0
----
14924
175956
6014

query I rowsort
SELECT DISTINCT 74 * + col0 FROM tab0
----
1776
2590
6586

query I rowsort
SELECT ALL - 44 * col0 FROM tab1
----
-132
-2816
-3520

query I rowsort
SELECT + col2 * 92 AS col1 FROM tab0
----
3036
7544
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 * + col2 col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT - - 30 + + 72 + col0 AS col1 FROM tab1 cor0
----
105
166
182

query I rowsort
SELECT + col1 * + 38 FROM tab2 AS cor0
----
1178
2242
646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5554
SELECT DISTINCT + 32 * + col2 * col2 - CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + 32 * + col2 * col2 - CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + col2 * + col2 * 89 AS col2 FROM tab2
----
128533
60223
64912

query I rowsort
SELECT ALL cor0.col1 - col1 * col0 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-5557
SELECT DISTINCT - 61 + col2 DIV + col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT - 61 + col2 / + col2 FROM tab1 AS cor0
----
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5558
SELECT ALL + - col2 * - col0 + - 18 - - cor0.col1 DIV col1 col1 FROM tab0 AS cor0
----
18
7281
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL + - col2 * - col0 + - 18 - - cor0.col1 / col1 col1 FROM tab0 AS cor0
----
18
7281
775

query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5560
SELECT ALL col1 DIV ( col0 ) col0 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL col1 / ( col0 ) col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT col2 * 78 + 50 * col2 * + 40 FROM tab0 AS cor0
----
170396
2078
68574

onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT col0 DIV CAST( ( + col2 ) * CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT col0 / CAST ( ( + col2 ) * CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5563
SELECT col2 + - 39 DIV + col1 FROM tab1 AS cor0
----
53
54
93

skipif mysql # not compatible
query I rowsort label-5563
SELECT col2 + - 39 / + col1 FROM tab1 AS cor0
----
53
54
93

query I rowsort
SELECT ALL - col0 + + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + - col1 - 19 * col0 * col1 FROM tab2 cor0
----
-25534
-4154
-87497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( tab2.col0 ) col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - - col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col2 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + ( - col0 ) + col2 * + tab2.col1 AS col2 FROM tab2
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5570
SELECT DISTINCT - col0 + col0 DIV - col0 AS col0 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT - col0 + col0 / - col0 AS col0 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT DISTINCT + ( 83 ) + + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
109
110
121

query I rowsort
SELECT ALL + col2 + col0 + + col2 AS col1 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT - 14 * col2 + ( - 15 ) AS col2 FROM tab1 AS cor0
----
-1359
-771
-813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5574
SELECT DISTINCT col1 * col2 + 94 * ( - col1 + - CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-8348
-8800
-9115

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT col1 * col2 + 94 * ( - col1 + - CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-8348
-8800
-9115

query I rowsort
SELECT ALL - ( - col1 ) * col0 - col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL ( - col0 ) * 89 + col1 FROM tab1 AS cor0
----
-241
-5686
-7107

query I rowsort
SELECT 99 + + col1 FROM tab1 AS cor0
----
109
112
125

query I rowsort
SELECT DISTINCT + + col2 * cor0.col2 * + 97 + + 15 FROM tab0 AS cor0
----
105648
112
652243

query I rowsort
SELECT - 81 + + col2 AS col1 FROM tab1 AS cor0
----
-24
-27
15

query I rowsort
SELECT - col0 * + col2 + + col2 * - col1 FROM tab2 cor0
----
-1026
-3562
-3648

query I rowsort
SELECT + cor0.col2 - ( + 32 ) AS col1 FROM tab0 AS cor0
----
-31
1
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col2 col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - - col0 + - 26 AS col1 FROM tab0 AS cor0
----
-2
63
9

query I rowsort
SELECT - - col1 * + 39 + col2 FROM tab0 AS cor0
----
3387
3631
3784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + col0 * + 11 FROM tab0 cor0
----
264
385
979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col1 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5588
SELECT - - CAST( - col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-5588
SELECT - - CAST ( - col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 88 * col0 col0 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT ( 56 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 9cee91ca9c60ba6e45a33b388a3b7d9b

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col1 - + 21 AS col0 FROM tab1 AS cor0
----
1019
57
619

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5592
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 21 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
-146
-193
-543

query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + + 49 FROM tab0 cor0
----
49
49
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT - - ( - col1 ) * + col1 + + 22 DIV col2 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9387

skipif mysql # not compatible
query I rowsort label-5596
SELECT - - ( - col1 ) * + col1 + + 22 / col2 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9387

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + cor0.col2 AS REAL ) + - col0 + col0 * 93 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
59513
7305
96736

query I rowsort
SELECT - - cor0.col1 * - col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5600
SELECT ( 94 ) DIV + col1 + 4 AS col0 FROM tab0 AS cor0
----
4
5
5

skipif mysql # not compatible
query I rowsort label-5600
SELECT ( 94 ) / + col1 + 4 AS col0 FROM tab0 AS cor0
----
4
5
5

query I rowsort
SELECT ALL - + col1 + + col2 * - col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL + 25 * - ( - col2 ) FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT ALL col0 * + col0 - 22 AS col0 FROM tab1 cor0
----
-13
4074
6378

query I rowsort
SELECT DISTINCT + ( col0 ) + ( + col2 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col2 - + col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT cor0.col2 * - cor0.col1 + - cor0.col1 FROM tab0 cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 + - cor1.col2 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a62a6691988eb243604ec6133ae5eae4

query I rowsort
SELECT DISTINCT + ( + col2 ) * col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + cor0.col0 + - col2 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5610
SELECT ALL - 72 DIV tab1.col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL - 72 / tab1.col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + col1 + - ( + col1 ) * - tab1.col2 - + col2 FROM tab1
----
1165
1376
523

onlyif mysql # use DIV operator for integer division
query I rowsort label-5612
SELECT - col2 * + col1 + - col2 DIV + col0 AS col1 FROM tab1
----
-1249
-1422
-570

skipif mysql # not compatible
query I rowsort label-5612
SELECT - col2 * + col1 + - col2 / + col0 AS col1 FROM tab1
----
-1249
-1422
-570

query I rowsort
SELECT - tab2.col1 + ( - col2 ) AS col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT col0 * + 6 * 19 + + tab1.col0 + + ( - 85 ) FROM tab1
----
260
7275
9115

query I rowsort
SELECT tab2.col0 * col2 - - col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - col0 * - 3 + - col2 * col1 * col0 AS col0 FROM tab1 cor0
----
-36288
-4203
-99600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5617
SELECT DISTINCT - col1 DIV + col0 + + ( - col1 ) * 55 + 36 AS col1 FROM tab1
----
-1402
-514
-679

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT - col1 / + col0 + + ( - col1 ) * 55 + 36 AS col1 FROM tab1
----
-1402
-514
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-5618
SELECT + col1 + + col1 DIV + ( col0 ) AS col1 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-5618
SELECT + col1 + + col1 / + ( col0 ) AS col1 FROM tab1
----
10
13
34

query I rowsort
SELECT DISTINCT col2 * col1 + ( + 42 * - col0 ) FROM tab0 AS cor0
----
-1373
1830
3724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5620
SELECT ALL cor0.col2 + + col1 DIV 2 AS col2 FROM tab1 AS cor0
----
102
62
67

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL cor0.col2 + + col1 / 2 AS col2 FROM tab1 AS cor0
----
102
62
67

query I rowsort
SELECT DISTINCT + - 55 AS col0 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT col0 * col0 + ( col1 ) FROM tab2 cor0
----
6143
6258
80

query I rowsort
SELECT ALL 55 + + col2 * + cor0.col0 FROM tab0 AS cor0
----
7353
847
90

query I rowsort
SELECT + 41 + - cor1.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 469f7c465d4de19ee80b8b6b03f60787

query I rowsort
SELECT ALL - + col0 - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL ( - col1 ) + col2 * col2 * + col2 FROM tab1 AS cor0
----
157438
185183
884723

query I rowsort
SELECT col0 + + 72 * 34 AS col0 FROM tab1 cor0
----
2451
2512
2528

query I rowsort
SELECT + col0 + 10 * 78 FROM tab1 cor0
----
783
844
860

query I rowsort
SELECT + - col0 * - ( 67 ) AS col0 FROM tab0 AS cor0
----
1608
2345
5963

onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT - col0 DIV tab0.col2 + + col1 * 48 FROM tab0
----
4128
4367
4621

skipif mysql # not compatible
query I rowsort label-5630
SELECT - col0 / tab0.col2 + + col1 * 48 FROM tab0
----
4128
4367
4621

onlyif mysql # use DIV operator for integer division
query I rowsort label-5631
SELECT - col2 + + 29 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-5631
SELECT - col2 + + 29 / col0 AS col1 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
-13

query I rowsort
SELECT ALL - - col1 * 97 FROM tab2 AS cor0
----
1649
3007
5723

query I rowsort
SELECT + 61 * cor0.col2 * - col2 FROM tab0 AS cor0
----
-410164
-61
-66429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * 23 col1 FROM tab2 cor0
----
-667
-667
-667

query I rowsort
SELECT col2 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5

query I rowsort
SELECT ALL + + col1 + 19 FROM tab2 AS cor0
----
36
50
78

query I rowsort
SELECT DISTINCT + ( + 32 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT + - ( + col0 ) * - col2 * + ( 20 ) FROM tab2 AS cor0
----
3780
40560
60040

query I rowsort
SELECT + 76 * + col2 AS col2 FROM tab2 AS cor0
----
1976
2052
2888

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT + + 97 * col0 - - col0 DIV - ( col0 * + col0 + - col0 ) FROM tab0 AS cor0
----
2328
3395
8633

skipif mysql # not compatible
query I rowsort label-5643
SELECT + + 97 * col0 - - col0 / - ( col0 * + col0 + - col0 ) FROM tab0 AS cor0
----
2328
3395
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT + col0 + - col1 DIV col1 + 8 AS col1 FROM tab1
----
10
71
87

skipif mysql # not compatible
query I rowsort label-5644
SELECT + col0 + - col1 / col1 + 8 AS col1 FROM tab1
----
10
71
87

query I rowsort
SELECT ALL - col2 + col2 * - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-611966
-93687
-98

query I rowsort
SELECT ALL - ( tab1.col1 ) FROM tab1, tab2 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT col0 * + col0 * - col0 - + tab1.col0 FROM tab1
----
-262208
-30
-512080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT + col0 DIV ( + col2 + - 14 ) FROM tab2
----
0
3
6

skipif mysql # not compatible
query I rowsort label-5648
SELECT + col0 / ( + col2 + - 14 ) FROM tab2
----
0
3
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT - col0 DIV 39 AS col2 FROM tab1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT - col0 / 39 AS col2 FROM tab1
----
-1
-2
0

query I rowsort
SELECT ALL tab0.col2 - 61 AS col2 FROM tab0
----
-28
-60
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col0 FROM tab1
----
46

query I rowsort
SELECT + + col1 * col2 + - cor0.col0 * - col1 FROM tab0 AS cor0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT col0 * col0 DIV + 77 FROM tab0
----
102
15
7

skipif mysql # not compatible
query I rowsort label-5654
SELECT col0 * col0 / + 77 FROM tab0
----
102
15
7

query I rowsort
SELECT DISTINCT col2 * + tab1.col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col0 * + 24 AS col0 FROM tab0
----
-2136
-576
-840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5657
SELECT + + CAST( NULL AS SIGNED ) * 17 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT + + CAST ( NULL AS INTEGER ) * 17 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 22 FROM tab1
----
32
35
48

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) * 38 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT DISTINCT col2 * - 52 FROM tab1 cor0
----
-2808
-2964
-4992

query I rowsort
SELECT ( 16 * - col2 ) FROM tab1
----
-1536
-864
-912

query I rowsort
SELECT DISTINCT - ( - 60 ) + - col1 FROM tab2 AS cor0
----
1
29
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5663
SELECT + 20 * col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
173
3
3

skipif mysql # not compatible
query I rowsort label-5663
SELECT + 20 * col1 / + col0 AS col2 FROM tab1 AS cor0
----
173
3
3

query I rowsort
SELECT DISTINCT + 94 * + col0 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT DISTINCT + ( - col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT ( col2 ) DIV col2 + + 83 * + col1 AS col0 FROM tab1 AS cor0
----
1080
2159
831

skipif mysql # not compatible
query I rowsort label-5666
SELECT ( col2 ) / col2 + + 83 * + col1 AS col0 FROM tab1 AS cor0
----
1080
2159
831

query I rowsort
SELECT ALL - 78 * col2 AS col1 FROM tab1 AS cor0
----
-4212
-4446
-7488

query I rowsort
SELECT DISTINCT col0 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + col2 + col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT 89 + - col0 - - col1 FROM tab0 AS cor0
----
151
91

query I rowsort
SELECT ALL 88 + + col2 FROM tab2
----
114
115
126

query I rowsort
SELECT ALL + ( col2 ) * - col1 + + 69 * + col1 FROM tab0
----
-1183
3096
6596

query I rowsort
SELECT ALL col1 + col1 * + col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT + tab1.col0 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5675
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 57 + - 44 * + col0 + + col0 * + col0 FROM tab0 AS cor0
----
-258
-423
4062

query I rowsort
SELECT 13 * col0 + + col2 + 86 * + col1 AS col2 FROM tab2 AS cor0
----
2527
2784
6114

query I rowsort
SELECT 82 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 660751b3166f5cb8964b7ef659605795

query I rowsort
SELECT + + 77 + col2 * + cor0.col2 * + 62 FROM tab1 AS cor0
----
180869
201515
571469

query I rowsort
SELECT ALL - - col2 + + 54 * + col0 FROM tab0 AS cor0
----
1329
1891
4888

query I rowsort
SELECT - - col1 + ( - col0 + - col1 ) * cor0.col1 FROM tab2 AS cor0
----
-1147
-1615
-8024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 62 * col1 * + col0 col2 FROM tab2 AS cor0
----
13485
285383
83283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

query I rowsort
SELECT 38 * col2 + 25 AS col1 FROM tab1
----
2077
2191
3673

query I rowsort
SELECT - - cor0.col1 + - col0 + - col0 * col0 FROM tab1 AS cor0
----
-4150
-6467
14

query I rowsort
SELECT - col1 * ( col0 ) AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 39 * cor0.col1 + - 27 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 41e79b6b0b44582a5283954aeeeb3278

query I rowsort
SELECT + 89 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT DISTINCT col1 * - tab0.col1 - col1 * col1 * ( col1 * col0 ) AS col1 FROM tab0
----
-15272740
-31952964
-67076100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( col2 * cor0.col2 + - col2 ) col1 FROM tab0 AS cor0
----
-35
1032
6553

query I rowsort
SELECT + cor0.col0 * cor0.col0 - - col1 AS col2 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - - cor0.col1 + + col1 * + 12 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT ALL + + col1 + 44 FROM tab0 AS cor0
----
130
135
141

query I rowsort
SELECT + cor0.col1 * - col2 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1054
-1989
-6136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5695
SELECT - col2 * + CAST( NULL AS SIGNED ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT - col2 * + CAST ( NULL AS INTEGER ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col2 * col1 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5697
SELECT + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 44 FROM tab2 AS cor0
----
-34
-35
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5699
SELECT + 21 DIV 11 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-5699
SELECT + 21 / 11 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT - col0 * col0 - 15 * - col0 FROM tab0 AS cor0
----
-216
-6586
-700

query I rowsort
SELECT col0 * + col1 * col0 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + - 65 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to b0e0470281efe980ea4c3175e49ffc05

query I rowsort
SELECT DISTINCT col0 * - 66 AS col0 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT + ( 30 ) + col1 + - col2 AS col2 FROM tab1 cor0
----
-17
-53
2

query I rowsort
SELECT + 99 * - col0 + - col1 FROM tab2 AS cor0
----
-724
-7781
-7838

query I rowsort
SELECT ALL + 74 * + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-2590
-540052
-58608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 37 ) + col0 col1 FROM tab1 AS cor0
----
101
117
40

query I rowsort
SELECT ALL + 45 * cor0.col1 + - col2 FROM tab2 cor0
----
1368
2629
727

query I rowsort
SELECT 97 + 71 + + col0 AS col1 FROM tab1 cor0
----
171
232
248

query I rowsort
SELECT ALL + + 34 + 95 AS col1 FROM tab2 AS cor0
----
129
129
129

onlyif mysql # use DIV operator for integer division
query I rowsort label-5711
SELECT col0 DIV col0 - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif mysql # not compatible
query I rowsort label-5711
SELECT col0 / col0 - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

query I rowsort
SELECT - + ( col0 ) - col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5713
SELECT DISTINCT - ( - ( col0 ) ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - ( - ( col0 ) ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 56 ) * - col1 + - cor0.col0 * col2 FROM tab2 cor0
----
-2050
1276
1547

query I rowsort
SELECT DISTINCT + - 54 * + cor0.col0 AS col0 FROM tab2 cor0
----
-378
-4212
-4266

query I rowsort
SELECT ALL + + col2 + col0 + col0 AS col1 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT + 92 * 5 FROM tab2 AS cor0
----
460
460
460

query I rowsort
SELECT - col1 + 75 + col2 AS col2 FROM tab2
----
42
71
96

query I rowsort
SELECT DISTINCT 78 + col0 * + col0 FROM tab1 AS cor0
----
4174
6478
87

query I rowsort
SELECT - ( 82 ) * cor0.col0 FROM tab2 AS cor0
----
-574
-6396
-6478

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5721
SELECT DISTINCT + CAST( + 96 AS SIGNED ) + col1 * + col1 * col0 FROM tab2 cor0
----
22927
271614
6823

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT + CAST ( + 96 AS INTEGER ) + col1 * + col1 * col0 FROM tab2 cor0
----
22927
271614
6823

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5722
SELECT DISTINCT - col0 * + col1 + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1360
-248
-4661

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - col0 * + col1 + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT + 3 + + col1 AS col2 FROM tab1 AS cor0
----
13
16
29

query I rowsort
SELECT DISTINCT + col1 * col1 + 65 AS col0 FROM tab0 AS cor0
----
7461
8346
9474

query I rowsort
SELECT - + col1 + - col0 * + 15 AS col0 FROM tab2 AS cor0
----
-1202
-1229
-136

query I rowsort
SELECT DISTINCT + col1 + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT DISTINCT - ( cor0.col1 ) DIV col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - ( cor0.col1 ) / col2 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + + cor0.col1 col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 - - col2 * col2 * col2 FROM tab1 AS cor0
----
157518
185250
884832

query I rowsort
SELECT 57 * + col0 * - col0 FROM tab2 AS cor0
----
-2793
-346788
-355737

query I rowsort
SELECT ALL - 10 + col1 FROM tab2 AS cor0
----
21
49
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5732
SELECT DISTINCT col2 + col2 - col2 DIV + col0 FROM tab0 AS cor0
----
164
2
65

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT col2 + col2 - col2 / + col0 FROM tab0 AS cor0
----
164
2
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5733
SELECT ALL + - col1 DIV 46 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL + - col1 / 46 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + ( col2 ) FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT ALL + col2 DIV - 7 col1 FROM tab0 AS cor0
----
-11
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + col2 / - 7 col1 FROM tab0 AS cor0
----
-11
-4
0

query I rowsort
SELECT ALL - 57 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT - - cor0.col2 + + col1 * - cor0.col1 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5738
SELECT CAST( - tab2.col2 AS SIGNED ) AS col2 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5738
SELECT CAST ( - tab2.col2 AS INTEGER ) AS col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT ( + 74 ) FROM tab1
----
74

query I rowsort
SELECT DISTINCT col0 * - tab1.col2 * col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - 78 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5742
SELECT + 27 * + col0 + - ( - col0 ) * col1 * + CAST( - col0 + + col0 AS SIGNED ) FROM tab2 AS cor0
----
189
2106
2133

skipif mysql # not compatible
query I rowsort label-5742
SELECT + 27 * + col0 + - ( - col0 ) * col1 * + CAST ( - col0 + + col0 AS INTEGER ) FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + ( col1 ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT col2 * + col0 + - 95 FROM tab0 cor0
----
-60
697
7203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT DISTINCT + col0 + col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + col0 + col1 / + col1 AS col0 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT - col2 DIV CAST( col1 AS SIGNED ) + col0 * 97 FROM tab2
----
679
7566
7661

skipif mysql # not compatible
query I rowsort label-5747
SELECT - col2 / CAST ( col1 AS INTEGER ) + col0 * 97 FROM tab2
----
679
7566
7661

query I rowsort
SELECT col0 * col0 * col2 + col0 FROM tab1
----
233536
489
614480

query I rowsort
SELECT ALL + 22 * 42 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to a9d842b475c503efc64bd7dd701a33f0

query I rowsort
SELECT DISTINCT + - col0 * - col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL + col1 - cor0.col2 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 78 col1 FROM tab2 AS cor0
----
-2028
-2106
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5753
SELECT ALL - col1 + col2 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - col1 + col2 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT DISTINCT - col1 * + 91 AS col1 FROM tab0 AS cor0
----
-7826
-8281
-8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col0 FROM tab0
----
16

query I rowsort
SELECT - ( 0 ) + - col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 + - col0 col1 FROM tab0 AS cor0
----
0
54
65

query I rowsort
SELECT - col2 * 97 AS col2 FROM tab0
----
-3201
-7954
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5759
SELECT ALL + col2 * + CAST( NULL AS DECIMAL ) + col2 * + col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + col2 * + CAST ( NULL AS REAL ) + col2 * + col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5760
SELECT + col1 DIV cor0.col1 + - 94 AS col2 FROM tab1 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-5760
SELECT + col1 / cor0.col1 + - 94 AS col2 FROM tab1 AS cor0
----
-93
-93
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5761
SELECT + + col2 * - CAST( - cor0.col2 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-5761
SELECT + + col2 * - CAST ( - cor0.col2 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - col0 + 18 FROM tab0 AS cor0
----
-17
-6
-71

query I rowsort
SELECT - 11 * - col0 AS col2 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT 16 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT tab2.col0 - cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a0891d923255f338145ac78ca8c0ccef

query I rowsort
SELECT - 95 + + col2 AS col1 FROM tab0 AS cor0
----
-13
-62
-94

query I rowsort
SELECT ALL col2 + + col1 * 29 * cor0.col1 FROM tab0 AS cor0
----
214517
240231
272862

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * + col1 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT col1 * + col2 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col2 - cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5771
SELECT ALL - col0 * + CAST( NULL AS DECIMAL ) + + 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-5771
SELECT ALL - col0 * + CAST ( NULL AS REAL ) + + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - 30 * - 53 FROM tab0 cor0
----
1501
1555
1566

query I rowsort
SELECT - - cor0.col2 * - col2 + 29 AS col1 FROM tab2 cor0
----
-1415
-647
-700

query I rowsort
SELECT ALL col2 + - col2 * + col1 * col0 - col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL 76 - col2 AS col0 FROM tab0
----
-6
43
75

query I rowsort
SELECT DISTINCT - 61 * col0 * - col0 FROM tab2
----
2989
371124
380701

query I rowsort
SELECT + tab0.col1 - col0 * col1 * - 71 FROM tab0
----
146630
241142
575120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT ALL col0 + - col1 DIV + col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL col0 + - col1 / + col0 FROM tab2 AS cor0
----
3
78
79

query I rowsort
SELECT col0 + 75 AS col1 FROM tab0 AS cor0
----
110
164
99

query I rowsort
SELECT DISTINCT + + ( + col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 47 * - col2 FROM tab0 AS cor0
----
-1551
-3854
-47

query I rowsort
SELECT - 86 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + tab1.col2 * - col2 col1 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5784
SELECT ALL - CAST( - col1 + + col0 AS SIGNED ) * - 13 AS col1 FROM tab1
----
-299
702
871

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - CAST ( - col1 + + col0 AS INTEGER ) * - 13 AS col1 FROM tab1
----
-299
702
871

query I rowsort
SELECT + - 53 * + col2 AS col1 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT + 34 + 97 AS col2 FROM tab2
----
131
131
131

query I rowsort
SELECT ALL 5 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL ( col1 ) + + col0 + 46 AS col0 FROM tab2 cor0
----
142
183
84

query I rowsort
SELECT 91 * col0 FROM tab2 cor0
----
637
7098
7189

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5790
SELECT DISTINCT + CAST( - col2 * + col0 + + 96 * col0 AS SIGNED ) AS col0 FROM tab0
----
1246
1512
3325

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT + CAST ( - col2 * + col0 + + 96 * col0 AS INTEGER ) AS col0 FROM tab0
----
1246
1512
3325

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5791
SELECT - CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5791
SELECT - CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5792
SELECT DISTINCT + ( 28 ) * col2 DIV + 68 AS col2 FROM tab2
----
10
11
15

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + ( 28 ) * col2 / + 68 AS col2 FROM tab2
----
10
11
15

query I rowsort
SELECT - + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + + 61 * cor0.col0 AS col2 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT ALL - 74 * + col2 AS col0 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
29

query I rowsort
SELECT + - 38 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT + 93 + + tab1.col2 + - col1 AS col0 FROM tab1
----
121
140
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 98 * - col2 col0 FROM tab0 AS cor0
----
-3234
-8036
-98

query I rowsort
SELECT ALL + + ( cor0.col2 ) + - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 58 + - col0 * 53 * - col1 FROM tab2 AS cor0
----
11559
243964
71237

query I rowsort
SELECT DISTINCT col1 + + col1 * - ( 84 ) AS col2 FROM tab2 cor0
----
-1411
-2573
-4897

query I rowsort
SELECT ALL - + col0 * - col1 * + col2 + - 43 + - col0 FROM tab1 AS cor0
----
36373
4166
99717

query I rowsort
SELECT ALL + + cor0.col2 + col0 AS col0 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT 22 DIV - col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5805
SELECT 22 / - col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + - col2 * col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - ( col1 ) + col2 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + ( col0 ) * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col1 + - ( col0 ) * + col1 AS col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT ALL - col2 + - 69 * cor0.col2 FROM tab0 AS cor0
----
-2310
-5740
-70

query I rowsort
SELECT cor0.col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT col0 * 27 + - col1 FROM tab1 AS cor0
----
1718
2147
55

query I rowsort
SELECT ALL + 66 * ( - cor0.col1 ) + + 52 AS col1 FROM tab1 AS cor0
----
-1664
-608
-806

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 71 * + col2 + - col0 FROM tab2 AS cor0
----
-1924
-1924
-2777

onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT ALL + - ( + col1 ) * col1 * + col2 + + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-10981
-25946
-90505

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + - ( + col1 ) * col1 * + col2 + + col0 / col0 AS col2 FROM tab2 AS cor0
----
-10981
-25946
-90505

query I rowsort
SELECT tab0.col2 * - tab0.col2 - col0 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT - cor0.col1 * 83 + col2 AS col0 FROM tab1 AS cor0
----
-2104
-773
-983

query I rowsort
SELECT ALL - 71 AS col2 FROM tab1 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL + col1 + - col1 * 70 AS col2 FROM tab0 AS cor0
----
-5934
-6279
-6693

query I rowsort
SELECT ALL + col0 * + col2 + 42 * - col0 FROM tab0 AS cor0
----
-1435
-216
3560

query I rowsort
SELECT cor0.col1 + - col1 * 38 FROM tab1 AS cor0
----
-370
-481
-962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( 33 ) col2 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT ALL + col0 + col1 * 55 AS col0 FROM tab1 AS cor0
----
1433
614
795

query I rowsort
SELECT - cor0.col0 + 1 AS col2 FROM tab0 cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT + cor0.col0 * 99 AS col0 FROM tab0 AS cor0
----
2376
3465
8811

query I rowsort
SELECT col0 + 65 * + cor0.col1 FROM tab0 AS cor0
----
5614
6004
6340

query I rowsort
SELECT DISTINCT - + col0 - - 1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL + tab1.col1 AS col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + col0 * - 51 FROM tab2 AS cor0
----
-357
-3978
-4029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - 96 AS col2 FROM tab0, tab2 AS cor0
----
-96

query I rowsort
SELECT - 10 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT + 11 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5835
SELECT + tab1.col1 + CAST( col2 AS SIGNED ) * col1 AS col2 FROM tab1
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-5835
SELECT + tab1.col1 + CAST ( col2 AS INTEGER ) * col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - col1 + + col0 + col1 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 29 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT 81 + col1 FROM tab2 AS cor0
----
112
140
98

query I rowsort
SELECT + col2 + col1 * tab2.col1 * - col2 FROM tab2
----
-10944
-25920
-90480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + tab2.col0 * + 1 col0 FROM tab2
----
137
38
96

query I rowsort
SELECT - tab1.col1 * + 17 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e99524319991c0bb50f4a9279a7ee3c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT + col2 DIV col2 + - ( + col0 ) FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-5842
SELECT + col2 / col2 + - ( + col0 ) FROM tab1
----
-2
-63
-79

query I rowsort
SELECT DISTINCT - ( + col1 ) + col0 * - 53 AS col2 FROM tab2 AS cor0
----
-402
-4193
-4204

query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT + - 16 + + cor0.col0 + + 25 * + 76 AS col2 FROM tab0 cor0
----
1908
1919
1973

query I rowsort
SELECT + 49 + + col2 + cor0.col1 FROM tab2 AS cor0
----
104
107
134

query I rowsort
SELECT ALL + + col1 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5848
SELECT ALL 42 * col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL 42 * col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT ALL col2 DIV + cor0.col1 + ( ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL col2 / + cor0.col1 + ( ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-52
-52
-89

query I rowsort
SELECT DISTINCT - + 87 * - col2 AS col2 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT - cor0.col0 * + col2 + + 25 AS col1 FROM tab1 AS cor0
----
-137
-3623
-7655

query I rowsort
SELECT - col2 * - 83 + + 84 AS col1 FROM tab1 AS cor0
----
4566
4815
8052

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5854
SELECT - col1 + + CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

skipif mysql # not compatible
query I rowsort label-5854
SELECT - col1 + + CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + 30 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT - 72 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 5c2c2ca7fa0b39f4356738191775bccf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * + ( - col0 ) + ( col0 ) col1 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab0
----
-93

query I rowsort
SELECT 80 * + col0 * - tab1.col1 FROM tab1
----
-51200
-6240
-83200

query I rowsort
SELECT col2 * ( tab1.col0 ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - ( + 3 ) FROM tab1, tab0, tab0 cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT - ( 30 ) AS col1 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT ALL col2 * - 38 FROM tab1 AS cor0
----
-2052
-2166
-3648

query I rowsort
SELECT 28 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT + cor0.col1 * cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT + ( col1 ) + + col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT 81 * + col2 - - ( - 19 ) FROM tab1 cor0
----
4355
4598
7757

onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT + 24 + + col1 DIV - ( - col0 ) AS col1 FROM tab0 AS cor0
----
25
26
27

skipif mysql # not compatible
query I rowsort label-5868
SELECT + 24 + + col1 / - ( - col0 ) AS col1 FROM tab0 AS cor0
----
25
26
27

query I rowsort
SELECT ALL 76 + col2 FROM tab0
----
109
158
77

query I rowsort
SELECT ALL 20 + col2 AS col2 FROM tab0
----
102
21
53

query I rowsort
SELECT ALL - col2 + - col0 * col0 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT ALL 61 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab1, tab0, tab1 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT - 81 FROM tab0, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT cor0.col0 * + 94 FROM tab2 AS cor0
----
658
7332
7426

onlyif mysql # use DIV operator for integer division
query I rowsort label-5876
SELECT ALL col1 DIV 40 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL col1 / 40 col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5877
SELECT - - CAST( - col0 AS SIGNED ) DIV + col2 + col0 AS col2 FROM tab0 cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-5877
SELECT - - CAST ( - col0 AS INTEGER ) / + col2 + col0 AS col2 FROM tab0 cor0
----
0
24
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT DISTINCT 82 + col0 DIV + cor0.col0 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT 82 + col0 / + cor0.col0 FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL col1 + col2 * col2 * - col1 FROM tab0
----
-611793
-93568
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT col1 * col2 - - col2 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-5880
SELECT col1 * col2 - - col2 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
1534
646
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * + col2 * + ( - col0 ) col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - 52 * - col1 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT DISTINCT col0 + 62 FROM tab2 cor0
----
140
141
69

query I rowsort
SELECT - tab1.col2 * - col2 + col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT ALL 22 + tab0.col1 FROM tab0
----
108
113
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-5886
SELECT DISTINCT col0 DIV + col1 + col0 DIV col0 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT col0 / + col1 + col0 / col0 FROM tab2 AS cor0
----
1
2
5

query I rowsort
SELECT ALL + col1 * - col1 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5888
SELECT ALL - 12 - + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL - 12 - + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) * - ( col2 ) + - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - 79 + col1 AS col2 FROM tab0 AS cor0
----
12
18
7

query I rowsort
SELECT ALL col1 + - ( + col2 ) FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT - col0 * + 69 FROM tab0 cor0
----
-1656
-2415
-6141

query I rowsort
SELECT DISTINCT col2 * - 46 AS col1 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT - + cor0.col2 * 30 FROM tab0 AS cor0
----
-2460
-30
-990

query I rowsort
SELECT ALL - col2 + + col1 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + col0 * col0 * col2 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT ALL col1 + - cor0.col1 * - col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - cor0.col1 * ( - col2 ) + col2 AS col1 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT - + cor0.col2 * + col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 + ( 14 ) FROM tab1 AS cor0
----
-50
-66
11

query I rowsort
SELECT + - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5902
SELECT ALL + + col2 + CAST( NULL AS SIGNED ) * - 10 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL + + col2 + CAST ( NULL AS INTEGER ) * - 10 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 - - ( col1 ) * + ( - cor0.col2 + + cor0.col0 * - col0 ) col0 FROM tab2 AS cor0
----
-106626
-2322
-360386

query I rowsort
SELECT DISTINCT - - col1 + + 44 * + col2 FROM tab1 AS cor0
----
2402
2518
4237

query I rowsort
SELECT ALL + cor0.col2 * col1 - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT cor0.col1 + + col0 * - col2 FROM tab2 cor0
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5907
SELECT ALL - col0 * CAST( - 66 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
462
5148
5214

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - col0 * CAST ( - 66 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT ALL col1 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT 6 + - col0 AS col1 FROM tab1
----
-58
-74
3

query I rowsort
SELECT DISTINCT - + col2 * + 81 - - 85 AS col1 FROM tab0 AS cor0
----
-2588
-6557
4

query I rowsort
SELECT DISTINCT - col0 - ( - col1 ) FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5912
SELECT + col1 * CAST( NULL AS SIGNED ) + col1 / + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT + col1 * CAST ( NULL AS INTEGER ) + col1 / + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 22 ) col1 FROM tab2, tab2 AS cor0
----
-22

query I rowsort
SELECT - col2 + - ( 34 ) AS col1 FROM tab1
----
-130
-88
-91

query I rowsort
SELECT col0 + - 96 * tab0.col2 * + col2 AS col0 FROM tab0
----
-104520
-61
-645415

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab0 cor0
----
89

query I rowsort
SELECT 97 * col2 + + 31 FROM tab2 AS cor0
----
2553
2650
3717

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT DISTINCT 62 DIV col0 - - col2 AS col2 FROM tab1
----
57
74
96

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT 62 / col0 - - col2 AS col2 FROM tab1
----
57
74
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + - col0 col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 * col2 AS col0 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT + col0 + + col1 * + ( 22 ) AS col1 FROM tab0 AS cor0
----
1916
2091
2169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col1 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT ALL col0 * + col0 * + ( 68 * - col2 ) FROM tab2 AS cor0
----
-10756512
-16126744
-89964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT 78 DIV col1 AS col2 FROM tab1
----
3
6
7

skipif mysql # not compatible
query I rowsort label-5925
SELECT 78 / col1 AS col2 FROM tab1
----
3
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 - ( col0 ) * + col1 col1 FROM tab0
----
-2146
-3477
-8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5927
SELECT ( col0 ) * col0 - + CAST( col2 AS SIGNED ) FROM tab2
----
22
6058
6203

skipif mysql # not compatible
query I rowsort label-5927
SELECT ( col0 ) * col0 - + CAST ( col2 AS INTEGER ) FROM tab2
----
22
6058
6203

query I rowsort
SELECT + ( 53 ) - tab0.col1 AS col2 FROM tab0
----
-33
-38
-44

query I rowsort
SELECT DISTINCT - col2 + 40 - col2 * - ( col2 ) FROM tab2
----
1446
690
742

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5930
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5930
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT + 23 + tab0.col1 DIV col2 + + 62 AS col1 FROM tab0
----
182
86
87

skipif mysql # not compatible
query I rowsort label-5931
SELECT + 23 + tab0.col1 / col2 + + 62 AS col1 FROM tab0
----
182
86
87

query I rowsort
SELECT ( col2 ) + + col0 * ( col1 * col2 ) AS col1 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * 69 - + col0 FROM tab2
----
476
5304
5372

query I rowsort
SELECT - 55 + col1 FROM tab0
----
31
36
42

query I rowsort
SELECT DISTINCT tab0.col0 + - col2 * col0 AS col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL + - col2 * + col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT + + col1 * col0 - cor0.col2 DIV col2 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-5937
SELECT + + col1 * col0 - cor0.col2 / col2 FROM tab0 AS cor0
----
2063
3394
8098

onlyif mysql # use DIV operator for integer division
query I rowsort label-5938
SELECT + + col0 + col1 DIV + col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5938
SELECT + + col0 + col1 / + col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - col0 + + cor0.col2 * 46 AS col1 FROM tab2 AS cor0
----
1118
1235
1669

query I rowsort
SELECT + col2 + col1 * col1 + col0 FROM tab0 AS cor0
----
7453
8452
9445

query I rowsort
SELECT ALL - ( + col1 ) * ( + cor0.col0 * col0 ) AS col0 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT + col2 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT 43 * - col0 AS col0 FROM tab2
----
-301
-3354
-3397

query I rowsort
SELECT 99 * + col1 FROM tab0
----
8514
9009
9603

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT DISTINCT + 80 DIV 38 AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT + 80 / 38 AS col2 FROM tab1
----
2

query I rowsort
SELECT DISTINCT ( tab2.col0 * - col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - - col2 + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 19 * + cor0.col1 FROM tab0 AS cor0
----
-1634
-1729
-1843

query I rowsort
SELECT ( - col0 ) * 17 FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT - - 72 + + col2 AS col2 FROM tab1 AS cor0
----
126
129
168

query I rowsort
SELECT + 42 * - col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 * - cor0.col2 + - col1 col2 FROM tab1 cor0
----
-1808
-1891
-3181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col1 + 10 AS col1 FROM tab1 AS cor0
----
20
23
36

query I rowsort
SELECT DISTINCT - col0 * ( + col1 ) + - col0 + cor0.col0 * - cor0.col0 AS col0 FROM tab2 cor0
----
-10764
-273
-7663

query I rowsort
SELECT + col0 - + 25 FROM tab0 AS cor0
----
-1
10
64

query I rowsort
SELECT + col0 + - ( col0 ) AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - col2 - 57 * - 0 AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 + + 61 AS col2 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT DISTINCT - + col2 * + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT col2 - col0 * - 49 AS col2 FROM tab2 AS cor0
----
370
3848
3909

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5963
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) * + 90 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) * + 90 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 - 46 FROM tab1 AS cor0
----
11
50
8

query I rowsort
SELECT col1 + ( 53 ) * - col0 * col1 AS col2 FROM tab2 cor0
----
-11470
-243847
-71162

query I rowsort
SELECT cor0.col2 * cor0.col0 * col2 + col2 AS col2 FROM tab1 AS cor0
----
207993
737376
8802

query I rowsort
SELECT DISTINCT + col1 + 97 * col2 AS col1 FROM tab0
----
194
3287
8045

query I rowsort
SELECT + - col2 + - 13 AS col1 FROM tab2 AS cor0
----
-39
-40
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5969
SELECT - + 99 * + col2 + + cor0.col1 DIV 44 FROM tab0 AS cor0
----
-3266
-8116
-97

skipif mysql # not compatible
query I rowsort label-5969
SELECT - + 99 * + col2 + + cor0.col1 / 44 FROM tab0 AS cor0
----
-3266
-8116
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5970
SELECT DISTINCT col1 DIV - 92 + col0 * col1 FROM tab0
----
2064
3394
8099

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT col1 / - 92 + col0 * col1 FROM tab0
----
2064
3394
8099

query I rowsort
SELECT - + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + + col1 - + 77 * col2 FROM tab0 AS cor0
----
-2455
-6223
20

query I rowsort
SELECT - col2 * + col1 - - col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - cor0.col2 * - 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + - col1 * + col0 - cor0.col0 FROM tab0 AS cor0
----
-2121
-3431
-8270

query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-5977
SELECT + col1 * + col0 DIV ( + col0 ) AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5977
SELECT + col1 * + col0 / ( + col0 ) AS col1 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5978
SELECT - CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-5978
SELECT - CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col0 - + col0 AS col1 FROM tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT ALL - col1 DIV - col0 + col2 AS col1 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - col1 / - col0 + col2 AS col1 FROM tab0 AS cor0
----
3
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab1 cor0
----
89
89
89

query I rowsort
SELECT ALL + col2 * 27 FROM tab1
----
1458
1539
2592

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-29

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab2, tab0 cor0
----
43

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT col1 * col0 * - 32 FROM tab0 AS cor0
----
-108640
-259168
-66048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col0 FROM tab1
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + tab2.col0 col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col2 - - tab2.col2 * - col0 AS col1 FROM tab2
----
-2054
-216
-3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5990
SELECT + - col0 * - CAST( NULL AS SIGNED ) * 49 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT + - col0 * - CAST ( NULL AS INTEGER ) * 49 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + cor0.col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT col0 + col0 > NULL
----

query I rowsort
SELECT cor0.col1 + cor0.col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT tab1.col0 + col2 * tab1.col1 AS col0 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab0.col2 * col2 col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE ( NULL ) <= - col1
----

query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL col2 + + col1 * - col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL + col1 - + col0 * col1 AS col1 FROM tab1
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT - col0 + - col2 DIV - tab2.col1 AS col2 FROM tab2
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-6000
SELECT - col0 + - col2 / - tab2.col1 AS col2 FROM tab2
----
-7
-77
-78

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT col1 + col1 DIV - col0 AS col0 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-6002
SELECT col1 + col1 / - col0 AS col0 FROM tab2
----
17
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + tab0.col1 * col1 col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + col2 * col1 * col0 + col0 - + col1 FROM tab1
----
36534
4189
99907

query I rowsort
SELECT ALL - tab0.col2 - - cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 5e52e24329c96ca96802109e5c7c8bdf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col1 * col2 col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL col2 * - col1 + + col0 FROM tab2
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * col0 col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - - col2 * col0 + + col0 + col1 AS col0 FROM tab2 AS cor0
----
2165
227
3098

onlyif mysql # use DIV operator for integer division
query I rowsort label-6010
SELECT - col1 + + cor0.col2 DIV + cor0.col0 col0 FROM tab1 AS cor0
----
-10
-12
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6010
SELECT - col1 + + cor0.col2 / + cor0.col0 col0 FROM tab1 AS cor0
----
-10
-12
-8

query I rowsort
SELECT ALL col2 * + col2 + - col2 * + col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col2 * cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT - tab2.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL col0 + col1 + col2 * - col1 FROM tab2 AS cor0
----
-1397
-550
-799

query I rowsort
SELECT ALL - ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col1 * + col0 * + col1 + + 58 * + col1 FROM tab1
----
-12766
-520
-5820

query I rowsort
SELECT - 29 + col1 * + 97 FROM tab1 AS cor0
----
1232
2493
941

onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT DISTINCT - cor0.col2 DIV + col1 + - 55 AS col1 FROM tab2 AS cor0
----
-55
-57

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT - cor0.col2 / + col1 + - 55 AS col1 FROM tab2 AS cor0
----
-55
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6019
SELECT ALL - - col1 * col2 * + col2 + - 24 DIV + col0 FROM tab1 AS cor0
----
119808
32490
75808

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - - col1 * col2 * + col2 + - 24 / + col0 FROM tab1 AS cor0
----
119808
32490
75808

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6020
SELECT DISTINCT col1 + col1 * CAST( + ( col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT col1 + col1 * CAST ( + ( col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - 49 AS col2 FROM tab2 cor0
----
-49
-49
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6022
SELECT DISTINCT + col0 * + col0 + CAST( - 19 AS SIGNED ) FROM tab2 AS cor0
----
30
6065
6222

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + col0 * + col0 + CAST ( - 19 AS INTEGER ) FROM tab2 AS cor0
----
30
6065
6222

query I rowsort
SELECT DISTINCT 54 + col1 FROM tab1 AS cor0
----
64
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT cor0.col1 + + CAST( col0 AS SIGNED ) DIV - col0 col2 FROM tab2 AS cor0
----
16
30
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6024
SELECT cor0.col1 + + CAST ( col0 AS INTEGER ) / - col0 col2 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT ALL col0 + + 46 FROM tab2 AS cor0
----
124
125
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT - cor0.col2 DIV + col1 AS col2 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6026
SELECT - cor0.col2 / + col1 AS col2 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT + col2 + - col2 * - ( col0 ) FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col1 * + 70 + + cor0.col1 FROM tab0 AS cor0
----
-5934
-6279
-6693

query I rowsort
SELECT ALL col2 * - 20 + + 86 FROM tab1 AS cor0
----
-1054
-1834
-994

query I rowsort
SELECT - col1 * - col0 + - 8 FROM tab1 AS cor0
----
1032
632
70

query I rowsort
SELECT ALL + col2 + + ( + 83 ) AS col1 FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT ALL col0 * + ( - 75 ) AS col1 FROM tab1 cor0
----
-225
-4800
-6000

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 - 32 * col2 AS col0 FROM tab0 AS cor0
----
-10905
-8452
-9441

onlyif mysql # use DIV operator for integer division
query I rowsort label-6034
SELECT ALL + col1 DIV col2 + col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL + col1 / col2 + col2 FROM tab0
----
35
83
98

query I rowsort
SELECT ALL - cor0.col2 * tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a73bbc3fd0415c60774b01c5f952caf8

query I rowsort
SELECT ALL 90 + + col2 FROM tab2
----
116
117
128

query I rowsort
SELECT col1 * - cor0.col0 + 48 AS col1 FROM tab1 AS cor0
----
-30
-592
-992

query I rowsort
SELECT ALL 49 + col2 FROM tab1
----
103
106
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 + cor0.col2 col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 19f7ee62d7b7a77c5c1a4f8a082e2ea7

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND col1 / col2 + col1 * - col0
----

query I rowsort
SELECT - col0 + + tab2.col2 * + col0 * - col1 FROM tab2
----
-119730
-51113
-5866

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE - col1 NOT IN ( - col0 )
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col1 + col0 * col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT - tab0.col1 * col2 - col1 * col0 AS col2 FROM tab0
----
-15561
-3492
-4902

query I rowsort
SELECT ALL - tab2.col0 * + col2 AS col1 FROM tab2
----
-189
-2028
-3002

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = col2
----

query I rowsort
SELECT ALL - col0 - + col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL = col0
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL IN ( - col1 * col0 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col0 < col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col0 <> NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + tab2.col2 / - col0 + col0 / col1 )
----

query I rowsort
SELECT DISTINCT + col1 * - col0 + - col2 + - col1 AS col0 FROM tab0
----
-2183
-3493
-8272

query I rowsort
SELECT + col1 * col2 * - col1 AS col1 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6056
SELECT DISTINCT - col0 DIV tab1.col1 FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - col0 / tab1.col1 FROM tab1
----
-6
0

query I rowsort
SELECT 79 * - cor0.col1 + + cor0.col2 AS col0 FROM tab2 cor0
----
-1305
-2422
-4635

onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT DISTINCT + tab0.col0 * + col1 DIV - col1 AS col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT + tab0.col0 * + col1 / - col1 AS col1 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT DISTINCT col2 DIV col0 + + col2 * col2 * col2 - tab2.col2 * + tab2.col1 AS col2 FROM tab2
----
16042
18849
54226

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT col2 / col0 + + col2 * col2 * col2 - tab2.col2 * + tab2.col1 AS col2 FROM tab2
----
16042
18849
54226

query I rowsort
SELECT - col0 * col0 + + col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT ( col2 + + col0 * - col0 ) NOT IN ( - col2 )
----

query I rowsort
SELECT ALL + col2 + - col2 - - col1 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col1 * col1 col0 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL + col0 * + col1 * tab1.col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - col1 * tab2.col0 * col1 + col1 * + col1 + - col1 AS col1 FROM tab2
----
-22559
-268096
-5797

query I rowsort
SELECT + col0 * - col1 * col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT ALL - col1 + + col2 + tab0.col2 FROM tab0
----
-20
-95
73

query I rowsort
SELECT col0 + 96 AS col2 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT + cor0.col1 * + col2 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT 17 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6072
SELECT col1 * + col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT col1 * + col0 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT ALL + - 79 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL + - 79 / - col0 AS col1 FROM tab0 AS cor0
----
0
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT + ( col2 ) DIV - ( col2 ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6074
SELECT + ( col2 ) / - ( col2 ) AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT cor0.col0 * 6 * + col2 AS col0 FROM tab2 AS cor0
----
1134
12168
18012

query I rowsort
SELECT ALL - + col0 * 60 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT - + col2 + 24 + + col2 FROM tab2 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col2 * col0 * col1 col0 FROM tab0 AS cor0
----
0
656019
66048

query I rowsort
SELECT DISTINCT col2 + + col2 AS col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - col1 * - 1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + col0 + ( col2 ) AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col2 + 18 FROM tab0 AS cor0
----
100
19
51

query I rowsort
SELECT - col0 * - col2 + - cor0.col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
7291
801

query I rowsort
SELECT - - col1 * - col2 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6085
SELECT - CAST( col1 AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6085
SELECT - CAST ( col1 AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ( 10 ) AS col0 FROM tab0 cor0
----
10
10
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6087
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 81 + + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2145
-3476
-8180

query I rowsort
SELECT ALL + col2 - - ( - col2 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT ALL + col0 + + col1 + + cor0.col2 DIV col2 FROM tab0 AS cor0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL + col0 + + col1 + + cor0.col2 / col2 FROM tab0 AS cor0
----
111
133
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6091
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT CAST ( col0 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col0 + - cor0.col2 col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - + cor0.col0 + col0 * - col2 AS col0 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT - + 64 * - col2 FROM tab0 cor0
----
2112
5248
64

query I rowsort
SELECT DISTINCT + 18 * - ( + col0 + ( - 76 ) ) FROM tab1 AS cor0
----
-72
1314
216

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + + 23 + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-39
-39
21

query I rowsort
SELECT + 48 * + col2 + + col1 AS col1 FROM tab2 AS cor0
----
1307
1327
1841

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col1 AS col0 FROM tab1, tab2 cor0
----
-21
33
4

query I rowsort
SELECT - ( cor0.col1 ) * 38 FROM tab2 AS cor0
----
-1178
-2242
-646

query I rowsort
SELECT - + 76 * col1 + + col1 + + col0 FROM tab0 AS cor0
----
-6426
-6736
-7240

query I rowsort
SELECT - ( 85 ) AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT - + 32 AS col2 FROM tab1 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 55 + col2 * - col1 col1 FROM tab1 AS cor0
----
-1303
-1459
-625

query I rowsort
SELECT + + ( + col2 ) * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col2 + col1 * + col2 * col0 + col2 AS col1 FROM tab1 AS cor0
----
100032
36594
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6107
SELECT 66 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT 66 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - - cor0.col2 * col0 + - col0 * + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 24 + + col0 FROM tab0 AS cor0
----
0
11
65

query I rowsort
SELECT DISTINCT 44 + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
101
140
98

query I rowsort
SELECT - + ( 89 ) * - col0 AS col1 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT + tab0.col1 * 1 - - tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e205c60b0806256e15ecb6a115a429b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col0 FROM tab0, tab2 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT ALL - col1 * 6 FROM tab1
----
-156
-60
-78

query I rowsort
SELECT DISTINCT + ( - col1 + col1 ) * + col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + ( 88 ) * + col1 FROM tab2
----
1496
2728
5192

query I rowsort
SELECT ALL col0 * + 18 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT ALL + + ( + col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + 79 * ( col1 ) + col0 AS col2 FROM tab2 AS cor0
----
1422
2456
4739

query I rowsort
SELECT ALL - col1 + 38 * col1 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT ALL + cor0.col1 + + cor0.col1 * - cor0.col0 + - col0 AS col0 FROM tab1 AS cor0
----
-1107
-55
-694

query I rowsort
SELECT + col1 * 31 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT DISTINCT - ( - 20 ) + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1514
-626
-817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - - 58 col2 FROM tab1 AS cor0
----
122
138
61

query I rowsort
SELECT + + 87 AS col2 FROM tab2 cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( col1 AS REAL ) + - col2 AS col0 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col2 * 32 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT col0 * - col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6129
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 + 9 * col2 AS col0 FROM tab2 cor0
----
208
216
304

query I rowsort
SELECT DISTINCT - 74 + + col0 AS col0 FROM tab1 cor0
----
-10
-71
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT DISTINCT + + 15 DIV 20 - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + + 15 / 20 - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL ( cor0.col1 ) + + cor0.col0 - col1 AS col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6134
SELECT - CAST( - 5 AS SIGNED ) * cor0.col2 * + col0 + - col2 FROM tab0 AS cor0
----
174
36408
3927

skipif mysql # not compatible
query I rowsort label-6134
SELECT - CAST ( - 5 AS INTEGER ) * cor0.col2 * + col0 + - col2 FROM tab0 AS cor0
----
174
36408
3927

query I rowsort
SELECT ALL - + col2 * + 74 + cor0.col0 FROM tab2 AS cor0
----
-1846
-1991
-2733

query I rowsort
SELECT DISTINCT - cor0.col0 + 21 * + col2 FROM tab2 AS cor0
----
468
560
719

query I rowsort
SELECT ALL 65 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT + ( - col0 ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 14 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT ALL + col0 * + col0 + + 91 AS col0 FROM tab0 cor0
----
1316
667
8012

query I rowsort
SELECT - + 59 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
-174
-3712
-4640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT DISTINCT - col1 DIV 28 + - col1 AS col2 FROM tab2
----
-17
-32
-61

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - col1 / 28 + - col1 AS col2 FROM tab2
----
-17
-32
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 89 AS REAL ) * + col0 + col2 col0 FROM tab1
----
321
5753
7216

query I rowsort
SELECT + col0 * col0 + + col2 AS col1 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT + col0 * ( + ( col1 ) ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + + col2 + col1 * 83 FROM tab1 cor0
----
1175
2212
887

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6147
SELECT ALL + - col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL + - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 9 + 83 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT - col1 * - col0 * + col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT tab1.col1 + + 3 * + 93 FROM tab1
----
289
292
305

query I rowsort
SELECT ALL - tab2.col1 + col0 * 15 AS col0 FROM tab2
----
1111
1168
74

query I rowsort
SELECT - col2 + + 29 FROM tab1
----
-25
-28
-67

query I rowsort
SELECT DISTINCT + col0 - 16 AS col2 FROM tab1
----
-13
48
64

query I rowsort
SELECT cor0.col0 + ( + col2 ) * - col1 * col2 FROM tab0 AS cor0
----
-611795
-62
-93630

query I rowsort
SELECT - cor0.col1 * + 69 + + 59 FROM tab1 AS cor0
----
-1735
-631
-838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * + col2 col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL + col2 * + col0 + + col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - 35 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 cor2, tab1 AS cor3
----
243 values hashing to 223032c91a0743bba135d21d13b89ec0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6160
SELECT - col2 DIV + col0 + - col0 col0 FROM tab1 AS cor0
----
-21
-64
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6160
SELECT - col2 / + col0 + - col0 col0 FROM tab1 AS cor0
----
-21
-64
-81

query I rowsort
SELECT 62 + - col0 FROM tab0 AS cor0
----
-27
27
38

query I rowsort
SELECT + - cor0.col0 * ( col0 ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + + cor0.col1 * 83 AS col0 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT ALL - + 1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - col2 + + col0 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT tab0.col1 + + cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ed0f18675169071c56b762ebcebeac71

query I rowsort
SELECT + ( + col0 * 0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 16 + - col2 AS col0 FROM tab0 AS cor0
----
-17
-66
15

query I rowsort
SELECT DISTINCT col0 + col0 + col2 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT DISTINCT - col1 * - 74 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
103896
42180
92352

onlyif mysql # use DIV operator for integer division
query I rowsort label-6171
SELECT + + col0 DIV ( 23 * - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6171
SELECT + + col0 / ( 23 * - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col2 + col2 + - col0 * - col1 AS col2 FROM tab0 cor0
----
2130
3397
8263

query I rowsort
SELECT ALL + + col0 * + 68 + cor0.col2 + + col0 * + 73 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-294599
-399
-461664

query I rowsort
SELECT ALL 94 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT - col0 + 35 FROM tab0 cor0
----
-54
0
11

query I rowsort
SELECT - 32 * - col1 AS col1 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT + 97 + cor0.col0 FROM tab0 AS cor0
----
121
132
186

query I rowsort
SELECT DISTINCT - 14 FROM tab0, tab2 cor0, tab2 AS cor1
----
-14

query I rowsort
SELECT - cor0.col1 - 59 AS col1 FROM tab0 AS cor0
----
-145
-150
-156

query I rowsort
SELECT + col2 - - ( + cor0.col0 + col2 ) * col0 AS col0 FROM tab2 AS cor0
----
265
8138
9281

onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT + col2 + + col2 DIV cor0.col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6182
SELECT + col2 + + col2 / cor0.col0 FROM tab0 AS cor0
----
1
34
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6183
SELECT - ( + tab0.col1 + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT - ( + tab0.col1 + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT 59 DIV - col0 FROM tab2
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6184
SELECT 59 / - col0 FROM tab2
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 92 * col2 * 63 - + col0 * + col0 col2 FROM tab0 AS cor0
----
-191844
-483193
-7021

query I rowsort
SELECT - 0 - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6187
SELECT 63 DIV + 55 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-6187
SELECT 63 / + 55 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT ALL - col1 * 9 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT - col0 * + 58 + + col0 AS col1 FROM tab0
----
-1368
-1995
-5073

query I rowsort
SELECT - + col0 * + col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 27 + 2 AS col2 FROM tab1, tab1 cor0
----
-25

query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - 40 FROM tab1, tab2 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab1, tab0 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT + cor0.col1 * - cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + 57 * col2 AS col2 FROM tab0 AS cor0
----
1881
4674
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( col1 ) ) + + col2 col1 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 * col1 col1 FROM tab0 AS cor0
----
602
637
679

query I rowsort
SELECT DISTINCT 73 * col1 - col0 * col2 AS col1 FROM tab1 AS cor0
----
-2918
-6731
1736

query I rowsort
SELECT - - cor0.col1 + + 53 AS col1 FROM tab2 cor0
----
112
70
84

query I rowsort
SELECT DISTINCT + 44 + ( col1 * col2 ) FROM tab1 AS cor0
----
1292
1448
614

query I rowsort
SELECT DISTINCT - + col1 + 66 * - col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT ALL + - 39 - 94 * - col1 * ( + col1 ) FROM tab0 AS cor0
----
695185
778375
884407

onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT ALL + - cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + - cor0.col1 / + col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT ALL - 0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( tab0.col0 ) * + col2 + + 78 * col0 AS col2 FROM tab0
----
14240
2664
2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT ALL 29 DIV - col1 + col2 col1 FROM tab1
----
53
55
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL 29 / - col1 + col2 col1 FROM tab1
----
53
55
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT + ( cor0.col1 ) DIV - 44 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6208
SELECT + ( cor0.col1 ) / - 44 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 48 + - 0 * cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
48

query I rowsort
SELECT + - col1 + + cor0.col0 * col2 FROM tab1 AS cor0
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL 49 AS col2 FROM tab0 cor0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - ( + col1 ) * + col0 * - 62 FROM tab1 AS cor0
----
39680
4836
64480

query I rowsort
SELECT DISTINCT col1 * cor0.col0 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - 35 * + col2 FROM tab0 AS cor0
----
-1155
-2870
-35

query I rowsort
SELECT cor0.col2 * col2 + + col2 * col0 + + col0 FROM tab0 AS cor0
----
14111
1905
71

query I rowsort
SELECT + + col0 + col0 + - ( - cor0.col1 * ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
3637
447
975

query I rowsort
SELECT - + col0 + col2 * col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT + col0 + col2 * - 99 AS col2 FROM tab0 AS cor0
----
-3243
-64
-8029

query I rowsort
SELECT + - col0 + - 15 AS col1 FROM tab0 AS cor0
----
-104
-39
-50

query I rowsort
SELECT - col1 * 43 + + col2 FROM tab0 AS cor0
----
-3665
-3831
-4170

query I rowsort
SELECT - 45 + + cor0.col0 * col0 FROM tab1 cor0
----
-36
4051
6355

query I rowsort
SELECT cor0.col1 + ( col2 ) AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - + 50 + + 55 * - col1 FROM tab2 AS cor0
----
-1755
-3295
-985

query I rowsort
SELECT DISTINCT + tab1.col2 * + col1 - - col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - 53 * 96 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4f216da60dfb2579774babf2f92cbce5

query I rowsort
SELECT ALL col0 + cor0.col1 * - ( + col2 ) FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - ( col2 ) + - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + - 60 - cor0.col1 FROM tab2 AS cor0
----
-119
-77
-91

query I rowsort
SELECT ALL - - col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT cor0.col0 * - col1 * 90 FROM tab0 AS cor0
----
-185760
-305550
-728910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - col2 - col1 col0 FROM tab0 AS cor0
----
-169
-2462
-5995

query I rowsort
SELECT DISTINCT col1 * cor0.col2 + + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - + col2 * col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + 30 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1218
-1374
-540

query I rowsort
SELECT DISTINCT + col1 * col1 + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL 15 + col1 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT - 31 FROM tab2 cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + - col1 + col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT - col2 + col2 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col0 * 43 AS col2 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT ALL - - col0 + + 95 FROM tab2 AS cor0
----
102
173
174

query I rowsort
SELECT + - col2 + - cor0.col0 * col2 + + col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * ( + col2 ) + cor0.col0 * + ( - col0 ) + col1 AS col1 FROM tab0 AS cor0
----
-1031
-368
2348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + 11 col0 FROM tab2 cor0
----
-15
-16
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 * col2 + - col2 col2 FROM tab2 AS cor0
----
1296
158158
237120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6249
SELECT + + cor0.col2 + + CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT + + cor0.col2 + + CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - col0 * + col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT + col2 + col0 + - 85 AS col2 FROM tab1 AS cor0
----
-28
36
91

query I rowsort
SELECT DISTINCT - 12 AS col2 FROM tab2, tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 31 * + 29 FROM tab2 AS cor0
----
899
899
899

onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT DISTINCT col2 DIV 11 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
191
2030
3005

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT col2 / 11 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
191
2030
3005

onlyif mysql # use DIV operator for integer division
query I rowsort label-6257
SELECT DISTINCT - 92 + 17 DIV col0 FROM tab1 AS cor0
----
-87
-92

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT - 92 + 17 / col0 FROM tab1 AS cor0
----
-87
-92

query I rowsort
SELECT - - col2 * - 97 FROM tab2 AS cor0
----
-2522
-2619
-3686

query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT col2 + col2 * col0 * - 12 FROM tab1 cor0
----
-1890
-43719
-92064

query I rowsort
SELECT ALL + + col0 - col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - 17 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT + ( + col2 ) - col0 FROM tab2
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6264
SELECT CAST( ( + col0 ) AS SIGNED ) * cor0.col2 AS col2 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-6264
SELECT CAST ( ( + col0 ) AS INTEGER ) * cor0.col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT ( 16 ) FROM tab2
----
16

query I rowsort
SELECT ALL 86 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col0 - - tab0.col0 * + ( col2 ) FROM tab0
----
0
7209
768

query I rowsort
SELECT - col0 + col0 + - tab1.col2 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT + col0 + + tab1.col2 DIV col1 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-6270
SELECT + col0 + + tab1.col2 / col1 FROM tab1
----
5
69
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6271
SELECT col0 + col2 + + CAST( NULL AS SIGNED ) * ( col0 ) * - 78 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT col0 + col2 + + CAST ( NULL AS INTEGER ) * ( col0 ) * - 78 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + cor2.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT tab0.col1 + - 38 * 42 FROM tab0
----
-1499
-1505
-1510

query I rowsort
SELECT 91 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT ALL - col2 + - ( + col1 ) + - tab1.col2 * 33 DIV + col0 FROM tab1
----
-148
-674
-96

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - col2 + - ( + col1 ) + - tab1.col2 * 33 / + col0 FROM tab1
----
-148
-674
-96

query I rowsort
SELECT - cor0.col1 + ( - col1 ) * col2 FROM tab0 cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + + 14 col0 FROM tab0 AS cor0
----
-21
-7284
-778

query I rowsort
SELECT ALL + - col0 * 72 + col0 * col0 + 45 * - 84 * col2 AS col2 FROM tab0 AS cor0
----
-125892
-308447
-5075

query I rowsort
SELECT ALL col0 * col2 + 26 FROM tab1
----
188
3674
7706

query I rowsort
SELECT ALL col0 + 44 + col0 * col2 AS col2 FROM tab0
----
114
7431
860

query I rowsort
SELECT DISTINCT - 17 * - col2 + col2 FROM tab2 AS cor0
----
468
486
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT ALL ( + 8 ) DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL ( + 8 ) / col2 AS col1 FROM tab0 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT - ( 29 ) AS col2 FROM tab0 AS cor0
----
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT + cor0.col1 DIV col1 + col1 + 88 AS col1 FROM tab2 AS cor0
----
106
120
148

skipif mysql # not compatible
query I rowsort label-6284
SELECT + cor0.col1 / col1 + col1 + 88 AS col1 FROM tab2 AS cor0
----
106
120
148

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 * + col2 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col2 AS REAL ) col0 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT + col0 DIV + 6 col0 FROM tab0 AS cor0
----
14
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6287
SELECT + col0 / + 6 col0 FROM tab0 AS cor0
----
14
4
5

query I rowsort
SELECT + col1 + - col1 + col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT DISTINCT - col1 * - 98 * + col1 + - col2 DIV 83 FROM tab0 AS cor0
----
724808
811538
922082

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - col1 * - 98 * + col1 + - col2 / 83 FROM tab0 AS cor0
----
724808
811538
922082

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6290
SELECT ALL - CAST( NULL AS SIGNED ) + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + - 95 AS col0 FROM tab0 AS cor0
----
-13
-62
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * - col0 * + col2 col2 FROM tab0 AS cor0
----
-2800
-583840
-63360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6293
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 11 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 11 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 74 + ( cor0.col0 ) * + col0 FROM tab0 AS cor0
----
1299
650
7995

query I rowsort
SELECT ALL - tab1.col1 - + 14 * + 14 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 8abfe3bcd8ecef29d2a183cbd5fd00f0

query I rowsort
SELECT ALL col0 * 0 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6297
SELECT col1 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-6297
SELECT col1 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT + col2 + - 61 FROM tab0 AS cor0
----
-28
-60
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6300
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT CAST ( NULL AS REAL ) - - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * 98 + col0 AS col2 FROM tab0
----
-3210
-63
-7947

query I rowsort
SELECT col2 * - col2 + col2 AS col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT 86 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT - 89 * + col0 AS col0 FROM tab2 AS cor0
----
-623
-6942
-7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT ALL - col1 + - col1 * 10 DIV + col1 col0 FROM tab2 AS cor0
----
-27
-41
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL - col1 + - col1 * 10 / + col1 col0 FROM tab2 AS cor0
----
-27
-41
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6306
SELECT + 31 + cor0.col2 * + CAST( 96 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
5215
5503
9247

skipif mysql # not compatible
query I rowsort label-6306
SELECT + 31 + cor0.col2 * + CAST ( 96 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
5215
5503
9247

onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT - col0 DIV col2 + + 21 AS col1 FROM tab1 AS cor0
----
20
21
21

skipif mysql # not compatible
query I rowsort label-6307
SELECT - col0 / col2 + + 21 AS col1 FROM tab1 AS cor0
----
20
21
21

query I rowsort
SELECT ALL 80 * col0 + col0 FROM tab0
----
1944
2835
7209

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) + col0 * + col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT - + 8 + + col1 AS col2 FROM tab2 cor0
----
23
51
9

query I rowsort
SELECT DISTINCT - 12 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

query I rowsort
SELECT + 95 - - cor0.col1 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to e0d8323415462c72bfbe3e7068085038

query I rowsort
SELECT 43 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col2 FROM tab0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col0 col1 FROM tab1 cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 + col0 col0 FROM tab2 AS cor0
----
-30
41
42

query I rowsort
SELECT + - col2 * + 15 * - cor0.col1 FROM tab0 AS cor0
----
111930
1455
42570

query I rowsort
SELECT - col0 * col1 + col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-49
-566
-947

query I rowsort
SELECT ALL - - col1 * cor0.col0 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col2 + col1 * + 45 FROM tab0 AS cor0
----
3903
4177
4366

query I rowsort
SELECT ALL + + col1 + ( col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ( col0 + 39 ) * tab1.col2 * tab1.col1 AS col1 FROM tab1
----
148512
58710
58968

query I rowsort
SELECT 68 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT col1 * 86 * + ( col1 * - col0 ) + 30 DIV col1 FROM tab1
----
-1162718
-174407
-550397

skipif mysql # not compatible
query I rowsort label-6324
SELECT col1 * 86 * + ( col1 * - col0 ) + 30 / col1 FROM tab1
----
-1162718
-174407
-550397

onlyif mysql # use DIV operator for integer division
query I rowsort label-6325
SELECT col1 DIV 73 + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6325
SELECT col1 / 73 + col2 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 65 + col0 col1 FROM tab2 AS cor0
----
103
161
202

onlyif mysql # use DIV operator for integer division
query I rowsort label-6327
SELECT tab2.col2 DIV col1 col0 FROM tab2
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6327
SELECT tab2.col2 / col1 col0 FROM tab2
----
0
0
2

query I rowsort
SELECT + - 59 AS col2 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT + cor0.col0 - - col2 AS col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6330
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 73 + + col0 + 15 FROM tab1 AS cor0
----
152
168
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT + + col1 DIV - col0 + col2 + + col1 FROM tab0 cor0
----
116
172
96

skipif mysql # not compatible
query I rowsort label-6332
SELECT + + col1 / - col0 + col2 + + col1 FROM tab0 cor0
----
116
172
96

query I rowsort
SELECT DISTINCT - 30 * col2 * - 96 + - col1 * - tab2.col1 FROM tab2
----
109729
78361
78721

query I rowsort
SELECT DISTINCT 65 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
65

query I rowsort
SELECT - ( - col2 ) * cor0.col0 + + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - 47 + 37 + + col2 * - col1 AS col2 FROM tab1
----
-1258
-1414
-580

query I rowsort
SELECT ALL + col0 + + col2 * col1 * + col0 AS col0 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT - col2 * tab1.col0 + - col0 * - col1 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT col2 + - col0 * col2 AS col1 FROM tab0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * tab0.col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col0 - + col1 AS col0 FROM tab0
----
-110
-132
-180

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 ALL + cor0.col1 * + col0 + col1 AS col0 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT ALL col1 + - col2 + col1 FROM tab0
----
100
139
193

query I rowsort
SELECT col2 * col2 + col1 + col2 * col0 FROM tab2
----
2763
4463
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-6346
SELECT ALL - cor0.col0 * col1 DIV cor0.col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - cor0.col0 * col1 / cor0.col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL OR ( col0 ) NOT BETWEEN ( cor0.col2 + col0 * col2 ) AND col1
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 + col0 col1 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 * col2 - + col0 AS col1 FROM tab1 AS cor0
----
1181
1427
516

query I rowsort
SELECT DISTINCT + tab1.col1 + col2 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ( - col1 ) * + col2 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col0 + tab1.col2 * + col1 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + - cor0.col2 * - col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6355
SELECT ALL + col0 DIV col2 + col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL + col0 / col2 + col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT - col2 + - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT - 13 + col1 FROM tab2
----
18
4
46

query I rowsort
SELECT + 13 * col1 AS col0 FROM tab1 AS cor0
----
130
169
338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col0 + + cor0.col0 * col2 col0 FROM tab0 AS cor0
----
11392
1645
1896

query I rowsort
SELECT ALL - - col1 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * + col2 col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6362
SELECT ALL + col1 DIV - col0 + + col0 * - col1 AS col1 FROM tab2
----
-1343
-221
-4602

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL + col1 / - col0 + + col0 * - col1 AS col1 FROM tab2
----
-1343
-221
-4602

query I rowsort
SELECT DISTINCT - col1 * + col0 - col0 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2 WHERE NOT ( - col0 ) NOT IN ( tab2.col2 * col0 + col2 * - tab2.col0 )
----

query I rowsort
SELECT ALL - tab0.col0 * - col0 - + tab0.col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL col0 * col2 * - col1 AS col0 FROM tab1
----
-36480
-4212
-99840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - col2 / - col1 >= col1
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 + col0 * col1 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * tab1.col1 * + col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - col1 * + col1 + col1 * col1 - + col2 AS col2 FROM tab1
----
-54
-57
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col2 - - col2 * col1 AND ( NULL )
----

query I rowsort
SELECT ALL col2 * + col0 - tab1.col1 AS col0 FROM tab1 WHERE + col2 * col0 BETWEEN - col0 * col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 * + col2 col1 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab2 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 - col1 col2 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT ALL col0 + + col2 * + col0 * + col0 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL col2 + col2 * col0 + col1 FROM tab0
----
133
7471
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT col0 * col1 - + col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-6380
SELECT col0 * col1 - + col0 / - col0 AS col0 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT - col0 * col0 + + col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT + col1 * + col1 + - tab1.col2 * + col1 FROM tab1
----
-1079
-470
-728

query I rowsort
SELECT col2 * - tab0.col1 + col0 * + col0 FROM tab0
----
-2262
1128
459

onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT ALL col0 DIV - col0 - + tab0.col0 AS col2 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL col0 / - col0 - + tab0.col0 AS col2 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT + col0 - - col1 * tab2.col1 AS col2 FROM tab2
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 + + col0 - - col2 AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( col2 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + col2 * col0 col2 FROM tab0 cor0
----
14596
1584
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * + col0 + col0 <= col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( tab0.col2 )
----

query I rowsort
SELECT DISTINCT col2 * col1 + + col2 * col1 AS col1 FROM tab2
----
1292
1674
3068

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <= + col0
----
78
59
26
79
17
38

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
99

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0 WHERE tab0.col2 < NULL
----

query I rowsort
SELECT + + ( 70 ) + - col0 + cor0.col1 * + col2 * + col2 AS col2 FROM tab2 AS cor0
----
22662
24539
39876

query I rowsort
SELECT 26 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL 39 * - tab1.col0 FROM tab1
----
-117
-2496
-3120

query I rowsort
SELECT + ( cor0.col1 ) * col2 * 23 AS col0 FROM tab2 AS cor0
----
14858
19251
35282

query I rowsort
SELECT cor0.col0 + - col2 + col1 * + col0 FROM tab2 AS cor0
----
1384
197
4654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + col2 * 35 col0 FROM tab1
----
19950
43680
49140

query I rowsort
SELECT DISTINCT col0 * - 21 * - 57 FROM tab1 AS cor0
----
3591
76608
95760

query I rowsort
SELECT col1 * 59 AS col2 FROM tab0
----
5074
5369
5723

query I rowsort
SELECT - col0 * 15 AS col0 FROM tab1 AS cor0
----
-1200
-45
-960

query I rowsort
SELECT - col0 * 86 + col2 + col2 FROM tab0 AS cor0
----
-1998
-3008
-7490

query I rowsort
SELECT col2 + 45 * - 9 FROM tab2 AS cor0
----
-367
-378
-379

onlyif mysql # use DIV operator for integer division
query I rowsort label-6407
SELECT - - col1 DIV 48 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2065
3397
8100

skipif mysql # not compatible
query I rowsort label-6407
SELECT - - col1 / 48 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2065
3397
8100

query I rowsort
SELECT ( 38 ) * col2 + ( 39 ) * col2 + - col0 FROM tab1 AS cor0
----
4155
4325
7312

query I rowsort
SELECT ALL + col1 + + tab1.col2 + + tab1.col2 FROM tab1
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( col2 ) col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + - col2 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT - 62 * - cor0.col1 + + col2 * cor0.col2 FROM tab1 AS cor0
----
10022
3869
4528

query I rowsort
SELECT - 14 + - col2 FROM tab0 AS cor0
----
-15
-47
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6415
SELECT 71 + - 92 - col1 DIV + col2 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-6415
SELECT 71 + - 92 - col1 / + col2 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT + col1 + tab1.col2 * col0 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT - 71 * 97 AS col1 FROM tab2 AS cor0
----
-6887

query I rowsort
SELECT ALL col1 + + col1 + col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT col2 * col0 - col0 * - col1 * col2 AS col1 FROM tab2 cor0
----
121680
54036
6048

query I rowsort
SELECT ALL + + col2 + col0 * + col2 + col2 FROM tab0 AS cor0
----
37
7462
858

query I rowsort
SELECT - tab0.col0 * 51 FROM tab0
----
-1224
-1785
-4539

query I rowsort
SELECT + col2 * - 67 * + col2 FROM tab2
----
-45292
-48843
-96748

query I rowsort
SELECT DISTINCT col2 * - col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT cor0.col2 + - 65 FROM tab0 AS cor0
----
-32
-64
17

query I rowsort
SELECT DISTINCT + + 34 * - 53 * col1 FROM tab2 AS cor0
----
-106318
-30634
-55862

query I rowsort
SELECT ALL 30 * - col0 + - col0 FROM tab0 AS cor0
----
-1085
-2759
-744

query I rowsort
SELECT DISTINCT 0 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + 37 * + col0 AS col0 FROM tab0
----
1295
3293
888

query I rowsort
SELECT ALL 0 * col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col0 + col1 + col1 col1 FROM tab1 AS cor0
----
214
3668
7706

query I rowsort
SELECT + col2 * cor0.col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * - col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col1 * col0 + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 - - col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT 91 + + col1 + - col1 FROM tab1
----
91
91
91

query I rowsort
SELECT col0 + - col2 + - col2 FROM tab1
----
-105
-112
-50

query I rowsort
SELECT tab1.col0 * 1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6438
SELECT DISTINCT + 64 DIV col0 FROM tab2
----
0
9

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT + 64 / col0 FROM tab2
----
0
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT + 33 DIV 51 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6439
SELECT + 33 / 51 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col2 * - ( 57 * col0 ) AS col2 FROM tab2 AS cor0
----
10773
115596
171114

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6442
SELECT DISTINCT + cor0.col2 DIV - col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + cor0.col2 / - col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL col1 - col0 AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - col1 * col0 * 68 AS col2 FROM tab0 cor0
----
-140352
-230860
-550732

query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 AS col0 FROM tab2 cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * 90 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 1fff811c49f798da2e2601591b3d47bb

query I rowsort
SELECT ALL col1 * - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-6448
SELECT DISTINCT - cor0.col1 DIV - 49 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT - cor0.col1 / - 49 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT col0 + 69 * - col0 AS col0 FROM tab2 cor0
----
-476
-5304
-5372

query I rowsort
SELECT - cor0.col2 + + 69 + col2 AS col0 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT ALL col0 + col0 * col0 * col1 AS col1 FROM tab2 AS cor0
----
106176
1526
359034

onlyif mysql # use DIV operator for integer division
query I rowsort label-6452
SELECT ALL col1 DIV + ( 59 ) + col2 DIV - col1 + - col0 * + col2 * ( col0 ) FROM tab0 AS cor0
----
-1224
-19007
-649521

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL col1 / + ( 59 ) + col2 / - col1 + - col0 * + col2 * ( col0 ) FROM tab0 AS cor0
----
-1224
-19007
-649521

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT ALL + + cor0.col2 + 2 DIV - col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL + + cor0.col2 + 2 / - col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col2 * col1 + - tab1.col1 * + 26 FROM tab1
----
310
728
910

query I rowsort
SELECT + col2 - col2 * + col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - col0 + ( + col0 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 + col0 col2 FROM tab0
----
116
127
181

query I rowsort
SELECT ALL col1 + - col2 * - 7 AS col1 FROM tab2
----
220
241
283

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6460
SELECT CAST( NULL AS SIGNED ) col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6460
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + + col1 + col0 - - 73 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1337
2301
4444

query I rowsort
SELECT - col2 + ( col0 ) AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col0 + 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-6464
SELECT + - col1 + CAST( NULL AS SIGNED ) * - ( - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT + - col1 + CAST ( NULL AS INTEGER ) * - ( - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col2 * - col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab2, tab1 AS cor0
----
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6467
SELECT - CAST( 31 AS SIGNED ) * - col0 + - CAST( + col0 + + col2 AS SIGNED ) FROM tab2 AS cor0
----
183
2314
2332

skipif mysql # not compatible
query I rowsort label-6467
SELECT - CAST ( 31 AS INTEGER ) * - col0 + - CAST ( + col0 + + col2 AS INTEGER ) FROM tab2 AS cor0
----
183
2314
2332

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6468
SELECT ALL - tab1.col2 - col0 * col1 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - tab1.col2 - col0 * col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col1 - col1 * - ( + ( + col1 ) ) AS col0 FROM tab1
----
-1079
-470
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + - tab2.col0 col0 FROM tab2
----
-134
-135
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6471
SELECT DISTINCT + col2 DIV col2 + ( - col1 ) * col0 FROM tab1 AS cor0
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + col2 / col2 + ( - col1 ) * col0 FROM tab1 AS cor0
----
-1039
-639
-77

query I rowsort
SELECT ALL + col1 + col0 * - 78 AS col0 FROM tab0
----
-1786
-2633
-6851

query I rowsort
SELECT - - col2 * + col1 + col2 + - col1 FROM tab2 AS cor0
----
1501
667
833

onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT ( + col2 ) DIV col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6474
SELECT ( + col2 ) / col1 + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT - + ( col1 ) * 17 + col1 + col1 DIV 6 FROM tab1 AS cor0
----
-159
-206
-412

skipif mysql # not compatible
query I rowsort label-6475
SELECT - + ( col1 ) * 17 + col1 + col1 / 6 FROM tab1 AS cor0
----
-159
-206
-412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT ALL + 32 * - col2 FROM tab0 AS cor0
----
-1056
-2624
-32

query I rowsort
SELECT ALL col2 + col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT 30 * - 77 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 400a61de788e18c0d09db057e62bb2a1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 + - cor0.col1 col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT + tab0.col1 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT tab1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT 81 + - col2 * - tab0.col1 AS col2 FROM tab0
----
178
2919
7543

query I rowsort
SELECT + ( - tab0.col0 ) + - ( ( + col2 ) ) AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - - 48 + col0 * col2 * + col0 + col2 * - col0 FROM tab1 AS cor0
----
229872
372
606768

query I rowsort
SELECT DISTINCT - 17 * col0 FROM tab2 AS cor0
----
-119
-1326
-1343

query I rowsort
SELECT ALL - col2 * col0 * col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6488
SELECT + col1 + - col2 * CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

skipif mysql # not compatible
query I rowsort label-6488
SELECT + col1 + - col2 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL 98 * col1 AS col1 FROM tab1 AS cor0
----
1274
2548
980

query I rowsort
SELECT ALL - col1 * ( col0 * col0 ) AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL + + col2 + col1 + - col0 FROM tab1 AS cor0
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6492
SELECT DISTINCT - col2 DIV + ( + col1 + + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT - col2 / + ( + col1 + + col1 ) FROM tab0
----
0

query I rowsort
SELECT col2 * + col0 + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + 85 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - col2 + - 42 * + ( cor0.col1 * - 56 ) AS col2 FROM tab1 AS cor0
----
23463
30480
61098

query I rowsort
SELECT ALL + - cor0.col2 - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT DISTINCT col0 DIV 88 - + col0 * col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT col0 / 88 - + col0 * col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 * - col2 col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - 66 * ( col2 ) * cor0.col2 AS col0 FROM tab0 cor0
----
-443784
-66
-71874

onlyif mysql # use DIV operator for integer division
query I rowsort label-6501
SELECT ALL CAST( col2 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL CAST ( col2 AS INTEGER ) / col1 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6502
SELECT DISTINCT cor0.col2 DIV 59 AS col2 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT cor0.col2 / 59 AS col2 FROM tab0 cor0
----
0
1

query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL 45 * - col2 FROM tab0 cor0
----
-1485
-3690
-45

query I rowsort
SELECT DISTINCT - col1 * 1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - col0 + + col0 + - tab0.col0 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6507
SELECT ( - tab0.col1 ) DIV - col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6507
SELECT ( - tab0.col1 ) / - col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - col1 ) * + ( - ( - col2 ) ) col0 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col2 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT + ( + 23 ) + col0 AS col2 FROM tab1
----
103
26
87

query I rowsort
SELECT + 80 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6512
SELECT DISTINCT + col0 + - tab0.col2 DIV col0 - ( ( + col1 ) ) FROM tab0
----
-2
-62
-63

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT + col0 + - tab0.col2 / col0 - ( ( + col1 ) ) FROM tab0
----
-2
-62
-63

query I rowsort
SELECT + col1 * col0 + col2 * col0 AS col2 FROM tab0
----
15397
2856
3430

onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT DISTINCT - col2 - + col2 * col0 DIV - col1 FROM tab1
----
-48
307
494

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - col2 - + col2 * col0 / - col1 FROM tab1
----
-48
307
494

query I rowsort
SELECT 49 * col1 FROM tab2
----
1519
2891
833

query I rowsort
SELECT col1 * tab0.col0 * + 30 + - col0 * - col0 + + ( - col0 ) AS col1 FROM tab0
----
103040
250802
62472

query I rowsort
SELECT - - cor0.col1 * col1 - - col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT - ( cor0.col1 * - tab1.col1 ) FROM tab1, tab1 AS cor0
----
100
130
169
260
338
676

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - col1 + + 73 * - cor0.col2 * 19 AS col2 FROM tab2 AS cor0
----
-36121
-37480
-52723

query I rowsort
SELECT - 60 FROM tab1, tab2 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT - + ( + cor0.col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - col2 * - col2 + col1 * 37 FROM tab2 AS cor0
----
1876
2073
2859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + col1 col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT 50 * + col2 AS col2 FROM tab2
----
1300
1350
1900

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT ALL - col1 * col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - col1 * col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT + 49 * col0 * CAST ( - ( col2 ) AS REAL ) + col1 * + tab2.col2 * - col2 AS col0 FROM tab2
----
-139256
-171646
-31860

query I rowsort
SELECT - + cor0.col2 + + cor0.col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + + col1 + - col0 - col0 AS col0 FROM tab2 AS cor0
----
-141
-97
17

query I rowsort
SELECT + col0 * 56 * - col1 AS col1 FROM tab0 AS cor0
----
-115584
-190120
-453544

query I rowsort
SELECT - cor0.col2 - + col0 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT col0 DIV col1 - - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6532
SELECT col0 / col1 - - col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6533
SELECT + col2 DIV col1 + - 81 FROM tab0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-6533
SELECT + col2 / col1 + - 81 FROM tab0
----
-81
-81
-81

query I rowsort
SELECT - 15 FROM tab0, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT - - col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT - col2 * 91 DIV 69 FROM tab1 cor0
----
-126
-71
-75

skipif mysql # not compatible
query I rowsort label-6536
SELECT - col2 * 91 / 69 FROM tab1 cor0
----
-126
-71
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL 85 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-555
-955
7

query I rowsort
SELECT DISTINCT - - 13 * + ( col2 ) + + cor0.col1 AS col1 FROM tab2 AS cor0
----
382
397
511

query I rowsort
SELECT DISTINCT + col2 * 51 AS col0 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT DISTINCT + - 14 * - 33 * + col0 FROM tab2 AS cor0
----
3234
36036
36498

onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT 59 DIV 71 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6542
SELECT 59 / 71 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6543
SELECT + CAST( NULL AS SIGNED ) * - col0 + col1 * + 11 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT + CAST ( NULL AS INTEGER ) * - col0 + col1 * + 11 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 18 ) * col1 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT + - 17 * col0 + col2 * col2 FROM tab2 AS cor0
----
-650
101
610

query I rowsort
SELECT ALL + col1 + 76 * + col0 AS col1 FROM tab0 cor0
----
1910
2757
6855

query I rowsort
SELECT ALL 41 + col2 AS col1 FROM tab2 cor0
----
67
68
79

query I rowsort
SELECT ALL 11 AS col2 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT - col2 * col1 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6550
SELECT DISTINCT - + col0 DIV 32 AS col2 FROM tab1 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - + col0 / 32 AS col2 FROM tab1 cor0
----
-2
0

query I rowsort
SELECT + - 63 * cor0.col1 - col0 FROM tab0 AS cor0
----
-5442
-5822
-6146

query I rowsort
SELECT ALL - 7 * - col2 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT + + col2 * - cor0.col0 + col1 + cor0.col2 FROM tab0 AS cor0
----
-673
-7125
63

query I rowsort
SELECT - 32 * col1 AS col2 FROM tab2 AS cor0
----
-1888
-544
-992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6555
SELECT - CAST( 13 * + col1 AS SIGNED ) AS col0 FROM tab1
----
-130
-169
-338

skipif mysql # not compatible
query I rowsort label-6555
SELECT - CAST ( 13 * + col1 AS INTEGER ) AS col0 FROM tab1
----
-130
-169
-338

query I rowsort
SELECT ALL col0 * 68 FROM tab0
----
1632
2380
6052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + col0 * - col2 + ( - col0 ) * col1 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT ALL + col0 * - col0 + - col2 * col1 AS col0 FROM tab0 cor0
----
-1322
-15383
-3414

query I rowsort
SELECT ALL + + col1 * 10 + col2 - - col1 FROM tab1 AS cor0
----
167
239
340

query I rowsort
SELECT DISTINCT col2 * 16 + - 44 AS col0 FROM tab0 AS cor0
----
-28
1268
484

query I rowsort
SELECT DISTINCT - col2 * col2 + 73 FROM tab1 AS cor0
----
-2843
-3176
-9143

query I rowsort
SELECT DISTINCT - tab0.col2 * - 7 * + 60 AS col2 FROM tab0, tab2 AS cor0
----
13860
34440
420

query I rowsort
SELECT tab0.col0 * col0 + + ( - col0 ) FROM tab0
----
1190
552
7832

query I rowsort
SELECT ALL + ( + 51 ) AS col0 FROM tab2
----
51
51
51

query I rowsort
SELECT ALL + 25 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT - 80 + + 61 AS col0 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT cor0.col2 + 60 * + 68 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d89ebf04f5fef3adbebf277b85ce889c

query I rowsort
SELECT - col2 * + 63 AS col0 FROM tab1 AS cor0
----
-3402
-3591
-6048

query I rowsort
SELECT ALL + + col1 + ( - col2 ) * ( cor0.col1 + col1 ) AS col1 FROM tab0 cor0
----
-14833
-5590
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + cor0.col0 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - cor0.col1 * - col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * col2 * col2 FROM tab2 cor0
----
17498
19676
54793

onlyif mysql # use DIV operator for integer division
query I rowsort label-6574
SELECT ALL - col2 + - col2 DIV 96 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL - col2 + - col2 / 96 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT col0 * col1 * + col2 + 27 DIV col0 + 37 AS col2 FROM tab1 AS cor0
----
36517
4258
99877

skipif mysql # not compatible
query I rowsort label-6575
SELECT col0 * col1 * + col2 + 27 / col0 + 37 AS col2 FROM tab1 AS cor0
----
36517
4258
99877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col1 * col0 col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + - col2 + col1 * + col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + 96 + col1 FROM tab2
----
113
127
155

query I rowsort
SELECT ALL col1 * col0 + col2 + col0 FROM tab1
----
1216
135
761

query I rowsort
SELECT ALL 21 + + 5 FROM tab1
----
26
26
26

query I rowsort
SELECT - - 29 + + col2 AS col1 FROM tab1 AS cor0
----
125
83
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT ALL 20 DIV + col2 + - col2 AS col1 FROM tab0
----
-33
-82
19

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL 20 / + col2 + - col2 AS col1 FROM tab0
----
-33
-82
19

query I rowsort
SELECT col0 * 24 - - col2 FROM tab2
----
1898
1934
195

query I rowsort
SELECT DISTINCT - col2 + + col0 * cor0.col0 + col0 FROM tab1 AS cor0
----
-42
4103
6384

query I rowsort
SELECT ALL + - col2 * col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col0 - col1 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT - col1 + - 56 * + col1 FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT ALL + + col1 * - col2 * 48 + col2 FROM tab0 AS cor0
----
-136191
-358094
-4655

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6589
SELECT DISTINCT cor0.col2 + - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT cor0.col2 + - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + 21 FROM tab0 AS cor0
----
-12
-61
20

query I rowsort
SELECT DISTINCT - + col0 * 57 - - col2 AS col0 FROM tab0 AS cor0
----
-1335
-1994
-4991

query I rowsort
SELECT ALL - + cor0.col1 * - 32 AS col1 FROM tab0 cor0
----
2752
2912
3104

query I rowsort
SELECT col1 * - col1 - - 2 AS col2 FROM tab1 AS cor0
----
-167
-674
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT ALL col2 DIV - ( - col0 * - col0 ) + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL col2 / - ( - col0 * - col0 ) + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL cor0.col0 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6597
SELECT DISTINCT + col0 - - CAST( + col2 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT + col0 - - CAST ( + col2 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + + col1 + col1 * 82 FROM tab0 AS cor0
----
7138
7553
8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - cor0.col0 col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + cor0.col2 * 83 + ( col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
10135
15087
9492

query I rowsort
SELECT DISTINCT cor0.col0 * + 95 + - 17 * + col2 AS col1 FROM tab0 AS cor0
----
1719
3308
7061

query I rowsort
SELECT DISTINCT - col1 * 85 * + col0 FROM tab0 AS cor0
----
-175440
-288575
-688415

query I rowsort
SELECT DISTINCT + cor0.col0 + col1 + - col2 AS col2 FROM tab0 cor0
----
131
77
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT ALL col2 DIV 73 + - col0 FROM tab1 AS cor0
----
-3
-64
-79

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL col2 / 73 + - col0 FROM tab1 AS cor0
----
-3
-64
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT ALL + col2 DIV + 51 - col2 AS col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + col2 / + 51 - col2 AS col2 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT 33 * + 71 + + col0 FROM tab1 AS cor0
----
2346
2407
2423

query I rowsort
SELECT - - 11 * col0 + + col1 FROM tab2 AS cor0
----
108
886
917

query I rowsort
SELECT 29 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT col0 + 30 * col0 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT + + col2 * cor0.col2 + col1 * ( col2 + + col2 * + ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-117442
-4293
-48944

query I rowsort
SELECT + col0 * - 42 + col2 * - 10 * - 55 FROM tab0 AS cor0
----
-920
17142
41362

query I rowsort
SELECT col2 * col0 - + col2 * col2 AS col1 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT - cor0.col0 * col0 - col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL - tab2.col1 * - ( col2 ) FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6615
SELECT ALL - - CAST( - col1 AS SIGNED ) + + col0 + - col2 col0 FROM tab0 cor0
----
-63
-84
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - - CAST ( - col1 AS INTEGER ) + + col0 + - col2 col0 FROM tab0 cor0
----
-63
-84
-95

query I rowsort
SELECT + - 95 + + 42 AS col1 FROM tab2 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * col2 + 65 col0 FROM tab1 AS cor0
----
-1183
-1339
-505

query I rowsort
SELECT 0 * ( + cor0.col0 ) - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT DISTINCT + - col2 * - col1 + - 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-6619
SELECT DISTINCT + - col2 * - col1 + - col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * + col0 * + 76 + - col0 AS col0 FROM tab2
----
101989
16485
349674

query I rowsort
SELECT - - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ( col0 ) * - col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6623
SELECT DISTINCT - - col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT - - col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + - 55 + - col0 AS col1 FROM tab2 AS cor0
----
-133
-134
-62

query I rowsort
SELECT - + 41 * col0 * + col2 FROM tab1 AS cor0
----
-149568
-314880
-6642

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
89

query I rowsort
SELECT + col1 * + col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL + col1 * - 21 FROM tab1 AS cor0
----
-210
-273
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT - 42 * 34 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1fa8f6e9829ed3e3230c20b8cb520ee9

query I rowsort
SELECT - - col2 + - col2 * - 1 * + cor0.col0 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT + col1 + - 57 * - 84 FROM tab2 cor0
----
4805
4819
4847

query I rowsort
SELECT DISTINCT + ( 99 ) AS col2 FROM tab2, tab2 AS cor0
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6634
SELECT DISTINCT col1 - - col2 * col2 DIV - ( + col0 + col2 ) AS col1 FROM tab1
----
-16
-25
-39

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT col1 - - col2 * col2 / - ( + col0 + col2 ) AS col1 FROM tab1
----
-16
-25
-39

query I rowsort
SELECT - + col2 + - cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - col2 * + 81 + cor0.col1 * col2 + 63 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-909
2545
4342

onlyif mysql # use DIV operator for integer division
query I rowsort label-6637
SELECT col1 DIV col0 + col0 AS col2 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-6637
SELECT col1 / col0 + col0 AS col2 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ALL - + 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + + 93 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 551dde140f452eb43ad412c25452df50

query I rowsort
SELECT + col0 * col2 * col1 AS col2 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT + ( col1 ) + col2 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT + col1 DIV 64 + col0 + col1 * + cor0.col0 * col1 FROM tab2 AS cor0
----
22910
271596
6734

skipif mysql # not compatible
query I rowsort label-6642
SELECT + col1 / 64 + col0 + col1 * + cor0.col0 * col1 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT + 45 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + ( + 78 ) AS col2 FROM tab1
----
78
78
78

query I rowsort
SELECT + 61 * 92 AS col2 FROM tab1 AS cor0
----
5612
5612
5612

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
24
35
89

query I rowsort
SELECT 53 + - col1 AS col0 FROM tab2
----
-6
22
36

query I rowsort
SELECT 60 + col2 * - col2 FROM tab1
----
-2856
-3189
-9156

query I rowsort
SELECT col2 + col0 * col0 AS col1 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + ( + col2 ) - col1 * 21 FROM tab0 cor0
----
-1773
-1829
-2036

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6652
SELECT ALL col1 * cor0.col1 * CAST( col2 * col0 AS SIGNED ) + + col1 col1 FROM tab2 AS cor0
----
181660
7059527
867595

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL col1 * cor0.col1 * CAST ( col2 * col0 AS INTEGER ) + + col1 col1 FROM tab2 AS cor0
----
181660
7059527
867595

query I rowsort
SELECT DISTINCT col2 + - ( col1 ) * col0 + - ( - col1 * + col1 ) FROM tab2
----
-1016
-1095
771

query I rowsort
SELECT DISTINCT - col2 + 29 FROM tab0
----
-4
-53
28

query I rowsort
SELECT ALL + col1 + - col1 * 81 * - col2 AS col2 FROM tab1
----
101101
113750
46180

query I rowsort
SELECT + col0 * ( - 69 ) AS col1 FROM tab0
----
-1656
-2415
-6141

query I rowsort
SELECT ( + 43 ) AS col1 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6658
SELECT 33 DIV + ( col2 * col1 ) AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT 33 / + ( col2 * col1 ) AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6659
SELECT DISTINCT cor0.col1 * col2 DIV - col0 AS col2 FROM tab2 cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT cor0.col1 * col2 / - col0 AS col2 FROM tab2 cor0
----
-119
-19
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6660
SELECT ALL - CAST( + 71 AS SIGNED ) FROM tab0 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - CAST ( + 71 AS INTEGER ) FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT col0 * + ( + 35 ) AS col1 FROM tab0
----
1225
3115
840

query I rowsort
SELECT - col0 * + 61 * col2 FROM tab1
----
-222528
-468480
-9882

query I rowsort
SELECT + - ( - cor0.col1 ) + - col0 + - col1 AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - - ( - col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 36 + - 33 * - col2 + - cor0.col2 * ( cor0.col2 + - ( - col1 ) ) FROM tab2 AS cor0
----
-1316
-639
-800

query I rowsort
SELECT ALL + ( + col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + col2 col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - + tab0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT + col2 + - tab1.col1 * + col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6671
SELECT - col1 * col0 + ( + 60 ) DIV col0 FROM tab1
----
-1040
-58
-640

skipif mysql # not compatible
query I rowsort label-6671
SELECT - col1 * col0 + ( + 60 ) / col0 FROM tab1
----
-1040
-58
-640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6672
SELECT DISTINCT col0 * tab0.col1 + - 25 DIV tab0.col1 - + col1 * tab0.col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT col0 * tab0.col1 + - 25 / tab0.col1 - + col1 * tab0.col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT 95 + col0 - col1 FROM tab2
----
114
157
71

query I rowsort
SELECT ( col1 * - 32 ) + 27 * - col2 AS col0 FROM tab1
----
-1859
-2290
-3008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6675
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6675
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 2 * - col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6677
SELECT ALL col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 89 * - col2 AS col2 FROM tab1
----
-4806
-5073
-8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT ( + col2 ) DIV - 97 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6679
SELECT ( + col2 ) / - 97 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf

query I rowsort
SELECT DISTINCT col1 * + 86 AS col0 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT + col0 + col2 + col2 AS col2 FROM tab1
----
111
178
272

query I rowsort
SELECT + - col1 + - 52 * col1 AS col2 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT + col1 * + col2 * + col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - col0 + col1 * + 72 AS col1 FROM tab2 cor0
----
1145
2225
4170

query I rowsort
SELECT col1 - ( - col1 ) * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-6688
SELECT ALL - col0 DIV col2 + col0 * + col1 FROM tab1 cor0
----
1040
639
78

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - col0 / col2 + col0 * + col1 FROM tab1 cor0
----
1040
639
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6689
SELECT CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6689
SELECT CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6690
SELECT DISTINCT + col1 + 57 - col2 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3581
-7610
-79

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT + col1 + 57 - col2 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3581
-7610
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * col1 + - 34 * + col2 col2 FROM tab0 AS cor0
----
176382
329281
734221

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab0, tab0 AS cor0
----
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT DISTINCT - col0 * col0 + col1 DIV - 20 + - 29 AS col0 FROM tab1 AS cor0
----
-39
-4125
-6429

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT - col0 * col0 + col1 / - 20 + - 29 AS col0 FROM tab1 AS cor0
----
-39
-4125
-6429

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6694
SELECT ALL + CAST( NULL AS SIGNED ) * + 92 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL + CAST ( NULL AS INTEGER ) * + 92 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 26 * col1 FROM tab1 AS cor0
----
260
338
676

query I rowsort
SELECT ALL - 76 + + col0 AS col1 FROM tab0 AS cor0
----
-41
-52
13

query I rowsort
SELECT ALL + ( col1 ) * col0 - + 1 * + 9 AS col0 FROM tab1 AS cor0
----
1031
631
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6698
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 40 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT CAST ( NULL AS REAL ) + - 40 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 * 15 * - col1 + col2 FROM tab1 AS cor0
----
1224
15696
9657

onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT 6 DIV - col2 FROM tab0 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-6700
SELECT 6 / - col2 FROM tab0 AS cor0
----
-6
0
0

query I rowsort
SELECT DISTINCT + - col0 + - 74 * + col1 FROM tab0 AS cor0
----
-6388
-6823
-7213

query I rowsort
SELECT DISTINCT + 73 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT ALL + col2 + - col0 DIV + ( 2 ) AS col2 FROM tab1 AS cor0
----
25
53
56

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + col2 + - col0 / + ( 2 ) AS col2 FROM tab1 AS cor0
----
25
53
56

query I rowsort
SELECT DISTINCT col2 + col0 * col0 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - 15 + col0 * col1 FROM tab0 AS cor0
----
2049
3380
8084

query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + - 43 * + col1 FROM tab1 AS cor0
----
-1118
-430
-559

query I rowsort
SELECT - + 46 * + col2 AS col0 FROM tab0 cor0
----
-1518
-3772
-46

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 * 3 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-10150
-24208
-6168

query I rowsort
SELECT DISTINCT - + 32 * cor0.col1 AS col0 FROM tab2 cor0
----
-1888
-544
-992

query I rowsort
SELECT ALL + - 71 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
-68
-7
9

query I rowsort
SELECT ALL + 37 * col0 + - 95 AS col0 FROM tab0 AS cor0
----
1200
3198
793

query I rowsort
SELECT - + 37 * cor0.col1 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT ALL - col1 + col2 - - cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1129
523
7912

query I rowsort
SELECT - + 93 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT + col1 * 60 + + tab0.col0 FROM tab0
----
5184
5549
5855

onlyif mysql # use DIV operator for integer division
query I rowsort label-6717
SELECT - 70 * + col1 + + tab0.col1 DIV + 66 AS col2 FROM tab0
----
-6019
-6369
-6789

skipif mysql # not compatible
query I rowsort label-6717
SELECT - 70 * + col1 + + tab0.col1 / + 66 AS col2 FROM tab0
----
-6019
-6369
-6789

query I rowsort
SELECT + col0 * - 62 + col1 AS col2 FROM tab0 AS cor0
----
-1402
-2073
-5427

onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT ALL - + 61 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - + 61 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 + - 4 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-27

query I rowsort
SELECT DISTINCT cor0.col2 + ( ( + cor0.col1 ) + + 81 ) FROM tab0, tab2 AS cor0
----
136
139
166

query I rowsort
SELECT - col1 + + 76 AS col0 FROM tab2
----
17
45
59

query I rowsort
SELECT 63 + ( cor0.col1 ) AS col1 FROM tab0 cor0
----
149
154
160

query I rowsort
SELECT + - ( + 2 ) AS col1 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL 43 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT DISTINCT col0 + tab1.col0 * col1 DIV col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT col0 + tab1.col0 * col1 / col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort
SELECT col2 + + CAST ( - col2 AS REAL ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL tab2.col1 + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 07a9fa96c94913f866af2be611e89dab

query I rowsort
SELECT ALL col0 * ( col0 ) AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT 26 * - col0 * - col2 FROM tab0
----
189748
20592
910

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + ( + 95 ) - col1 AS col2 FROM tab1 AS cor0
----
69
82
85

query I rowsort
SELECT ALL - col1 + + col0 * - col1 * 43 AS col0 FROM tab0 AS cor0
----
-146082
-348348
-88838

query I rowsort
SELECT 91 * - 33 + col0 FROM tab0 AS cor0
----
-2914
-2968
-2979

query I rowsort
SELECT DISTINCT - + 70 - 33 * - cor0.col2 FROM tab1 AS cor0
----
1712
1811
3098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 - ( ( - col2 ) + + col0 ) col2 FROM tab1
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6737
SELECT col2 + cor0.col0 * 72 DIV col0 AS col2 FROM tab2 AS cor0
----
110
98
99

skipif mysql # not compatible
query I rowsort label-6737
SELECT col2 + cor0.col0 * 72 / col0 AS col2 FROM tab2 AS cor0
----
110
98
99

query I rowsort
SELECT + col1 * - ( - 77 ) FROM tab1 AS cor0
----
1001
2002
770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6739
SELECT + col2 / CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT + col2 / CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 48 col2 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT - 29 * + 85 FROM tab1 AS cor0
----
-2465
-2465
-2465

query I rowsort
SELECT ( - 91 ) + + col0 AS col0 FROM tab2 AS cor0
----
-12
-13
-84

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab0, tab1 cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe

query I rowsort
SELECT ALL - 8 AS col1 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ( + 89 ) * + col1 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT col1 + + col2 * + 93 AS col1 FROM tab1 AS cor0
----
5048
5311
8941

onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT + col2 * col0 + - ( - 17 + + col1 ) DIV + cor0.col1 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6747
SELECT + col2 * col0 + - ( - 17 + + col1 ) / + cor0.col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6748
SELECT + col0 DIV 64 + - col2 AS col0 FROM tab2
----
-25
-27
-37

skipif mysql # not compatible
query I rowsort label-6748
SELECT + col0 / 64 + - col2 AS col0 FROM tab2
----
-25
-27
-37

query I rowsort
SELECT - + 49 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # use DIV operator for integer division
query I rowsort label-6750
SELECT - - col0 + + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-6750
SELECT - - col0 + + col1 / col2 AS col2 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT - cor0.col0 + ( - ( col0 ) ) AS col2 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT - tab0.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT 95 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT cor0.col0 + col1 * col0 * col2 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT - col1 * cor0.col0 + + 67 + - col1 FROM tab2 AS cor0
----
-1293
-181
-4594

query I rowsort
SELECT ALL - col0 * - 65 + col1 AS col2 FROM tab1 AS cor0
----
221
4170
5213

query I rowsort
SELECT DISTINCT + cor0.col2 - 84 * - col1 AS col2 FROM tab2 AS cor0
----
1466
2631
4982

query I rowsort
SELECT ALL col2 - + col1 * col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col2 + 24 FROM tab2 AS cor0
----
50
51
62

query I rowsort
SELECT cor0.col2 * - ( - 72 ) + col1 AS col2 FROM tab0 AS cor0
----
169
2462
5995

query I rowsort
SELECT ALL - + col0 * col0 * + 88 + col0 AS col0 FROM tab1 AS cor0
----
-360384
-563120
-789

query I rowsort
SELECT ALL col0 + + 27 FROM tab0
----
116
51
62

query I rowsort
SELECT col0 * 8 FROM tab0
----
192
280
712

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6765
SELECT - col0 * + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT - col0 * + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 95 * cor0.col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-269610
-708890
-9215

query I rowsort
SELECT - - ( + col2 ) * col2 - col1 AS col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL tab1.col1 * tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + 32 + ( col2 * col2 + ( col0 ) ) FROM tab2
----
1555
768
786

onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT ( col1 ) DIV col1 + col2 col0 FROM tab2 AS cor0
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6770
SELECT ( col1 ) / col1 + col2 col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT - col0 * cor0.col0 - 18 FROM tab2 AS cor0
----
-6102
-6259
-67

query I rowsort
SELECT + 78 * col0 + ( col0 + + col1 ) * 91 AS col1 FROM tab0 AS cor0
----
11882
14742
23322

query I rowsort
SELECT col2 + + col1 * + 78 AS col2 FROM tab2 AS cor0
----
1364
2445
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT ALL + - col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + - col0 / - col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + - col1 col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + 97 - - cor0.col2 FROM tab2 AS cor0
----
123
124
135

query I rowsort
SELECT col0 * col0 * + col0 + 7 * + col2 * ( col2 * cor0.col1 ) AS col0 FROM tab0 AS cor0
----
43554
4988157
669402

query I rowsort
SELECT ALL cor2.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT 38 * - col0 FROM tab0 AS cor0
----
-1330
-3382
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT DISTINCT + col2 DIV + col0 - col2 col0 FROM tab1 AS cor0
----
-36
-57
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT + col2 / + col0 - col2 col0 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT + - cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT col0 * + tab1.col0 + 27 AS col0 FROM tab1
----
36
4123
6427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT - col2 + col1 * col0 AS col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT 81 * - col0 FROM tab0
----
-1944
-2835
-7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT 43 DIV - col2 FROM tab0
----
-1
-43
0

skipif mysql # not compatible
query I rowsort label-6786
SELECT 43 / - col2 FROM tab0
----
-1
-43
0

query I rowsort
SELECT - 33 + - col1 FROM tab2
----
-50
-64
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT DISTINCT - 85 * col0 + + ( 69 ) DIV + col1 FROM tab2
----
-593
-6629
-6711

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT - 85 * col0 + + ( 69 ) / + col1 FROM tab2
----
-593
-6629
-6711

query I rowsort
SELECT - 22 - + 15 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT DISTINCT col2 + - ( 49 ) FROM tab2
----
-11
-22
-23

query I rowsort
SELECT ALL col1 + ( + col0 ) + + tab0.col1 FROM tab0
----
196
229
271

query I rowsort
SELECT ALL col1 + 70 AS col2 FROM tab1
----
80
83
96

query I rowsort
SELECT ALL col0 + - 15 AS col0 FROM tab1
----
-12
49
65

query I rowsort
SELECT - 28 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1197
548
7893

query I rowsort
SELECT DISTINCT col0 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col2 * + 59 AS col0 FROM tab1 AS cor0
----
-3186
-3363
-5664

query I rowsort
SELECT DISTINCT - + 24 * col0 FROM tab0 AS cor0
----
-2136
-576
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6798
SELECT DISTINCT + col0 - col2 DIV - col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT + col0 - col2 / - col2 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT col2 DIV 48 + col2 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-6799
SELECT col2 / 48 + col2 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT ALL - + col0 * - col1 * col1 + col1 AS col1 FROM tab0 AS cor0
----
177590
329412
737100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + 28 - cor0.col2 col0 FROM tab1 AS cor0
----
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6802
SELECT + + CAST( ( + col2 ) AS SIGNED ) * CAST( ( + col2 ) AS SIGNED ) + + 21 FROM tab0 cor0
----
1110
22
6745

skipif mysql # not compatible
query I rowsort label-6802
SELECT + + CAST ( ( + col2 ) AS INTEGER ) * CAST ( ( + col2 ) AS INTEGER ) + + 21 FROM tab0 cor0
----
1110
22
6745

onlyif mysql # use DIV operator for integer division
query I rowsort label-6803
SELECT DISTINCT + 45 DIV + ( col1 + - 93 ) FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT + 45 / + ( col1 + - 93 ) FROM tab2 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT CAST( - 23 AS SIGNED ) DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT CAST ( - 23 AS INTEGER ) / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 2 + ( col0 ) AS col0 FROM tab0 AS cor0
----
22
33
87

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6807
SELECT DISTINCT ( - col0 ) * + cor0.col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT ( - col0 ) * + cor0.col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col1 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + - col0 * col2 * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + ( col1 ) col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + col2 + + 28 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT ALL + col0 + - ( col2 ) * cor0.col0 * 54 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-11160
-112915
-162318

query I rowsort
SELECT - col0 + + 60 FROM tab2 cor0
----
-18
-19
53

query I rowsort
SELECT ALL - col1 + 36 + col0 AS col1 FROM tab1 AS cor0
----
103
13
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * - col0 + col2 + col0 col1 FROM tab1 AS cor0
----
-21
-519
-864

query I rowsort
SELECT - col2 * - col2 + ( col1 ) FROM tab1 AS cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + ( - 38 ) col1 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT + + col0 * 49 + col2 AS col0 FROM tab2 AS cor0
----
370
3848
3909

skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 * + CAST ( col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT col0 * + cor0.col0 + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
1322
578
7922

skipif mysql # not compatible
query I rowsort label-6821
SELECT col0 * + cor0.col0 + col1 / + col2 AS col2 FROM tab0 AS cor0
----
1322
578
7922

query I rowsort
SELECT - col0 + col2 + - cor0.col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - tab1.col1 + tab1.col2 * + col2 AS col1 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT + - col2 * + col0 + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT col2 + - 77 + col2 * + 53 AS col1 FROM tab0 cor0
----
-23
1705
4351

query I rowsort
SELECT - col1 + 9 AS col2 FROM tab1 AS cor0
----
-1
-17
-4

query I rowsort
SELECT ALL col2 - ( + col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT ALL cor0.col1 DIV col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL cor0.col1 / col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + col1 * - ( + col1 ) FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 71 * tab0.col0 AS col0 FROM tab0
----
1704
2485
6319

query I rowsort
SELECT - 24 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + - col1 col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT col2 * col2 + col2 AS col0 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT col0 FROM tab2 WHERE col1 - + col2 >= - col1 - col2
----
7
78
79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + tab1.col0 )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( tab2.col2 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 + col0 col1 FROM tab1
----
131
189
83

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT - col1 * + tab1.col2 DIV tab1.col2 AS col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6840
SELECT - col1 * + tab1.col2 / tab1.col2 AS col2 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT col0 DIV + col0 + 23 FROM tab0 cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-6841
SELECT col0 / + col0 + 23 FROM tab0 cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL col2 * cor0.col1 + - 34 AS col1 FROM tab0 AS cor0
----
2804
63
7428

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT - - col0 DIV + col1 - + col2 AS col2 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-6844
SELECT - - col0 / + col1 - + col2 AS col2 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT 11 + cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
108
2849
7473

query I rowsort
SELECT ALL - col0 + col2 * - col2 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT ALL - ( col2 ) * ( 81 ) + col1 * 29 FROM tab0
----
-179
-4003
2732

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT col2 * + col2 - + col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT + + col1 - col0 * 81 FROM tab2 AS cor0
----
-536
-6259
-6382

query I rowsort
SELECT - - col0 * col0 + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL - + cor0.col1 + + col0 * ( - 95 ) AS col0 FROM tab0 AS cor0
----
-2366
-3422
-8546

query I rowsort
SELECT ALL - 4 * col2 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT - + 55 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-119
-135
-58

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + col2 AS col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT col1 + col0 * col0 AS col1 FROM tab2 cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT ALL 49 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL 49 / + col0 AS col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT cor0.col1 * col1 * 97 AS col0 FROM tab0 AS cor0
----
717412
803257
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 * 16 col2 FROM tab0 AS cor0
----
-129584
-33024
-54320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 97 * - col2 + col0 col0 FROM tab2 AS cor0
----
18340
196794
291273

query I rowsort
SELECT ALL - - col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col0 * - 20 AS col0 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT cor0.col1 * - 98 FROM tab0 cor0
----
-8428
-8918
-9506

query I rowsort
SELECT 75 * cor0.col1 - cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ef8333e741941c3beec8c8c143569b96

query I rowsort
SELECT - ( 42 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT ALL ( + col2 ) + ( ( - col1 ) ) FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 AS col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col0 + + col2 + col1 * col2 FROM tab2 AS cor0
----
1638
763
871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6869
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 41 - - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 41 - - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT DISTINCT + + ( - 36 ) + cor0.col2 DIV + 98 AS col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + + ( - 36 ) + cor0.col2 / + 98 AS col2 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT ( 81 ) + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1329
1485
651

query I rowsort
SELECT ALL 41 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT - cor0.col1 + - col0 * 73 + - col2 FROM tab2 AS cor0
----
-569
-5779
-5822

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + 75 + + cor0.col0 FROM tab2 AS cor0
----
153
154
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6878
SELECT + col0 DIV 98 - col1 AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6878
SELECT + col0 / 98 - col1 AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 84 AS REAL ) AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT DISTINCT ( + 83 + col1 ) FROM tab0
----
169
174
180

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6882
SELECT DISTINCT col2 - + CAST( col2 AS SIGNED ) * col1 FROM tab1 cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT col2 - + CAST ( col2 AS INTEGER ) * col1 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - - cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col2 - - col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - col1 + ( col1 * cor0.col1 ) FROM tab1 AS cor0
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 91 - + col2 col2 FROM tab1 AS cor0
----
-4968
-5244
-8832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - cor0.col0 * col2 col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + col1 + cor0.col1 + - col2 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + + cor0.col0 + - col0 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b

query I rowsort
SELECT - col2 * + col0 + + col1 AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL + - col2 - 1 FROM tab0 AS cor0
----
-2
-34
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6894
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6894
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - ( + 10 ) FROM tab1, tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab0, tab1 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + + ( 44 * + cor0.col0 ) col2 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT DISTINCT 37 + + col0 * + col0 FROM tab1 AS cor0
----
4133
46
6437

query I rowsort
SELECT DISTINCT + + col2 + + col0 * - col2 AS col0 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT col0 * col2 + 65 AS col2 FROM tab0 AS cor0
----
100
7363
857

onlyif mysql # use DIV operator for integer division
query I rowsort label-6901
SELECT ALL 97 DIV - col1 col2 FROM tab2 AS cor0
----
-1
-3
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL 97 / - col1 col2 FROM tab2 AS cor0
----
-1
-3
-5

query I rowsort
SELECT ALL col1 * cor0.col1 + 9 FROM tab2 cor0
----
298
3490
970

query I rowsort
SELECT ALL - 40 - cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1288
-1444
-610

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6904
SELECT DISTINCT + col0 + col2 - - CAST( col0 * + col2 AS SIGNED ) FROM tab0 AS cor0
----
71
7469
849

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT + col0 + col2 - - CAST ( col0 * + col2 AS INTEGER ) FROM tab0 AS cor0
----
71
7469
849

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT DISTINCT 82 + - col1 DIV col2 col0 FROM tab0 AS cor0
----
-15
80
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT 82 + - col1 / col2 col0 FROM tab0 AS cor0
----
-15
80
81

query I rowsort
SELECT ALL - col1 - - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT 78 * col2 DIV col1 FROM tab1
----
162
444
576

skipif mysql # not compatible
query I rowsort label-6907
SELECT 78 * col2 / col1 FROM tab1
----
162
444
576

query I rowsort
SELECT 67 + + col1 * col0 - - col2 FROM tab0
----
2164
3463
8248

query I rowsort
SELECT DISTINCT + tab1.col1 - - col0 * col1 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT ( col0 ) - + col1 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT col0 * + 15 + tab0.col1 AS col0 FROM tab0
----
1426
446
622

query I rowsort
SELECT DISTINCT 21 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
21

query I rowsort
SELECT DISTINCT - col0 * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-6914
SELECT DISTINCT - ( - col2 ) DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT - ( - col2 ) / cor0.col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - 10 + - col2 FROM tab0 AS cor0
----
-11
-43
-92

query I rowsort
SELECT ALL - + 89 + - col2 AS col0 FROM tab2 AS cor0
----
-115
-116
-127

query I rowsort
SELECT col0 * col1 + ( + 72 ) AS col1 FROM tab0 AS cor0
----
2136
3467
8171

query I rowsort
SELECT DISTINCT - - col2 * col2 + - col0 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT 73 + col1 FROM tab1
----
83
86
99

query I rowsort
SELECT DISTINCT + col0 * col2 + - 36 * 59 FROM tab1
----
-1962
1524
5556

onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT - tab1.col2 DIV col1 + + 13 FROM tab1
----
11
6
8

skipif mysql # not compatible
query I rowsort label-6921
SELECT - tab1.col2 / col1 + + 13 FROM tab1
----
11
6
8

query I rowsort
SELECT ALL tab2.col2 + + col1 + 63 * + col0 * col0 FROM tab2
----
3145
383377
393238

query I rowsort
SELECT ALL - - 24 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # use DIV operator for integer division
query I rowsort label-6924
SELECT + 95 DIV col0 AS col0 FROM tab1
----
1
1
31

skipif mysql # not compatible
query I rowsort label-6924
SELECT + 95 / col0 AS col0 FROM tab1
----
1
1
31

query I rowsort
SELECT + + cor0.col1 + - cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 44 * col0 AS col2 FROM tab2
----
308
3432
3476

query I rowsort
SELECT + - col1 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + cor0.col0 + col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL - 86 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT + col1 DIV - 95 + + col1 DIV - col1 FROM tab0 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6930
SELECT + col1 / - 95 + + col1 / - col1 FROM tab0 AS cor0
----
-1
-1
-2

query I rowsort
SELECT cor0.col2 * col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + col2 + ( - col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + - col2 + col1 + col0 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT - - col2 * cor0.col2 AS col1 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6935
SELECT - + col2 * 21 + cor0.col2 DIV + cor0.col1 FROM tab0 AS cor0
----
-1722
-21
-693

skipif mysql # not compatible
query I rowsort label-6935
SELECT - + col2 * 21 + cor0.col2 / + cor0.col1 FROM tab0 AS cor0
----
-1722
-21
-693

query I rowsort
SELECT + col1 + + 84 AS col1 FROM tab0 AS cor0
----
170
175
181

query I rowsort
SELECT ALL - 12 FROM tab1, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT - + ( col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col1 * ( + col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6940
SELECT ALL + CAST( + col2 AS SIGNED ) * col0 * 89 AS col0 FROM tab0 AS cor0
----
3115
649522
70488

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + CAST ( + col2 AS INTEGER ) * col0 * 89 AS col0 FROM tab0 AS cor0
----
3115
649522
70488

query I rowsort
SELECT ALL 99 + 78 FROM tab2 AS cor0
----
177
177
177

query I rowsort
SELECT ( - 46 ) AS col1 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL + col0 * - col1 + - col0 AS col1 FROM tab1 cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + cor0.col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - + ( 71 ) FROM tab2 AS cor0
----
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6946
SELECT + - CAST( NULL AS DECIMAL ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT + - CAST ( NULL AS REAL ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 94 * col2 FROM tab2 cor0
----
-2444
-2538
-3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT DISTINCT + + ( + col0 ) DIV col0 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT + + ( + col0 ) / col0 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col1 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + ( + cor0.col2 ) AS col2 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT + col0 + + col0 DIV 50 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-6951
SELECT + col0 + + col0 / 50 FROM tab0 AS cor0
----
24
35
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT DISTINCT + col2 DIV - col1 col1 FROM tab2 AS cor0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT + col2 / - col1 col1 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT col0 + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - ( 88 ) + col1 FROM tab2 AS cor0
----
-29
-57
-71

query I rowsort
SELECT - col0 * 45 + col2 AS col2 FROM tab1 AS cor0
----
-2823
-3504
-81

query I rowsort
SELECT - - col2 + + 93 FROM tab0 AS cor0
----
126
175
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT ALL + ( + col2 ) DIV + col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL + ( + col2 ) / + col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - col0 + + col2 + + ( - col1 * + col0 ) FROM tab1 AS cor0
----
-33
-4679
-7344

query I rowsort
SELECT DISTINCT col0 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + col1 * + 43 AS col0 FROM tab0 cor0
----
3698
3913
4171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6961
SELECT ALL col2 * col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL col2 * col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 31 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # use DIV operator for integer division
query I rowsort label-6963
SELECT ALL col2 * col2 + - 79 * col1 - 92 DIV col0 FROM tab2
----
-1733
-3986
100

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL col2 * col2 + - 79 * col1 - 92 / col0 FROM tab2
----
-1733
-3986
100

query I rowsort
SELECT col2 * col1 * + 57 - col1 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
33130
72176
80106

query I rowsort
SELECT tab2.col0 * + 25 + col1 * - col1 * ( 28 ) FROM tab2
----
-26733
-6117
-95518

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6966
SELECT + CAST( NULL AS DECIMAL ) * + col2 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT + CAST ( NULL AS REAL ) * + col2 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 85 * cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 0f5bdae12cc44fbaa4d67f7b41a774b8

query I rowsort
SELECT ALL + ( + ( col2 ) ) + col1 * col0 * col0 + 1 AS col0 FROM tab0
----
118827
49570
720894

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
43

query I rowsort
SELECT DISTINCT + col0 + - 97 AS col0 FROM tab2 AS cor0
----
-18
-19
-90

query I rowsort
SELECT DISTINCT + col0 + + 72 * col2 + - col0 * col1 FROM tab1 cor0
----
3528
3813
5952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6973
SELECT ALL - + col0 * + CAST( 35 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-3115
-840

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - + col0 * + CAST ( 35 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-3115
-840

query I rowsort
SELECT ALL + col2 + 76 AS col2 FROM tab0 AS cor0
----
109
158
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6975
SELECT ALL col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL col0 * - ( 41 ) * - col2 AS col2 FROM tab0 AS cor0
----
1435
299218
32472

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT col1 DIV - col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6978
SELECT col1 / - col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 87 * tab1.col1 + + 96 * col0 * + tab1.col1 FROM tab1
----
100971
62310
9750

query I rowsort
SELECT - col1 - - col0 * + tab2.col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT ALL col0 + col2 * + col0 + col1 FROM tab1
----
191
3722
7773

query I rowsort
SELECT 56 + tab0.col2 FROM tab0
----
138
57
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT DISTINCT - col1 * ( col2 ) + - col1 DIV col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT - col1 * ( col2 ) + - col1 / col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + ( 14 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT DISTINCT 84 * - col2 * - col2 FROM tab0
----
564816
84
91476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col1 FROM tab2, tab1 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 32 col1 FROM tab1 cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT + col2 DIV cor0.col1 + + col2 * + 81 * + col2 FROM tab0 AS cor0
----
544644
81
88209

skipif mysql # not compatible
query I rowsort label-6988
SELECT + col2 / cor0.col1 + + col2 * + 81 * + col2 FROM tab0 AS cor0
----
544644
81
88209

query I rowsort
SELECT ALL + 87 * + col1 * col0 FROM tab1 AS cor0
----
55680
6786
90480

query I rowsort
SELECT + cor0.col0 * cor0.col2 + - col2 + + col0 AS col1 FROM tab1 AS cor0
----
111
3655
7664

onlyif mysql # use DIV operator for integer division
query I rowsort label-6991
SELECT DISTINCT - + 23 DIV ( col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT - + 23 / ( col0 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 94 * + col2 + col0 * - col2 FROM tab0 cor0
----
2310
410
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6993
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 46 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - ( 4 ) * col1 FROM tab2 AS cor0
----
-124
-236
-68

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col0 + col0 * col0 AS col2 FROM tab1 AS cor0
----
14080
171
7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6997
SELECT ALL 76 DIV col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL 76 / col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT - + 76 + col0 * 1 + col0 FROM tab0 AS cor0
----
-28
-6
102

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6999
SELECT ALL - ( + cor0.col2 ) * CAST( 38 AS SIGNED ) FROM tab1 AS cor0
----
-2052
-2166
-3648

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL - ( + cor0.col2 ) * CAST ( 38 AS INTEGER ) FROM tab1 AS cor0
----
-2052
-2166
-3648

query I rowsort
SELECT + col1 * col0 + col1 + - col0 AS col1 FROM tab0 AS cor0
----
2126
3457
8101

query I rowsort
SELECT DISTINCT - + col1 + ( col0 ) * + col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - col1 + + col2 + + 67 FROM tab0 cor0
----
-29
14
58

query I rowsort
SELECT + col2 + col1 + - col0 AS col2 FROM tab2
----
-24
51
7

query I rowsort
SELECT ALL + col2 * col1 + - tab0.col0 * + col2 FROM tab0
----
164
2046
62

query I rowsort
SELECT DISTINCT - col2 + tab1.col0 + 40 AS col1 FROM tab1
----
-11
24
47

query I rowsort
SELECT - cor0.col1 * + 86 AS col1 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2

query I rowsort
SELECT ALL + + col0 + + col1 * 76 FROM tab0 AS cor0
----
6560
7005
7407

query I rowsort
SELECT DISTINCT - + col2 * - col2 * - col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-35913
-551279
34

query I rowsort
SELECT - + 33 + + col1 * + cor0.col0 FROM tab2 AS cor0
----
1310
184
4569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col0 col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7012
SELECT ALL col2 * col0 * col1 - tab0.col2 DIV + col0 FROM tab0
----
3395
664118
68111

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL col2 * col0 * col1 - tab0.col2 / + col0 FROM tab0
----
3395
664118
68111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7013
SELECT col2 + CAST( NULL AS DECIMAL ) / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT col2 + CAST ( NULL AS REAL ) / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 1 * - col0 + col2 * col2 FROM tab1 AS cor0
----
2939
3195
9149

query I rowsort
SELECT - + col2 * - 91 AS col0 FROM tab1 AS cor0
----
4914
5187
8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT col1 DIV 53 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7016
SELECT col1 / 53 AS col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + 82 ) col2 FROM tab2
----
113
141
99

query I rowsort
SELECT 12 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT DISTINCT - col1 * 15 + + tab1.col0 AS col1 FROM tab1
----
-115
-387
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT + tab2.col2 DIV - 52 + + col2 * + col0 + col1 * + col1 FROM tab2
----
1150
3291
5509

skipif mysql # not compatible
query I rowsort label-7020
SELECT + tab2.col2 / - 52 + + col2 * + col0 + col1 * + col1 FROM tab2
----
1150
3291
5509

query I rowsort
SELECT col0 + - 81 AS col0 FROM tab2 cor0
----
-2
-3
-74

query I rowsort
SELECT + 46 * 54 AS col0 FROM tab1 AS cor0
----
2484
2484
2484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7023
SELECT - CAST( + cor0.col0 AS SIGNED ) + col1 * - col2 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif mysql # not compatible
query I rowsort label-7023
SELECT - CAST ( + cor0.col0 AS INTEGER ) + col1 * - col2 FROM tab1 AS cor0
----