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)

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

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

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

query I rowsort
SELECT + col2 * tab0.col1 * - col0 + ( tab0.col0 ) FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT + 35 + - col1 FROM tab2
----
-24
18
4

query I rowsort
SELECT - 12 * + col2 + 76 FROM tab0 cor0
----
-320
-908
64

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

query I rowsort
SELECT DISTINCT col2 + - ( - col2 ) FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7
SELECT ALL - - col2 * 28 + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
2296
28
925

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - - col2 * 28 + col2 / col0 AS col1 FROM tab0 AS cor0
----
2296
28
925

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

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

query I rowsort
SELECT ALL col2 + - 79 FROM tab1 AS cor0
----
-22
-25
17

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

query I rowsort
SELECT DISTINCT col0 + 61 FROM tab1 cor0
----
125
141
64

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT ALL + col2 DIV - col0 - - col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
834

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + col2 / - col0 - - col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
834

query I rowsort
SELECT col2 * 90 AS col1 FROM tab1 AS cor0
----
4860
5130
8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-16
SELECT ALL col0 DIV 66 + ( + col1 ) * ( 19 ) DIV col1 + + ( col2 * - col1 ) FROM tab0 AS cor0
----
-2819
-7442
-78

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL col0 / 66 + ( + col1 ) * ( 19 ) / col1 + + ( col2 * - col1 ) FROM tab0 AS cor0
----
-2819
-7442
-78

query I rowsort
SELECT ALL - col0 * 28 FROM tab1 cor0
----
-1792
-2240
-84

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col2 = col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL col2 + + col1 / col0 FROM tab2
----
26
31
38

query I rowsort
SELECT col2 + col0 * tab0.col2 * + col1 FROM tab0
----
3396
664200
68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-21
SELECT DISTINCT + col2 + - col1 DIV tab1.col0 FROM tab1
----
46
57
96

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT + col2 + - col1 / tab1.col0 FROM tab1
----
46
57
96

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

query I rowsort
SELECT - 2 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT DISTINCT col1 * col1 + 22 * - col1 AS col2 FROM tab2
----
-85
2183
279

query I rowsort
SELECT - - col0 * ( + 64 + - col1 ) FROM tab0 AS cor0
----
-1155
-2403
-528

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

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

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

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL IN ( col1 )
----

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

query I rowsort
SELECT ALL - col0 * - tab2.col1 * - col2 - + col0 FROM tab2
----
-119730
-51113
-5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-32
SELECT col1 + - col0 DIV + col2 + col1 AS col2 FROM tab1
----
19
26
52

skipif mysql # not compatible
query I rowsort label-32
SELECT col1 + - col0 / + col2 + col1 AS col2 FROM tab1
----
19
26
52

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NULL < NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + col0 + col0 * col1 * + col0 AS col1 FROM tab2
----
106176
1526
359034

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

query I rowsort
SELECT col0 FROM tab0 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col0 AND NULL
----

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

query I rowsort
SELECT - col1 + tab2.col2 * + col2 FROM tab2
----
1427
617
698

query III rowsort
SELECT ALL * FROM tab0 WHERE tab0.col0 * + col0 <= NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 col0 FROM tab1
----
1120
704
81

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

query I rowsort
SELECT ALL 97 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca

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

query I rowsort
SELECT ALL 89 + + cor0.col0 * 9 FROM tab1 AS cor0
----
116
665
809

query I rowsort
SELECT - - 85 + col1 * + col0 FROM tab2 AS cor0
----
1428
302
4687

query I rowsort
SELECT ALL 19 + tab0.col1 FROM tab0
----
105
110
116

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

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

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

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

query I rowsort
SELECT ALL cor0.col1 * col2 + - cor0.col2 * - 6 FROM tab2 AS cor0
----
1690
874
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * - col1 col2 FROM tab2 AS cor0
----
1023
1947
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 90 col0 FROM tab1 AS cor0
----
1170
2340
900

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

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

query I rowsort
SELECT - - col1 - cor0.col2 FROM tab0 AS cor0
----
53
9
96

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

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

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

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

query I rowsort
SELECT + 18 - col0 AS col2 FROM tab2 AS cor0
----
-60
-61
11

query I rowsort
SELECT ALL - 12 * col0 FROM tab2 cor0
----
-84
-936
-948

query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 + - 95 AS col2 FROM tab2 AS cor0
----
-2123
-284
-3097

query I rowsort
SELECT DISTINCT 94 + + col1 FROM tab1 AS cor0
----
104
107
120

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

query I rowsort
SELECT 69 * cor0.col1 * ( - col2 ) FROM tab0 AS cor0
----
-195822
-514878
-6693

query I rowsort
SELECT ALL - - 93 * col2 + + col2 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT + 41 * - col1 + + 40 * + col2 FROM tab0 AS cor0
----
-2206
-3937
-451

query I rowsort
SELECT - 99 + col1 AS col0 FROM tab0 AS cor0
----
-13
-2
-8

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

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

query I rowsort
SELECT ALL col1 + + 3 FROM tab2 cor0
----
20
34
62

query I rowsort
SELECT + col0 * - 66 + - 87 AS col2 FROM tab1 AS cor0
----
-285
-4311
-5367

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

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

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT + cor0.col2 DIV cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

skipif mysql # not compatible
query I rowsort label-82
SELECT + cor0.col2 / cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

query I rowsort
SELECT DISTINCT - col0 + + col1 + - 38 FROM tab1 AS cor0
----
-105
-15
-92

query I rowsort
SELECT ALL col1 + + 68 * + col2 AS col1 FROM tab2 AS cor0
----
1827
1867
2601

query I rowsort
SELECT tab2.col1 * 25 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 486127fb97b979df6fedac3928625e8b

query I rowsort
SELECT + ( + col0 ) + col0 + + tab0.col0 FROM tab0
----
105
267
72

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

query I rowsort
SELECT - 17 * + col1 - col0 FROM tab0
----
-1486
-1636
-1684

query I rowsort
SELECT DISTINCT - - col1 + 49 FROM tab0 AS cor0
----
135
140
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

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

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

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

query I rowsort
SELECT + 64 * col1 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT DISTINCT - 19 * cor0.col1 + + col1 FROM tab1 AS cor0
----
-180
-234
-468

query I rowsort
SELECT + 19 * - col1 FROM tab1 AS cor0
----
-190
-247
-494

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * 87 FROM tab1 cor0
----
258
5504
6880

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

query I rowsort
SELECT - - 5 * + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-2880
-39605
-6125

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

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

query I rowsort
SELECT ALL + 52 + cor0.col0 FROM tab2 AS cor0
----
130
131
59

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

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

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

query I rowsort
SELECT DISTINCT - - 89 + + cor0.col0 FROM tab1, tab0 AS cor0
----
113
124
178

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

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

query I rowsort
SELECT DISTINCT + 84 * tab2.col0 FROM tab2
----
588
6552
6636

query I rowsort
SELECT col2 * + col1 + 88 AS col2 FROM tab1
----
1336
1492
658

query I rowsort
SELECT 30 + - col0 FROM tab2
----
-48
-49
23

query I rowsort
SELECT DISTINCT + 68 * col1 AS col2 FROM tab0
----
5848
6188
6596

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + 5 col0 FROM tab1
----
-157
-3643
-7675

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

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

query I rowsort
SELECT - col0 + - 97 * col1 FROM tab1
----
-1034
-1341
-2525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col2 FROM tab0
----
178
48
70

query I rowsort
SELECT col0 * col0 - col0 AS col2 FROM tab1
----
4032
6
6320

query I rowsort
SELECT + col2 + tab0.col2 + - col1 FROM tab0
----
-20
-95
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT col2 DIV - 78 + col2 * col0 AS col0 FROM tab1
----
162
3648
7679

skipif mysql # not compatible
query I rowsort label-120
SELECT col2 / - 78 + col2 * col0 AS col0 FROM tab1
----
162
3648
7679

query I rowsort
SELECT DISTINCT 29 - col1 FROM tab1 AS cor0
----
16
19
3

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

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

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

query I rowsort
SELECT - cor0.col2 + 69 FROM tab1 AS cor0
----
-27
12
15

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

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

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

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

query I rowsort
SELECT - 83 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT ALL ( - 28 ) * + col1 + + col0 * + col2 AS col1 FROM tab1 cor0
----
-566
3368
7316

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

query I rowsort
SELECT DISTINCT - - ( 63 ) FROM tab2 cor0
----
63

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

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

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

query I rowsort
SELECT DISTINCT + 11 * + ( col2 ) + - col0 FROM tab2 cor0
----
208
290
339

query I rowsort
SELECT ALL - ( - 11 ) * + col1 + + col2 + - col1 AS col1 FROM tab1 cor0
----
157
226
314

query I rowsort
SELECT - col2 + + 6 FROM tab0 cor0
----
-27
-76
5

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

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

query I rowsort
SELECT ALL col2 * 54 - - col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1171
-3493
1206

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

skipif mysql # not compatible
query I rowsort label-140
SELECT + CAST ( NULL AS INTEGER ) + 94 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 cor0, tab2 AS cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT col1 + 93 FROM tab2 AS cor0
----
110
124
152

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-143
SELECT + CAST ( NULL AS REAL ) * - 98 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 * + 26 + col0 FROM tab0 AS cor0
----
2403
648
945

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-147
SELECT + 48 + + col2 DIV + col0 col0 FROM tab2 cor0
----
48
48
51

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

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

query I rowsort
SELECT ALL + 25 * col1 * + col0 FROM tab2 AS cor0
----
115050
33575
5425

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

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

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

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

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

query I rowsort
SELECT - col2 * - col1 * - col2 + + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * + col2 col1 FROM tab0 AS cor0
----
2970
7380
90

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

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

query I rowsort
SELECT ALL + cor0.col2 + 45 * + cor0.col0 FROM tab1 AS cor0
----
189
2937
3696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-160
SELECT ALL CAST( 89 AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL CAST ( 89 AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT ALL - 43 * tab1.col2 AS col2 FROM tab1
----
-2322
-2451
-4128

query I rowsort
SELECT - - col2 + 25 AS col2 FROM tab2 cor0
----
51
52
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 38 * cor0.col1 col1 FROM tab1 AS cor0
----
316
414
985

query I rowsort
SELECT ALL - col0 * - ( 24 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
2218
609
841

query I rowsort
SELECT col0 * col1 * ( - col0 ) + col1 FROM tab1
----
-208
-40950
-83187

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

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

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

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

query I rowsort
SELECT - - ( col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

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

query I rowsort
SELECT ALL + 60 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT 81 * col2 + col2 FROM tab0 AS cor0
----
2706
6724
82

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

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

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 cor1, tab2, tab2 cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf

query I rowsort
SELECT ALL col0 * - col0 + 19 * - 11 FROM tab0 AS cor0
----
-1434
-785
-8130

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

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

query I rowsort
SELECT col0 * - 42 FROM tab2 AS cor0
----
-294
-3276
-3318

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT - col1 + - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-181
SELECT - col1 + - col2 / - col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT + ( 98 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2352
-3430
-8722

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

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - col1 + - col1 / + col0 AS col2 FROM tab0 AS cor0
----
-89
-92
-99

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

query I rowsort
SELECT DISTINCT + col0 + - col1 * + col1 * ( col1 + col0 ) AS col0 FROM tab0 AS cor0
----
-1241953
-1490491
-813536

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

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * tab0.col1 FROM tab1, tab2 cor0 CROSS JOIN tab0
----
9 values hashing to 7bf5e0e3ec1be8bea20f7ba84b6c99c3

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

skipif mysql # not compatible
query I rowsort label-188
SELECT 93 / - col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT 34 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1377
251
4636

query I rowsort
SELECT ALL - 47 * cor0.col0 FROM tab0 cor0
----
-1128
-1645
-4183

query I rowsort
SELECT - ( - 91 ) * col1 AS col1 FROM tab2 AS cor0
----
1547
2821
5369

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

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

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

query I rowsort
SELECT ALL col0 * - 41 * + col0 FROM tab2 cor0
----
-2009
-249444
-255881

query I rowsort
SELECT DISTINCT + + 88 * + col0 FROM tab0 AS cor0
----
2112
3080
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-196
SELECT ALL col0 * - cor0.col0 DIV - cor0.col0 AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL col0 * - cor0.col0 / - cor0.col0 AS col0 FROM tab0 cor0
----
24
35
89

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

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

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + - col2 + col1 / col1 + col0 AS col2 FROM tab1 AS cor0
----
-15
-50
8

query I rowsort
SELECT ALL + - cor0.col2 - col0 * - col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL col0 * - col2 + - col2 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-433
-4383
-6656

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

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-10

query I rowsort
SELECT DISTINCT - col2 * col2 * + 35 + cor0.col2 FROM tab1 AS cor0
----
-102006
-113658
-322464

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

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT + col2 * - CAST ( - col0 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + + col2 * + 38 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT + - col0 * ( + 44 ) FROM tab0 AS cor0
----
-1056
-1540
-3916

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

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL + col1 / + CAST ( NULL AS INTEGER ) + 45 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - 93 AS col1 FROM tab1 AS cor0
----
-67
-80
-83

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

query I rowsort
SELECT + col1 + col0 * 60 + - col1 FROM tab2 cor0
----
420
4680
4740

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

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

query I rowsort
SELECT ALL + cor0.col2 * 88 * cor0.col1 FROM tab2 AS cor0
----
134992
56848
73656

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

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + - 41 + col2 FROM tab1 AS cor0
----
22
4112
6455

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

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

query I rowsort
SELECT + - col1 + + ( 35 ) FROM tab0 AS cor0
----
-51
-56
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-217
SELECT DISTINCT col0 + - col1 DIV - cor0.col1 AS col2 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT col0 + - col1 / - cor0.col1 AS col2 FROM tab1 cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-218
SELECT ALL - cor0.col1 DIV 48 AS col1 FROM tab0 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - cor0.col1 / 48 AS col1 FROM tab0 AS cor0
----
-1
-1
-2

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

query I rowsort
SELECT ALL col1 + ( + col2 ) * col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-221
SELECT + cor0.col0 * CAST( + col2 AS SIGNED ) + + col1 DIV + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
170
3648
7680

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-222
SELECT DISTINCT - cor0.col0 - - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - cor0.col0 - - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-19
-62
24

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

query I rowsort
SELECT - col0 * + ( 23 ) AS col1 FROM tab0 AS cor0
----
-2047
-552
-805

query I rowsort
SELECT DISTINCT - col0 - - 29 AS col2 FROM tab2 AS cor0
----
-49
-50
22

query I rowsort
SELECT - 50 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

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

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

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

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

query I rowsort
SELECT col1 + col2 * 96 + col2 FROM tab2 cor0
----
2581
2650
3703

query I rowsort
SELECT ALL - + 16 * col1 AS col2 FROM tab2 AS cor0
----
-272
-496
-944

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT + 81 * 46 DIV col0 AS col1 FROM tab0
----
106
155
41

skipif mysql # not compatible
query I rowsort label-233
SELECT + 81 * 46 / col0 AS col1 FROM tab0
----
106
155
41

query I rowsort
SELECT DISTINCT col2 + col0 - - col1 FROM tab1
----
131
189
83

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

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

query I rowsort
SELECT 91 + col1 AS col1 FROM tab1
----
101
104
117

query I rowsort
SELECT DISTINCT tab2.col1 + + col1 + tab2.col1 FROM tab2
----
177
51
93

query I rowsort
SELECT ALL + 64 + tab0.col2 + 62 AS col2 FROM tab0
----
127
159
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) + - col1 * tab0.col0 col1 FROM tab0
----
-2088
-3430
-8188

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

query I rowsort
SELECT ALL 60 * col2 FROM tab0
----
1980
4920
60

query I rowsort
SELECT cor0.col0 * 29 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 54bc59094b2661807c1d12f560e4953b

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

query I rowsort
SELECT + 19 + - col1 * col2 AS col0 FROM tab1
----
-1229
-1385
-551

onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT DISTINCT + - col0 + col2 + cor0.col0 DIV - 43 FROM tab0 cor0
----
-34
-9
9

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT + - col0 + col2 + cor0.col0 / - 43 FROM tab0 cor0
----
-34
-9
9

query I rowsort
SELECT col1 + 16 AS col2 FROM tab2
----
33
47
75

query I rowsort
SELECT ALL col0 + 48 AS col0 FROM tab1 cor0
----
112
128
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + 35 * + col1 col2 FROM tab1 AS cor0
----
346
451
906

query I rowsort
SELECT ALL + tab1.col1 * - 3 FROM tab1
----
-30
-39
-78

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-254
SELECT + col0 / - ( - tab1.col2 ) AS col1 FROM tab1
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-255
SELECT ALL + + col2 + + 85 DIV 20 col1 FROM tab1 AS cor0
----
100
58
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-255
SELECT ALL + + col2 + + 85 / 20 col1 FROM tab1 AS cor0
----
100
58
61

query I rowsort
SELECT ALL - ( + cor0.col2 ) + cor1.col1 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to be991a59f14759117ef2f271c2d2216f

query I rowsort
SELECT + - col0 * + col0 + 51 * col0 FROM tab0 AS cor0
----
-3382
560
648

query I rowsort
SELECT 4 + 20 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT 67 AS col2 FROM tab1 cor0
----
67
67
67

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

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

skipif mysql # not compatible
query I rowsort label-261
SELECT CAST ( ( + col2 ) AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-33
-4
21

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

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + CAST ( 63 AS INTEGER ) FROM tab2, tab0, tab2 AS cor0, tab1
----
63

query I rowsort
SELECT + + ( + col0 ) + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT DISTINCT col1 + + 20 FROM tab0
----
106
111
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * + 50 col2 FROM tab1 cor0
----
-1100
-1100
-1100

query I rowsort
SELECT DISTINCT col2 * 49 - - col0 * + 28 * - col0 FROM tab0
----
-14511
-217770
-34251

query I rowsort
SELECT DISTINCT col1 + - 85 AS col2 FROM tab2
----
-26
-54
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * + col0 + + col0 * + tab0.col1 col0 FROM tab0
----
1680
2835
6675

query I rowsort
SELECT + cor0.col2 + 98 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e4266e6eb5c035a092437805cb72d420

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

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

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

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

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

query I rowsort
SELECT + + col2 * - 34 + + col2 FROM tab1 AS cor0
----
-1782
-1881
-3168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-276
SELECT + + col2 * + col0 + - CAST( ( - col0 ) AS SIGNED ) * - col1 + cor0.col1 FROM tab2 AS cor0
----
-2515
1676
3

skipif mysql # not compatible
query I rowsort label-276
SELECT + + col2 * + col0 + - CAST ( ( - col0 ) AS INTEGER ) * - col1 + cor0.col1 FROM tab2 AS cor0
----
-2515
1676
3

query I rowsort
SELECT DISTINCT + 25 * cor0.col1 FROM tab1 AS cor0
----
250
325
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-278
SELECT + - 51 DIV - col1 + - col0 FROM tab1 AS cor0
----
-2
-59
-77

skipif mysql # not compatible
query I rowsort label-278
SELECT + - 51 / - col1 + - col0 FROM tab1 AS cor0
----
-2
-59
-77

query I rowsort
SELECT ALL - - col0 + + col1 * + ( col0 * - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-106018
-1512
-358878

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 * + col1 + col2 - col0 FROM tab0 AS cor0
----
-244059
-679049
-9443

query I rowsort
SELECT ALL - col1 * col0 + + 39 * col2 + cor0.col0 FROM tab1 AS cor0
----
1647
2031
2784

query I rowsort
SELECT 82 + cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
2110
271
3084

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

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

query I rowsort
SELECT DISTINCT ( 76 ) FROM tab1
----
76

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

query I rowsort
SELECT DISTINCT - col2 * col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

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

query I rowsort
SELECT + - col1 * - 70 * - col1 AS col0 FROM tab0 AS cor0
----
-517720
-579670
-658630

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

query I rowsort
SELECT + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT - + col1 * - 21 AS col2 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT - 11 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-294
SELECT ALL + ( + cor0.col2 ) DIV col1 + - col1 * col1 FROM tab2 AS cor0
----
-287
-3481
-961

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL + ( + cor0.col2 ) / col1 + - col1 * col1 FROM tab2 AS cor0
----
-287
-3481
-961

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

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

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

query I rowsort
SELECT ( + 62 ) + col0 * col0 FROM tab1
----
4158
6462
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-299
SELECT DISTINCT ( col2 ) + - col0 + + col0 * col2 DIV + col0 FROM tab2
----
-26
-3
47

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT ( col2 ) + - col0 + + col0 * col2 / + col0 FROM tab2
----
-26
-3
47

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

query I rowsort
SELECT DISTINCT 26 + col0 + tab0.col2 AS col0 FROM tab0
----
197
62
83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-303
SELECT - col2 * + col1 * - col2 + col2 DIV col2 AS col2 FROM tab1
----
119809
32491
75817

skipif mysql # not compatible
query I rowsort label-303
SELECT - col2 * + col1 * - col2 + col2 / col2 AS col2 FROM tab1
----
119809
32491
75817

query I rowsort
SELECT ALL 96 AS col0 FROM tab0 cor0
----
96
96
96

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT DISTINCT - ( + col0 ) + col2 DIV col1 col0 FROM tab2 AS cor0
----
-7
-77
-78

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

query I rowsort
SELECT DISTINCT - 55 * col2 * + col1 FROM tab1
----
-31350
-68640
-77220

query I rowsort
SELECT ALL col1 * tab2.col1 - col0 * tab2.col0 AS col0 FROM tab2
----
-2603
-5952
912

query I rowsort
SELECT col2 * 3 + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
1328
240
811

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

query I rowsort
SELECT DISTINCT 69 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
1870
1872
2701

query I rowsort
SELECT DISTINCT - 58 + - col0 * + col1 FROM tab1 AS cor0
----
-1098
-136
-698

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

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

query I rowsort
SELECT - + cor0.col1 + 81 AS col1 FROM tab2 AS cor0
----
22
50
64

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

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

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

query I rowsort
SELECT ALL col2 + col1 - 29 AS col2 FROM tab1
----
38
51
80

query I rowsort
SELECT + col0 + cor0.col0 + - col2 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT DISTINCT col0 + col1 + + tab1.col1 FROM tab1
----
106
55
84

query I rowsort
SELECT + 66 + + col2 + + col1 * + col2 FROM tab2
----
1626
750
930

query I rowsort
SELECT ALL + col2 + 7 * + col0 FROM tab2
----
572
591
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-323
SELECT DISTINCT + + col0 DIV - col1 + col1 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT + + col0 / - col1 + col1 FROM tab1 AS cor0
----
26
4
7

query I rowsort
SELECT - + ( - 45 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
1485
3690
45

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

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT + + col1 / col1 FROM tab1 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-326
SELECT col1 + tab0.col1 + - tab0.col0 DIV - col2 FROM tab0
----
172
183
229

skipif mysql # not compatible
query I rowsort label-326
SELECT col1 + tab0.col1 + - tab0.col0 / - col2 FROM tab0
----
172
183
229

onlyif mysql # use DIV operator for integer division
query I rowsort label-327
SELECT DISTINCT + col1 + col2 * + col0 DIV tab2.col0 AS col0 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + col1 + col2 * + col0 / tab2.col0 AS col0 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-328
SELECT ALL + col2 + col1 * + col0 DIV + col0 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL + col2 + col1 * + col0 / + col0 FROM tab1 AS cor0
----
109
67
80

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

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL col0 + + cor0.col0 / + col0 FROM tab0 AS cor0
----
25
36
90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-330
SELECT ALL - col1 + col1 / + col1 col1 FROM tab1 AS cor0
----
-12
-25
-9

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * + col0 + + col1 * + col1 FROM tab1 AS cor0
----
3805
7945
892

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * + col0 - + tab1.col0 * - col0 col1 FROM tab1
----
10496
19920
2037

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-338
SELECT col1 DIV - col0 + col2 + cor0.col1 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
-119712
-32433
-75770

skipif mysql # not compatible
query I rowsort label-338
SELECT col1 / - col0 + col2 + cor0.col1 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
-119712
-32433
-75770

query I rowsort
SELECT cor0.col1 + col0 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
-1
-262134
-511987

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

query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea

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

query I rowsort
SELECT ALL - col1 * col2 + col0 - - col1 * col0 FROM tab0 AS cor0
----
-750
3333
726

query I rowsort
SELECT + col2 + col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1499
761
787

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT DISTINCT col1 DIV col0 - col0 FROM tab1
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT col1 / col0 - col0 FROM tab1
----
-64
-80
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 - - tab2.col1 col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-350
SELECT ALL + col2 * + col0 - + col0 DIV col2 FROM tab0
----
0
7297
792

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL + col2 * + col0 - + col0 / col2 FROM tab0
----
0
7297
792

query I rowsort
SELECT col0 * col1 + 50 AS col0 FROM tab2 AS cor0
----
1393
267
4652

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

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

query I rowsort
SELECT - col0 + 77 * col0 * col2 AS col0 FROM tab2 cor0
----
14546
156078
231075

query I rowsort
SELECT ALL - tab0.col1 * + 31 FROM tab0
----
-2666
-2821
-3007

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

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

query I rowsort
SELECT + col0 * - 20 AS col2 FROM tab2
----
-140
-1560
-1580

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

query I rowsort
SELECT DISTINCT col1 + - ( + col2 * col1 ) + - col0 AS col0 FROM tab2 AS cor0
----
-1553
-708
-813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-359
SELECT DISTINCT CAST( - 65 AS SIGNED ) * col0 * 34 + col2 FROM tab1 AS cor0
----
-141383
-176704
-6576

skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT CAST ( - 65 AS INTEGER ) * col0 * 34 + col2 FROM tab1 AS cor0
----
-141383
-176704
-6576

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col0 AS REAL ) * + col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - ( cor0.col0 ) + 23 * 1 AS col0 FROM tab1 AS cor0
----
-41
-57
20

query I rowsort
SELECT ALL - + 0 + col0 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

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

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

query I rowsort
SELECT - 71 * - col1 * ( cor0.col2 ) FROM tab1 AS cor0
----
40470
88608
99684

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

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

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL cor0.col2 * CAST ( - col0 AS INTEGER ) + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - - col2 - ( - 96 ) FROM tab1 AS cor0
----
150
153
192

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

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

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

query I rowsort
SELECT ALL col1 + col0 - - 10 FROM tab2 AS cor0
----
106
147
48

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

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

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

query I rowsort
SELECT - col0 + 90 FROM tab1 cor0
----
10
26
87

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

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

query I rowsort
SELECT - - cor0.col1 * - 80 + col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT ALL - cor0.col2 * + 6 + - ( - col2 + + col1 ) * col2 AS col2 FROM tab1 AS cor0
----
1188
2337
7392

query I rowsort
SELECT col0 * - 58 + + col2 AS col2 FROM tab1 AS cor0
----
-120
-3655
-4544

query I rowsort
SELECT ALL + cor0.col1 * 96 + + col0 FROM tab1 AS cor0
----
1024
1328
2499

onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT - 12 DIV + col2 + col2 FROM tab0 AS cor0
----
-11
33
82

skipif mysql # not compatible
query I rowsort label-381
SELECT - 12 / + col2 + col2 FROM tab0 AS cor0
----
-11
33
82

query I rowsort
SELECT 18 * col2 FROM tab1 AS cor0
----
1026
1728
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 52 * col2 col0 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT ALL - 74 * - 60 AS col1 FROM tab1 AS cor0
----
4440
4440
4440

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-386
SELECT tab2.col0 * + CAST( - 87 AS SIGNED ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ed540c4fd00276ab2ec3c5de3c5cde66

skipif mysql # not compatible
query I rowsort label-386
SELECT tab2.col0 * + CAST ( - 87 AS INTEGER ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ed540c4fd00276ab2ec3c5de3c5cde66

query I rowsort
SELECT ALL + col2 * 38 AS col2 FROM tab0 AS cor0
----
1254
3116
38

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

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

query I rowsort
SELECT ALL 16 * col0 FROM tab1 AS cor0
----
1024
1280
48

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

query I rowsort
SELECT + col2 + + tab2.col2 * col0 + 18 FROM tab2
----
2072
234
3058

query I rowsort
SELECT ALL ( - 25 ) AS col1 FROM tab0
----
-25
-25
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-394
SELECT DISTINCT + 94 + + tab0.col1 DIV col1 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT + 94 + + tab0.col1 / col1 FROM tab0
----
95

query I rowsort
SELECT - 35 + 0 * col2 FROM tab1
----
-35
-35
-35

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

skipif mysql # not compatible
query I rowsort label-396
SELECT CAST ( + col0 * - col2 AS INTEGER ) + col1 FROM tab1
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 + col2 col2 FROM tab0
----
143
62
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-398
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col1 * col1 + col0 * col1 FROM tab1 AS cor0
----
17264
36582
6340

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col1 * col1 + col0 * col1 FROM tab1 AS cor0
----
17264
36582
6340

query I rowsort
SELECT - - 31 + - ( + col2 ) * - 87 AS col1 FROM tab1 cor0
----
4729
4990
8383

query I rowsort
SELECT ALL - + 71 + 64 * col0 AS col2 FROM tab0 cor0
----
1465
2169
5625

onlyif mysql # use DIV operator for integer division
query I rowsort label-401
SELECT ALL + - col2 DIV - 3 + - col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-51
-62
25

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + - col2 / - 3 + - col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-51
-62
25

query I rowsort
SELECT - col2 + + cor0.col2 * col1 * + col2 FROM tab2 AS cor0
----
22572
24510
39858

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

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

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

query I rowsort
SELECT DISTINCT - 19 * + 11 + col2 AS col2 FROM tab1 AS cor0
----
-113
-152
-155

query I rowsort
SELECT DISTINCT col0 * + col0 + + 52 AS col2 FROM tab2 AS cor0
----
101
6136
6293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * col0 + + 57 col0 FROM tab2 AS cor0
----
2007
2032
232

query I rowsort
SELECT + + 82 + + col1 AS col0 FROM tab1 AS cor0
----
108
92
95

query I rowsort
SELECT ALL + col2 * col2 + - col1 * 69 AS col1 FROM tab0 AS cor0
----
-4845
-6692
445

query I rowsort
SELECT + 35 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2029
-3360
-8064

query I rowsort
SELECT DISTINCT - + col0 * col0 + col1 * - 30 + cor0.col0 AS col2 FROM tab2 cor0
----
-6672
-7776
-972

query I rowsort
SELECT + 15 + col0 * + col1 FROM tab2 AS cor0
----
1358
232
4617

query I rowsort
SELECT 40 + + col1 - col0 FROM tab1
----
-14
-27
63

query I rowsort
SELECT ( 24 * + tab2.col0 ) - col2 * + col2 AS col0 FROM tab2
----
-561
1196
452

query I rowsort
SELECT - 59 + + 3 FROM tab0
----
-56
-56
-56

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

query I rowsort
SELECT DISTINCT col1 * col0 * col0 + - 83 AS col2 FROM tab1
----
151
40877
83117

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

query I rowsort
SELECT DISTINCT col0 + col0 * tab0.col1 * + col0 AS col2 FROM tab0
----
118860
49560
720900

query I rowsort
SELECT DISTINCT - col2 * 99 FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT DISTINCT + col2 * 84 AS col0 FROM tab0 AS cor0
----
2772
6888
84

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

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

query I rowsort
SELECT ALL - + col2 + - 20 * - 28 AS col0 FROM tab1 AS cor0
----
464
503
506

query I rowsort
SELECT col1 * cor0.col1 - 86 FROM tab0 AS cor0
----
7310
8195
9323

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

query I rowsort
SELECT 39 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

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

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

query I rowsort
SELECT - cor0.col1 * 38 FROM tab1 AS cor0
----
-380
-494
-988

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

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL - col1 + + cor0.col0 / - col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-60

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

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

query I rowsort
SELECT ( 48 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

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

query I rowsort
SELECT DISTINCT + cor0.col2 - 52 AS col2 FROM tab1 AS cor0
----
2
44
5

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

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

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

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

query I rowsort
SELECT - col1 * + 36 * - col2 AS col2 FROM tab1 cor0
----
20520
44928
50544

query I rowsort
SELECT cor0.col2 - 3 AS col1 FROM tab0 AS cor0
----
-2
30
79

query I rowsort
SELECT col0 * - col0 + + tab0.col2 * col2 AS col1 FROM tab0
----
-1197
-1224
513

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

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

query I rowsort
SELECT DISTINCT + 11 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2075
3406
8110

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

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

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

query I rowsort
SELECT ALL - - 84 + 76 AS col1 FROM tab2 AS cor0
----
160
160
160

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-450
SELECT - col1 * col1 + - col0 + - col0 DIV + col1 AS col0 FROM tab1 cor0
----
-170
-255
-679

skipif mysql # not compatible
query I rowsort label-450
SELECT - col1 * col1 + - col0 + - col0 / + col1 AS col0 FROM tab1 cor0
----
-170
-255
-679

query I rowsort
SELECT ALL + 47 + cor0.col0 FROM tab2 AS cor0
----
125
126
54

query I rowsort
SELECT ALL - col2 + - col0 + + 12 * + col2 FROM tab0 cor0
----
-24
339
813

query I rowsort
SELECT - - 59 * - col1 FROM tab2 AS cor0
----
-1003
-1829
-3481

query I rowsort
SELECT ALL - 12 + - cor0.col1 * - ( col1 ) FROM tab2 AS cor0
----
277
3469
949

query I rowsort
SELECT + + 50 - + 22 * cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8d96ed8750599865741b5ba0eb8882ae

query I rowsort
SELECT ( - 47 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT - + col1 * + ( - cor0.col0 ) + - col0 * col2 DIV - ( + col2 ) col2 FROM tab1 cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-463
SELECT - + col1 * + ( - cor0.col0 ) + - col0 * col2 / - ( + col2 ) col2 FROM tab1 cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT ALL - col0 DIV 48 + 17 FROM tab1 AS cor0
----
16
16
17

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL - col0 / 48 + 17 FROM tab1 AS cor0
----
16
16
17

query I rowsort
SELECT col1 * col1 + - 96 FROM tab2 AS cor0
----
193
3385
865

query I rowsort
SELECT + cor0.col0 + 54 * col1 FROM tab1 AS cor0
----
1407
604
782

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

query I rowsort
SELECT ( 59 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT - tab1.col1 + ( - cor0.col1 ) AS col2 FROM tab1, tab1 AS cor0
----
-20
-23
-26
-36
-39
-52

query I rowsort
SELECT - col1 * - 71 * + cor0.col2 FROM tab2 AS cor0
----
108914
45866
59427

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

query I rowsort
SELECT - + col2 * + 74 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT - 32 + - col2 FROM tab2 AS cor0
----
-58
-59
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 col2 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

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

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + col1 - - col2 FROM tab2 AS cor0
----
-5999
-6186
9

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

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

query I rowsort
SELECT DISTINCT - col1 + + col1 * - ( cor0.col2 + - col2 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - 44 + + col2 AS col1 FROM tab1 AS cor0
----
10
13
52

query I rowsort
SELECT + 70 + cor0.col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1295
646
7991

query I rowsort
SELECT ALL + tab0.col2 + - 76 + - col1 FROM tab0
----
-129
-172
-85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT 66 + + tab1.col0 AS col0 FROM tab1
----
130
146
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-487
SELECT + tab2.col0 + col1 DIV - 24 FROM tab2
----
6
76
79

skipif mysql # not compatible
query I rowsort label-487
SELECT + tab2.col0 + col1 / - 24 FROM tab2
----
6
76
79

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

query I rowsort
SELECT ALL - 64 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

onlyif mysql # use DIV operator for integer division
query I rowsort label-490
SELECT + col0 + 2 DIV + col2 + col2 AS col1 FROM tab0
----
171
38
57

skipif mysql # not compatible
query I rowsort label-490
SELECT + col0 + 2 / + col2 + col2 AS col1 FROM tab0
----
171
38
57

query I rowsort
SELECT + col1 + - col1 + - tab2.col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT tab0.col2 * col2 + 12 AS col2 FROM tab0
----
1101
13
6736

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

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

query I rowsort
SELECT - + 93 + + col2 FROM tab1 AS cor0
----
-36
-39
3

query I rowsort
SELECT - 17 * + 46 FROM tab1 AS cor0
----
-782
-782
-782

query I rowsort
SELECT ( 26 ) * col0 AS col2 FROM tab0 AS cor0
----
2314
624
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 + - col0 col1 FROM tab2 AS cor0
----
210
3403
954

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

query I rowsort
SELECT ALL + col0 * + col1 + - col2 + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
2749
5252
919

query I rowsort
SELECT - 30 + - col1 * col1 FROM tab0 AS cor0
----
-7426
-8311
-9439

query I rowsort
SELECT ( col2 ) * col0 + col2 * + col2 + col2 FROM tab0 AS cor0
----
14104
1914
37

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

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

query I rowsort
SELECT 26 + - col2 - tab2.col1 FROM tab2
----
-29
-32
-59

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

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

query I rowsort
SELECT ALL - 8 + + col0 * ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1
4088
6392

query I rowsort
SELECT DISTINCT - col0 + - col0 + 30 AS col1 FROM tab2 AS cor0
----
-126
-128
16

query I rowsort
SELECT - - 88 * col0 + col0 * + col1 AS col2 FROM tab1 cor0
----
342
6272
8080

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

query I rowsort
SELECT DISTINCT ( + tab0.col2 ) + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL + 78 + + col2 FROM tab2
----
104
105
116

query I rowsort
SELECT ALL - col0 + 96 FROM tab0 AS cor0
----
61
7
72

query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col0 * 52 AS col1 FROM tab0 AS cor0
----
1281
1821
4710

query I rowsort
SELECT ALL cor0.col0 * 48 + + col1 AS col0 FROM tab2 cor0
----
367
3803
3809

query I rowsort
SELECT DISTINCT + col2 * + 49 FROM tab2 cor0
----
1274
1323
1862

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 5 col2 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT + col2 * 36 + - col1 AS col2 FROM tab2 AS cor0
----
1351
877
941

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

query I rowsort
SELECT DISTINCT col2 * 60 FROM tab2 cor0
----
1560
1620
2280

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

query I rowsort
SELECT ALL - cor0.col2 * + 98 + + 45 * - col1 FROM tab2 AS cor0
----
-4041
-4489
-5203

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

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

query I rowsort
SELECT ALL col0 * col2 + 43 * col0 AS col0 FROM tab2 AS cor0
----
490
5382
6399

onlyif mysql # use DIV operator for integer division
query I rowsort label-527
SELECT - cor0.col1 + - col1 DIV 21 FROM tab1 AS cor0
----
-10
-13
-27

skipif mysql # not compatible
query I rowsort label-527
SELECT - cor0.col1 + - col1 / 21 FROM tab1 AS cor0
----
-10
-13
-27

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

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

query I rowsort
SELECT DISTINCT col0 * 13 AS col0 FROM tab2 AS cor0
----
1014
1027
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-530
SELECT col2 * + col0 + - ( col1 ) - - 56 DIV + col0 col1 FROM tab2 AS cor0
----
166
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-530
SELECT col2 * + col0 + - ( col1 ) - - 56 / + col0 col1 FROM tab2 AS cor0
----
166
1969
2985

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-532
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT ALL + + 46 DIV - col2 + col1 + 53 FROM tab1 AS cor0
----
63
66
79

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + + 46 / - col2 + col1 + 53 FROM tab1 AS cor0
----
63
66
79

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col1 * + col2 col1 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - 83 + + 31 AS col2 FROM tab1 AS cor0
----
-52

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

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL - CAST ( - col2 AS INTEGER ) * - col1 * - ( cor0.col1 ) + - col2 FROM tab0 AS cor0
----
244035
678960
9408

query I rowsort
SELECT DISTINCT + 68 * col0 * col1 FROM tab2 AS cor0
----
14756
312936
91324

onlyif mysql # use DIV operator for integer division
query I rowsort label-541
SELECT ALL 24 * col1 + + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
241
313
625

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL 24 * col1 + + col2 / col2 AS col0 FROM tab1 AS cor0
----
241
313
625

query I rowsort
SELECT + col1 * + 51 AS col1 FROM tab0 AS cor0
----
4386
4641
4947

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

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

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-549
SELECT ( + col1 ) + - CAST( + col0 AS SIGNED ) * + cor0.col0 col2 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-549
SELECT ( + col1 ) + - CAST ( + col0 AS INTEGER ) * + cor0.col0 col2 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT - ( + col2 ) * + 35 AS col2 FROM tab1 AS cor0
----
-1890
-1995
-3360

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

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

query I rowsort
SELECT - tab2.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 85 ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL + 60 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT ( + 21 ) AS col2 FROM tab0, tab2 AS cor0
----
21

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

query I rowsort
SELECT DISTINCT - col2 + col1 * + col2 * col1 FROM tab1
----
16128
36450
5643

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

query I rowsort
SELECT ALL 79 * - col2 * + col2 FROM tab0 AS cor0
----
-531196
-79
-86031

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

query I rowsort
SELECT DISTINCT cor0.col0 * + 34 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
238
2652
2686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-563
SELECT DISTINCT CAST( col1 AS SIGNED ) 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-563
SELECT DISTINCT CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
86
91
97

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

query I rowsort
SELECT - col1 * col2 + - 42 * - col0 AS col2 FROM tab2 AS cor0
----
-543
1742
2672

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * cor0.col2 * 24 + + col1 col0 FROM tab0 AS cor0
----
-173093
-2015
-69610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * col2 col2 FROM tab0
----
-3395
-664118
-68112

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

query I rowsort
SELECT + col2 * col1 + 52 FROM tab1 AS cor0
----
1300
1456
622

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

query I rowsort
SELECT + 44 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 * 77 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c2f9f20256f92fb51db8d6a8d47e3186

query I rowsort
SELECT col1 + 54 AS col1 FROM tab1 AS cor0
----
64
67
80

query I rowsort
SELECT + - col1 + + 89 * + col1 + col2 FROM tab0 cor0
----
7601
8090
8537

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

query I rowsort
SELECT ALL + col0 - + ( - col1 + - col0 * col0 ) AS col1 FROM tab1 AS cor0
----
38
4170
6493

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

query I rowsort
SELECT col2 + 20 * ( + col2 * + ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-12882
-16713
-30654

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

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

query I rowsort
SELECT ALL ( 34 ) * + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-102068
-6426
-68952

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

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

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

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

query I rowsort
SELECT ALL + col1 + col1 * - col0 * tab0.col2 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT ALL + 18 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298

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

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

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

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

skipif mysql # not compatible
query I rowsort label-590
SELECT 31 / + tab0.col2 FROM tab0
----
0
0
31

query I rowsort
SELECT + - cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66

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

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

query I rowsort
SELECT ALL - - cor0.col0 + col2 + + 61 FROM tab0 AS cor0
----
118
232
97

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - 78 + - col0 * CAST ( + col2 AS REAL ) FROM tab1 AS cor0
----
-3570
-7602
-84

query I rowsort
SELECT cor0.col1 * + col0 - - col0 * + col0 FROM tab0 AS cor0
----
16020
2640
4620

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

query I rowsort
SELECT - tab0.col0 * - tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

query I rowsort
SELECT + - 21 * - col0 + - 23 * col0 - - col2 AS col1 FROM tab2 AS cor0
----
-120
-130
13

query I rowsort
SELECT 40 + cor0.col1 AS col1 FROM tab0 AS cor0
----
126
131
137

query I rowsort
SELECT - 56 * - col0 AS col2 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT - ( - col2 ) + - ( + col0 ) + - col0 * + 63 AS col1 FROM tab2 AS cor0
----
-421
-4966
-5018

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

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

query I rowsort
SELECT ALL - col0 * ( - cor0.col1 ) + cor0.col1 * col0 FROM tab2 AS cor0
----
2686
434
9204

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

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

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT ( - cor0.col2 ) / col1 FROM tab1 AS cor0
----
-2
-5
-7

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

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

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

query I rowsort
SELECT - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ( - 74 ) + + col1 FROM tab1
----
-48
-61
-64

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

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

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

query I rowsort
SELECT 86 * + col2 + col0 * - col0 + col1 FROM tab1
----
1869
4661
816

query I rowsort
SELECT ( + col2 ) + col1 * - col0 + tab1.col2 * col1 FROM tab1
----
-13
1380
304

query I rowsort
SELECT ALL - 50 * - cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
153
3264
4080

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 ALL + - 84 * col2 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2748
-49
-6799

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + + 21 * col0 + cor0.col1 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT + - col2 * - 86 AS col0 FROM tab1 AS cor0
----
4644
4902
8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 25 + col2 col1 FROM tab1 AS cor0
----
129
1657
2096

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

query I rowsort
SELECT + - col1 + 20 FROM tab0 AS cor0
----
-66
-71
-77

query I rowsort
SELECT ALL - 76 - 84 FROM tab0, tab2 cor0
----
9 values hashing to 60b2d877c40510a3d56d933bf79baf22

onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT - col0 + - 4 DIV col1 AS col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-631
SELECT - col0 + - 4 / col1 AS col0 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * col0 col2 FROM tab1 AS cor0
----
-233472
-486
-614400

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * - col1 + - cor0.col2 * - col0 + col0 FROM tab2 AS cor0
----
1033
3640
3727

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 + col2 + col1 col1 FROM tab2 AS cor0
----
25
28
55

query I rowsort
SELECT + 54 * col0 AS col0 FROM tab0 cor0
----
1296
1890
4806

query I rowsort
SELECT ALL - - 16 - col2 FROM tab0 AS cor0
----
-17
-66
15

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

query I rowsort
SELECT DISTINCT - 59 * col0 - - col1 FROM tab0 AS cor0
----
-1330
-1968
-5160

query I rowsort
SELECT + + 42 * col2 - + col1 FROM tab2 AS cor0
----
1033
1103
1579

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + - col0 col2 FROM tab0 cor0
----
-34
1065
6635

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

query I rowsort
SELECT ALL 2 + + col1 FROM tab2
----
19
33
61

query I rowsort
SELECT DISTINCT 95 * col0 FROM tab1 cor0
----
285
6080
7600

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

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

query I rowsort
SELECT + - 94 * col1 AS col2 FROM tab0 cor0
----
-8084
-8554
-9118

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

query I rowsort
SELECT 78 * - col1 FROM tab1
----
-1014
-2028
-780

onlyif mysql # use DIV operator for integer division
query I rowsort label-656
SELECT ALL 49 DIV ( + tab1.col1 ) FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL 49 / ( + tab1.col1 ) FROM tab1
----
1
3
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-657
SELECT ALL - col0 DIV col2 + 73 AS col0 FROM tab1
----
72
73
73

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL - col0 / col2 + 73 AS col0 FROM tab1
----
72
73
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + - 75 + - col2 AS col1 FROM tab2 AS cor0
----
-101
-102
-113

query I rowsort
SELECT + col2 * col2 + 15 FROM tab1 AS cor0
----
2931
3264
9231

query I rowsort
SELECT + + col2 + col0 * col0 * col0 AS col0 FROM tab2 AS cor0
----
370
474578
493077

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 12 - tab1.col0 FROM tab1
----
-52
-68
9

query I rowsort
SELECT ALL col1 + + col1 + - col2 AS col2 FROM tab2
----
-4
35
92

query I rowsort
SELECT DISTINCT - 13 + + 74 AS col1 FROM tab1
----
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT DISTINCT + col0 DIV col2 + tab0.col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT + col0 / col2 + tab0.col2 FROM tab0
----
33
36
83

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + 46 AS col2 FROM tab1 AS cor0
----
56
59
72

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

query I rowsort
SELECT + ( 84 ) + + col0 FROM tab0 AS cor0
----
108
119
173

query I rowsort
SELECT DISTINCT 62 - - col2 AS col0 FROM tab0 AS cor0
----
144
63
95

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

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

query I rowsort
SELECT - - 63 + - col1 AS col0 FROM tab0 AS cor0
----
-23
-28
-34

query I rowsort
SELECT ALL + 19 + + col2 AS col2 FROM tab2 AS cor0
----
45
46
57

query I rowsort
SELECT ALL col1 * + col1 * + ( - 89 ) FROM tab1 AS cor0
----
-15041
-60164
-8900

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

query I rowsort
SELECT DISTINCT 92 + col0 FROM tab1 AS cor0
----
156
172
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT ALL + col0 + cor0.col1 DIV - 26 AS col1 FROM tab0 AS cor0
----
21
32
86

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + col0 + cor0.col1 / - 26 AS col1 FROM tab0 AS cor0
----
21
32
86

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + 91 AS col0 FROM tab0 AS cor0
----
124
173
92

query I rowsort
SELECT ALL cor0.col2 * + 47 + - col0 + col2 * ( + col1 ) FROM tab1 AS cor0
----
3185
3939
5680

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

query I rowsort
SELECT ALL col2 * - col1 + + col2 * cor0.col0 FROM tab1 AS cor0
----
-1242
3078
6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 - - 65 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

query I rowsort
SELECT + + cor0.col2 + 18 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 14cb377b78513290440441fcd1194065

query I rowsort
SELECT ALL + col1 * + col2 + - col2 - col1 * 50 * col0 FROM tab0 AS cor0
----
-100395
-169654
-397570

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

query I rowsort
SELECT - 36 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

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

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

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

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL - CAST ( col2 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT ( 70 ) + col0 AS col2 FROM tab0 AS cor0
----
105
159
94

query I rowsort
SELECT ALL + 15 * 93 + - col0 FROM tab2 cor0
----
1316
1317
1388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 39 + cor0.col1 col0 FROM tab0 AS cor0
----
47
52
58

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

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

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

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

query I rowsort
SELECT ALL col0 * - 77 - col0 FROM tab2 AS cor0
----
-546
-6084
-6162

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-715
SELECT ALL - - col0 + 44 DIV col1 FROM tab1 AS cor0
----
4
68
83

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL - - col0 + 44 / col1 FROM tab1 AS cor0
----
4
68
83

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

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

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

query I rowsort
SELECT - - 45 AS col2 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT ALL 43 + tab2.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4cfc261a32fa297fc214063aa0c9a733

query I rowsort
SELECT col0 + col2 - 43 AS col1 FROM tab2 AS cor0
----
-9
61
74

query I rowsort
SELECT ALL - - 30 * + cor0.col2 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT - 69 + col1 FROM tab0 AS cor0
----
17
22
28

query I rowsort
SELECT ALL - 48 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1584
-3936
-48

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

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

query I rowsort
SELECT DISTINCT + tab2.col1 + + ( col1 + - 69 * col1 ) AS col2 FROM tab2
----
-1139
-2077
-3953

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

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

query I rowsort
SELECT 31 * - col2 * col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-231233
-2972
-87954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + cor0.col0 * cor0.col2 col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - col2 * + col0 + + 93 * - col1 AS col1 FROM tab1 AS cor0
----
-2580
-4578
-8889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 + + col1 col1 FROM tab0 AS cor0
----
43
48
54

query I rowsort
SELECT - 88 + 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # use DIV operator for integer division
query I rowsort label-734
SELECT + - 62 DIV - col1 + col0 col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-734
SELECT + - 62 / - col1 + col0 col2 FROM tab0 AS cor0
----
24
35
89

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

query I rowsort
SELECT DISTINCT + - 30 * cor0.col1 + col1 - + cor0.col0 * - col2 FROM tab2 cor0
----
-710
2509
317

onlyif mysql # use DIV operator for integer division
query I rowsort label-737
SELECT DISTINCT + 39 DIV - tab2.col1 + col1 FROM tab2
----
15
30
59

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT + 39 / - tab2.col1 + col1 FROM tab2
----
15
30
59

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

query I rowsort
SELECT col2 * - col2 * col0 + 13 FROM tab0
----
-22
-26123
-598423

query I rowsort
SELECT ALL 87 + - tab2.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c1643a1c991f8a385db5db51df8980bd

onlyif mysql # use DIV operator for integer division
query I rowsort label-741
SELECT col2 + col0 * col2 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-741
SELECT col2 + col0 * col2 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT cor0.col2 + 66 AS col0 FROM tab0 AS cor0
----
148
67
99

query I rowsort
SELECT ALL - 65 * + tab1.col2 + 51 * + col0 FROM tab1
----
-2160
-3357
-441

query I rowsort
SELECT DISTINCT 86 * - col1 AS col1 FROM tab0
----
-7396
-7826
-8342

query I rowsort
SELECT + - 48 * + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b15203157f93b5a45d6ba24178c5f8ff

query I rowsort
SELECT tab2.col0 * + ( 62 ) + + cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b4cb5489aa832f940beb45e7a31e7ba2

query I rowsort
SELECT col2 + + ( - 48 + col2 ) FROM tab1 cor0
----
144
60
66

query I rowsort
SELECT + col1 * - col1 * col1 + - col0 FROM tab0 AS cor0
----
-636080
-753660
-912708

query I rowsort
SELECT - - col2 + - 71 FROM tab0 AS cor0
----
-38
-70
11

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - col0 + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-756
SELECT DISTINCT - cor0.col2 DIV + ( col2 ) + col0 * 21 FROM tab1 AS cor0
----
1343
1679
62

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - cor0.col2 / + ( col2 ) + col0 * 21 FROM tab1 AS cor0
----
1343
1679
62

query I rowsort
SELECT ALL 66 + cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
2094
255
3068

query I rowsort
SELECT ALL + 98 + col2 * + col2 + - col2 * ( + cor0.col2 + + ( - col2 ) ) FROM tab2 AS cor0
----
1542
774
827

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

query I rowsort
SELECT DISTINCT 73 * - 81 AS col1 FROM tab2, tab2 AS cor0
----
-5913

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

query I rowsort
SELECT ALL + col1 + col2 * 38 FROM tab0 AS cor0
----
1340
135
3207

query I rowsort
SELECT ALL + - 31 FROM tab2 AS cor0
----
-31
-31
-31

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

query I rowsort
SELECT ALL col2 + col0 + col1 * - col2 FROM tab0
----
-2781
-61
-7291

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

query I rowsort
SELECT ALL col2 + col1 + col1 AS col1 FROM tab0
----
195
205
264

query I rowsort
SELECT + col2 * + col2 * + tab1.col2 + + col1 AS col0 FROM tab1
----
157490
185203
884749

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + col1 / + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 - col1 * tab0.col0 col2 FROM tab0
----
-1892
-3201
-7917

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + col2 * col0 > col1 + col0
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT - col0 DIV col0 + col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-774
SELECT - col0 / col0 + col0 FROM tab0
----
23
34
88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <> ( + col1 * col2 )
----

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

skipif mysql # not compatible
query I rowsort
SELECT ALL 75 * - cor0.col0 + CAST ( col0 * - col0 AS REAL ) FROM tab2 AS cor0
----
-11934
-12166
-574

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

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

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

query I rowsort
SELECT DISTINCT 58 + + col0 * 6 AS col2 FROM tab2 cor0
----
100
526
532

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

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

query I rowsort
SELECT ALL + col0 + col2 + tab0.col2 FROM tab0
----
253
37
90

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

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

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

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

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

query I rowsort
SELECT - col2 * col1 FROM tab1 WHERE - col0 NOT IN ( col0 * col0 )
----
-1248
-1404
-570

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col1 * + col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 - col1 FROM tab0 WHERE NULL <> + col0
----

query I rowsort
SELECT col1 * + col0 FROM tab0 WHERE NULL > + tab0.col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 * col0 col0 FROM tab0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT DISTINCT + col2 DIV 44 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT + col2 / 44 FROM tab2
----
0

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

query I rowsort
SELECT ALL + col2 + 87 * - col0 * + 76 AS col0 FROM tab1
----
-19782
-423111
-528864

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

query I rowsort
SELECT ALL col0 + 90 * - col2 AS col1 FROM tab0 AS cor0
----
-2946
-55
-7291

query I rowsort
SELECT ALL - - 32 * 44 * - col0 AS col0 FROM tab2 AS cor0
----
-109824
-111232
-9856

query I rowsort
SELECT 96 * cor2.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 978bc0df7aff81c1dbd536dc6943fd91

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

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

query I rowsort
SELECT + col0 - + col0 * col2 * - 0 AS col2 FROM tab2
----
7
78
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-810
SELECT col0 / - col1 + col1 col1 FROM tab0
----
86
91
97

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

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

query I rowsort
SELECT ALL - cor0.col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL + col2 + - col1 * 66 FROM tab2 AS cor0
----
-1084
-2019
-3868

query I rowsort
SELECT DISTINCT + col2 + - 45 * col0 AS col0 FROM tab0 AS cor0
----
-1047
-1574
-3923

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT DISTINCT cor0.col1 DIV + 38 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT cor0.col1 / + 38 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

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

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

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

query I rowsort
SELECT ALL col0 + 99 FROM tab0 AS cor0
----
123
134
188

query I rowsort
SELECT DISTINCT + col0 * col1 + col2 * + cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
100880
37120
4290

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

query I rowsort
SELECT ALL col2 * + 59 AS col1 FROM tab0 AS cor0
----
1947
4838
59

query I rowsort
SELECT + cor0.col0 * - 83 AS col0 FROM tab0 AS cor0
----
-1992
-2905
-7387

query I rowsort
SELECT ALL + col2 + + 38 AS col0 FROM tab2
----
64
65
76

query I rowsort
SELECT DISTINCT - 71 * cor0.col1 FROM tab1 cor0
----
-1846
-710
-923

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

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

skipif mysql # not compatible
query I rowsort label-828
SELECT + - 21 / col0 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-830
SELECT ALL - 74 DIV + col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL - 74 / + col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT + col0 + 63 - col1 DIV 7 AS col1 FROM tab1 AS cor0
----
126
142
63

skipif mysql # not compatible
query I rowsort label-831
SELECT + col0 + 63 - col1 / 7 AS col1 FROM tab1 AS cor0
----
126
142
63

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-835
SELECT - + 68 DIV + col0 col1 FROM tab1 AS cor0
----
-1
-22
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-835
SELECT - + 68 / + col0 col1 FROM tab1 AS cor0
----
-1
-22
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT - + ( - col2 ) + - col2 * - col0 DIV col0 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-837
SELECT - + ( - col2 ) + - col2 * - col0 / col0 FROM tab1 AS cor0
----
108
114
192

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

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

query I rowsort
SELECT DISTINCT + col0 + col1 * + 71 FROM tab0 AS cor0
----
6130
6550
6922

query I rowsort
SELECT 97 + col1 FROM tab1 AS cor0
----
107
110
123

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + 81 + col2 * col0 - - 24 AS col1 FROM tab1 AS cor0
----
14184
429
8856

onlyif mysql # use DIV operator for integer division
query I rowsort label-845
SELECT DISTINCT 5 * cor0.col2 + + col0 DIV ( + 27 ) FROM tab2 AS cor0
----
132
135
192

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT 5 * cor0.col2 + + col0 / ( + 27 ) FROM tab2 AS cor0
----
132
135
192

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * - 87 col0 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT 92 * 32 + - col0 * col0 - - col0 * + col1 * 30 FROM tab1 AS cor0
----
18048
27744
5275

query I rowsort
SELECT ALL col0 + cor0.col2 + col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT - col0 + ( - 85 + col0 ) * col0 AS col1 FROM tab1
----
-1408
-249
-480

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

query I rowsort
SELECT DISTINCT + col2 + + 18 FROM tab1
----
114
72
75

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

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

query I rowsort
SELECT DISTINCT - - 92 * tab1.col2 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
4968
5244
8832

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-859
SELECT - col1 * col1 - col0 DIV col1 FROM tab1 AS cor0
----
-106
-175
-676

skipif mysql # not compatible
query I rowsort label-859
SELECT - col1 * col1 - col0 / col1 FROM tab1 AS cor0
----
-106
-175
-676

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

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

query I rowsort
SELECT ALL - + col0 * cor0.col0 + cor0.col1 + col2 * col0 FROM tab0 AS cor0
----
-1093
-532
302

query I rowsort
SELECT + - cor0.col0 + col2 * - 79 FROM tab2 AS cor0
----
-2132
-2140
-3081

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

query I rowsort
SELECT col2 * 56 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
158928
417872
5432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 46 col2 FROM tab1 AS cor0
----
2484
2622
4416

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT DISTINCT - col2 + 52 DIV 61 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT - col2 + 52 / 61 FROM tab1 AS cor0
----
-54
-57
-96

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

query I rowsort
SELECT ALL ( col2 + 96 ) AS col1 FROM tab1
----
150
153
192

query I rowsort
SELECT DISTINCT col2 * ( col1 ) + col0 + ( + col2 ) * col2 FROM tab0 AS cor0
----
133
14275
3951

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-874
SELECT ALL - col0 * - CAST( col0 * col2 AS SIGNED ) FROM tab2 AS cor0
----
1323
158184
237158

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - col0 * - CAST ( col0 * col2 AS INTEGER ) FROM tab2 AS cor0
----
1323
158184
237158

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-876
SELECT + col0 DIV col0 + 40 FROM tab0 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-876
SELECT + col0 / col0 + 40 FROM tab0 AS cor0
----
41
41
41

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

query I rowsort
SELECT DISTINCT + col0 + col2 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1424
1461
691

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

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

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

query I rowsort
SELECT DISTINCT col2 + + 92 AS col1 FROM tab0 cor0
----
125
174
93

query I rowsort
SELECT ALL + col1 + - ( 56 ) AS col2 FROM tab1 AS cor0
----
-30
-43
-46

query I rowsort
SELECT + - col0 * col2 + 94 FROM tab0 AS cor0
----
-698
-7204
59

query I rowsort
SELECT col2 - - 31 AS col1 FROM tab2 AS cor0
----
57
58
69

query I rowsort
SELECT + col0 * 73 + + col2 * - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-108309
-4592
-47034

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

query I rowsort
SELECT - col2 * - 67 * - col1 AS col0 FROM tab0 AS cor0
----
-190146
-499954
-6499

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-889
SELECT - + CAST( 81 AS SIGNED ) * col0 + + col0 col0 FROM tab0 AS cor0
----
-1920
-2800
-7120

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-889
SELECT - + CAST ( 81 AS INTEGER ) * col0 + + col0 col0 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT ALL - col1 * 78 FROM tab2 AS cor0
----
-1326
-2418
-4602

query I rowsort
SELECT - 35 + - col1 AS col2 FROM tab0 AS cor0
----
-121
-126
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 + col2 col1 FROM tab0 AS cor0
----
147
66
98

query I rowsort
SELECT DISTINCT + col2 + + col1 * ( - col1 * - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
636089
753653
912674

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

skipif mysql # not compatible
query I rowsort label-894
SELECT 99 / - col1 + + col2 * ( col2 ) FROM tab0 AS cor0
----
0
1088
6723

query I rowsort
SELECT ALL + 16 * col0 * col2 FROM tab0 cor0
----
116768
12672
560

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

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

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

query I rowsort
SELECT - 32 * + col1 AS col1 FROM tab2 AS cor0
----
-1888
-544
-992

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

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

query I rowsort
SELECT DISTINCT col2 * + col0 + col0 + + col0 FROM tab2 AS cor0
----
203
2184
3160

query I rowsort
SELECT 7 - col0 AS col1 FROM tab2
----
-71
-72
0

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-904
SELECT + CAST( 30 AS SIGNED ) - + tab2.col2 * - 70 FROM tab2
----
1850
1920
2690

skipif mysql # not compatible
query I rowsort label-904
SELECT + CAST ( 30 AS INTEGER ) - + tab2.col2 * - 70 FROM tab2
----
1850
1920
2690

query I rowsort
SELECT + 64 + - 44 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL + col2 + + col1 + ( + col1 * cor0.col1 + col1 ) AS col2 FROM tab0 AS cor0
----
7601
8545
9604

query I rowsort
SELECT DISTINCT 80 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
2673
6642
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-908
SELECT col1 * + col0 + col1 DIV + 58 AS col1 FROM tab2
----
1343
217
4603

skipif mysql # not compatible
query I rowsort label-908
SELECT col1 * + col0 + col1 / + 58 AS col1 FROM tab2
----
1343
217
4603

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

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

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

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

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

query I rowsort
SELECT - 53 + col2 AS col2 FROM tab2
----
-15
-26
-27

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

query I rowsort
SELECT ALL 28 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

query I rowsort
SELECT - cor0.col2 * 68 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 118fac2ab145f3c1384a3a47e1f27c64

query I rowsort
SELECT + 50 * col2 + col0 FROM tab1 AS cor0
----
2703
2914
4880

onlyif mysql # use DIV operator for integer division
query I rowsort label-920
SELECT + ( col0 ) DIV + col0 + 64 DIV + col1 + col2 FROM tab2
----
28
30
42

skipif mysql # not compatible
query I rowsort label-920
SELECT + ( col0 ) / + col0 + 64 / + col1 + col2 FROM tab2
----
28
30
42

query I rowsort
SELECT + 60 + 86 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 708ab89da52f5539ae8cc2b28295d0f9

onlyif mysql # use DIV operator for integer division
query I rowsort label-922
SELECT + - col0 DIV - cor0.col1 + - 95 AS col0 FROM tab1 AS cor0
----
-89
-89
-95

skipif mysql # not compatible
query I rowsort label-922
SELECT + - col0 / - cor0.col1 + - 95 AS col0 FROM tab1 AS cor0
----
-89
-89
-95

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-924
SELECT ALL tab1.col2 DIV 71 col1 FROM tab1
----
0
0
1

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

query I rowsort
SELECT DISTINCT 1 FROM tab0, tab2 cor0
----
1

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

query I rowsort
SELECT col2 * 60 FROM tab2
----
1560
1620
2280

query I rowsort
SELECT DISTINCT + col2 * + 14 * + tab0.col1 + - col0 FROM tab0
----
104379
1323
39708

query I rowsort
SELECT + col1 * + 92 + col1 * col0 + + ( + col0 ) * + col1 FROM tab2 AS cor0
----
14632
3286
4250

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

query I rowsort
SELECT ALL 63 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - ( 91 ) + + col0 FROM tab1
----
-11
-27
-88

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

skipif mysql # not compatible
query I rowsort label-933
SELECT CAST ( col1 AS INTEGER ) * + col1 + - ( + col1 ) * - col2 FROM tab0
----
10234
15743
9506

query I rowsort
SELECT - ( 38 ) * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT DISTINCT + 70 + col1 AS col2 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT ALL - col0 + - col1 + cor0.col2 * 6 AS col1 FROM tab0 AS cor0
----
-126
312
88

query I rowsort
SELECT ALL - col0 * + cor0.col2 * - col0 + 4 FROM tab2 AS cor0
----
1327
158188
237162

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT ALL col0 * + col1 + - col0 DIV ( col1 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 * 51 col2 FROM tab0 AS cor0
----
1716
4264
52

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

query I rowsort
SELECT col0 * - col0 * 21 FROM tab1 AS cor0
----
-134400
-189
-86016

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

query I rowsort
SELECT ALL 34 * cor0.col0 FROM tab0 AS cor0
----
1190
3026
816

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

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

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

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

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

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

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

query I rowsort
SELECT + col0 * 41 AS col1 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT - 74 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 51 * + col0 col1 FROM tab2 AS cor0
----
-2499
-310284
-318291

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

query I rowsort
SELECT + 51 + + col0 AS col2 FROM tab0 AS cor0
----
140
75
86

query I rowsort
SELECT DISTINCT col0 + + ( - col1 ) * col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT - - col2 * + 14 + + col0 FROM tab2 AS cor0
----
385
442
611

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT col0 DIV col0 + col1 * col0 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-962
SELECT col0 / col0 + col1 * col0 FROM tab1 AS cor0
----
1041
641
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT - col0 DIV col0 + 73 * col1 col1 FROM tab2
----
1240
2262
4306

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-963
SELECT - col0 / col0 + 73 * col1 col1 FROM tab2
----
1240
2262
4306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 89 col2 FROM tab1
----
4806
5073
8544

query I rowsort
SELECT col1 * + col2 * tab2.col2 + tab2.col2 AS col2 FROM tab2
----
22626
24586
39910

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * col2 - + col0 col2 FROM tab2 AS cor0
----
1456
1586
2163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * - col2 + col1 col2 FROM tab0 AS cor0
----
147
1736
4191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-970
SELECT - + CAST( + 15 AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
-390
-405
-570

skipif mysql # not compatible
query I rowsort label-970
SELECT - + CAST ( + 15 AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT ALL col0 - - 57 * + col2 AS col0 FROM tab0 AS cor0
----
1905
4763
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-972
SELECT ALL CAST( col2 AS SIGNED ) * - col0 AS col2 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL CAST ( col2 AS INTEGER ) * - col0 AS col2 FROM tab1
----
-162
-3648
-7680

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col0 + - col0 * tab2.col0 * + col2 AS col0 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT - col1 + + col2 * col2 * - col0 FROM tab2
----
-114093
-5134
-52787

query I rowsort
SELECT ALL 52 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1612
-3068
-884

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-986
SELECT - + 71 * col0 DIV cor0.col1 FROM tab1 AS cor0
----
-436
-454
-8

skipif mysql # not compatible
query I rowsort label-986
SELECT - + 71 * col0 / cor0.col1 FROM tab1 AS cor0
----
-436
-454
-8

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

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

query I rowsort
SELECT ALL 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

query I rowsort
SELECT + - 66 * - col2 + cor0.col0 FROM tab0 AS cor0
----
101
2202
5501

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-992
SELECT col1 * - CAST( 68 AS SIGNED ) FROM tab1 AS cor0
----
-1768
-680
-884

skipif mysql # not compatible
query I rowsort label-992
SELECT col1 * - CAST ( 68 AS INTEGER ) FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT ALL - col0 + ( 20 ) FROM tab2 AS cor0
----
-58
-59
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-994
SELECT - + col0 + cor0.col2 DIV 21 + - cor0.col0 DIV - 2 FROM tab0 AS cor0
----
-11
-18
-42

skipif mysql # not compatible
query I rowsort label-994
SELECT - + col0 + cor0.col2 / 21 + - cor0.col0 / - 2 FROM tab0 AS cor0
----
-11
-18
-42

query I rowsort
SELECT + col0 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-997
SELECT ALL - - col1 + - col2 + 89 DIV col1 AS col2 FROM tab1 cor0
----
-25
-39
-77

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL - - col1 + - col2 + 89 / col1 AS col2 FROM tab1 cor0
----
-25
-39
-77

query I rowsort
SELECT DISTINCT + col2 * - 23 - + col1 FROM tab0 cor0
----
-120
-1977
-845

query I rowsort
SELECT col1 * ( col1 ) + - col0 * + 10 AS col0 FROM tab0 AS cor0
----
7156
7391
9059

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

query I rowsort
SELECT ALL + col1 * 10 AS col0 FROM tab0 AS cor0
----
860
910
970

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

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

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

query I rowsort
SELECT ALL - col0 * - 20 * + col1 - cor0.col0 FROM tab1 AS cor0
----
12736
1557
20720

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

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

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

query I rowsort
SELECT - col1 + - ( 98 + - col0 * 28 ) FROM tab0 AS cor0
----
2303
488
785

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

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

query I rowsort
SELECT DISTINCT - - col2 + col1 * + 60 AS col1 FROM tab0 AS cor0
----
5193
5542
5821

onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT ALL + col2 DIV - col1 + - 86 * col0 + + 34 col0 FROM tab0 AS cor0
----
-2030
-2976
-7620

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + col2 / - col1 + - 86 * col0 + + 34 col0 FROM tab0 AS cor0
----
-2030
-2976
-7620

query I rowsort
SELECT + col0 * - col1 * col0 + col2 AS col0 FROM tab2 AS cor0
----
-106059
-1492
-358930

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

query I rowsort
SELECT ALL col2 + + 66 FROM tab0 cor0
----
148
67
99

query I rowsort
SELECT ALL - + col1 * + 12 * cor0.col0 AS col0 FROM tab1 cor0
----
-12480
-7680
-936

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

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

query I rowsort
SELECT ALL cor0.col1 * 45 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d566fb611ec8e4195e058361f98d3b78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1019
SELECT ALL - CAST( - col0 AS SIGNED ) + col2 col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - CAST ( - col0 AS INTEGER ) + col2 col2 FROM tab0 AS cor0
----
171
36
57

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1021
SELECT DISTINCT - ( + 16 ) DIV + col0 col1 FROM tab1 AS cor0
----
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT - ( + 16 ) / + col0 col1 FROM tab1 AS cor0
----
-5
0

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

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

query I rowsort
SELECT ALL col0 + - 47 * + col0 AS col1 FROM tab2
----
-322
-3588
-3634

query I rowsort
SELECT 15 * tab0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 655f1e904862adb63a36ade99f031c39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT ALL 96 DIV col0 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL 96 / col0 FROM tab0 AS cor0
----
1
2
4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1028
SELECT 99 DIV + col2 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1028
SELECT 99 / + col2 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 * col0 col2 FROM tab1 cor0
----
-153
-3264
-4080

query I rowsort
SELECT ALL + - col1 + - col2 + - col2 FROM tab2 AS cor0
----
-111
-85
-93

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

query I rowsort
SELECT ALL - cor0.col0 * - col0 * - 64 AS col1 FROM tab2 AS cor0
----
-3136
-389376
-399424

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

query I rowsort
SELECT ALL - 90 - col2 AS col0 FROM tab2
----
-116
-117
-128

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

query I rowsort
SELECT DISTINCT 18 * + col1 + + col1 FROM tab0
----
1634
1729
1843

query I rowsort
SELECT ALL - ( + tab0.col1 ) - + 88 AS col1 FROM tab0
----
-174
-179
-185

query I rowsort
SELECT + 10 FROM tab0 cor0
----
10
10
10

query I rowsort
SELECT DISTINCT 65 * col0 FROM tab1 AS cor0
----
195
4160
5200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + ( - 67 ) col2 FROM tab2
----
1276
150
4535

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

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

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

query I rowsort
SELECT ALL - - col0 + col0 * + 44 + cor0.col0 FROM tab0 cor0
----
1104
1610
4094

query I rowsort
SELECT DISTINCT - 38 * col2 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-2130
-2806
-4688

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

query I rowsort
SELECT ALL 39 + - col2 FROM tab2 AS cor0
----
1
12
13

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

query I rowsort
SELECT col2 * + ( - col2 ) + - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT col0 + 90 * ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT ALL + col1 * col0 * + 58 FROM tab1
----
37120
4524
60320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1052
SELECT ALL - col1 + + 3 DIV 4 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - col1 + + 3 / 4 FROM tab0
----
-86
-91
-97

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

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

query I rowsort
SELECT ALL + col1 + - col1 * col0 - + col0 FROM tab0 cor0
----
-2002
-3333
-8097

query I rowsort
SELECT DISTINCT - 11 + - col1 FROM tab0 AS cor0
----
-102
-108
-97

query I rowsort
SELECT ALL 32 * 58 FROM tab2, tab1 AS cor0
----
9 values hashing to a4e8fdd07a03a44b604f7a98eff251bc

query I rowsort
SELECT ALL + 48 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL tab2.col0 - tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d924577a04b3a692cbbd2348e6f8e88f

query I rowsort
SELECT 63 * col1 + col0 AS col0 FROM tab0
----
5442
5822
6146

query I rowsort
SELECT ALL - 90 * - col2 AS col1 FROM tab0
----
2970
7380
90

query I rowsort
SELECT + col1 * + tab1.col1 + + col2 AS col2 FROM tab1
----
157
265
730

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

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

query I rowsort
SELECT + + 13 * - col1 + col2 FROM tab2 AS cor0
----
-183
-376
-741

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

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

query I rowsort
SELECT ALL + 15 + - cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1328
-202
-4587

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

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

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

query I rowsort
SELECT + + col2 * cor0.col0 + col1 * 37 FROM tab1 AS cor0
----
1124
4018
8161

query I rowsort
SELECT 85 + - col0 FROM tab0 AS cor0
----
-4
50
61

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

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

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

query I rowsort
SELECT + + col0 * + 72 - - col0 AS col1 FROM tab1 AS cor0
----
219
4672
5840

query I rowsort
SELECT - 59 * 59 AS col1 FROM tab1 cor0
----
-3481
-3481
-3481

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

skipif mysql # not compatible
query I rowsort label-1077
SELECT 45 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT - col0 + cor0.col1 * + cor0.col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-16304
-36507
-5764

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT DISTINCT - col2 + - col1 - col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-100
-122
-174

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - col2 + - col1 - col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-100
-122
-174

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

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

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

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - col2 < ( col1 )
----

query I rowsort
SELECT - col1 * tab2.col2 * col1 - tab2.col2 AS col2 FROM tab2
----
-11020
-25974
-90532

query I rowsort
SELECT col1 * - col2 + col2 * + col1 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - col1 + col1 * col2 * col0 FROM tab2
----
119593
51017
5828

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NULL IN ( col0 )
----

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

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

query I rowsort
SELECT - tab0.col1 * col2 * col2 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1098
SELECT ALL - cor0.col0 * - col0 + col1 * col2 + + col2 DIV - col1 FROM tab2 AS cor0
----
6885
7618
886

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL - cor0.col0 * - col0 + col1 * col2 + + col2 / - col1 FROM tab2 AS cor0
----
6885
7618
886

query I rowsort
SELECT ALL col0 * + col0 - + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-140
3239
4056

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

query I rowsort
SELECT tab1.col1 - - col2 * + col1 FROM tab1
----
1261
1430
580

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1106
SELECT - - col0 / col2 - + col1 AS col0 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT - col2 * col1 * - col2 + - col0 FROM tab0 AS cor0
----
611795
62
93630

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

query I rowsort
SELECT ALL + + col2 + col2 * - col1 - col0 FROM tab0 AS cor0
----
-131
-2829
-7469

query I rowsort
SELECT + + col2 * col2 + col0 * col0 AS col1 FROM tab1 AS cor0
----
15616
2925
7345

query I rowsort
SELECT DISTINCT tab1.col2 + 21 AS col1 FROM tab1, tab0 cor0
----
117
75
78

query I rowsort
SELECT ALL col1 + - col0 * - col2 FROM tab2
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 - ( tab0.col2 ) col2 FROM tab0, tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT + col0 + col2 DIV - 70 AS col0 FROM tab1
----
3
64
79

skipif mysql # not compatible
query I rowsort label-1114
SELECT + col0 + col2 / - 70 AS col0 FROM tab1
----
3
64
79

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

query I rowsort
SELECT ALL - - 43 + + col0 FROM tab1 AS cor0
----
107
123
46

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

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

query I rowsort
SELECT DISTINCT + 60 + col2 FROM tab2
----
86
87
98

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

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

query I rowsort
SELECT cor0.col2 * - col1 + col0 + - col2 FROM tab0 AS cor0
----
-2847
-63
-7455

query I rowsort
SELECT col0 + 36 * col1 AS col0 FROM tab2 AS cor0
----
1123
2202
691

query I rowsort
SELECT DISTINCT col0 * 10 FROM tab1 AS cor0
----
30
640
800

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1132
SELECT ALL + col0 + col2 DIV tab1.col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + col0 + col2 / tab1.col2 FROM tab1
----
4
65
81

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

query I rowsort
SELECT ALL - col2 * tab2.col0 * col1 + tab2.col0 AS col1 FROM tab2
----
-119574
-50955
-5852

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

query I rowsort
SELECT ALL + col2 * - tab1.col1 * col1 - - col0 AS col2 FROM tab1
----
-16144
-36501
-5636

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

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

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

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

query I rowsort
SELECT - 48 * col0 AS col1 FROM tab2 AS cor0
----
-336
-3744
-3792

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

query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT + col1 + col1 * ( 41 ) FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT ALL - ( + cor0.col1 ) AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

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

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

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

query I rowsort
SELECT DISTINCT 94 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1350
-582
-635

onlyif mysql # use DIV operator for integer division
query I rowsort label-1150
SELECT - col2 * - col0 + + col0 DIV col1 - - col1 FROM tab1
----
188
3664
7699

skipif mysql # not compatible
query I rowsort label-1150
SELECT - col2 * - col0 + + col0 / col1 - - col1 FROM tab1
----
188
3664
7699

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1152
SELECT col1 DIV col1 + - ( + col1 ) FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-1152
SELECT col1 / col1 + - ( + col1 ) FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT DISTINCT - + col1 + 87 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
235
5558
6947

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT ALL - cor0.col1 + + 58 DIV - 49 - + col0 FROM tab0 AS cor0
----
-111
-133
-181

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL - cor0.col1 + + 58 / - 49 - + col0 FROM tab0 AS cor0
----
-111
-133
-181

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1161
SELECT ALL + + col2 * CAST( + 46 AS SIGNED ) - cor0.col0 DIV col0 FROM tab0 AS cor0
----
1517
3771
45

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + + col2 * CAST ( + 46 AS INTEGER ) - cor0.col0 / col0 FROM tab0 AS cor0
----
1517
3771
45

query I rowsort
SELECT ALL col2 * + ( 77 ) + col2 FROM tab0 cor0
----
2574
6396
78

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

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

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

query I rowsort
SELECT 82 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-1167
SELECT col1 * cor0.col1 + - cor0.col2 * col2 DIV + cor0.col0 FROM tab2 cor0
----
271
3473
857

skipif mysql # not compatible
query I rowsort label-1167
SELECT col1 * cor0.col1 + - cor0.col2 * col2 / + cor0.col0 FROM tab2 cor0
----
271
3473
857

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

query I rowsort
SELECT DISTINCT + 51 + col0 FROM tab2 AS cor0
----
129
130
58

query I rowsort
SELECT - - 4 + col2 AS col2 FROM tab2 AS cor0
----
30
31
42

query I rowsort
SELECT DISTINCT ( - 67 ) - - tab1.col0 FROM tab1
----
-3
-64
13

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

query I rowsort
SELECT + col0 + + tab0.col2 + + col2 * tab0.col2 FROM tab0
----
1146
37
6895

onlyif mysql # use DIV operator for integer division
query I rowsort label-1174
SELECT - col0 DIV - 97 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1174
SELECT - col0 / - 97 + col0 FROM tab0 AS cor0
----
24
35
89

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1180
SELECT + col1 DIV col0 + ( + col2 ) - col0 FROM tab2 AS cor0
----
-41
-52
24

skipif mysql # not compatible
query I rowsort label-1180
SELECT + col1 / col0 + ( + col2 ) - col0 FROM tab2 AS cor0
----
-41
-52
24

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

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

query I rowsort
SELECT ALL col2 * - 23 AS col0 FROM tab2
----
-598
-621
-874

query I rowsort
SELECT ALL + 33 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - col1 * 84 AS col1 FROM tab1
----
-1092
-2184
-840

query I rowsort
SELECT ALL col1 * 88 AS col0 FROM tab0
----
7568
8008
8536

query I rowsort
SELECT + col0 * + 85 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
2028
378
5372

query I rowsort
SELECT ALL - 86 * 41 AS col1 FROM tab0
----
-3526
-3526
-3526

query I rowsort
SELECT 59 * - col1 + col1 AS col0 FROM tab1
----
-1508
-580
-754

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

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

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

query I rowsort
SELECT ALL + 8 + - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 55b3f8121d593cdf5e7001d2bf64f541

query I rowsort
SELECT 69 * - col2 - + col0 AS col0 FROM tab1 AS cor0
----
-3729
-3997
-6704

query I rowsort
SELECT + + col0 * col1 + col0 * + col0 + cor0.col2 AS col1 FROM tab2 cor0
----
10712
293
7622

query I rowsort
SELECT + + 72 - - col0 AS col2 FROM tab2 AS cor0
----
150
151
79

query I rowsort
SELECT col2 + - col1 * - 32 * - cor0.col1 - col0 AS col0 FROM tab1 AS cor0
----
-21581
-3207
-5392

query I rowsort
SELECT col0 + + col1 * - 36 FROM tab2 AS cor0
----
-1109
-2046
-533

query I rowsort
SELECT + 97 + + col2 FROM tab2 AS cor0
----
123
124
135

query I rowsort
SELECT + col0 * - col2 + col0 + + ( col2 ) FROM tab2 AS cor0
----
-155
-1924
-2885

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

query I rowsort
SELECT - ( - col2 ) + - col2 * 53 + + col2 AS col1 FROM tab2 AS cor0
----
-1326
-1377
-1938

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

query I rowsort
SELECT DISTINCT - tab0.col0 * col2 * col2 + tab0.col1 AS col0 FROM tab0
----
-26050
-598345
62

query I rowsort
SELECT - cor0.col0 * col1 * + col0 + 30 AS col2 FROM tab0 AS cor0
----
-118795
-49506
-720781

query I rowsort
SELECT ALL + ( col2 ) * - col1 + - ( - 6 ) AS col0 FROM tab1 AS cor0
----
-1242
-1398
-564

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

query I rowsort
SELECT ALL cor0.col1 * + ( col2 * - col1 ) + col2 AS col0 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT - col0 * 25 + col0 FROM tab2 AS cor0
----
-168
-1872
-1896

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1212
SELECT DISTINCT 12 + cor0.col0 DIV ( cor0.col1 ) FROM tab1 AS cor0
----
12
18

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT 12 + cor0.col0 / ( cor0.col1 ) FROM tab1 AS cor0
----
12
18

query I rowsort
SELECT - - col1 * col2 + col2 * 50 * + col0 AS col0 FROM tab2 AS cor0
----
10287
102934
150746

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

query I rowsort
SELECT ALL + 2 * - col0 + - 78 FROM tab0 AS cor0
----
-126
-148
-256

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT DISTINCT + + col0 DIV cor0.col1 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT + + col0 / cor0.col1 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT + + col1 + + col2 * 31 * col0 AS col0 FROM tab1 AS cor0
----
113098
238093
5048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col1 + - col1 col0 FROM tab0 AS cor0
----
0
2752
7371

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

query I rowsort
SELECT ( - 33 ) + col1 + + ( col2 * + tab0.col0 ) AS col0 FROM tab0
----
7356
845
99

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

query I rowsort
SELECT ALL 24 * + col2 * col2 + + ( - col2 ) * col2 FROM tab1
----
211968
67068
74727

query I rowsort
SELECT tab2.col2 * cor1.col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 5a783d04f27f5464428a0aa6e48e0e25

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

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

query I rowsort
SELECT ALL + - col2 + 53 * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
109359
179934
429165

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

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

query I rowsort
SELECT ALL + - col1 * - 23 FROM tab2 AS cor0
----
1357
391
713

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * ( 41 ) col0 FROM tab1 AS cor0
----
-1066
-410
-533

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 - col0 col2 FROM tab0
----
7372
8192
9374

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1237
SELECT DISTINCT + 10 DIV col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT + 10 / col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - + 55 FROM tab1 AS cor0
----
-55
-55
-55

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

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

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

query I rowsort
SELECT ALL col0 * 40 FROM tab0 cor0
----
1400
3560
960

query I rowsort
SELECT col2 + - col2 * col0 * + col0 FROM tab0
----
-1224
-18975
-649440

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

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

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

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

query I rowsort
SELECT + - 79 + 6 * - col0 FROM tab1 AS cor0
----
-463
-559
-97

query I rowsort
SELECT DISTINCT + 6 * + 94 AS col1 FROM tab2 AS cor0
----
564

query I rowsort
SELECT ALL - 7 + - col2 AS col1 FROM tab2 AS cor0
----
-33
-34
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) * cor0.col0 col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-1251
SELECT 91 DIV + col0 FROM tab2 AS cor0
----
1
1
13

skipif mysql # not compatible
query I rowsort label-1251
SELECT 91 / + col0 FROM tab2 AS cor0
----
1
1
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 + 45 * + col1 col1 FROM tab0 AS cor0
----
3934
4159
4429

query I rowsort
SELECT ALL - + 8 * col2 AS col1 FROM tab2 AS cor0
----
-208
-216
-304

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

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

query I rowsort
SELECT ALL 20 + - col1 AS col0 FROM tab1
----
-6
10
7

query I rowsort
SELECT + tab0.col0 * tab0.col0 + + ( col0 ) * col2 AS col1 FROM tab0
----
1260
1368
15219

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

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

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

query I rowsort
SELECT DISTINCT + - col2 + + col2 * ( - 98 ) FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT 55 + col1 AS col1 FROM tab0 AS cor0
----
141
146
152

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

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

query I rowsort
SELECT - 92 + 69 FROM tab2, tab2 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT col0 * col2 + 88 AS col1 FROM tab2 AS cor0
----
2116
277
3090

query I rowsort
SELECT DISTINCT col2 + ( - 24 ) * col1 FROM tab0 cor0
----
-2031
-2102
-2327

query I rowsort
SELECT + ( - cor1.col1 ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - col1 + + 31 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1506
660
837

query I rowsort
SELECT + col1 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
157
265
730

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + col2 + - tab1.col1 AS col1 FROM tab1
----
2
37
70

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1277
SELECT DISTINCT + 93 DIV + col1 FROM tab2
----
1
3
5

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT + 93 / + col1 FROM tab2
----
1
3
5

query I rowsort
SELECT 14 * 52 FROM tab0
----
728
728
728

query I rowsort
SELECT - 57 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT + 17 * - col0 + - col2 * 83 AS col2 FROM tab0 AS cor0
----
-3147
-678
-8319

query I rowsort
SELECT ALL 49 + + col2 FROM tab2 AS cor0
----
75
76
87

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

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

query I rowsort
SELECT - + 36 + cor0.col0 + 29 FROM tab0 AS cor0
----
17
28
82

query I rowsort
SELECT cor0.col1 * - col2 + 50 * + col1 AS col2 FROM tab2 AS cor0
----
1416
204
713

query I rowsort
SELECT col2 + col1 * col1 * - cor0.col0 FROM tab2 AS cor0
----
-22793
-271492
-6700

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + 22 col2 FROM tab2 AS cor0
----
1365
239
4624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1289
SELECT ALL - col0 + - CAST( 36 AS SIGNED ) * + col2 col1 FROM tab1 AS cor0
----
-1947
-2116
-3536

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - col0 + - CAST ( 36 AS INTEGER ) * + col2 col1 FROM tab1 AS cor0
----
-1947
-2116
-3536

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1291
SELECT - col0 DIV ( cor0.col1 ) + - 79 + - col0 AS col2 FROM tab2 AS cor0
----
-158
-162
-86

skipif mysql # not compatible
query I rowsort label-1291
SELECT - col0 / ( cor0.col1 ) + - 79 + - col0 AS col2 FROM tab2 AS cor0
----
-158
-162
-86

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

query I rowsort
SELECT - col2 + col2 * col0 * ( col2 ) + col1 FROM tab2 AS cor0
----
114055
5107
52761

onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT ALL col2 DIV - tab1.col2 + tab1.col0 * - col2 AS col2 FROM tab1
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL col2 / - tab1.col2 + tab1.col0 * - col2 AS col2 FROM tab1
----
-163
-3649
-7681

query I rowsort
SELECT + tab0.col2 + 92 + col1 * + col1 AS col1 FROM tab0
----
7521
8455
9502

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

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

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

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

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

query I rowsort
SELECT 33 * col1 AS col0 FROM tab2 AS cor0
----
1023
1947
561

query I rowsort
SELECT ALL - 69 * + col1 FROM tab0 AS cor0
----
-5934
-6279
-6693

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

query I rowsort
SELECT DISTINCT + 73 + col2 * + col0 AS col1 FROM tab2 cor0
----
2101
262
3075

query I rowsort
SELECT + - cor0.col2 * 75 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT - col1 + + 74 * - 31 FROM tab2 AS cor0
----
-2311
-2325
-2353

onlyif mysql # use DIV operator for integer division
query I rowsort label-1306
SELECT 21 DIV tab2.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35ad941cb1878fb87082ac21ea8241

skipif mysql # not compatible
query I rowsort label-1306
SELECT 21 / tab2.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35ad941cb1878fb87082ac21ea8241

query I rowsort
SELECT ALL + 5 * + col2 + - col1 AS col2 FROM tab2 cor0
----
104
173
71

query I rowsort
SELECT - col1 * col0 - 18 * + col1 AS col1 FROM tab1
----
-1274
-546
-820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col2 ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - - 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT - 94 - + col1 FROM tab0
----
-180
-185
-191

query I rowsort
SELECT 0 * - col1 + 40 * + col0 AS col2 FROM tab0
----
1400
3560
960

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1314
SELECT tab0.col1 * 48 DIV tab0.col1 + col2 + 94 AS col0 FROM tab0
----
143
175
224

skipif mysql # not compatible
query I rowsort label-1314
SELECT tab0.col1 * 48 / tab0.col1 + col2 + 94 AS col0 FROM tab0
----
143
175
224

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

query I rowsort
SELECT ALL - - col1 * 94 AS col0 FROM tab0 AS cor0
----
8084
8554
9118

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

query I rowsort
SELECT DISTINCT + 16 + - cor0.col0 FROM tab0, tab1 AS cor0
----
-48
-64
13

query I rowsort
SELECT col1 * - 9 * cor0.col1 AS col0 FROM tab0 cor0
----
-66564
-74529
-84681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 25 col1 FROM tab0 AS cor0
----
2225
600
875

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 40 * 78 col0 FROM tab0 AS cor0
----
3144
3155
3209

query I rowsort
SELECT DISTINCT + + col0 * 37 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT 88 * - 26 + col1 FROM tab2
----
-2229
-2257
-2271

query I rowsort
SELECT ALL + 70 FROM tab1, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL + 81 * + col0 + + col1 * + col1 + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
14401
1745
8031

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

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

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

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

query I rowsort
SELECT 21 + cor0.col2 * + 42 FROM tab2 AS cor0
----
1113
1155
1617

query I rowsort
SELECT ALL 42 AS col0 FROM tab2 cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 11 * + col2 * - ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
1067
31218
82082

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

query I rowsort
SELECT ALL + + 64 AS col2 FROM tab1 AS cor0
----
64
64
64

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

query I rowsort
SELECT - col1 * ( col1 ) - ( col2 + col1 ) * - col2 FROM tab0
----
-3469
-9311
5905

query I rowsort
SELECT ALL ( col1 ) * - col1 + col0 * 61 AS col2 FROM tab2
----
-534
1277
4530

query I rowsort
SELECT DISTINCT + 48 + col2 * - col1 AS col1 FROM tab0
----
-2790
-49
-7414

query I rowsort
SELECT ALL + - col0 * - cor0.col0 + col2 * 53 + + col1 FROM tab0 AS cor0
----
12358
1375
2411

query I rowsort
SELECT ALL 60 * + col1 FROM tab0
----
5160
5460
5820

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

query I rowsort
SELECT DISTINCT + col2 * - col1 + + 37 AS col2 FROM tab2 cor0
----
-1497
-609
-800

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col1 * 83 col2 FROM tab1 AS cor0
----
1159
2161
894

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

query I rowsort
SELECT + cor0.col1 + + col2 * - ( col0 + + col2 ) * 81 FROM tab1 AS cor0
----
-1368563
-249292
-558647

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

query I rowsort
SELECT DISTINCT - - 87 * col1 + 81 FROM tab1 AS cor0
----
1212
2343
951

query I rowsort
SELECT - - col1 * 44 AS col0 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT col2 + col0 * + ( col1 + + 60 ) FROM tab1 AS cor0
----
312
4537
5936

onlyif mysql # use DIV operator for integer division
query I rowsort label-1354
SELECT + cor0.col1 DIV 3 AS col1 FROM tab0 AS cor0
----
28
30
32

skipif mysql # not compatible
query I rowsort label-1354
SELECT + cor0.col1 / 3 AS col1 FROM tab0 AS cor0
----
28
30
32

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

query I rowsort
SELECT ( + col1 ) * cor0.col0 - - 9 FROM tab1 AS cor0
----
1049
649
87

query I rowsort
SELECT ALL col0 * + col1 * col2 + 66 * - col1 FROM tab0 cor0
----
-3007
62436
658112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - 24 col0 FROM tab0 AS cor0
----
-113
-48
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 + col0 * col2 col2 FROM tab1 AS cor0
----
148
3634
7666

onlyif mysql # use DIV operator for integer division
query I rowsort label-1360
SELECT + 89 DIV + col0 + + col0 * col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-22830
-271517
-6715

skipif mysql # not compatible
query I rowsort label-1360
SELECT + 89 / + col0 + + col0 * col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-22830
-271517
-6715

query I rowsort
SELECT ALL col0 * ( col2 * + 24 ) + - col2 * + cor0.col1 FROM tab1 AS cor0
----
183072
2484
86982

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col0 + - col1 - col2 * + col1 * col1 FROM tab1 AS cor0
----
-16157
-36527
-5646

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

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL col0 * + CAST ( col1 * + col1 AS INTEGER ) + - col0 FROM tab1
----
13440
2025
6336

query I rowsort
SELECT DISTINCT col0 * tab2.col0 * col0 + + col2 AS col1 FROM tab2
----
370
474578
493077

onlyif mysql # use DIV operator for integer division
query I rowsort label-1369
SELECT ALL col1 DIV - 26 - + tab1.col1 FROM tab1
----
-10
-13
-27

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL col1 / - 26 - + tab1.col1 FROM tab1
----
-10
-13
-27

query I rowsort
SELECT ALL + col1 + 89 FROM tab0
----
175
180
186

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL + 97 + tab1.col1 AS col1 FROM tab1
----
107
110
123

query I rowsort
SELECT 92 + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
158
256
94

query I rowsort
SELECT DISTINCT + 45 + 87 * - col1 AS col2 FROM tab2 AS cor0
----
-1434
-2652
-5088

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

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

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

query I rowsort
SELECT - 52 + cor0.col0 FROM tab1 AS cor0
----
-49
12
28

query I rowsort
SELECT ALL - 34 * col2 + - col1 FROM tab0 AS cor0
----
-1208
-131
-2879

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT + col2 DIV - col1 + + col2 DIV - col1 FROM tab1 cor0
----
-10
-14
-4

skipif mysql # not compatible
query I rowsort label-1380
SELECT + col2 / - col1 + + col2 / - col1 FROM tab1 cor0
----
-10
-14
-4

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

query I rowsort
SELECT + col2 - 80 AS col2 FROM tab1 AS cor0
----
-23
-26
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-1384
SELECT + col0 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1384
SELECT + col0 + col0 / col0 AS col1 FROM tab1 AS cor0
----
4
65
81

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

query I rowsort
SELECT - col2 - 54 AS col2 FROM tab0 AS cor0
----
-136
-55
-87

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

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

query I rowsort
SELECT DISTINCT - - col2 + col2 * + 25 AS col2 FROM tab1 AS cor0
----
1404
1482
2496

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL + col1 / col0 + col1 col1 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT 94 + - col2 AS col2 FROM tab0 AS cor0
----
12
61
93

query I rowsort
SELECT - 98 * 70 + col0 FROM tab0
----
-6771
-6825
-6836

query I rowsort
SELECT ALL 67 * col0 FROM tab1 AS cor0
----
201
4288
5360

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1396
SELECT + 70 * cor0.col2 DIV 39 AS col0 FROM tab0 AS cor0
----
1
147
59

skipif mysql # not compatible
query I rowsort label-1396
SELECT + 70 * cor0.col2 / 39 AS col0 FROM tab0 AS cor0
----
1
147
59

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

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

query I rowsort
SELECT 31 AS col2 FROM tab1 AS cor0
----
31
31
31

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

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL + 28 / - col1 FROM tab2
----
-1
0
0

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

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

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

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

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

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

query I rowsort
SELECT col2 + 6 * tab2.col0 AS col0 FROM tab2
----
494
512
69

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

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

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

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

query I rowsort
SELECT - 97 * - 12 FROM tab2
----
1164
1164
1164

query I rowsort
SELECT DISTINCT - 10 + col2 AS col0 FROM tab0 AS cor0
----
-9
23
72

query I rowsort
SELECT ALL - - col0 * + 29 AS col2 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT ALL + + 87 FROM tab0 cor0
----
87
87
87

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

query I rowsort
SELECT 31 - - col1 FROM tab1
----
41
44
57

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

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

skipif mysql # not compatible
query I rowsort label-1418
SELECT + col1 * - col2 + + col2 * + CAST ( + ( col0 ) AS INTEGER ) AS col1 FROM tab0
----
-164
-2046
-62

query I rowsort
SELECT ALL 7 + - 93 FROM tab0, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 1ef7453f3d4bc7d93f06fc98b5d59841

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

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

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT - CAST ( + 2 AS INTEGER ) + + cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
-2

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1424
SELECT + col2 + col2 * - CAST( 60 AS SIGNED ) + - col2 AS col2 FROM tab2
----
-1560
-1620
-2280

skipif mysql # not compatible
query I rowsort label-1424
SELECT + col2 + col2 * - CAST ( 60 AS INTEGER ) + - col2 AS col2 FROM tab2
----
-1560
-1620
-2280

query I rowsort
SELECT - 27 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-107
-30
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT DISTINCT + 41 DIV - col0 + 31 AS col0 FROM tab1
----
18
31

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT + 41 / - col0 + 31 AS col0 FROM tab1
----
18
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT 73 DIV tab1.col0 AS col0 FROM tab1
----
0
1
24

skipif mysql # not compatible
query I rowsort label-1427
SELECT 73 / tab1.col0 AS col0 FROM tab1
----
0
1
24

query I rowsort
SELECT + + col1 * 78 FROM tab1 AS cor0
----
1014
2028
780

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

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

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

query I rowsort
SELECT ALL + col1 * 10 + 68 FROM tab0
----
1038
928
978

query I rowsort
SELECT col1 * 4 AS col0 FROM tab0 AS cor0
----
344
364
388

onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT + col1 * col2 + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-1433
SELECT + col1 * col2 + col2 / col1 AS col0 FROM tab2 AS cor0
----
1534
648
837

query I rowsort
SELECT DISTINCT + col2 * - ( 63 ) FROM tab2 AS cor0
----
-1638
-1701
-2394

query I rowsort
SELECT - col1 * 56 + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
-1978
-5335
2366

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

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

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

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

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

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

query I rowsort
SELECT ALL tab1.col1 * + col1 * 65 AS col2 FROM tab1
----
10985
43940
6500

onlyif mysql # use DIV operator for integer division
query I rowsort label-1442
SELECT + col2 * - 95 + col2 DIV - col0 FROM tab0
----
-3136
-7790
-95

skipif mysql # not compatible
query I rowsort label-1442
SELECT + col2 * - 95 + col2 / - col0 FROM tab0
----
-3136
-7790
-95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1443
SELECT col2 + - CAST ( NULL AS INTEGER ) / - 80 + + tab1.col0 col1 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT + - col0 + col0 * 5 AS col2 FROM tab0 AS cor0
----
140
356
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 27 * col2 col1 FROM tab2 AS cor0
----
1009
643
698

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

query I rowsort
SELECT DISTINCT - 71 FROM tab1, tab1 AS cor0
----
-71

query I rowsort
SELECT DISTINCT - col1 * - 18 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT ALL - - col0 + + 43 AS col2 FROM tab2 AS cor0
----
121
122
50

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

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

query I rowsort
SELECT DISTINCT + + 34 * + col0 FROM tab1 AS cor0
----
102
2176
2720

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

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

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

query I rowsort
SELECT - + col0 * - 94 AS col1 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT DISTINCT col1 * 98 AS col2 FROM tab1 AS cor0
----
1274
2548
980

query I rowsort
SELECT + 46 * + col0 + + cor0.col0 + - cor0.col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
-20835
-22270
-36218

query I rowsort
SELECT ALL + col1 * 12 * + col2 AS col1 FROM tab0 AS cor0
----
1164
34056
89544

query I rowsort
SELECT ALL + - 7 + - col2 AS col0 FROM tab2 AS cor0
----
-33
-34
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * 49 + + cor0.col2 col0 FROM tab0 AS cor0
----
1226
1258
1307

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

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

query I rowsort
SELECT col2 + ( 5 ) * + col2 AS col2 FROM tab1
----
324
342
576

query I rowsort
SELECT DISTINCT + tab1.col2 + col1 + - 74 FROM tab1
----
-7
35
6

query I rowsort
SELECT ALL col2 * col1 + 15 * + col1 + - col2 * col0 AS col1 FROM tab0
----
1517
1529
3336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * col0 col0 FROM tab1 AS cor0
----
1280
1600
60

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col1 + + 90 AS col0 FROM tab0
----
176
181
187

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

query I rowsort
SELECT - col2 + col0 * col2 * col1 FROM tab0 AS cor0
----
3394
664036
68079

onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT ALL 50 DIV cor0.col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL 50 / cor0.col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * + col2 * + cor0.col2 + + col1 FROM tab2 AS cor0
----
17635
19714
54889

query I rowsort
SELECT + 36 * + col1 AS col2 FROM tab2 AS cor0
----
1116
2124
612

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

query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 * - 34 AS col2 FROM tab1 AS cor0
----
-1302
1472
1606

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

query I rowsort
SELECT + 54 * - col0 - - col0 FROM tab1
----
-159
-3392
-4240

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

query I rowsort
SELECT DISTINCT ( + col2 ) + 17 * + col2 AS col2 FROM tab1 AS cor0
----
1026
1728
972

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + col1 col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - + col1 * col1 * - 9 + 47 - col0 FROM tab1 AS cor0
----
1488
6128
883

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

query I rowsort
SELECT DISTINCT 75 * 58 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
4350

onlyif mysql # use DIV operator for integer division
query I rowsort label-1487
SELECT DISTINCT + - col2 DIV + ( 11 ) + col0 FROM tab2 AS cor0
----
5
76

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT + - col2 / + ( 11 ) + col0 FROM tab2 AS cor0
----
5
76

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

query I rowsort
SELECT - col1 - + 32 FROM tab2 AS cor0
----
-49
-63
-91

query I rowsort
SELECT + - 97 * - col1 FROM tab2 AS cor0
----
1649
3007
5723

query I rowsort
SELECT DISTINCT 79 * + col1 AS col1 FROM tab0
----
6794
7189
7663

query I rowsort
SELECT + cor0.col1 * cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ae5946db6904798b8afac35f5777bb79

query I rowsort
SELECT + col0 + 25 * ( col2 ) FROM tab1 AS cor0
----
1353
1489
2480

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

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL - 47 / + tab0.col0 FROM tab0
----
-1
-1
0

query I rowsort
SELECT - - 69 + col1 * col2 AS col1 FROM tab0 cor0
----
166
2907
7531

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

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT - + cor0.col0 / 20 AS col1 FROM tab2 AS cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + - col2 col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL 35 + col2 FROM tab2 AS cor0
----
61
62
73

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

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

query I rowsort
SELECT + tab1.col0 + + 38 FROM tab1
----
102
118
41

query I rowsort
SELECT DISTINCT - col2 + + col0 * 4 FROM tab1
----
-42
199
224

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1507
SELECT 89 + col1 DIV tab0.col1 AS col1 FROM tab0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-1507
SELECT 89 + col1 / tab0.col1 AS col1 FROM tab0
----
90
90
90

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

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

query I rowsort
SELECT 91 + col1 AS col0 FROM tab2 AS cor0
----
108
122
150

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

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

query I rowsort
SELECT ALL - 10 * col0 + + 39 AS col2 FROM tab2 AS cor0
----
-31
-741
-751

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

skipif mysql # not compatible
query I rowsort label-1512
SELECT + col1 / col0 + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT + + 87 * - col1 FROM tab1 AS cor0
----
-1131
-2262
-870

query I rowsort
SELECT DISTINCT + + 40 * col1 * + 7 + col1 FROM tab0 AS cor0
----
24166
25571
27257

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

query I rowsort
SELECT ALL cor0.col2 - - col1 * 91 * col0 AS col1 FROM tab1 AS cor0
----
58297
7152
94736

onlyif mysql # use DIV operator for integer division
query I rowsort label-1517
SELECT DISTINCT - col0 + - cor0.col2 DIV + ( + col0 + + col2 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT - col0 + - cor0.col2 / + ( + col0 + + col2 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

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

query I rowsort
SELECT 29 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

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

query I rowsort
SELECT ALL + - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + 92 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT + - 8 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT - col0 + + col2 * cor0.col0 * - col0 FROM tab0 cor0
----
-1260
-19032
-649611

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

skipif mysql # not compatible
query I rowsort label-1525
SELECT + cor0.col1 * + CAST ( + 22 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
1806
1911
2037

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

query I rowsort
SELECT + tab0.col2 * + 43 + + col1 AS col0 FROM tab0
----
140
1505
3617

query I rowsort
SELECT - col2 + - tab0.col2 - col2 FROM tab0
----
-246
-3
-99

query I rowsort
SELECT DISTINCT - tab1.col1 + - col2 * tab1.col2 AS col0 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT - col2 * col0 + col2 * col2 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT ALL 19 + col2 AS col0 FROM tab1 cor0
----
115
73
76

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

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

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

query I rowsort
SELECT ( + 34 ) * + col2 FROM tab2 AS cor0
----
1292
884
918

query I rowsort
SELECT cor0.col2 + - cor0.col1 FROM tab0 cor0
----
-53
-9
-96

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * - col0 + col0 col0 FROM tab2 AS cor0
----
-155
-1924
-2885

query I rowsort
SELECT ALL - col2 * cor0.col2 * + col0 + + col1 AS col1 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT + col0 * 30 + + 18 FROM tab2 AS cor0
----
228
2358
2388

query I rowsort
SELECT DISTINCT + + col2 + - 44 FROM tab2 AS cor0
----
-17
-18
-6

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

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

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

query I rowsort
SELECT DISTINCT + col1 + 76 AS col0 FROM tab2 AS cor0
----
107
135
93

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

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

query I rowsort
SELECT col0 * ( + col0 ) + - col0 FROM tab2 AS cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 90 col1 FROM tab2 AS cor0
----
168
169
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT ALL col0 * + col2 + col1 DIV col2 AS col2 FROM tab0 cor0
----
132
7299
794

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL col0 * + col2 + col1 / col2 AS col2 FROM tab0 cor0
----
132
7299
794

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

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

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT col2 / col0 + - 86 AS col2 FROM tab2 AS cor0
----
-83
-86

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

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

query I rowsort
SELECT ALL + 89 + + col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
124
7387
881

query I rowsort
SELECT ALL - 82 + + 64 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + 82 + col1 AS col1 FROM tab0 AS cor0
----
168
173
179

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

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

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

query I rowsort
SELECT col0 + - col2 * col0 + - col2 AS col2 FROM tab0 cor0
----
-1
-7291
-801

query I rowsort
SELECT - + 53 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

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

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

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

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

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

query I rowsort
SELECT 76 + - col0 AS col2 FROM tab1 AS cor0
----
-4
12
73

query I rowsort
SELECT 92 * col2 + 48 * - col2 FROM tab2 cor0
----
1144
1188
1672

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

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

query I rowsort
SELECT ALL col2 * col0 * - col1 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + tab1.col1 * ( col0 ) - 15 * - col2 AS col0 FROM tab1
----
1495
2480
888

query I rowsort
SELECT ALL - 64 + tab2.col0 FROM tab2
----
-57
14
15

query I rowsort
SELECT ALL - ( - col1 ) + + 61 - tab0.col2 AS col1 FROM tab0
----
114
157
70

query I rowsort
SELECT ALL ( + col2 ) + col0 - - col0 FROM tab2
----
182
196
41

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

query I rowsort
SELECT + 59 * - col0 + - 70 AS col2 FROM tab0 AS cor0
----
-1486
-2135
-5321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * + col0 * col1 col1 FROM tab2
----
111469
18011
381966

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

query I rowsort
SELECT + col1 - 45 * + col1 AS col2 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT - - col2 + + col0 + cor0.col0 FROM tab2 AS cor0
----
182
196
41

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

query I rowsort
SELECT 51 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-1580
SELECT - tab0.col2 DIV tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1580
SELECT - tab0.col2 / tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 91 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 + cor0.col0 col1 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT DISTINCT + col0 + ( 22 * + col0 ) FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT DISTINCT col1 + col1 + col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT ALL + - col1 + 6 FROM tab1 cor0
----
-20
-4
-7

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

query I rowsort
SELECT 81 + tab0.col2 * col1 FROM tab0
----
178
2919
7543

query I rowsort
SELECT col0 + + 78 * - cor0.col0 FROM tab0 AS cor0
----
-1848
-2695
-6853

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

query I rowsort
SELECT 19 + + col0 FROM tab2 AS cor0
----
26
97
98

query I rowsort
SELECT ALL + ( col2 ) + col0 * - col2 + - cor0.col1 * cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
-21104
-2136
-9991

query I rowsort
SELECT ALL ( + col2 ) * - col2 * 96 FROM tab0 AS cor0
----
-104544
-645504
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1595
SELECT - - CAST( NULL AS SIGNED ) / + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT - - CAST ( NULL AS INTEGER ) / + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1597
SELECT ALL + col0 * col1 * - CAST( 92 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-189888
-312340
-745108

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL + col0 * col1 * - CAST ( 92 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-189888
-312340
-745108

onlyif mysql # use DIV operator for integer division
query I rowsort label-1598
SELECT DISTINCT - - col0 DIV - col1 AS col0 FROM tab1 cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT - - col0 / - col1 AS col0 FROM tab1 cor0
----
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1599
SELECT DISTINCT + col2 - - col1 DIV 96 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT + col2 - - col1 / 96 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT - 95 + + cor0.col1 FROM tab1, tab1 AS cor0
----
-69
-82
-85

query I rowsort
SELECT DISTINCT 56 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 88 col0 FROM tab1 AS cor0
----
-8
31
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT ALL + col2 DIV - ( + 23 ) AS col0 FROM tab1
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL + col2 / - ( + 23 ) AS col0 FROM tab1
----
-2
-2
-4

query I rowsort
SELECT ALL + 86 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

query I rowsort
SELECT + 98 + - 67 * col1 * - col0 FROM tab0 cor0
----
138386
227563
542731

query I rowsort
SELECT ( - ( + col0 ) ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 91 * col0 * col0 AS col2 FROM tab1
----
372736
582400
819

onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT + col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1610
SELECT + col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1611
SELECT + 83 DIV - col0 AS col1 FROM tab0 cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT + 83 / - col0 AS col1 FROM tab0 cor0
----
-2
-3
0

query I rowsort
SELECT + ( - 34 ) * + col2 AS col1 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT 74 FROM tab2, tab2 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ( + 81 ) + col0 FROM tab0 cor0
----
105
116
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 + + cor0.col1 * + ( + 5 * col0 ) + + ( + col2 ) col2 FROM tab0 AS cor0
----
10298
16921
40522

query I rowsort
SELECT - - col1 * col0 * col0 + - 56 FROM tab2 AS cor0
----
106041
1463
358900

query I rowsort
SELECT ALL + 43 + - col2 AS col0 FROM tab2 cor0
----
16
17
5

query I rowsort
SELECT ALL + col0 + + cor0.col1 * + 9 * + 83 FROM tab0 AS cor0
----
64266
68066
72494

query I rowsort
SELECT DISTINCT + - col1 * col0 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col2 + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col1 col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col0 * - col2 * - 32 + - col0 FROM tab1 AS cor0
----
-116800
-245840
-5187

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1624
SELECT - col1 - - col1 * + CAST( col1 + + col1 * - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-236758
-670852
-97

skipif mysql # not compatible
query I rowsort label-1624
SELECT - col1 - - col1 * + CAST ( col1 + + col1 * - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-236758
-670852
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1625
SELECT + col2 * - col0 + CAST( - 71 AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
-686
-7566
-8611

skipif mysql # not compatible
query I rowsort label-1625
SELECT + col2 * - col0 + CAST ( - 71 AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
-686
-7566
-8611

query I rowsort
SELECT - col1 * cor0.col1 + - ( + col1 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1922
-578
-6962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1627
SELECT - + col2 * ( col2 ) * col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT - + col2 * ( col2 ) * col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * ( col1 ) + - col1 + col0 FROM tab0 AS cor0
----
-2126
-3457
-8101

query I rowsort
SELECT ALL 44 + - col1 AS col0 FROM tab0
----
-42
-47
-53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1630
SELECT + col2 * CAST( NULL AS DECIMAL ) + col2 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT + col2 * CAST ( NULL AS REAL ) + col2 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + + col0 col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-1632
SELECT - col2 * col0 + 0 DIV col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-1632
SELECT - col2 * col0 + 0 / col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + col0 + - 10 AS col1 FROM tab1 cor0
----
-7
54
70

query I rowsort
SELECT col2 - + ( col1 ) AS col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col1 FROM tab1
----
-91

query I rowsort
SELECT ALL col0 * + 31 + col1 AS col1 FROM tab0 cor0
----
1182
2850
830

query I rowsort
SELECT ALL col0 * 82 AS col2 FROM tab2 AS cor0
----
574
6396
6478

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1638
SELECT ALL col2 / + CAST( NULL AS SIGNED ) + col1 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL col2 / + CAST ( NULL AS INTEGER ) + col1 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 46 - cor0.col0 * col2 * - cor0.col1 col1 FROM tab1 AS cor0
----
3016
36020
99242

query I rowsort
SELECT DISTINCT - col2 - col0 * - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT col1 + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT + 43 * col0 AS col0 FROM tab1 AS cor0
----
129
2752
3440

query I rowsort
SELECT ALL 53 * + tab0.col1 AS col1 FROM tab0
----
4558
4823
5141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1645
SELECT ALL + col1 * col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + col1 * col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1646
SELECT - ( col0 ) * CAST( - col2 AS SIGNED ) FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1646
SELECT - ( col0 ) * CAST ( - col2 AS INTEGER ) FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * - col2 - 63 col1 FROM tab1
----
-225
-3711
-7743

query I rowsort
SELECT DISTINCT - ( + col0 * 48 ) AS col1 FROM tab0
----
-1152
-1680
-4272

query I rowsort
SELECT 84 * + col2 FROM tab0 AS cor0
----
2772
6888
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 + + 13 col2 FROM tab1, tab2 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + ( - col0 * + col0 ) FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL 61 + + col1 AS col0 FROM tab0
----
147
152
158

query I rowsort
SELECT ALL + ( col0 ) + col0 * - 24 AS col0 FROM tab2 cor0
----
-161
-1794
-1817

query I rowsort
SELECT + + col1 + col2 * col1 * + col1 AS col0 FROM tab1 AS cor0
----
16237
36530
5710

onlyif mysql # use DIV operator for integer division
query I rowsort label-1655
SELECT ALL - - col0 DIV 55 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL - - col0 / 55 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + + col0 * col2 - col0 * 77 * col2 AS col2 FROM tab0 cor0
----
-2660
-554648
-60192

query I rowsort
SELECT DISTINCT 46 * - col0 * col1 FROM tab2 AS cor0
----
-211692
-61778
-9982

query I rowsort
SELECT + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + - 96 AS col1 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT ALL + + 71 * - col0 + + col1 * 70 AS col2 FROM tab1 cor0
----
-3844
-4770
1607

query I rowsort
SELECT ALL col2 + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-1662
SELECT + col1 + + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-1662
SELECT + col1 + + col2 / col0 AS col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT + col0 + 37 * - cor0.col2 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1230
-3
-3027

query I rowsort
SELECT - ( col1 ) + + col2 * ( col0 * col1 + + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
1270
33221
90611

query I rowsort
SELECT DISTINCT + 43 * - col2 + col0 FROM tab0 AS cor0
----
-1395
-3437
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1666
SELECT ALL 26 DIV - 56 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL 26 / - 56 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + col1 col0 FROM tab0 AS cor0
----
119
124
130

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1668
SELECT + col0 / col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT + col0 / col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1669
SELECT DISTINCT col2 DIV col0 + tab2.col2 - - 11 AS col1 FROM tab2
----
37
41
49

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT col2 / col0 + tab2.col2 - - 11 AS col1 FROM tab2
----
37
41
49

query I rowsort
SELECT DISTINCT + tab1.col1 * 90 * col2 - - col1 AS col0 FROM tab1
----
112333
126386
51310

query I rowsort
SELECT - cor1.col0 * + 85 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e55b301692e389b86171aa9f77d765af

query I rowsort
SELECT DISTINCT - - cor0.col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 27 * col1 + col2 FROM tab1 AS cor0
----
327
447
756

query I rowsort
SELECT DISTINCT + col2 * + col2 * col2 AS col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT + + 85 + col0 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - col0 * + col0 * col2 FROM tab1
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 93 col2 FROM tab2 cor0
----
100
171
172

query I rowsort
SELECT DISTINCT - - cor0.col2 + 54 FROM tab1 AS cor0
----
108
111
150

query I rowsort
SELECT + 38 * + 30 AS col1 FROM tab2 AS cor0
----
1140
1140
1140

query I rowsort
SELECT DISTINCT col1 * 0 AS col2 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1682
SELECT + + CAST( - col2 AS SIGNED ) * + col0 + ( col0 + - col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-1682
SELECT + + CAST ( - col2 AS INTEGER ) * + col0 + ( col0 + - col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col2 * 22 + + col1 * - col2 * col1 - col1 FROM tab1 cor0
----
-14125
-35342
-4456

query I rowsort
SELECT DISTINCT 42 * col2 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT ALL 18 + + ( cor0.col2 ) * - 13 AS col0 FROM tab0 AS cor0
----
-1048
-411
5

query I rowsort
SELECT - + 84 + - col0 FROM tab2 AS cor0
----
-162
-163
-91

query I rowsort
SELECT DISTINCT - ( + 55 ) AS col2 FROM tab2 cor0
----
-55

query I rowsort
SELECT DISTINCT + + col1 + - 16 FROM tab2 cor0
----
1
15
43

query I rowsort
SELECT - col1 * col1 - col2 * col0 AS col1 FROM tab2
----
-1150
-3291
-5509

query I rowsort
SELECT + + ( - 51 ) * col1 + - col2 FROM tab0 cor0
----
-4419
-4723
-4948

query I rowsort
SELECT DISTINCT - 2 + + col2 * col2 * col0 FROM tab1 AS cor0
----
207934
737278
8746

query I rowsort
SELECT ALL + ( 22 ) FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - 12 FROM tab2, tab1 cor0
----
-12

query I rowsort
SELECT ALL + col1 + - 91 AS col2 FROM tab1
----
-65
-78
-81

query I rowsort
SELECT ALL + tab0.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - ( - tab1.col1 ) * - col0 - 8 * ( col1 ) * + tab1.col2 AS col1 FROM tab1
----
-11024
-11310
-5200

query I rowsort
SELECT ALL ( col1 ) * - col2 + + col2 + col2 * col0 FROM tab2
----
-621
2394
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 71 col1 FROM tab0
----
157
162
168

query I rowsort
SELECT - cor0.col1 * + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 38f503ad6f93db2d1a70a8c95bb8c2c2

query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab2
----
-90

query I rowsort
SELECT - 46 FROM tab1, tab0 cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL - 46 - col1 AS col0 FROM tab2 AS cor0
----
-105
-63
-77

query I rowsort
SELECT ALL 91 + ( - col0 ) * + col1 FROM tab1 cor0
----
-549
-949
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1704
SELECT ALL CAST( tab2.col2 AS SIGNED ) AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL CAST ( tab2.col2 AS INTEGER ) AS col2 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col0 FROM tab2
----
52
52
52

query I rowsort
SELECT DISTINCT + 86 + - col0 FROM tab2
----
7
79
8

query I rowsort
SELECT DISTINCT col2 * - col1 + - col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT + 86 * col2 AS col0 FROM tab2
----
2236
2322
3268

query I rowsort
SELECT ALL + 7 + col1 AS col0 FROM tab0 AS cor0
----
104
93
98

query I rowsort
SELECT + ( - col2 ) * - ( - 6 ) + + col2 AS col2 FROM tab0
----
-165
-410
-5

query I rowsort
SELECT ALL col1 + col2 + - col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1712
SELECT ALL col1 + ( + cor0.col1 ) * col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL col1 + ( + cor0.col1 ) * col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - - 51 AS col1 FROM tab2 cor0
----
129
130
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1714
SELECT DISTINCT + col0 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT + col0 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 * 88 * col0 + col0 * ( col2 ) AS col0 FROM tab0
----
3115
649522
70488

query I rowsort
SELECT DISTINCT - 33 FROM tab2, tab0 AS cor0
----
-33

query I rowsort
SELECT ALL - col0 + + 77 FROM tab2 AS cor0
----
-1
-2
70

query I rowsort
SELECT + - col2 * 88 AS col2 FROM tab1 AS cor0
----
-4752
-5016
-8448

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1719
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT cor0.col1 * ( 17 ) + + col0 * 40 AS col0 FROM tab1 AS cor0
----
2730
3421
562

query I rowsort
SELECT + cor0.col0 + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort
SELECT + col2 * + CAST ( - 71 + col0 * col1 AS REAL ) FROM tab0 cor0
----
3324
65769
658296

query I rowsort
SELECT - col2 * col2 + 97 AS col1 FROM tab2 AS cor0
----
-1347
-579
-632

query I rowsort
SELECT DISTINCT + + 66 + - col1 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2818
66
7437

query I rowsort
SELECT + + 5 * col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - 64 * - tab1.col1 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1abf44d879b2498907c60cd9ced45806

query I rowsort
SELECT - 59 + + col0 * - 90 AS col1 FROM tab1 AS cor0
----
-329
-5819
-7259

onlyif mysql # use DIV operator for integer division
query I rowsort label-1729
SELECT col2 + + 79 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
102
57
64

skipif mysql # not compatible
query I rowsort label-1729
SELECT col2 + + 79 / cor0.col1 AS col1 FROM tab1 AS cor0
----
102
57
64

query I rowsort
SELECT col2 + + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-1731
SELECT DISTINCT + tab0.col2 DIV col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT + tab0.col2 / col0 FROM tab0
----
0
1

query I rowsort
SELECT ALL - col1 * - 29 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT DISTINCT + tab2.col1 * 18 FROM tab2
----
1062
306
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col2 FROM tab1, tab1 cor0
----
-39

query I rowsort
SELECT + col0 * - col1 - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - ( + cor0.col0 ) + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 53 FROM tab2, tab0 cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT + 12 * - col2 - - col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-312
-320
-456

skipif mysql # not compatible
query I rowsort label-1738
SELECT + 12 * - col2 - - col1 / col0 AS col1 FROM tab2 AS cor0
----
-312
-320
-456

query I rowsort
SELECT + - 44 - - col1 FROM tab1 AS cor0
----
-18
-31
-34

query I rowsort
SELECT - col0 * 90 + - col2 AS col2 FROM tab0 AS cor0
----
-2193
-3151
-8092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 * + 26 col1 FROM tab2
----
1950

query I rowsort
SELECT DISTINCT - col2 * 91 FROM tab2
----
-2366
-2457
-3458

query I rowsort
SELECT - ( - col2 ) * - col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + 8 + col0 * col2 AS col1 FROM tab1
----
170
3656
7688

query I rowsort
SELECT DISTINCT - col1 * tab0.col0 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( 12 ) * col1 FROM tab0 AS cor0
----
-1032
-1092
-1164

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT 43 * - 88 FROM tab1 AS cor0
----
-3784
-3784
-3784

query I rowsort
SELECT - 72 * cor0.col0 FROM tab0 AS cor0
----
-1728
-2520
-6408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - col0 col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT ALL cor0.col1 DIV - col1 + + cor0.col0 * col2 FROM tab2 AS cor0
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL cor0.col1 / - col1 + + cor0.col0 * col2 FROM tab2 AS cor0
----
188
2027
3001

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 * + col0 - cor0.col2 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT + col1 DIV col2 + col0 + - col0 * + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-233408
-483
-614320

skipif mysql # not compatible
query I rowsort label-1754
SELECT + col1 / col2 + col0 + - col0 * + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT - - 28 * col0 + col1 AS col0 FROM tab2 cor0
----
2229
2243
227

query I rowsort
SELECT DISTINCT - col0 * 4 FROM tab0
----
-140
-356
-96

query I rowsort
SELECT DISTINCT - + 77 + + col1 FROM tab1 AS cor0
----
-51
-64
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT - ( col2 ) DIV + col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1758
SELECT - ( col2 ) / + col2 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT tab2.col2 * - col1 * col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT col1 + col2 + + col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL 33 + col2 * col2 FROM tab0 AS cor0
----
1122
34
6757

query I rowsort
SELECT - + cor0.col1 * 51 AS col0 FROM tab0 AS cor0
----
-4386
-4641
-4947

query I rowsort
SELECT - cor0.col2 + + ( - col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + + col1 + + 50 FROM tab2 AS cor0
----
109
67
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1766
SELECT DISTINCT - - col1 DIV 76 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT - - col1 / 76 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + ( - col0 + + col0 ) * cor0.col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT + col0 * + ( 77 ) + - cor0.col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
230
4927
6159

skipif mysql # not compatible
query I rowsort label-1768
SELECT + col0 * + ( 77 ) + - cor0.col2 / + col2 AS col1 FROM tab1 AS cor0
----
230
4927
6159

query I rowsort
SELECT - col0 * ( + 23 ) AS col1 FROM tab2 cor0
----
-161
-1794
-1817

query I rowsort
SELECT DISTINCT col1 + + 67 FROM tab0 AS cor0
----
153
158
164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1771
SELECT DISTINCT - + col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT - + col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL 84 * col2 FROM tab1 AS cor0
----
4536
4788
8064

query I rowsort
SELECT ALL - 0 * cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - col0 * - ( + col0 ) FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + 99 * - 78 FROM tab1 AS cor0
----
-7722
-7722
-7722

query I rowsort
SELECT - ( + col0 ) + - col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT col0 - col1 * 88 AS col2 FROM tab2
----
-1417
-2721
-5114

query I rowsort
SELECT ALL col0 * + ( col1 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + - col2 * cor0.col1 * + col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL ( 0 ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT 11 * col0 * - tab2.col0 - - col0 FROM tab2
----
-532
-66846
-68572

query I rowsort
SELECT ALL col0 * col0 + - ( col0 ) FROM tab0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col0 FROM tab1, tab2 AS cor0
----
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT col1 DIV col1 + - col2 * col1 + tab0.col0 * col2 FROM tab0
----
-163
-2045
-61

skipif mysql # not compatible
query I rowsort label-1785
SELECT col1 / col1 + - col2 * col1 + tab0.col0 * col2 FROM tab0
----
-163
-2045
-61

query I rowsort
SELECT DISTINCT col0 + - ( ( - cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1787
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * col2 - - col2 * col0 * 61 FROM tab2 AS cor0
----
12366
125242
183768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + 66 * + 82 col0 FROM tab0 AS cor0
----
5323
5377
5388

query I rowsort
SELECT ALL - col0 * + 37 AS col0 FROM tab0 AS cor0
----
-1295
-3293
-888

query I rowsort
SELECT ALL col2 + col2 * col1 * - col2 AS col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

onlyif mysql # use DIV operator for integer division
query I rowsort label-1792
SELECT DISTINCT - col0 * col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - col0 * col1 / - col1 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 - + 78 AS col2 FROM tab0 AS cor0
----
-45
-77
4

query I rowsort
SELECT + cor0.col0 * ( + col2 ) * col1 - - 79 AS col0 FROM tab1 AS cor0
----
36559
4291
99919

onlyif mysql # use DIV operator for integer division
query I rowsort label-1795
SELECT ALL - + cor0.col1 + + CAST( 85 AS SIGNED ) DIV + col2 AS col2 FROM tab0 cor0
----
-12
-84
-90

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL - + cor0.col1 + + CAST ( 85 AS INTEGER ) / + col2 AS col2 FROM tab0 cor0
----
-12
-84
-90

query I rowsort
SELECT - col2 * 51 - col2 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT ALL 88 * col0 * + col1 FROM tab1
----
56320
6864
91520

query I rowsort
SELECT + tab2.col2 + - ( + col1 ) AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ( + col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 + col1 col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) AS col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT - col2 DIV 72 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT - col2 / 72 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 69 * - col0 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT + 54 * 84 FROM tab1 cor0
----
4536
4536
4536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + + col1 col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL 50 * - col2 FROM tab1
----
-2700
-2850
-4800

query I rowsort
SELECT + col1 * 37 * cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
23981
30976
56836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1808
SELECT ALL + col2 + + col0 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + col2 + + col0 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * 67 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 02de1a2a941f433a47ca39202cef916f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1810
SELECT ALL 89 * col0 - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
596
6916
6993

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL 89 * col0 - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
596
6916
6993

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1811
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL + col1 * + col0 - + col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT 36 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - col0 + + col0 * - col1 + - 78 * + col1 FROM tab1 cor0
----
-1484
-2109
-2134

query I rowsort
SELECT - - 0 + + col2 * 83 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT - - ( col0 ) + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - + 7 + + col2 AS col0 FROM tab2 AS cor0
----
19
20
31

query I rowsort
SELECT DISTINCT cor0.col2 + + ( + ( - col1 ) ) FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 36 col0 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT + col2 + - 40 + col0 AS col1 FROM tab0 AS cor0
----
-4
131
17

query I rowsort
SELECT + 87 + col2 * col2 * ( col2 ) FROM tab2 AS cor0
----
17663
19770
54959

query I rowsort
SELECT DISTINCT - 3 * + cor0.col1 FROM tab0 AS cor0
----
-258
-273
-291

query I rowsort
SELECT - col2 + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT 96 + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
145
6180
6337

query I rowsort
SELECT DISTINCT + - 93 + ( + col2 ) FROM tab0 AS cor0
----
-11
-60
-92

query I rowsort
SELECT ALL - tab1.col1 + col1 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - col1 + + 78 * + tab2.col2 AS col2 FROM tab2
----
1969
2075
2947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1830
SELECT + CAST( NULL AS DECIMAL ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT + CAST ( NULL AS REAL ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 27 * - 57 * - col0 AS col0 FROM tab1 AS cor0
----
123120
4617
98496

onlyif mysql # use DIV operator for integer division
query I rowsort label-1832
SELECT + tab1.col0 DIV + ( col1 ) + col2 AS col2 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-1832
SELECT + tab1.col0 / + ( col1 ) + col2 AS col2 FROM tab1
----
102
54
63

query I rowsort
SELECT - + ( col0 ) + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + + ( col0 ) * col1 + + 20 FROM tab2 AS cor0
----
1363
237
4622

query I rowsort
SELECT 61 + tab2.col0 + tab2.col2 AS col1 FROM tab2
----
165
178
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1836
SELECT CAST( - col1 + + col0 AS SIGNED ) * + 8 AS col2 FROM tab0
----
-16
-496
-496

skipif mysql # not compatible
query I rowsort label-1836
SELECT CAST ( - col1 + + col0 AS INTEGER ) * + 8 AS col2 FROM tab0
----
-16
-496
-496

query I rowsort
SELECT cor1.col1 * 60 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to feecf3a1a326eaf3b4c9526c36d20e8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col1 FROM tab1
----
-57

query I rowsort
SELECT DISTINCT - 24 * - col2 FROM tab2 cor0
----
624
648
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-1840
SELECT - 88 DIV + col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1840
SELECT - 88 / + col1 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT - - cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - ( + ( col2 ) * ( col0 ) ) FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - ( - tab0.col0 * + col1 ) + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col2 * + ( 71 ) AS col2 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT col2 * - 59 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-1562
-2225

query I rowsort
SELECT ALL - 65 AS col2 FROM tab1
----
-65
-65
-65

query I rowsort
SELECT DISTINCT ( + tab0.col1 ) * col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL 48 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 cor0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT 48 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

query I rowsort
SELECT + col1 * cor0.col1 + 87 * + col0 FROM tab0 AS cor0
----
12454
16024
9484

query I rowsort
SELECT DISTINCT + col0 + + 54 - col2 AS col2 FROM tab2 AS cor0
----
106
34
95

query I rowsort
SELECT DISTINCT + - cor0.col2 - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT 63 * 27 * col0 FROM tab1 AS cor0
----
108864
136080
5103

query I rowsort
SELECT ALL cor0.col1 * 21 FROM tab2, tab1 cor0
----
9 values hashing to 9ad9248ca478f9f31c9328b84537d14c

query I rowsort
SELECT + col0 * - tab0.col0 + - ( col0 ) FROM tab0
----
-1260
-600
-8010

query I rowsort
SELECT - col2 - ( - col1 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col2 + + 86 FROM tab0
----
119
168
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1860
SELECT CAST( + 17 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-1860
SELECT CAST ( + 17 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT 30 + - ( col2 ) FROM tab0 AS cor0
----
-3
-52
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1862
SELECT + + CAST( + col2 AS SIGNED ) + cor0.col2 AS col0 FROM tab2 cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-1862
SELECT + + CAST ( + col2 AS INTEGER ) + cor0.col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - ( + 48 ) * col0 FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT ALL - + col2 + - 33 FROM tab1 AS cor0
----
-129
-87
-90

query I rowsort
SELECT DISTINCT - 98 * 8 AS col1 FROM tab1 cor0
----
-784

query I rowsort
SELECT + + cor0.col1 + + col2 * col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT + 96 * 10 * cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 30a476685cb82bc827d4a14a93a7f02f

query I rowsort
SELECT - + 99 + + col2 * - col0 FROM tab2 AS cor0
----
-2127
-288
-3101

query I rowsort
SELECT ALL + - 81 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - + col0 * col2 * - col2 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT + col1 * + col2 * ( col1 + - cor0.col0 * 75 ) FROM tab1 AS cor0
----
-2730300
-279396
-7471776

onlyif mysql # use DIV operator for integer division
query I rowsort label-1872
SELECT + - col1 + - col1 DIV - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-1872
SELECT + - col1 + - col1 / - col1 FROM tab0 AS cor0
----
-85
-90
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT - col0 DIV 13 AS col2 FROM tab0 AS cor0
----
-1
-2
-6

skipif mysql # not compatible
query I rowsort label-1873
SELECT - col0 / 13 AS col2 FROM tab0 AS cor0
----
-1
-2
-6

query I rowsort
SELECT DISTINCT col1 + cor0.col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

skipif mysql # not compatible
query I rowsort
SELECT + + col2 + CAST ( - 94 AS REAL ) FROM tab2 AS cor0
----
-56
-67
-68

query I rowsort
SELECT ALL 55 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT DISTINCT + col2 * + col0 - - col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + col1 - - col0 * col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-1880
SELECT ALL - - col0 + col1 DIV - col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - - col0 + col1 / - col0 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT ALL - col1 * col1 + - tab0.col2 FROM tab0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT DISTINCT col2 + col0 DIV - col1 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT col2 + col0 / - col1 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT col1 * tab2.col0 * col1 - col1 FROM tab2
----
22814
271459
6696

query I rowsort
SELECT + cor0.col1 + col2 * + col1 AS col1 FROM tab2 cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT ALL + col1 DIV col0 - col2 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL + col1 / col0 - col2 FROM tab2 AS cor0
----
-23
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT - tab1.col0 DIV + tab1.col1 - + col2 AS col0 FROM tab1
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-1886
SELECT - tab1.col0 / + tab1.col1 - + col2 AS col0 FROM tab1
----
-102
-54
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT DISTINCT + col2 DIV + col1 AS col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT + col2 / + col1 AS col1 FROM tab1
----
2
5
7

query I rowsort
SELECT + col0 + + tab2.col0 AS col0 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - + col0 * + col2 + - col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-165
-2047
-3064

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL <> + tab2.col1 + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT + col0 DIV col0 + + col1 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1892
SELECT + col0 / col0 + + col1 FROM tab2 cor0
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT + col0 + - col2 DIV + col1 + col2 FROM tab1 cor0
----
116
169
55

skipif mysql # not compatible
query I rowsort label-1893
SELECT + col0 + - col2 / + col1 + col2 FROM tab1 cor0
----
116
169
55

query I rowsort
SELECT DISTINCT + + cor0.col0 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 * col2 + - col2 col1 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT 29 + - tab1.col2 FROM tab1
----
-25
-28
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT col2 - - tab0.col0 DIV col2 AS col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-1897
SELECT col2 - - tab0.col0 / col2 AS col2 FROM tab0
----
33
36
83

query I rowsort
SELECT DISTINCT col2 * + col1 + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT tab2.col2 * tab2.col2 + col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT col0 * + col1 + + col1 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - cor0.col1 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT DISTINCT + + col1 * col2 + col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col1 * - col0 + - col1 - - col2 AS col2 FROM tab0 cor0
----
2011
3299
8090

query I rowsort
SELECT col0 * - col1 + - col1 * - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - tab1.col0 + tab1.col1 * - col0 AS col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT ALL - tab2.col2 + - col2 AS col0 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT ALL - tab2.col0 + tab2.col2 AS col1 FROM tab2
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 + col1 col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT + col0 * tab2.col2 * tab2.col0 AS col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + tab2.col1 * col0 AS col0 FROM tab2
----
1343
217
4602

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + col2 >= col0
----
79
17
38

query I rowsort
SELECT ALL - col2 + col0 * col0 AS col2 FROM tab2 WHERE ( - col1 * col2 ) BETWEEN + col2 * + col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 * cor0.col2 - + ( - col2 ) col1 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT - 53 * col1 FROM tab0 cor0
----
-4558
-4823
-5141

query I rowsort
SELECT ALL - col1 * + col1 * - col1 + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
208860
30752
5202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab1, tab0, tab2 AS cor0
----
53

query I rowsort
SELECT DISTINCT 56 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
56

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL <> ( col1 )
----

query I rowsort
SELECT + col0 * + tab1.col2 + - col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT ALL + col0 * - col1 + + col2 AS col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT + - col1 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT 52 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT + + col0 * col2 + col1 * - col0 * + col0 AS col2 FROM tab2 cor0
----
-103095
-1330
-356928

query I rowsort
SELECT + col1 * col2 - + tab2.col1 * + col1 FROM tab2
----
-124
-1947
357

query I rowsort
SELECT ALL cor0.col1 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 + col1 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * cor0.col2 + col1 + + col1 / - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 >= ( NULL )
----

query I rowsort
SELECT ALL col0 * - col0 + col2 + - col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - col1 * tab0.col1 + col1 FROM tab0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 + tab2.col0 col0 FROM tab2
----
1460
251
4706

onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT DISTINCT col2 DIV + col2 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT col2 / + col2 AS col1 FROM tab1
----
1

query I rowsort
SELECT + col1 * + col0 + tab2.col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT col2 * - col2 - col2 AS col2 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT tab1.col2 * + col1 * col1 FROM tab1
----
16224
36504
5700

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( tab1.col0 * col2 )
----

query I rowsort
SELECT ALL col1 + + col0 + + col0 * col1 FROM tab0
----
2174
3527
8279

query I rowsort
SELECT ALL col0 + col2 - + col2 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT - col2 * tab1.col2 * + col0 AS col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT col1 * col0 * col1 FROM tab0 WHERE NOT col2 + + col0 NOT BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 * - col1 col2 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT - + 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT + 7 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
-4480
-546
-7280

onlyif mysql # use DIV operator for integer division
query I rowsort label-1945
SELECT 35 DIV col0 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1945
SELECT 35 / col0 FROM tab2 AS cor0
----
0
0
5

query I rowsort
SELECT + - 5 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-270
-285
-480

query I rowsort
SELECT + col1 + + col0 * 11 AS col2 FROM tab2 AS cor0
----
108
886
917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col2 + + col2 col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT 44 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT col1 * + 72 * col0 FROM tab2 AS cor0
----
15624
331344
96696

query I rowsort
SELECT + col1 + + ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col2 + + cor0.col0 * + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1953
SELECT + ( 96 ) + - col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT + ( 96 ) + - col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col0 ) * + col2 * - col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT 69 + col1 FROM tab2 AS cor0
----
100
128
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT - 19 * + col2 + + col1 DIV - col1 FROM tab1 AS cor0
----
-1027
-1084
-1825

skipif mysql # not compatible
query I rowsort label-1956
SELECT - 19 * + col2 + + col1 / - col1 FROM tab1 AS cor0
----
-1027
-1084
-1825

query I rowsort
SELECT - - cor0.col1 + 86 * - col0 FROM tab2 AS cor0
----
-571
-6649
-6777

query I rowsort
SELECT + - 87 * + cor0.col1 + col1 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT DISTINCT - col2 * col1 + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT - 91 + cor0.col1 FROM tab1 AS cor0
----
-65
-78
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 + - col1 * col2 col1 FROM tab1 AS cor0
----
-1201
-1357
-523

query I rowsort
SELECT + cor0.col0 * + col1 * + ( + cor0.col2 ) FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT 14 * col2 AS col2 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT + - 14 * + col2 AS col1 FROM tab2 AS cor0
----
-364
-378
-532

query I rowsort
SELECT col0 * tab1.col2 * col2 AS col1 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT + cor0.col0 * col0 + - ( col0 ) * col2 + ( + col2 * - col1 ) FROM tab1 AS cor0
----
-122
-1557
-2528

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + ( col1 ) + + ( + col0 ) + col0 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT DISTINCT + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - cor0.col1 + col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL 48 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT ALL col2 DIV + cor0.col0 + + ( - col2 ) + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-56

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL col2 / + cor0.col0 + + ( - col2 ) + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-56

query I rowsort
SELECT ALL - - cor0.col2 + cor0.col2 + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT col2 * + col2 * - 21 FROM tab0
----
-141204
-21
-22869

query I rowsort
SELECT ALL + 44 + + col0 * - ( 46 + col0 * + col2 ) FROM tab1
----
-236372
-580
-618036

query I rowsort
SELECT DISTINCT + 71 + col1 AS col1 FROM tab0
----
157
162
168

query I rowsort
SELECT DISTINCT + col2 * col2 * - ( + cor0.col0 * + 27 ) + + col0 AS col0 FROM tab0 AS cor0
----
-16157683
-705648
-910

query I rowsort
SELECT ALL - col2 * col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT col0 DIV 60 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1979
SELECT col0 / 60 FROM tab2
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT - + 41 DIV + col0 + + col2 DIV ( + col1 ) + - col0 * + 25 FROM tab2 AS cor0
----
-180
-1950
-1973

skipif mysql # not compatible
query I rowsort label-1980
SELECT - + 41 / + col0 + + col2 / ( + col1 ) + - col0 * + 25 FROM tab2 AS cor0
----
-180
-1950
-1973

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1981
SELECT ALL - + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - - 54 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT cor0.col1 * - 87 * - col0 AS col1 FROM tab0 AS cor0
----
179568
295365
704613

query I rowsort
SELECT ALL tab2.col2 * col2 - col1 * col2 * col2 FROM tab2
----
-21870
-23104
-39208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1985
SELECT - tab0.col0 * - ( 72 ) + col1 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT - tab0.col0 * - ( 72 ) + col1 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 39 + col0 FROM tab2
----
143
156
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * - col2 + + tab0.col1 col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL + + col0 * + col2 + col2 * + col0 + + col2 FROM tab1 AS cor0
----
15456
378
7353

query I rowsort
SELECT DISTINCT - ( - col0 ) - + col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT + 38 * 93 * - col1 + - 81 DIV - col1 col1 FROM tab0 AS cor0
----
-303924
-321594
-342798

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1990
SELECT + 38 * 93 * - col1 + - 81 / - col1 col1 FROM tab0 AS cor0
----
-303924
-321594
-342798

query I rowsort
SELECT - ( - col2 ) * + col2 - col0 * - col1 * - col0 FROM tab0 AS cor0
----
-118824
-48447
-714087

query I rowsort
SELECT ALL - col2 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1993
SELECT DISTINCT CAST( NULL AS SIGNED ) - col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - + 74 AS col1 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT 49 * 22 + col2 FROM tab2 cor0
----
1104
1105
1116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 94 ) * col2 col0 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT 61 * col0 FROM tab1 cor0
----
183
3904
4880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1998
SELECT ALL + col0 DIV - col1 col0 FROM tab1
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + col0 / - col1 col0 FROM tab1
----
-6
-6
0

query I rowsort
SELECT ALL 20 + 65 * + tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a2d0a2566d1ed7408e2bf0cb6f827875

query I rowsort
SELECT + cor0.col0 + 70 AS col1 FROM tab1 cor0
----
134
150
73

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - col1 * - ( + col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL col1 * 46 * col2 AS col1 FROM tab1 AS cor0
----
26220
57408
64584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + cor0.col1 col0 FROM tab1 cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT ALL col2 DIV 49 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL col2 / 49 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2006
SELECT DISTINCT + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2007
SELECT ALL - 89 DIV col2 - - col1 FROM tab1 AS cor0
----
13
25
9

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - 89 / col2 - - col1 FROM tab1 AS cor0
----
13
25
9

query I rowsort
SELECT + - 25 * + 93 FROM tab2 AS cor0
----
-2325
-2325
-2325

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + ( - col1 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col2 * - 40 AS col2 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT + - col2 + 35 FROM tab2 AS cor0
----
-3
8
9

query I rowsort
SELECT ALL - - 27 * + ( + col2 ) FROM tab0 AS cor0
----
2214
27
891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - tab0.col2 * + 88 + - col0 col1 FROM tab0
----
-3115
-642313
-69720

query I rowsort
SELECT - 24 + col2 FROM tab0 AS cor0
----
-23
58
9

query I rowsort
SELECT + + cor0.col0 + 81 FROM tab2 AS cor0
----
159
160
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + col1 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 * - col0 + 11 FROM tab1 AS cor0
----
173
3659
7691

onlyif mysql # use DIV operator for integer division
query I rowsort label-2019
SELECT DISTINCT + + col2 DIV + col0 col1 FROM tab2 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT + + col2 / + col0 col1 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT + cor0.col0 - col1 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 * ( col0 ) FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL - - col0 + - col0 + - 75 * col1 * + cor0.col1 FROM tab0 AS cor0
----
-554700
-621075
-705675

query I rowsort
SELECT - col0 * col0 + - col1 AS col1 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT 10 * col0 + + 75 + - col1 FROM tab1 AS cor0
----
705
79
862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + - ( col2 + col2 ) col2 FROM tab0 AS cor0
----
-37
-7462
-858

query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col1 * col1 FROM tab1 AS cor0
----
1209
740
754

query I rowsort
SELECT + + 57 + col0 FROM tab0 AS cor0
----
146
81
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2028
SELECT - 89 * + col0 DIV col0 AS col1 FROM tab1
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-2028
SELECT - 89 * + col0 / col0 AS col1 FROM tab1
----
-89
-89
-89

query I rowsort
SELECT ALL - col0 + 85 AS col1 FROM tab2 AS cor0
----
6
7
78

query I rowsort
SELECT - + 86 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # use DIV operator for integer division
query I rowsort label-2031
SELECT col2 DIV + col0 + ( + col1 + + col2 ) DIV 49 AS col1 FROM tab1
----
1
19
3

skipif mysql # not compatible
query I rowsort label-2031
SELECT col2 / + col0 + ( + col1 + + col2 ) / 49 AS col1 FROM tab1
----
1
19
3

query I rowsort
SELECT + + col0 + + cor0.col0 * col2 AS col1 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT - - col2 * - col0 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + ( col2 ) col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col0 + ( + col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col0 + + ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - - col0 - col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT + col1 DIV - 17 - cor0.col2 * + col1 FROM tab0 AS cor0
----
-102
-2843
-7467

skipif mysql # not compatible
query I rowsort label-2038
SELECT + col1 / - 17 - cor0.col2 * + col1 FROM tab0 AS cor0
----
-102
-2843
-7467

query I rowsort
SELECT ( col1 + + col1 ) FROM tab1
----
20
26
52

query I rowsort
SELECT ALL + ( col1 ) + col1 * + col0 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - 11 * - cor1.col2 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c9e01563479b1b2bd7a9d016578f1b81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2042
SELECT DISTINCT - col1 * - CAST( + 64 AS SIGNED ) + col0 * - 17 * ( col2 ) AS col1 FROM tab0 cor0
----
-118242
-7960
5613

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - col1 * - CAST ( + 64 AS INTEGER ) + col0 * - 17 * ( col2 ) AS col1 FROM tab0 cor0
----
-118242
-7960
5613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + 36 col1 FROM tab0 AS cor0
----
125
60
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT DISTINCT - col0 + 62 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-58
-76

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - col0 + 62 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-58
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + tab2.col1 * 89 col1 FROM tab2
----
2159
3596
6785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col1 FROM tab0
----
1
33
82

query I rowsort
SELECT - 68 * col1 AS col0 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT ALL - + col2 + 4 AS col0 FROM tab2 AS cor0
----
-22
-23
-34

query I rowsort
SELECT - col2 * + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT ( col2 ) DIV col2 + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2050
SELECT ( col2 ) / col2 + col2 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 * + ( - col1 ) + - col0 * col2 + ( + col0 + 2 ) * - 36 * col1 col0 FROM tab0 cor0
----
-125844
-13176
358704

query I rowsort
SELECT DISTINCT + - col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT - + 61 + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b692b9967591f1f5b25520417ace1567

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + col0 col2 FROM tab2 AS cor0
----
124
125
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col2 FROM tab2
----
97
97
97

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) FROM tab2, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + + ( ( - cor0.col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - tab1.col1 * - tab1.col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + 81 + 33 FROM tab0, tab2 AS cor0
----
9 values hashing to e2d56a39621064cf4b6c94794ecedaba

query I rowsort
SELECT ALL + 9 * tab0.col1 * col1 AS col0 FROM tab0
----
66564
74529
84681

query I rowsort
SELECT ALL + - col1 * + cor0.col0 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT cor0.col0 * col0 + + 55 FROM tab2 AS cor0
----
104
6139
6296

query I rowsort
SELECT col2 * 38 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT + cor0.col0 * col2 * - col2 AS col2 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + col0 * 57 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT - col0 + + ( + col1 + col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1355
-264
-418

query I rowsort
SELECT - - col2 + ( ( - cor0.col1 ) ) + + 66 FROM tab2 AS cor0
----
33
62
87

query I rowsort
SELECT - cor0.col0 * + 19 + + col2 FROM tab0 cor0
----
-1609
-423
-664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( cor0.col1 ) col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT ALL col1 * col2 DIV + tab2.col1 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL col1 * col2 / + tab2.col1 AS col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2073
SELECT tab0.col2 + col0 DIV col1 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2073
SELECT tab0.col2 + col0 / col1 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT 12 * - col2 FROM tab1
----
-1152
-648
-684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 * - col2 + - col2 col0 FROM tab0 AS cor0
----
-3396
-664200
-68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-2076
SELECT - + col2 DIV + col0 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-577
-7921

skipif mysql # not compatible
query I rowsort label-2076
SELECT - + col2 / + col0 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-577
-7921

query I rowsort
SELECT col0 + - ( col1 + - col0 ) AS col1 FROM tab1 AS cor0
----
-20
118
147

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2078
SELECT - col0 * + CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2078
SELECT - col0 * + CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 88 + + col0 * cor0.col2 col0 FROM tab2 cor0
----
-3950
-427
-4836

onlyif mysql # use DIV operator for integer division
query I rowsort label-2080
SELECT + + col1 * col2 DIV - col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2080
SELECT + + col1 * col2 / - col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2081
SELECT ALL col2 DIV col1 + + col0 AS col1 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL col2 / col1 + + col0 AS col1 FROM tab2
----
7
78
81

query I rowsort
SELECT - col0 * - ( 10 * - col2 ) + + col0 * - tab0.col0 FROM tab0
----
-1575
-80901
-8496

query I rowsort
SELECT + tab0.col1 + 22 * 1 FROM tab0
----
108
113
119

query I rowsort
SELECT + tab1.col0 * - col0 + - col2 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT col0 * cor0.col0 + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 * + col1 + col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT ALL col0 * col2 + + col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT col2 + - col2 * + col0 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT DISTINCT - 41 DIV cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - 41 / cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT + col2 + - 14 * - 25 AS col1 FROM tab0 AS cor0
----
351
383
432

query I rowsort
SELECT - + ( col2 ) * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT ( cor0.col2 ) + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ( - col1 ) + + col0 * + cor0.col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT ALL - col0 * + 87 AS col1 FROM tab1 AS cor0
----
-261
-5568
-6960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT DISTINCT 45 DIV col1 FROM tab1 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT 45 / col1 FROM tab1 AS cor0
----
1
3
4

query I rowsort
SELECT - - 86 * - col2 FROM tab1 AS cor0
----
-4644
-4902
-8256

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * + ( + col0 ) col0 FROM tab1 AS cor0
----
1984
2480
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2099
SELECT - cor0.col2 + col1 * col2 DIV + ( + 6 ) AS col0 FROM tab2 AS cor0
----
112
229
69

skipif mysql # not compatible
query I rowsort label-2099
SELECT - cor0.col2 + col1 * col2 / + ( + 6 ) AS col0 FROM tab2 AS cor0
----
112
229
69

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + 18 AS REAL ) * col1 AS col1 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT 16 + + col0 FROM tab1 cor0
----
19
80
96

query I rowsort
SELECT ALL - cor0.col2 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT - ( cor0.col2 ) * col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 * + ( - col0 ) + col2 col2 FROM tab2 cor0
----
-568
-6604
-6677

query I rowsort
SELECT cor0.col2 * col1 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 * col1 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT ALL - col2 + + col1 DIV - 53 AS col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - col2 + + col1 / - 53 AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL col2 * - col0 * + col2 + + col2 AS col0 FROM tab1
----
-207879
-737184
-8694

query I rowsort
SELECT ALL - 37 FROM tab1, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL col2 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 * col0 col0 FROM tab2 AS cor0
----
-637
-7098
-7189

onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT ALL - + 76 + col1 * 18 DIV - 54 AS col2 FROM tab0 AS cor0
----
-104
-106
-108

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - + 76 + col1 * 18 / - 54 AS col2 FROM tab0 AS cor0
----
-104
-106
-108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col1 col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2114
SELECT - CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2114
SELECT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 45 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1222
-1248
-1789

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL 71 AS col2 FROM tab0
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT ALL col1 DIV + col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL col1 / + col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - col1 * tab1.col2 - - 83 AS col2 FROM tab1
----
-1165
-1321
-487

query I rowsort
SELECT 23 - col0 * + col0 FROM tab2
----
-26
-6061
-6218

query I rowsort
SELECT ALL + ( 49 ) + - col1 * + tab1.col2 FROM tab1
----
-1199
-1355
-521

query I rowsort
SELECT + col1 * ( - tab1.col1 ) AS col1 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT ALL - tab2.col0 DIV 17 + - tab2.col1 FROM tab2
----
-21
-31
-63

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - tab2.col0 / 17 + - tab2.col1 FROM tab2
----
-21
-31
-63

query I rowsort
SELECT col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT ( - 51 ) * + cor0.col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT - + 18 * col2 FROM tab2 AS cor0
----
-468
-486
-684

onlyif mysql # use DIV operator for integer division
query I rowsort label-2127
SELECT + 11 DIV col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2127
SELECT + 11 / col1 FROM tab1
----
0
0
1

query I rowsort
SELECT + cor0.col1 * col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT ALL ( cor0.col1 ) + col1 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT DISTINCT - + col2 + col1 * + cor0.col1 - - 47 DIV + col2 AS col1 FROM tab1 cor0
----
43
622
73

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - + col2 + col1 * + cor0.col1 - - 47 / + col2 AS col1 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT + col1 * col0 + + col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT ALL + 64 + - col1 * col1 FROM tab0 AS cor0
----
-7332
-8217
-9345

query I rowsort
SELECT + - col2 + col2 * - ( col0 ) + + col0 * - cor0.col1 FROM tab2 AS cor0
----
-433
-4383
-6656

query I rowsort
SELECT ALL + 70 + col1 FROM tab0 AS cor0
----
156
161
167

query I rowsort
SELECT + col1 * col1 + - 96 FROM tab2 cor0
----
193
3385
865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col1 FROM tab2 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 + col0 col0 FROM tab0 AS cor0
----
-35
-46
19

query I rowsort
SELECT DISTINCT + col2 - col1 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - + cor0.col1 + + cor0.col2 * - col0 - - col0 FROM tab2 AS cor0
----
-2009
-213
-2940

query I rowsort
SELECT ALL + + 30 AS col1 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT + 17 * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 93a32356c9894c315a3ac8cd89cc9e88

query I rowsort
SELECT ALL + - col1 * + ( 46 ) AS col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT + col0 DIV - 97 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2143
SELECT + col0 / - 97 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT tab1.col0 + - col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col1 * 72 AS col0 FROM tab1 AS cor0
----
-1872
-720
-936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2146
SELECT + col2 DIV 31 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2146
SELECT + col2 / 31 AS col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL cor0.col1 * - ( + 90 ) + col0 AS col1 FROM tab1 AS cor0
----
-1090
-2337
-836

query I rowsort
SELECT DISTINCT + col1 * + col1 + 57 FROM tab0 AS cor0
----
7453
8338
9466

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT col2 + 84 FROM tab1 AS cor0
----
138
141
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2151
SELECT + cor0.col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT + cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2153
SELECT CAST( col1 AS SIGNED ) * col2 * ( col2 * - col1 ) + - ( col2 ) * + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT CAST ( col1 AS INTEGER ) * col2 * ( col2 * - col1 ) + - ( col2 ) * + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 73 + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1461
-573
-764

onlyif mysql # use DIV operator for integer division
query I rowsort label-2155
SELECT DISTINCT + CAST( - col0 AS SIGNED ) DIV - col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) / - col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort
SELECT col1 - - CAST ( - col0 AS REAL ) FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL + ( col0 ) * + col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - col2 * + 34 AS col1 FROM tab0 AS cor0
----
-1122
-2788
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2159
SELECT - CAST( NULL AS SIGNED ) * 39 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT - CAST ( NULL AS INTEGER ) * 39 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 11 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT DISTINCT + 25 * + 37 + + col2 FROM tab1 AS cor0
----
1021
979
982

query I rowsort
SELECT ALL + + 8 * ( - col1 ) FROM tab1 AS cor0
----
-104
-208
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2163
SELECT DISTINCT CAST( NULL AS SIGNED ) * 62 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 62 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 92 * + 50 AS col1 FROM tab2 AS cor0
----
4600
4600
4600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2165
SELECT + cor0.col1 DIV - 18 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT + cor0.col1 / - 18 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2166
SELECT CAST( + col0 AS SIGNED ) + col0 DIV 61 + - col0 * + col0 col2 FROM tab1
----
-4031
-6
-6319

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2166
SELECT CAST ( + col0 AS INTEGER ) + col0 / 61 + - col0 * + col0 col2 FROM tab1
----
-4031
-6
-6319

query I rowsort
SELECT - - col1 * + cor0.col1 + 99 * 40 FROM tab1 AS cor0
----
4060
4129
4636

onlyif mysql # use DIV operator for integer division
query I rowsort label-2168
SELECT ALL 70 DIV 16 AS col2 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL 70 / 16 AS col2 FROM tab0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + cor0.col2 + + col1 col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col2 + + 31 FROM tab2 AS cor0
----
57
58
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 2 col0 FROM tab0 AS cor0
----
3
35
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT col2 DIV + col0 + - col1 * col0 AS col0 FROM tab1
----
-1039
-60
-640

skipif mysql # not compatible
query I rowsort label-2172
SELECT col2 / + col0 + - col1 * col0 AS col0 FROM tab1
----
-1039
-60
-640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2173
SELECT ALL + col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 * ( + col0 ) + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - col2 - - 45 * col2 AS col2 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT ALL + cor0.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.col2 + col1 col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - col1 * - 57 AS col2 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT ALL - + col1 + + cor0.col1 * 98 FROM tab1 AS cor0
----
1261
2522
970

query I rowsort
SELECT col0 * - col2 - 46 AS col0 FROM tab0 AS cor0
----
-7344
-81
-838

query I rowsort
SELECT ALL ( col2 ) + - col2 * ( - col1 ) AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT ALL col0 * - col2 + col1 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
-3430
-671416
-68904

onlyif mysql # use DIV operator for integer division
query I rowsort label-2183
SELECT ALL col1 DIV + col1 + - cor0.col2 AS col0 FROM tab1 cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL col1 / + col1 + - cor0.col2 AS col0 FROM tab1 cor0
----
-53
-56
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2184
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT DISTINCT col0 + col2 DIV + col1 AS col1 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT col0 + col2 / + col1 AS col1 FROM tab1
----
5
69
87

query I rowsort
SELECT col1 * + col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2188
SELECT ALL + + col1 * + col2 + CAST( col0 AS SIGNED ) DIV - col0 AS col0 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + + col1 * + col2 + CAST ( col0 AS INTEGER ) / - col0 AS col0 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT ALL + col0 * tab2.col0 + col0 * + col1 AS col1 FROM tab2
----
10686
266
7584

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN NULL AND ( col0 + col1 * - col0 + - col2 * + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL - col2 * col1 + + col2 * + col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2192
SELECT + col2 - + col1 DIV col0 AS col1 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-2192
SELECT + col2 - + col1 / col0 AS col1 FROM tab2
----
23
26
38

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE NOT col0 BETWEEN + col2 AND ( - col1 + - col2 )
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col0 * + tab1.col0 * + col2 + col1 AS col0 FROM tab1
----
-233462
-460
-614387

query I rowsort
SELECT ALL 99 - col0 AS col1 FROM tab0
----
10
64
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT 52 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT 52 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 45 FROM tab1, tab2 AS cor0
----
-45

query I rowsort
SELECT - + 45 AS col2 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2200
SELECT + cor0.col1 DIV 63 + + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2200
SELECT + cor0.col1 / 63 + + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + 86 + - col0 FROM tab0 AS cor0
----
-3
51
62

query I rowsort
SELECT col0 + - tab2.col0 + - col2 AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL - col0 * + col2 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT - - col0 + 52 AS col2 FROM tab1 AS cor0
----
116
132
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-2206
SELECT ALL + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL + col2 / + col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 + 22 FROM tab0 AS cor0
----
104
23
55

query I rowsort
SELECT DISTINCT - col0 * - col1 + 39 AS col2 FROM tab0 AS cor0
----
2103
3434
8138

onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT DISTINCT - cor0.col2 DIV - 86 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - cor0.col2 / - 86 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + col0 * - 73 + - col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT - 7 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT ALL col1 + - 37 AS col2 FROM tab0 AS cor0
----
49
54
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + - col1 col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT col1 * ( tab2.col0 * tab2.col0 ) FROM tab2
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col1 FROM tab1, tab0 AS cor0
----
-64

query I rowsort
SELECT DISTINCT 67 * - col0 AS col0 FROM tab0
----
-1608
-2345
-5963

onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT + col1 * col1 DIV col0 + 65 FROM tab2
----
109
202
68

skipif mysql # not compatible
query I rowsort label-2218
SELECT + col1 * col1 / col0 + 65 FROM tab2
----
109
202
68

query I rowsort
SELECT - col2 + 76 FROM tab0 AS cor0
----
-6
43
75

query I rowsort
SELECT + 51 * + col1 + col2 FROM tab2 AS cor0
----
1608
3035
905

query I rowsort
SELECT 80 + - cor0.col0 FROM tab1 cor0
----
0
16
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT DISTINCT + - ( col0 ) DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + - ( col0 ) / CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT - col2 * - col2 + + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + 69 * - col2 * - ( col2 ) FROM tab2 AS cor0
----
46644
50301
99636

onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT ALL 82 DIV + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL 82 / + col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + + 17 + col2 FROM tab1 AS cor0
----
113
71
74

query I rowsort
SELECT 89 + - col1 * + tab2.col0 FROM tab2
----
-1254
-128
-4513

query I rowsort
SELECT ALL 41 AS col1 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - 33 * col1 FROM tab0 AS cor0
----
-2838
-3003
-3201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - col1 * + col2 + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2232
SELECT - col1 * col1 DIV col0 FROM tab2
----
-137
-3
-44

skipif mysql # not compatible
query I rowsort label-2232
SELECT - col1 * col1 / col0 FROM tab2
----
-137
-3
-44

query I rowsort
SELECT ALL col1 + - col0 * - col1 FROM tab1
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + - col2 col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT col2 + - tab2.col2 + col1 FROM tab2
----
17
31
59

query I rowsort
SELECT col0 * col0 + col0 * col2 + + tab0.col1 * col1 * - col0 AS col0 FROM tab0
----
-176136
-328055
-721790

onlyif mysql # use DIV operator for integer division
query I rowsort label-2237
SELECT ALL tab1.col0 DIV - col0 + col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL tab1.col0 / - col0 + col2 FROM tab1
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col1 FROM tab1 cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + col1 + col2 col2 FROM tab2 AS cor0
----
1499
761
787

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT - col2 * col2 DIV - col0 FROM tab1
----
115
50
972

skipif mysql # not compatible
query I rowsort label-2240
SELECT - col2 * col2 / - col0 FROM tab1
----
115
50
972

query I rowsort
SELECT ALL - col0 + col0 + tab2.col0 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT 93 + 36 AS col0 FROM tab2
----
129

query I rowsort
SELECT ALL tab2.col2 * 93 * + tab2.col2 + + tab2.col2 FROM tab2
----
134330
62894
67824

query I rowsort
SELECT DISTINCT ( col1 ) + col0 AS col2 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2245
SELECT ALL + CAST( NULL AS SIGNED ) + + ( + tab1.col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( + tab1.col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT - + col2 DIV col2 + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2246
SELECT - + col2 / col2 + col1 / col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * col1 + col1 AS col1 FROM tab0 cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 * col0 ) + - col0 col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT - 41 * + col1 FROM tab0
----
-3526
-3731
-3977

query I rowsort
SELECT DISTINCT + + col2 * col0 + - col0 * col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - 11 - - col2 AS col0 FROM tab1 AS cor0
----
43
46
85

query I rowsort
SELECT ALL + col2 * + col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + 72 + col2 AS col0 FROM tab0 AS cor0
----
105
154
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2254
SELECT ALL + 81 * - col0 - col2 DIV + col1 AS col0 FROM tab1 cor0
----
-245
-5189
-6487

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL + 81 * - col0 - col2 / + col1 AS col0 FROM tab1 cor0
----
-245
-5189
-6487

onlyif mysql # use DIV operator for integer division
query I rowsort label-2255
SELECT DISTINCT 79 DIV col0 + - col0 AS col1 FROM tab1 AS cor0
----
-63
-80
23

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT 79 / col0 + - col0 AS col1 FROM tab1 AS cor0
----
-63
-80
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2256
SELECT ALL 45 * + cor0.col2 + - col0 DIV col1 FROM tab2 AS cor0
----
1169
1215
1706

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 45 * + cor0.col2 + - col0 / col1 FROM tab2 AS cor0
----
1169
1215
1706

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT DISTINCT tab2.col1 + - tab2.col1 DIV + col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT tab2.col1 + - tab2.col1 / + col1 FROM tab2
----
16
30
58

query I rowsort
SELECT ALL col0 - - tab0.col0 FROM tab0
----
178
48
70

query I rowsort
SELECT col0 + - tab1.col1 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL col2 + + col2 * col0 * - col0 FROM tab1
----
-233415
-432
-614304

query I rowsort
SELECT col0 + + col1 + col2 * col1 AS col1 FROM tab0
----
229
2948
7642

query I rowsort
SELECT DISTINCT tab2.col2 + col1 * tab2.col0 AS col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT - col2 + - col1 * col2 AS col0 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT col2 + col1 * col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 * col0 )
----

query I rowsort
SELECT DISTINCT col2 * col0 * - col1 + col1 * col1 FROM tab2
----
-116171
-4898
-50745

query I rowsort
SELECT + col0 + - tab1.col1 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT - col0 + - col1 - - col1 AS col0 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2268
SELECT ALL col2 DIV - col0 + col1 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL col2 / - col0 + col1 FROM tab2
----
17
28
59

query I rowsort
SELECT - tab2.col2 + - col1 * - col1 AS col2 FROM tab2
----
251
3455
934

query I rowsort
SELECT ALL col1 * col1 + col0 AS col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT col1 * col0 NOT IN ( - col0 )
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT col1 * col1 * col0 + col0 AS col2 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT ALL tab0.col1 * tab0.col1 AS col1 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col1 + - col2 * - cor0.col1 * + cor0.col0 col2 FROM tab2 AS cor0
----
118118
5022
50388

query I rowsort
SELECT + col2 + + cor0.col0 * + col1 FROM tab1 cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-2277
SELECT cor0.col0 + col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2277
SELECT cor0.col0 + col1 / + col1 AS col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT + col0 - - col0 AS col0 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * col0 * col0 col2 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT + - cor0.col2 + col1 * cor0.col2 FROM tab2 AS cor0
----
1508
608
810

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col1 + col1 * col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col1 * col2 )
----

query I rowsort
SELECT col1 - - cor0.col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2284
SELECT - CAST( NULL AS SIGNED ) * 50 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT - CAST ( NULL AS INTEGER ) * 50 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 22 - 81 AS col0 FROM tab2
----
-59
-59
-59

query I rowsort
SELECT - - cor0.col0 + 16 * col0 FROM tab1 AS cor0
----
1088
1360
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2287
SELECT - - CAST( - col0 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-2287
SELECT - - CAST ( - col0 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 87 * ( + col2 ) + + col2 AS col2 FROM tab1 cor0
----
4752
5016
8448

onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT cor0.col2 * 82 DIV - col0 FROM tab2 AS cor0
----
-27
-316
-39

skipif mysql # not compatible
query I rowsort label-2289
SELECT cor0.col2 * 82 / - col0 FROM tab2 AS cor0
----
-27
-316
-39

query I rowsort
SELECT - 52 * + 80 AS col1 FROM tab1 AS cor0
----
-4160
-4160
-4160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2291
SELECT + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col2 + 96 AS col2 FROM tab1 AS cor0
----
163
176
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT 23 FROM tab1, tab1 AS cor0, tab1 cor1
----
23

query I rowsort
SELECT cor0.col1 * + col0 + - 4 FROM tab2 AS cor0
----
1339
213
4598

query I rowsort
SELECT ALL - 86 * cor0.col0 * 69 AS col1 FROM tab0 AS cor0
----
-142416
-207690
-528126

query I rowsort
SELECT DISTINCT - 66 + col0 FROM tab0 AS cor0
----
-31
-42
23

query I rowsort
SELECT ALL 66 * col0 AS col2 FROM tab1
----
198
4224
5280

query I rowsort
SELECT DISTINCT col0 + cor0.col2 * + ( col2 + col2 ) FROM tab2 AS cor0
----
1430
1465
2967

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2300
SELECT - + col2 * CAST( - 70 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2310
5740
70

skipif mysql # not compatible
query I rowsort label-2300
SELECT - + col2 * CAST ( - 70 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2310
5740
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * col1 col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 9 + col1 + + ( - col2 * cor0.col1 ) col1 FROM tab0 AS cor0
----
-2455
-6633
9

query I rowsort
SELECT DISTINCT - - ( + 35 ) * - col1 + + ( + 21 ) AS col2 FROM tab2 AS cor0
----
-1064
-2044
-574

query I rowsort
SELECT ALL - col2 * - 66 AS col0 FROM tab2 cor0
----
1716
1782
2508

query I rowsort
SELECT ALL - col0 * 50 AS col2 FROM tab1
----
-150
-3200
-4000

query I rowsort
SELECT DISTINCT + 4 - - col0 AS col2 FROM tab2 AS cor0
----
11
82
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT ALL col1 * col0 + - cor0.col1 DIV 86 FROM tab1 cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL col1 * col0 + - cor0.col1 / 86 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - 51 * - 77 AS col1 FROM tab0 AS cor0
----
3927
3927
3927

onlyif mysql # use DIV operator for integer division
query I rowsort label-2309
SELECT + col1 DIV - CAST( col0 AS SIGNED ) + + col1 AS col2 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-2309
SELECT + col1 / - CAST ( col0 AS INTEGER ) + + col1 AS col2 FROM tab1
----
10
13
18

query I rowsort
SELECT - ( col2 ) + + col1 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL 74 + 59 * + col2 FROM tab0 AS cor0
----
133
2021
4912

query I rowsort
SELECT ALL - 59 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT DISTINCT - 4 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
-4

query I rowsort
SELECT + ( - 32 ) AS col0 FROM tab1 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL ( - col0 ) + + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + 39 * + col1 * - 13 + 87 FROM tab0
----
-43515
-46050
-49092

query I rowsort
SELECT ALL + 34 + + col0 FROM tab2
----
112
113
41

query I rowsort
SELECT DISTINCT tab0.col2 + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1b6920525e1810523fdee3171c929510

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab2, tab0, tab1 AS cor0
----
-69

query I rowsort
SELECT col1 + + 32 FROM tab1 AS cor0
----
42
45
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + - 29 col0 FROM tab0 AS cor0
----
1196
547
7892

query I rowsort
SELECT ALL cor0.col1 * + col0 + 39 FROM tab2 AS cor0
----
1382
256
4641

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

query I rowsort
SELECT ALL - - cor0.col1 - 20 FROM tab2 AS cor0
----
-3
11
39

query I rowsort
SELECT + + col0 * + cor0.col2 + - cor0.col0 FROM tab0 cor0
----
0
7209
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2328
SELECT + col1 * CAST( col0 * - col2 AS SIGNED ) FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort label-2328
SELECT + col1 * CAST ( col0 * - col2 AS INTEGER ) FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT col0 * ( + 89 ) AS col2 FROM tab2 AS cor0
----
623
6942
7031

query I rowsort
SELECT + col0 * + 25 FROM tab0 AS cor0
----
2225
600
875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 * + col0 col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * cor0.col2 + + col1 * col1 col0 FROM tab2 AS cor0
----
-113787
-4142
-49247

query I rowsort
SELECT DISTINCT + col1 * - ( - ( col0 ) ) - + col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + col2 + 25 AS col1 FROM tab2 cor0
----
51
52
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * + col1 col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + + col0 * - col1 * + col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + col1 + - 16 AS col2 FROM tab0 AS cor0
----
70
75
81

query I rowsort
SELECT DISTINCT - col0 - + col1 * - col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2339
SELECT ALL - col1 DIV + col2 + + cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - col1 / + col2 + + cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + - 0 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - + ( col2 ) * + 12 AS col2 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT + - col0 + col1 + ( - 75 ) AS col2 FROM tab1 cor0
----
-129
-142
-52

query I rowsort
SELECT ALL - col1 + col1 * 92 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT ALL col2 + col2 * - ( col1 * - col1 ) AS col0 FROM tab2 cor0
----
11020
25974
90532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 - col1 col2 FROM tab2
----
-49
-63
-91

query I rowsort
SELECT DISTINCT 96 + tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
120
131
185

onlyif mysql # use DIV operator for integer division
query I rowsort label-2347
SELECT - col2 DIV CAST( 33 AS SIGNED ) FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2347
SELECT - col2 / CAST ( 33 AS INTEGER ) FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + 19 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

onlyif mysql # use DIV operator for integer division
query I rowsort label-2349
SELECT ALL + 4 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + 4 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 * + 65 - - col2 FROM tab2 cor0
----
1143
2042
3861

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col2 * 18 + + col1 + col2 FROM tab2 AS cor0
----
544
553
739

query I rowsort
SELECT - 88 * col0 * col1 + col1 * + col0 + + col0 FROM tab1 AS cor0
----
-55616
-6783
-90400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2354
SELECT ALL + CAST( col0 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + CAST ( col0 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + + cor0.col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL col1 + 30 * - col0 FROM tab1 AS cor0
----
-1910
-2387
-64

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + col0 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT ALL + col1 * 2 - + col0 AS col2 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT ( cor0.col0 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + - col0 + + 21 FROM tab2 AS cor0
----
-57
-58
14

query I rowsort
SELECT DISTINCT 66 + + col1 FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL - - col1 + col2 + col0 * col0 * + col2 FROM tab1 AS cor0
----
233539
566
614509

query I rowsort
SELECT DISTINCT + col0 + - 39 FROM tab1
----
-36
25
41

query I rowsort
SELECT ALL col0 + 35 FROM tab1
----
115
38
99

query I rowsort
SELECT ALL - ( col0 ) * + col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT col0 + - ( col2 * - 82 ) FROM tab2
----
2210
2221
3195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2368
SELECT ALL - CAST( - col0 AS SIGNED ) * - cor0.col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL - CAST ( - col0 AS INTEGER ) * - cor0.col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col2 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - ( + ( cor0.col2 ) ) * - col0 + + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT 24 * - 50 + col2 + + 44 AS col2 FROM tab2 AS cor0
----
-1118
-1129
-1130

query I rowsort
SELECT + + 36 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT DISTINCT + - cor0.col1 + + 74 * col0 AS col1 FROM tab0 AS cor0
----
1690
2493
6495

query I rowsort
SELECT DISTINCT 59 + col0 * col2 * + col2 FROM tab2
----
114135
5162
52787

query I rowsort
SELECT col2 + tab0.col2 * + col2 AS col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT - 50 + col0 * col2 AS col2 FROM tab0 cor0
----
-15
7248
742

query I rowsort
SELECT DISTINCT 25 * tab1.col1 FROM tab1
----
250
325
650

query I rowsort
SELECT 92 * col0 AS col1 FROM tab1
----
276
5888
7360

query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab2, tab0, tab0 AS cor0
----
77

query I rowsort
SELECT DISTINCT + 64 * - col1 + 40 FROM tab1 AS cor0
----
-1624
-600
-792

query I rowsort
SELECT - 67 + - col0 FROM tab2 AS cor0
----
-145
-146
-74

query I rowsort
SELECT col2 * + cor0.col0 + ( + col0 ) FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 * cor0.col2 col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + + 22 + col1 FROM tab1 AS cor0
----
32
35
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-2385
SELECT DISTINCT + tab1.col2 DIV - col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT + tab1.col2 / - col2 FROM tab1
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT DISTINCT 75 DIV cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 75 / cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
2
5
7

query I rowsort
SELECT col1 + col2 * col0 * + col0 AS col1 FROM tab2 cor0
----
1354
158243
237175

query I rowsort
SELECT + - col1 * ( 53 ) FROM tab0 AS cor0
----
-4558
-4823
-5141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 69 col2 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT DISTINCT + col2 + ( 79 ) AS col0 FROM tab2 AS cor0
----
105
106
117

query I rowsort
SELECT 21 + + 54 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT - - col0 + - 10 FROM tab0 AS cor0
----
14
25
79

query I rowsort
SELECT - cor0.col0 * col0 + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL - + 5 * - cor0.col0 FROM tab0 AS cor0
----
120
175
445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - cor0.col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col2 * + 98 + 20 + + col2 AS col0 FROM tab2
----
2594
2693
3782

query I rowsort
SELECT DISTINCT col2 + - 63 + - 7 * col0 * col0 FROM tab1
----
-28678
-44767
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2398
SELECT + + CAST( col2 AS SIGNED ) / col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2398
SELECT + + CAST ( col2 AS INTEGER ) / col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + col0 * + ( + cor0.col2 * + 17 ) - - col2 FROM tab1 cor0
----
130643
2782
62063

query I rowsort
SELECT DISTINCT + col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - 88 * + col2 * 34 AS col2 FROM tab2
----
-113696
-77792
-80784

query I rowsort
SELECT + 78 + col1 FROM tab1
----
104
88
91

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 54f94bc315b13bb4d5a30c251c64c399

query I rowsort
SELECT ALL - 92 * cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3f3a5de57fe29f0bbd60295659c92a43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT DISTINCT - col0 DIV ( + 29 ) + + col1 FROM tab1 cor0
----
11
26
8

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT - col0 / ( + 29 ) + + col1 FROM tab1 cor0
----
11
26
8

query I rowsort
SELECT ALL col0 * col0 - + col1 AS col2 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT - + col1 * col0 + - col1 * - cor0.col2 FROM tab2 AS cor0
----
-3068
-697
620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2408
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * + 88 + - col1 FROM tab1 AS cor0
----
1131
2262
870

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2411
SELECT + CAST( - col0 AS SIGNED ) * - col2 FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2411
SELECT + CAST ( - col0 AS INTEGER ) * - col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT col2 * col1 * col0 + col2 AS col2 FROM tab0 AS cor0
----
3396
664200
68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT + col2 * col1 DIV - col1 + - ( - col0 + col1 ) FROM tab2 AS cor0
----
-51
-7
24

skipif mysql # not compatible
query I rowsort label-2413
SELECT + col2 * col1 / - col1 + - ( - col0 + col1 ) FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT + col0 + cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT col2 * col1 + col0 * - 27 * + 23 FROM tab2 AS cor0
----
-3510
-46904
-48413

onlyif mysql # use DIV operator for integer division
query I rowsort label-2416
SELECT + col1 + + col1 * 13 DIV col2 FROM tab1 AS cor0
----
12
14
32

skipif mysql # not compatible
query I rowsort label-2416
SELECT + col1 + + col1 * 13 / col2 FROM tab1 AS cor0
----
12
14
32

query I rowsort
SELECT ALL 69 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT + 18 * + col2 AS col2 FROM tab1 cor0
----
1026
1728
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - cor0.col2 * col2 col2 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2421
SELECT CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2421
SELECT CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - col1 * + col0 + col1 * + col1 FROM tab1 AS cor0
----
-540
-871
598

onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT DISTINCT - col0 - col1 DIV col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT - col0 - col1 / col1 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT ALL + col2 * - col1 * - col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2425
SELECT DISTINCT col0 + + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT col0 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + 86 + + col1 FROM tab2 AS cor0
----
-27
-55
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2427
SELECT + cor0.col0 * col2 + - CAST( NULL AS SIGNED ) * 3 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT + cor0.col0 * col2 + - CAST ( NULL AS INTEGER ) * 3 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - col2 + + ( - cor0.col2 * col1 ) AS col0 FROM tab0 AS cor0
----
-14186
-3927
-98

query I rowsort
SELECT DISTINCT - 88 * col0 FROM tab0 AS cor0
----
-2112
-3080
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2430
SELECT DISTINCT + col0 + col2 DIV + cor0.col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT + col0 + col2 / + cor0.col2 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2431
SELECT col2 DIV - tab0.col1 + col2 * + col0 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2431
SELECT col2 / - tab0.col1 + col2 * + col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 + - col2 * col2 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL - 91 AS col2 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + 5 * col1 AS col2 FROM tab2 AS cor0
----
155
295
85

query I rowsort
SELECT DISTINCT + + 47 AS col0 FROM tab1 cor0
----
47

query I rowsort
SELECT - ( col2 ) + + col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - - 81 * + col2 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT col1 * + col1 + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - cor0.col1 + col2 * + col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + cor0.col2 + - ( - 35 ) FROM tab0 AS cor0
----
117
36
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT DISTINCT - + col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT - + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + 45 * col1 FROM tab0 AS cor0
----
3846
4006
4330

query I rowsort
SELECT DISTINCT - + cor1.col0 FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT + tab0.col2 - - col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col0 + - 64 * - cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
3143
389454
399503

query I rowsort
SELECT ALL - 60 * 27 FROM tab2 cor0
----
-1620
-1620
-1620

onlyif mysql # use DIV operator for integer division
query I rowsort label-2448
SELECT ( - col1 ) DIV tab0.col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2448
SELECT ( - col1 ) / tab0.col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL + col2 + 56 AS col1 FROM tab2
----
82
83
94

query I rowsort
SELECT ALL - ( - 82 ) + + col2 * 71 FROM tab1
----
3916
4129
6898

query I rowsort
SELECT ALL col2 * + col2 + + col2 * col0 + - col1 FROM tab1
----
16883
3052
6887

query I rowsort
SELECT 53 + - col0 FROM tab0
----
-36
18
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 * col0 + - col0 col1 FROM tab2
----
-63
-702
-711

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2454
SELECT DISTINCT + - CAST( col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT ALL - cor0.col2 DIV 48 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL - cor0.col2 / 48 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT - ( col2 ) + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 32 + + col0 AS REAL ) FROM tab1
----
-29
32
48

query I rowsort
SELECT ALL 11 + - col0 FROM tab0
----
-13
-24
-78

query I rowsort
SELECT ALL - col0 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL - + col0 - + 39 AS col0 FROM tab0 AS cor0
----
-128
-63
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT + col2 DIV - 3 + col0 AS col2 FROM tab0 cor0
----
13
35
62

skipif mysql # not compatible
query I rowsort label-2461
SELECT + col2 / - 3 + col0 AS col2 FROM tab0 cor0
----
13
35
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2462
SELECT DISTINCT + col2 * + col0 + col1 DIV CAST( 4 AS SIGNED ) FROM tab2 AS cor0
----
196
2042
3006

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + col2 * + col0 + col1 / CAST ( 4 AS INTEGER ) FROM tab2 AS cor0
----
196
2042
3006

query I rowsort
SELECT + + ( - col0 ) + cor0.col1 AS col0 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2464
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col2 + cor0.col0 FROM tab1 cor0
----
-1168
-1401
-506

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col2 + cor0.col0 FROM tab1 cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2465
SELECT - CAST( NULL AS SIGNED ) * ( - col2 ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT - CAST ( NULL AS INTEGER ) * ( - col2 ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col1 + - col1 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT + - ( - col1 ) + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - ( col0 ) * + col0 + ( col2 ) FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - 27 * + cor0.col2 FROM tab0 AS cor0
----
-2214
-27
-891

query I rowsort
SELECT ALL - 77 AS col2 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT + + 90 * - col2 FROM tab0 AS cor0
----
-2970
-7380
-90

query I rowsort
SELECT DISTINCT 54 + - col2 AS col2 FROM tab1
----
-3
-42
0

query I rowsort
SELECT col1 + col1 * - ( + col2 ) FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT 84 * - 6 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7193103c030c9cc699380f436aa0c1c9

query I rowsort
SELECT DISTINCT - col1 * - col1 * col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL 66 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT col1 * - ( + col1 ) + col1 + col1 * 31 FROM tab1 AS cor0
----
156
220
247

onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT + cor0.col1 + col0 DIV 83 AS col1 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-2478
SELECT + cor0.col1 + col0 / 83 AS col1 FROM tab0 AS cor0
----
86
92
97

query I rowsort
SELECT DISTINCT + - col2 + + 67 * col2 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT DISTINCT col1 * - 98 FROM tab1 AS cor0
----
-1274
-2548
-980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2481
SELECT ALL + col0 * CAST( + col1 * col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL + col0 * CAST ( + col1 * col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT col2 * + ( col0 ) + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + 11 + + tab2.col0 FROM tab2
----
18
89
90

query I rowsort
SELECT ALL - 17 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT + cor0.col1 + + ( - 20 ) FROM tab2 cor0
----
-3
11
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2486
SELECT + col0 + col0 DIV - 19 AS col1 FROM tab1 AS cor0
----
3
61
76

skipif mysql # not compatible
query I rowsort label-2486
SELECT + col0 + col0 / - 19 AS col1 FROM tab1 AS cor0
----
3
61
76

query I rowsort
SELECT col1 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - + cor0.col0 + + cor0.col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-2489
SELECT DISTINCT col1 * + tab1.col1 DIV - tab1.col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT col1 * + tab1.col1 / - tab1.col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - col2 + + 7 AS col0 FROM tab0 AS cor0
----
-26
-75
6

query I rowsort
SELECT + + cor0.col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - - 76 * col2 AS col0 FROM tab0 AS cor0
----
2508
6232
76

query I rowsort
SELECT DISTINCT - + col1 + col2 * col0 * 95 FROM tab0 cor0
----
3228
693219
75154

query I rowsort
SELECT ALL - col1 * - 86 * - 42 FROM tab0
----
-310632
-328692
-350364

query I rowsort
SELECT ALL + col1 * 54 AS col1 FROM tab2
----
1674
3186
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-2496
SELECT tab1.col2 * 45 DIV + tab1.col2 FROM tab1
----
45
45
45

skipif mysql # not compatible
query I rowsort label-2496
SELECT tab1.col2 * 45 / + tab1.col2 FROM tab1
----
45
45
45

query I rowsort
SELECT - 74 + - col2 * - col1 FROM tab2
----
1460
572
763

query I rowsort
SELECT + - 34 + col2 * - 68 AS col1 FROM tab2 AS cor0
----
-1802
-1870
-2618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2499
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2499
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ( + col1 * col2 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL ( - col0 ) + col0 * 2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT - col0 DIV - col0 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2502
SELECT - col0 / - col0 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL - col0 * col0 - col1 FROM tab1 cor0
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT ALL - ( + 23 ) DIV + col1 FROM tab1 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - ( + 23 ) / + col1 FROM tab1 cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT DISTINCT cor0.col1 * + col0 DIV col0 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT cor0.col1 * + col0 / col0 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - ( col1 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 6 * ( + col2 ) FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT - 58 * col1 AS col0 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT + cor0.col0 * - col0 + col2 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL - + ( - col1 ) * - col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + + col1 * - col1 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
636080
753660
912708

query I rowsort
SELECT DISTINCT ( 97 ) * cor0.col2 + 14 AS col0 FROM tab1 AS cor0
----
5252
5543
9326

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col0 AS REAL ) - col2 / - CAST ( 68 AS INTEGER ) AS col2 FROM tab1 cor0
----
-3
-64
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2514
SELECT ALL + + CAST( NULL AS DECIMAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + + CAST ( NULL AS REAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT ALL 84 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT DISTINCT 12 + - 8 FROM tab2, tab1 AS cor0
----
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2518
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab1, 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-2518
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col2 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2520
SELECT DISTINCT CAST( - 35 + col0 AS SIGNED ) AS col1 FROM tab0
----
-11
0
54

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT CAST ( - 35 + col0 AS INTEGER ) AS col1 FROM tab0
----
-11
0
54

query I rowsort
SELECT - 21 * col2 AS col0 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT + + 37 + - cor0.col2 FROM tab1 AS cor0
----
-17
-20
-59

query I rowsort
SELECT DISTINCT - ( tab2.col2 ) * + col0 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 49 * - col2 - + col2 * ( col1 * col2 ) col1 FROM tab0 cor0
----
-146
-615902
-95271

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2525
SELECT + 36 * + cor0.col1 - + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1109
2046
533

skipif mysql # not compatible
query I rowsort label-2525
SELECT + 36 * + cor0.col1 - + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1109
2046
533

query I rowsort
SELECT col1 * - col0 - 34 FROM tab1
----
-1074
-112
-674

query I rowsort
SELECT - col2 + - 33 * 54 AS col2 FROM tab1
----
-1836
-1839
-1878

query I rowsort
SELECT ALL - col0 * col2 + - 69 FROM tab2 AS cor0
----
-2097
-258
-3071

query I rowsort
SELECT DISTINCT - col1 + + 58 - 84 FROM tab0 AS cor0
----
-112
-117
-123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2530
SELECT + col2 - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2530
SELECT + col2 - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 + + col0 * - ( col0 * + col1 ) + ( col1 ) FROM tab1 AS cor0
----
-182
-40940
-83174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 + col2 col1 FROM tab1
----
29
3
77

query I rowsort
SELECT col0 * col1 + + 66 AS col0 FROM tab0 cor0
----
2130
3461
8165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * 12 + + col0 col1 FROM tab0 cor0
----
1157
312
455

onlyif mysql # use DIV operator for integer division
query I rowsort label-2535
SELECT col1 DIV + ( col0 ) + - col2 * - col1 FROM tab1 cor0
----
1248
1412
570

skipif mysql # not compatible
query I rowsort label-2535
SELECT col1 / + ( col0 ) + - col2 * - col1 FROM tab1 cor0
----
1248
1412
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col2 + - 56 col1 FROM tab0
----
-55
1033
6668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 20 col0 FROM tab0 cor0
----
102
21
53

query I rowsort
SELECT + - col0 + + 37 AS col2 FROM tab1 AS cor0
----
-27
-43
34

query I rowsort
SELECT - 39 + + ( - col0 * col0 ) FROM tab0 AS cor0
----
-1264
-615
-7960

query I rowsort
SELECT DISTINCT 24 * - col2 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT ALL 37 * col0 + col1 AS col0 FROM tab0 AS cor0
----
1392
3384
974

query I rowsort
SELECT ALL + + ( col2 ) + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + ( - col1 ) + - col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2544
SELECT + col2 + - col0 DIV + tab0.col1 col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2544
SELECT + col2 + - col0 / + tab0.col1 col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT 50 + + col1 AS col1 FROM tab2 AS cor0
----
109
67
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col2 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - ( 64 ) * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-161
-2198
-5339

query I rowsort
SELECT cor0.col1 * ( col2 ) + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col2 * col1 - - col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - + col1 * col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2551
SELECT ALL + - col2 * + col1 + + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + - col2 * + col1 + + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 40 * col2 FROM tab2
----
1040
1080
1520

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * 93 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-15725
-3488
-5133

query I rowsort
SELECT + col2 * + 79 + 42 + col2 FROM tab2 AS cor0
----
2122
2202
3082

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2555
SELECT - col0 * + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT - col0 * + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - 53 + col2 - + 26 AS col1 FROM tab2
----
-41
-52
-53

query I rowsort
SELECT ALL col0 * + col0 - col2 AS col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT ALL + col0 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT col1 * - 18 * + col1 + - cor0.col1 - col2 FROM tab2 AS cor0
----
-17356
-5257
-62743

query I rowsort
SELECT - - cor0.col0 - 13 AS col1 FROM tab0 AS cor0
----
11
22
76

query I rowsort
SELECT - col1 + + tab2.col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2563
SELECT - col1 DIV - col0 + tab2.col2 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-2563
SELECT - col1 / - col0 + tab2.col2 FROM tab2
----
26
31
38

query I rowsort
SELECT + - col1 - - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( ( col1 ) ) + - ( tab2.col0 ) * tab2.col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT + 85 * col2 FROM tab0
----
2805
6970
85

query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab0
----
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT DISTINCT + 52 DIV + col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT + 52 / + col0 FROM tab0
----
0
1
2

query I rowsort
SELECT ALL + - 99 * + col0 AS col1 FROM tab1 AS cor0
----
-297
-6336
-7920

query I rowsort
SELECT ALL - ( col2 ) + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 * - cor0.col2 * + cor0.col1 + col2 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT + 39 * col0 AS col0 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT ALL - 73 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT ALL + tab0.col1 * 2 AS col2 FROM tab0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2575
SELECT + tab1.col2 + CAST( NULL AS SIGNED ) * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT + tab1.col2 + CAST ( NULL AS INTEGER ) * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 58 + col2 col0 FROM tab1
----
1562
637
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * col0 * col0 col2 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT ALL - col2 * + 70 FROM tab2
----
-1820
-1890
-2660

query I rowsort
SELECT ALL + col1 * + 72 FROM tab0
----
6192
6552
6984

query I rowsort
SELECT + col1 * cor0.col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * + col0 col2 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT ALL col1 * + col0 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL 36 + cor0.col1 FROM tab1 AS cor0
----
46
49
62

query I rowsort
SELECT - - col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col2 AS REAL ) - - col1 * + col1 col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) * col1 * col0 AS col1 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT DISTINCT + ( + col0 ) * - cor0.col2 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 88 col0 FROM tab2
----
-1496
-2728
-5192

query I rowsort
SELECT ( col0 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ( ( col0 ) ) * tab0.col0 + - 81 AS col2 FROM tab0
----
1144
495
7840

query I rowsort
SELECT - ( cor0.col2 ) FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * + 38 col2 FROM tab2 AS cor0
----
2622
2622
2622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * - ( col1 ) col2 FROM tab1 AS cor0
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * - cor0.col0 col0 FROM tab0 AS cor0
----
-2136
-3115
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT - col2 + - cor0.col1 + col0 DIV + 50 FROM tab0 cor0
----
-119
-172
-98

skipif mysql # not compatible
query I rowsort label-2597
SELECT - col2 + - cor0.col1 + col0 / + 50 FROM tab0 cor0
----
-119
-172
-98

query I rowsort
SELECT + col2 + col0 * 45 + + 42 AS col2 FROM tab1 AS cor0
----
231
2979
3738

query I rowsort
SELECT 9 - col0 AS col2 FROM tab2 AS cor0
----
-69
-70
2

query I rowsort
SELECT col2 + + col2 * - col0 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1321
-19061
-649531

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab1, tab1 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 - - cor0.col0 * - col1 * col0 col2 FROM tab0 cor0
----
-118728
-49450
-720720

query I rowsort
SELECT ALL ( col0 ) * tab0.col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + col2 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - cor0.col1 * - col0 * - col0 col0 FROM tab2 AS cor0
----
-106176
-1526
-359034

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 84 col1 FROM tab2 cor0
----
25
53
67

query I rowsort
SELECT ALL + 98 + col1 + col2 * tab2.col0 * col0 AS col0 FROM tab2
----
1452
158341
237273

query I rowsort
SELECT cor0.col2 * 9 FROM tab0 cor0
----
297
738
9

query I rowsort
SELECT + cor0.col2 * - cor0.col0 + + 12 * col2 AS col1 FROM tab1 AS cor0
----
-2964
-6528
486

query I rowsort
SELECT + cor0.col1 * ( 7 ) * - cor0.col1 + - 33 AS col0 FROM tab0 AS cor0
----
-51805
-58000
-65896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + 7 + - col0 * - col1 * col0 col2 FROM tab2
----
107447
1743
363565

query I rowsort
SELECT ALL + 94 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL cor0.col1 * - ( - col2 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2615
SELECT col2 * 51 DIV col0 + col0 * col1 FROM tab0 AS cor0
----
2134
3396
8145

skipif mysql # not compatible
query I rowsort label-2615
SELECT col2 * 51 / col0 + col0 * col1 FROM tab0 AS cor0
----
2134
3396
8145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2616
SELECT ALL + col2 * CAST( NULL AS DECIMAL ) * - 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + col2 * CAST ( NULL AS REAL ) * - 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 88 AS col2 FROM tab1 AS cor0
----
152
168
91

query I rowsort
SELECT + 13 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT + col2 + - 89 * col1 FROM tab0 cor0
----
-7621
-8017
-8632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col1 FROM tab0, tab2 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT 89 * + col1 AS col1 FROM tab2 AS cor0
----
1513
2759
5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 1 * col0 col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT + col1 * 3 DIV + col0 + 46 * - 47 AS col0 FROM tab0 AS cor0
----
-2152
-2154
-2159

skipif mysql # not compatible
query I rowsort label-2623
SELECT + col1 * 3 / + col0 + 46 * - 47 AS col0 FROM tab0 AS cor0
----
-2152
-2154
-2159

query I rowsort
SELECT DISTINCT ( col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col1 * - ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - 64 * col2 AS col1 FROM tab0 AS cor0
----
2112
5248
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + cor0.col2 * col2 col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + col0 * 1 - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col0 * 64 FROM tab1 cor0
----
-192
-4096
-5120

query I rowsort
SELECT - + 79 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT DISTINCT - 29 * - 55 FROM tab1 AS cor0
----
1595

query I rowsort
SELECT + - 6 * col0 + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-9
3712
5920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 4 ) * + col1 col1 FROM tab0 AS cor0
----
344
364
388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2634
SELECT ALL col0 * + CAST( col1 AS SIGNED ) * tab0.col1 + - 99 FROM tab0
----
177405
329216
736910

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL col0 * + CAST ( col1 AS INTEGER ) * tab0.col1 + - 99 FROM tab0
----
177405
329216
736910

query I rowsort
SELECT tab1.col1 * - col1 * 4 FROM tab1
----
-2704
-400
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT DISTINCT + col2 * col0 DIV col2 + - col1 DIV - col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + col2 * col0 / col2 + - col1 / - col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab0 cor0
----
-49

query I rowsort
SELECT DISTINCT cor0.col1 * col1 + - col1 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT ALL 40 + + col0 * 15 AS col2 FROM tab0 AS cor0
----
1375
400
565

query I rowsort
SELECT ALL ( col1 ) * col0 + - 80 AS col0 FROM tab1 AS cor0
----
-2
560
960

query I rowsort
SELECT DISTINCT + ( col0 ) + col2 * - col0 + + col1 FROM tab0 AS cor0
----
-682
-7118
97

query I rowsort
SELECT DISTINCT 0 * + col1 FROM tab0 cor0
----
0

query I rowsort
SELECT - 40 AS col0 FROM tab2 cor0
----
-40
-40
-40

query I rowsort
SELECT - cor0.col2 * col2 * + col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT - + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2645
SELECT - + col0 / col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + col1 * col2 + 67 AS col2 FROM tab0 AS cor0
----
164
2905
7529

query I rowsort
SELECT - 71 * col2 FROM tab0 AS cor0
----
-2343
-5822
-71

query I rowsort
SELECT ALL cor0.col1 + + col1 * 24 AS col2 FROM tab1 cor0
----
250
325
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2649
SELECT DISTINCT 31 + - col0 DIV - col1 FROM tab2 AS cor0
----
31
32
35

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT 31 + - col0 / - col1 FROM tab2 AS cor0
----
31
32
35

query I rowsort
SELECT ALL 83 - col1 AS col1 FROM tab0
----
-14
-3
-8

query I rowsort
SELECT - cor1.col1 * cor1.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT - ( + col1 ) * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 90 * - 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1710

query I rowsort
SELECT ALL - col0 + - cor0.col2 + + col1 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT ALL col1 + - 33 AS col2 FROM tab1 AS cor0
----
-20
-23
-7

query I rowsort
SELECT ALL - col2 + 73 * - col2 AS col0 FROM tab2 AS cor0
----
-1924
-1998
-2812

onlyif mysql # use DIV operator for integer division
query I rowsort label-2657
SELECT tab2.col1 * - tab2.col2 + - ( col0 ) * col2 DIV col0 AS col2 FROM tab2
----
-1560
-684
-864

skipif mysql # not compatible
query I rowsort label-2657
SELECT tab2.col1 * - tab2.col2 + - ( col0 ) * col2 / col0 AS col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT + col2 * col0 + 22 FROM tab0
----
57
7320
814

query I rowsort
SELECT + 76 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

query I rowsort
SELECT DISTINCT - col2 * 61 + + col2 FROM tab1
----
-3240
-3420
-5760

query I rowsort
SELECT - 41 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT + col2 * - 29 + col2 - + col0 FROM tab2 AS cor0
----
-1143
-763
-806

query I rowsort
SELECT - + col0 + 18 FROM tab2 cor0
----
-60
-61
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 64 col2 FROM tab1 AS cor0
----
192
4096
5120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2665
SELECT ALL - col1 * CAST( - col0 AS SIGNED ) + col1 + - 83 col0 FROM tab2 AS cor0
----
1277
165
4578

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL - col1 * CAST ( - col0 AS INTEGER ) + col1 + - 83 col0 FROM tab2 AS cor0
----
1277
165
4578

query I rowsort
SELECT + col2 + ( col0 * + col2 + - ( col2 ) ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col0 + ( col0 ) - col1 FROM tab0 cor0
----
-27
-38
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT - - col2 * ( col2 + - col2 ) DIV - col0 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2668
SELECT - - col2 * ( col2 + - col2 ) / - col0 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 + col2 - col1 * cor0.col0 * col1 FROM tab2 AS cor0
----
-22776
-271433
-6669

query I rowsort
SELECT + 70 * 70 + + col0 AS col1 FROM tab2
----
4907
4978
4979

query I rowsort
SELECT col2 + col0 * + col0 AS col0 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT ALL - col0 - 90 AS col0 FROM tab2 AS cor0
----
-168
-169
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2673
SELECT DISTINCT - - cor0.col0 DIV - ( col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - - cor0.col0 / - ( col1 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 68 * col2 * col0 FROM tab2 AS cor0
----
12852
137904
204136

query I rowsort
SELECT ALL - 77 * col1 - col1 * - cor0.col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
118807
31720
73814

query I rowsort
SELECT DISTINCT + col2 * col1 * col1 - cor0.col0 AS col0 FROM tab1 AS cor0
----
16144
36501
5636

onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT DISTINCT - + col2 * - col1 - col1 DIV col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - + col2 * - col1 - col1 / col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 74 - - col0 AS col1 FROM tab1 cor0
----
138
154
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT - 39 DIV col1 + - col2 AS col1 FROM tab1
----
-55
-60
-99

skipif mysql # not compatible
query I rowsort label-2679
SELECT - 39 / col1 + - col2 AS col1 FROM tab1
----
-55
-60
-99

query I rowsort
SELECT ALL + 72 + - cor0.col2 FROM tab0 AS cor0
----
-10
39
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2681
SELECT DISTINCT - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 * - ( col0 * - col0 ) FROM tab2 cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2683
SELECT cor0.col2 DIV - col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2683
SELECT cor0.col2 / - col1 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2684
SELECT DISTINCT + 1 DIV + cor0.col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + 1 / + cor0.col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT 52 + cor0.col1 DIV - col1 FROM tab1 cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-2685
SELECT 52 + cor0.col1 / - col1 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT ALL - - 92 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT col1 * col2 + + 48 FROM tab0
----
145
2886
7510

query I rowsort
SELECT + tab1.col2 + 16 AS col2 FROM tab1
----
112
70
73

query I rowsort
SELECT + ( - col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + cor0.col1 * cor0.col2 + + col2 + 91 * - cor0.col2 FROM tab0 AS cor0
----
-132
7
82

query I rowsort
SELECT 70 * + col1 - - 80 AS col2 FROM tab2 AS cor0
----
1270
2250
4210

onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT + col2 DIV col2 col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2692
SELECT + col2 / col2 col0 FROM tab1
----
1
1
1

query I rowsort
SELECT + - col1 + - ( + col2 ) + col0 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT - col0 + 25 * + 58 * + col2 FROM tab0 AS cor0
----
118811
1415
47826

query I rowsort
SELECT - + 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2696
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + - tab0.col2 AS col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT col0 * + ( ( + cor0.col2 ) + + col1 ) FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT + col2 + col0 + col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 + 34 AS col1 FROM tab1 AS cor0
----
-18
14
8

query I rowsort
SELECT tab1.col2 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - 9 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 01b3303cca4ea3b91d315ef2b5ea24ee

query I rowsort
SELECT ALL 14 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT 65 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT DISTINCT + col0 * 26 * cor0.col1 AS col1 FROM tab0 AS cor0
----
210574
53664
88270

query I rowsort
SELECT DISTINCT col0 - col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( col0 ) col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - 33 + col0 * + col0 * col2 FROM tab0
----
1192
18975
649489

query I rowsort
SELECT 51 * 47 - + col1 AS col1 FROM tab1
----
2371
2384
2387

query I rowsort
SELECT col2 * + tab1.col1 * - 2 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT 85 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT tab2.col0 + + ( - 95 ) FROM tab2, tab1, tab2 cor0, tab0
----
81 values hashing to bc631c114f1a187649709f9ff0dab3f4

query I rowsort
SELECT DISTINCT + 65 * + col2 * + col2 AS col0 FROM tab1
----
189540
211185
599040

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT - col2 * + col1 * + col1 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT + tab1.col2 * - col1 DIV - ( col1 ) AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2717
SELECT + tab1.col2 * - col1 / - ( col1 ) AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT col0 + + col2 * 42 FROM tab2 AS cor0
----
1141
1170
1675

onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT col2 + cor0.col0 DIV col1 AS col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-2719
SELECT col2 + cor0.col0 / col1 AS col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT - col2 * col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
-620
3068
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2721
SELECT - - col1 + CAST( - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2721
SELECT - - col1 + CAST ( - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - 92 FROM tab0, tab1, tab2 cor0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col0 col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT cor0.col1 * 38 + + cor0.col0 FROM tab2 cor0
----
1185
2320
725

query I rowsort
SELECT + col2 + + ( ( col0 ) ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ( + col1 ) * + col2 * 20 AS col0 FROM tab1
----
11400
24960
28080

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT - col0 DIV ( col2 ) AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT - col0 / ( col2 ) AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT col2 * - col2 + + ( - col1 + cor0.col2 ) FROM tab2 AS cor0
----
-1423
-709
-733

query I rowsort
SELECT DISTINCT + col1 + + col1 * col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - 40 + + col2 AS col1 FROM tab2 AS cor0
----
-13
-14
-2

query I rowsort
SELECT col2 * - col1 + cor0.col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + ( - col0 ) + + col2 * col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - 27 * col0 * - col1 AS col1 FROM tab1
----
17280
2106
28080

query I rowsort
SELECT DISTINCT col2 + + col1 * col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + 22 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1067
-6702
21

query I rowsort
SELECT ALL - 24 * + col0 AS col2 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2739
SELECT ALL - col0 / + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - col0 / + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2740
SELECT - + col2 DIV + ( ( col0 ) + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
0
0
41

skipif mysql # not compatible
query I rowsort label-2740
SELECT - + col2 / + ( ( col0 ) + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
0
0
41

query I rowsort
SELECT + col0 + 28 * + ( - col0 + 10 ) * - col0 AS col1 FROM tab0 AS cor0
----
196957
24535
9432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2742
SELECT - col2 + - CAST( 22 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-1886
-23
-759

skipif mysql # not compatible
query I rowsort label-2742
SELECT - col2 + - CAST ( 22 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT - col0 * + 57 AS col0 FROM tab1 AS cor0
----
-171
-3648
-4560

query I rowsort
SELECT DISTINCT - + col1 * ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col2 + 70 * - ( + col2 ) + - 94 FROM tab0 AS cor0
----
-163
-2371
-5752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * cor0.col0 col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col1 * + 5 AS col0 FROM tab2 AS cor0
----
-155
-295
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2748
SELECT CAST( NULL AS DECIMAL ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT CAST ( NULL AS REAL ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 53 AS col2 FROM tab1 AS cor0
----
-1378
-530
-689

query I rowsort
SELECT ALL + 25 * col2 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT ALL col0 * 67 * + col2 AS col0 FROM tab1 AS cor0
----
10854
244416
514560

query I rowsort
SELECT + cor0.col0 * 76 AS col1 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT - ( 8 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT - ( cor0.col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + + col2 + ( col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + - col0 AS col1 FROM tab0 cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-2757
SELECT DISTINCT + col1 DIV - 73 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + col1 / - 73 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL 40 + + col2 FROM tab0 cor0
----
122
41
73

query I rowsort
SELECT ALL - 95 + - ( + col1 ) FROM tab1 AS cor0
----
-105
-108
-121

query I rowsort
SELECT + col2 * - 22 * - col1 AS col0 FROM tab0 AS cor0
----
164164
2134
62436

query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 * col1 * + 70 AS col1 FROM tab2 AS cor0
----
-107458
-45299
-58597

query I rowsort
SELECT ALL - - ( ( - col2 ) ) * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + + 93 * 0 + col2 * - 36 FROM tab0 cor0
----
-1188
-2952
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2764
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT col1 * - 22 FROM tab1
----
-220
-286
-572

query I rowsort
SELECT ALL - ( ( + col1 ) ) + - cor0.col1 * + col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL - 65 * + 27 AS col0 FROM tab0 AS cor0
----
-1755
-1755
-1755

query I rowsort
SELECT ( col1 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 - - 69 AS col2 FROM tab2
----
100
128
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT ALL col1 DIV + 66 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL col1 / + 66 AS col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * col1 col1 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT DISTINCT - 69 * + col0 + col0 FROM tab0 AS cor0
----
-1632
-2380
-6052

onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT - - 43 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT - - 43 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2775
SELECT - - CAST( NULL AS SIGNED ) * + 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2775
SELECT - - CAST ( NULL AS INTEGER ) * + 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL ( col0 ) + + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col1 + - ( col2 ) * - col2 - + 9 FROM tab1 AS cor0
----
2933
3250
9220

onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT col1 * - col2 + + 44 * col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1196
-531
-612

skipif mysql # not compatible
query I rowsort label-2778
SELECT col1 * - col2 + + 44 * col2 / + col0 AS col2 FROM tab1 AS cor0
----
-1196
-531
-612

query I rowsort
SELECT DISTINCT - - col1 + + 71 FROM tab2 AS cor0
----
102
130
88

query I rowsort
SELECT 52 + col0 AS col1 FROM tab1
----
116
132
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab1.col0 ) col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - col1 + - ( 42 ) AS col0 FROM tab2
----
-101
-59
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2783
SELECT col0 + + CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT col0 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col0 * + col2 AS col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT + col1 - + ( - col2 ) FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT DISTINCT - - col2 * 13 + 28 DIV col1 + + col1 FROM tab2 AS cor0
----
382
397
512

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT - - col2 * 13 + 28 / col1 + + col1 FROM tab2 AS cor0
----
382
397
512

query I rowsort
SELECT ALL col1 + 12 AS col1 FROM tab0 cor0
----
103
109
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + ( + col1 ) * col2 + + cor0.col0 col2 FROM tab2 AS cor0
----
1690
804
851

query I rowsort
SELECT DISTINCT cor0.col2 + ( col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL col0 + 72 FROM tab2 AS cor0
----
150
151
79

query I rowsort
SELECT ALL - + cor0.col0 + col0 * + 21 AS col2 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT DISTINCT + 94 * - tab1.col0 * col2 FROM tab1
----
-15228
-342912
-721920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2793
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 * + cor0.col0 col1 FROM tab1 cor0
----
120
2560
3200

query I rowsort
SELECT + 94 * col2 * 10 + col2 AS col2 FROM tab1
----
50814
53637
90336

query I rowsort
SELECT - ( + col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + + 13 + col1 FROM tab1 cor0
----
23
26
39

query I rowsort
SELECT ALL ( col0 ) * + col2 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT 99 DIV 27 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-2800
SELECT 99 / 27 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT col2 + - cor0.col2 * 96 FROM tab1 AS cor0
----
-5130
-5415
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT DISTINCT + cor0.col1 DIV + col1 + + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + cor0.col1 / + col1 + + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT + - ( - 19 ) + - col0 * col2 FROM tab0 AS cor0
----
-16
-7279
-773

query I rowsort
SELECT DISTINCT + 97 * + cor0.col2 FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT + cor0.col1 * col2 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT + col2 + + 76 DIV - col2 AS col1 FROM tab1 AS cor0
----
53
56
96

skipif mysql # not compatible
query I rowsort label-2806
SELECT + col2 + + 76 / - col2 AS col1 FROM tab1 AS cor0
----
53
56
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2807
SELECT ALL - col0 + - col2 DIV - col2 AS col0 FROM tab0 cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - col0 + - col2 / - col2 AS col0 FROM tab0 cor0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2808
SELECT - col2 - col1 * - col0 DIV + 1 FROM tab1 AS cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-2808
SELECT - col2 - col1 * - col0 / + 1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + col2 * 24 + + col1 FROM tab0 AS cor0
----
121
2059
878

query I rowsort
SELECT ALL - 21 * ( + col1 ) + 76 AS col2 FROM tab1
----
-134
-197
-470

query I rowsort
SELECT ( - 91 + + col2 ) AS col2 FROM tab1
----
-34
-37
5

query I rowsort
SELECT 79 * - col0 FROM tab0
----
-1896
-2765
-7031

query I rowsort
SELECT DISTINCT - 3 * - 41 AS col1 FROM tab2
----
123

query I rowsort
SELECT 89 * + col1 FROM tab1
----
1157
2314
890

query I rowsort
SELECT col2 * - 57 FROM tab1
----
-3078
-3249
-5472

query I rowsort
SELECT col0 * col0 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - 32 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1728
-1824
-3072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2818
SELECT - ( col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT - ( col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col2 + + ( col1 ) ) FROM tab2
----
-21
33
4

query I rowsort
SELECT cor0.col0 * + col1 + - ( col2 * - col0 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
15488
2942
3527

query I rowsort
SELECT - - 3 + - 47 AS col0 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL - col0 * col2 + - col0 AS col1 FROM tab2
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2823
SELECT ALL + col0 - ( - 33 ) DIV - col1 FROM tab1 AS cor0
----
2
61
78

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL + col0 - ( - 33 ) / - col1 FROM tab1 AS cor0
----
2
61
78

query I rowsort
SELECT - 90 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 col1 FROM tab2, tab2 AS cor0
----
17

query I rowsort
SELECT - cor0.col1 * col2 - + col1 * - 31 FROM tab0 AS cor0
----
-172
-4641
2910

query I rowsort
SELECT - + ( + 31 ) FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT - + 34 - col1 AS col2 FROM tab0 AS cor0
----
-120
-125
-131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 col2 FROM tab2, tab0 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2830
SELECT + ( col2 ) * col2 - CAST( + col2 AS SIGNED ) * cor0.col1 * - 23 col1 FROM tab1 AS cor0
----
16359
35208
37920

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2830
SELECT + ( col2 ) * col2 - CAST ( + col2 AS INTEGER ) * cor0.col1 * - 23 col1 FROM tab1 AS cor0
----
16359
35208
37920

query I rowsort
SELECT - - cor0.col1 * cor0.col2 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - 29 - + col2 AS col0 FROM tab1 AS cor0
----
-125
-83
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT - 68 DIV - col0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2833
SELECT - 68 / - col0 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT col0 * 51 * col1 - 61 * - 78 FROM tab2 AS cor0
----
15825
239460
73251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 49 col0 FROM tab0 AS cor0
----
131
50
82

query I rowsort
SELECT + col1 * + 57 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT ALL + + cor0.col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 35 * - 99 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03e0a1fec12529a2553e518261dcca8c

query I rowsort
SELECT 2 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT - + col1 * - col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col1 * col1 * + col0 AS col2 FROM tab0 cor0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 66 col2 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT 52 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT ALL ( + 1 ) + col2 * 10 AS col2 FROM tab2
----
261
271
381

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2845
SELECT ALL ( + ( + col2 ) ) + CAST( NULL AS SIGNED ) / - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL ( + ( + col2 ) ) + CAST ( NULL AS INTEGER ) / - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 93 + - col1 AS col2 FROM tab2 AS cor0
----
-110
-124
-152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2847
SELECT ALL - - col1 + - col2 * CAST( + 73 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-105395
-49289
-53186

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - - col1 + - col2 * CAST ( + 73 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-105395
-49289
-53186

query I rowsort
SELECT DISTINCT + 25 * col0 + 38 AS col2 FROM tab2 cor0
----
1988
2013
213

query I rowsort
SELECT ALL + col0 * col0 + + cor0.col0 * + 61 FROM tab0 AS cor0
----
13350
2040
3360

query I rowsort
SELECT ALL - col1 * col2 + - col1 * + col1 AS col1 FROM tab0 cor0
----
-10234
-15743
-9506

query I rowsort
SELECT DISTINCT 35 * col0 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT DISTINCT - 18 * cor0.col0 + + col1 + col2 AS col1 FROM tab2 AS cor0
----
-1319
-1367
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2853
SELECT ALL col0 * - cor0.col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL col0 * - cor0.col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + col1 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + - 96 - col1 FROM tab1 AS cor0
----
-106
-109
-122

query I rowsort
SELECT - col1 + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - 12 FROM tab2 cor0
----
-12

query I rowsort
SELECT - col1 * col2 + - col1 AS col1 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL + col0 + - col0 * + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2860
SELECT ALL 23 * cor0.col2 + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
120
1977
845

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL 23 * cor0.col2 + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
120
1977
845

query I rowsort
SELECT DISTINCT + 15 * col2 * 27 AS col0 FROM tab0 AS cor0
----
13365
33210
405

query I rowsort
SELECT + - cor0.col1 * - cor0.col1 AS col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to b973951e6968e8789a8b4cff6710b2de

query I rowsort
SELECT 6 * + col1 FROM tab1
----
156
60
78

query I rowsort
SELECT 95 + col2 AS col2 FROM tab1
----
149
152
191

query I rowsort
SELECT ALL + ( + col0 ) * + ( - 22 ) + col2 FROM tab1 AS cor0
----
-12
-1351
-1664

query I rowsort
SELECT ALL - cor0.col2 - col0 * col1 * + 52 AS col2 FROM tab0 cor0
----
-107361
-176541
-421230

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT ALL + ( - col0 ) DIV - col0 + col1 * + col0 FROM tab2 AS cor0
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + ( - col0 ) / - col0 + col1 * + col0 FROM tab2 AS cor0
----
1344
218
4603

query I rowsort
SELECT ALL - col2 * - col2 + col1 AS col0 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL col0 + - 93 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
8108
8643
9153

query I rowsort
SELECT DISTINCT + col1 - + 18 AS col1 FROM tab0 cor0
----
68
73
79

query I rowsort
SELECT cor0.col1 * col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT + cor0.col2 * + ( + 73 * + col0 + + col0 ) FROM tab2 AS cor0
----
13986
150072
222148

query I rowsort
SELECT ALL - col1 + 23 FROM tab2 AS cor0
----
-36
-8
6

query I rowsort
SELECT DISTINCT - col2 - 75 AS col1 FROM tab0 AS cor0
----
-108
-157
-76

query I rowsort
SELECT ALL + col2 + + 30 AS col2 FROM tab1 AS cor0
----
126
84
87

query I rowsort
SELECT cor0.col0 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col1 * + ( - col1 ) + col1 * col0 FROM tab2 AS cor0
----
-744
1054
1121

onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT DISTINCT col0 * + col0 + col2 DIV col1 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT col0 * + col0 + col2 / col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL - 7 + - 83 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT tab1.col0 * col2 + col0 * col0 AS col0 FROM tab1
----
14080
171
7744

query I rowsort
SELECT 16 + col2 AS col2 FROM tab2
----
42
43
54

query I rowsort
SELECT + 61 * col0 AS col2 FROM tab2
----
427
4758
4819

query I rowsort
SELECT col2 + - cor0.col1 * - col2 * + col1 FROM tab2 AS cor0
----
11020
25974
90532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + 5 * col2 * col1 col2 FROM tab2
----
3213
4154
7611

query I rowsort
SELECT - col1 + - col2 - col2 * col0 FROM tab1 AS cor0
----
-242
-3715
-7789

onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT ALL - - 1 DIV - ( - col1 * - col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - - 1 / - ( - col1 * - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - 30 ) FROM tab2 AS cor0
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT ( col0 ) + col2 + + 18 DIV - col0 AS col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-2888
SELECT ( col0 ) + col2 + + 18 / - col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ( col1 ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT 29 + cor0.col0 AS col2 FROM tab2 AS cor0
----
107
108
36

query I rowsort
SELECT ALL ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col1 * - 75 * col2 AS col0 FROM tab1 cor0
----
-105300
-42750
-93600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab1, tab1 AS cor0
----
40

query I rowsort
SELECT ALL - 3 + col0 FROM tab1 AS cor0
----
0
61
77

query I rowsort
SELECT col2 * + col1 + col1 * + col0 + - col2 * + cor0.col2 FROM tab2 AS cor0
----
325
545
5460

query I rowsort
SELECT DISTINCT - col2 + 8 FROM tab1 AS cor0
----
-46
-49
-88

query I rowsort
SELECT col1 - + 91 AS col1 FROM tab1 AS cor0
----
-65
-78
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col0 ) ) * + 47 col1 FROM tab0 cor0
----
1128
1645
4183

query I rowsort
SELECT - 44 + + 49 AS col0 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT 51 + col1 - + col2 FROM tab0
----
104
147
60

query I rowsort
SELECT col1 * col2 * + col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL + 85 + + col2 FROM tab1
----
139
142
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT + tab1.col0 DIV - cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f6466e9385bc0b74da0d04b945cd7395

skipif mysql # not compatible
query I rowsort label-2903
SELECT + tab1.col0 / - cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f6466e9385bc0b74da0d04b945cd7395

onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT DISTINCT ( + col0 ) DIV tab0.col2 + col1 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT ( + col0 ) / tab0.col2 + col1 FROM tab0
----
132
86
92

query I rowsort
SELECT + 79 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT - + col2 * + 7 + + col0 AS col1 FROM tab0 AS cor0
----
-207
-485
28

query I rowsort
SELECT ALL tab0.col0 + - 95 * tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5c2d7b73f13e4ff198602133d5f6692f

query I rowsort
SELECT tab2.col1 + tab2.col0 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 45123676d9d30ad294b9a8d42384b2df

query I rowsort
SELECT - 51 * - 15 AS col1 FROM tab0
----
765
765
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + + col2 + col0 col2 FROM tab1 AS cor0
----
148
212
267

query I rowsort
SELECT + col0 * + col2 + - cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
-1453
-772
2713

query I rowsort
SELECT + - 27 AS col0 FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT + - 6 * 83 + col2 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
-498
-498
-498

skipif mysql # not compatible
query I rowsort label-2913
SELECT + - 6 * 83 + col2 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
-498
-498
-498

query I rowsort
SELECT - 22 + - 47 AS col1 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2915
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2915
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2916
SELECT ALL - 50 * - col0 DIV + col0 col0 FROM tab0 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - 50 * - col0 / + col0 col0 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT ALL - col2 * - cor0.col2 * + col2 FROM tab2 cor0
----
17576
19683
54872

query I rowsort
SELECT + - col2 * col1 + 76 FROM tab1 AS cor0
----
-1172
-1328
-494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - cor0.col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - - cor0.col2 * ( cor0.col2 ) * col0 + - cor0.col0 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT col1 * 54 * col0 FROM tab2 AS cor0
----
11718
248508
72522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2922
SELECT - - cor0.col2 - CAST( + col2 + col1 AS DECIMAL ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT - - cor0.col2 - CAST ( + col2 + col1 AS REAL ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 93 + - tab1.col1 AS col0 FROM tab1
----
4996
5291
8915

onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT ALL + col0 DIV 48 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + col0 / 48 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - cor0.col0 - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - col2 * 91 AS col0 FROM tab2 cor0
----
-2366
-2457
-3458

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT ALL + + cor0.col1 DIV - 97 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL + + cor0.col1 / - 97 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col1 * - col0 - - col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2929
SELECT + - CAST( 24 AS SIGNED ) + + col1 * + ( + 51 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
32922
42663
78210

skipif mysql # not compatible
query I rowsort label-2929
SELECT + - CAST ( 24 AS INTEGER ) + + col1 * + ( + 51 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
32922
42663
78210

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + + col2 + + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT 0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + + col2 col0 FROM tab1 cor0
----
2970
3306
9312

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT + col0 * - col1 * col1 + col1 AS col2 FROM tab0 AS cor0
----
-177418
-329218
-736918

query I rowsort
SELECT DISTINCT col0 - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + + 22 + - cor0.col2 * col2 FROM tab0 AS cor0
----
-1067
-6702
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT ALL + - ( - col1 ) DIV - col0 + ( + col0 ) - col1 FROM tab1 AS cor0
----
-31
54
67

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL + - ( - col1 ) / - col0 + ( + col0 ) - col1 FROM tab1 AS cor0
----
-31
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 32 * - col0 AS col1 FROM tab1
----
-2048
-2560
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT ALL - cor0.col0 + + cor0.col0 DIV - CAST( 81 AS SIGNED ) FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - cor0.col0 + + cor0.col0 / - CAST ( 81 AS INTEGER ) FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2942
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2942
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( col1 ) * + col2 + 38 FROM tab1 AS cor0
----
1286
1442
608

query I rowsort
SELECT DISTINCT ( tab2.col1 * tab2.col1 ) FROM tab2
----
289
3481
961

query I rowsort
SELECT + col0 * - 82 FROM tab0 AS cor0
----
-1968
-2870
-7298

query I rowsort
SELECT ALL col0 * + col0 + + cor0.col1 * cor0.col0 FROM tab2 cor0
----
10686
266
7584

query I rowsort
SELECT ALL - + col2 + col2 * col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT 96 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT DISTINCT + + 74 + + col1 FROM tab2 AS cor0
----
105
133
91

query I rowsort
SELECT DISTINCT - ( + col1 ) + 69 + ( + col1 ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 + tab2.col1 * col2 AS col0 FROM tab2 WHERE ( - col2 * col2 ) NOT BETWEEN col1 AND col2 * col0
----
1612
725
844

query I rowsort
SELECT DISTINCT tab1.col0 * col2 AS col2 FROM tab1 WHERE NOT ( NULL ) <> - col0
----

query I rowsort
SELECT ALL 22 * col1 AS col2 FROM tab1 AS cor0
----
220
286
572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2955
SELECT - col2 * - col1 * - CAST( col2 AS SIGNED ) + - col0 * 29 AS col2 FROM tab1 AS cor0
----
-122128
-34346
-75903

skipif mysql # not compatible
query I rowsort label-2955
SELECT - col2 * - col1 * - CAST ( col2 AS INTEGER ) + - col0 * 29 AS col2 FROM tab1 AS cor0
----
-122128
-34346
-75903

onlyif mysql # use DIV operator for integer division
query I rowsort label-2956
SELECT - col1 * - cor0.col0 + ( + col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
2066
3492
8100

skipif mysql # not compatible
query I rowsort label-2956
SELECT - col1 * - cor0.col0 + ( + col1 ) / col2 AS col1 FROM tab0 AS cor0
----
2066
3492
8100

query I rowsort
SELECT col1 * + 38 * 31 FROM tab2 AS cor0
----
20026
36518
69502

query I rowsort
SELECT ALL - + cor0.col0 * col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + 8 * - col0 FROM tab0
----
-192
-280
-712

query I rowsort
SELECT ALL 36 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT - ( col0 ) DIV ( col0 * - col0 ) + ( - col0 ) * col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-2961
SELECT - ( col0 ) / ( col0 * - col0 ) + ( - col0 ) * col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT DISTINCT - 55 * col2 DIV ( + 53 * + col1 ) FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT - 55 * col2 / ( + 53 * + col1 ) FROM tab2
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 * col1 col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + tab2.col2 * tab2.col2 - col2 FROM tab2
----
1406
650
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 - + col1 * - col2 * tab0.col2 col2 FROM tab0
----
194
619346
96492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 - col0 col2 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL col0 - - col0 * col0 * + col1 AS col0 FROM tab1 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT ALL col0 * - col2 - col1 DIV - tab2.col1 col2 FROM tab2
----
-188
-2027
-3001

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL col0 * - col2 - col1 / - tab2.col1 col2 FROM tab2
----
-188
-2027
-3001

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE - col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = col1 + col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 * col1 + col2 * + col1 AS col1 FROM tab2
----
1054
1989
6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT tab0.col1 * - col2 DIV + tab0.col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2972
SELECT tab0.col1 * - col2 / + tab0.col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col0 + - col1 + + col1 FROM tab1
----
3
64
80

query I rowsort
SELECT + col2 * - col2 * col1 AS col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL col1 * tab2.col1 + + col2 * - col0 FROM tab2 WHERE col1 - + tab2.col2 = NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 - + col2 AS col2 FROM tab0
----
0
1056
6642

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT + col2 DIV col0 + col1 AS col1 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-2978
SELECT + col2 / col0 + col1 AS col1 FROM tab1
----
10
14
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT DISTINCT col2 * + col1 + + col1 + tab1.col1 DIV col2 FROM tab1
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT col2 * + col1 + + col1 + tab1.col1 / col2 FROM tab1
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 + col2 col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col2 - + col2 AS col1 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + col2 * col2 + col2 AS col1 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT col1 + - col1 + + tab1.col1 FROM tab1
----
10
13
26

query I rowsort
SELECT + col1 * - tab1.col0 + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT ALL col0 + + col2 - col0 * + col1 AS col0 FROM tab2
----
-1226
-183
-4498

query I rowsort
SELECT - col1 * - col2 * - col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL - col2 * - tab1.col0 * + col2 AS col2 FROM tab1
----
207936
737280
8748

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> ( col0 )
----

query I rowsort
SELECT DISTINCT col1 * col0 * col1 AS col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + tab2.col2 + tab2.col2 * col2 * - col1 FROM tab2
----
-22572
-24510
-39858

query I rowsort
SELECT DISTINCT + col2 * - tab1.col0 + + tab1.col2 AS col1 FROM tab1
----
-108
-3591
-7584

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( col2 )
----

query I rowsort
SELECT ALL tab0.col0 * col1 * col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL + ( col0 ) + + col0 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL + 46 + + col2 FROM tab0
----
128
47
79

query I rowsort
SELECT DISTINCT - 70 * col1 + - ( ( col0 ) ) * 83 * - 46 AS col0 FROM tab2 AS cor0
----
24556
293674
300432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2999
SELECT DISTINCT + + ( + col1 ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + + ( + col1 ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 43 * + col0 + col0 * - 98 AS col1 FROM tab0 cor0
----
-12549
-3384
-4935

query I rowsort
SELECT DISTINCT 92 * col0 - - 32 AS col0 FROM tab2 AS cor0
----
676
7208
7300

query I rowsort
SELECT col2 * col1 + 26 AS col2 FROM tab0 AS cor0
----
123
2864
7488

query I rowsort
SELECT - 66 * col2 - col0 FROM tab2 AS cor0
----
-1789
-1794
-2587

onlyif mysql # use DIV operator for integer division
query I rowsort label-3004
SELECT - - col1 DIV col1 + + col2 * + col1 AS col2 FROM tab2 cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-3004
SELECT - - col1 / col1 + + col2 * + col1 AS col2 FROM tab2 cor0
----
1535
647
838

query I rowsort
SELECT + + col0 * + col0 + + ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT ALL + ( + cor0.col0 ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + col2 * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 30 * + col2 FROM tab2 AS cor0
----
-1140
-780
-810

query I rowsort
SELECT DISTINCT 19 FROM tab1, tab1 cor0
----
19

query I rowsort
SELECT ALL - 14 FROM tab2, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 35 col0 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT - col2 * ( - 73 ) * - col1 AS col1 FROM tab0 AS cor0
----
-207174
-544726
-7081

query I rowsort
SELECT ALL - col1 + cor0.col0 * col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT ALL col0 + + ( + col1 ) DIV col0 AS col1 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL col0 + + ( + col1 ) / col0 AS col1 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT + col2 * - col0 * - ( col1 ) FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3017
SELECT DISTINCT - cor0.col2 - + CAST( 82 AS SIGNED ) * cor0.col2 col1 FROM tab0 AS cor0
----
-2739
-6806
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - cor0.col2 - + CAST ( 82 AS INTEGER ) * cor0.col2 col1 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT DISTINCT + - col0 * 10 FROM tab1 AS cor0
----
-30
-640
-800

query I rowsort
SELECT - col0 * 18 AS col1 FROM tab0 AS cor0
----
-1602
-432
-630

query I rowsort
SELECT ALL - - col2 + col0 * ( + col2 + 34 ) FROM tab1 AS cor0
----
10496
318
5881

query I rowsort
SELECT + col1 + + 97 FROM tab0 cor0
----
183
188
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3022
SELECT DISTINCT + - 89 DIV + cor0.col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + - 89 / + cor0.col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL + - ( + col2 ) + col0 * - col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT DISTINCT + - ( + col2 ) + col1 + + 65 * 19 AS col2 FROM tab2 AS cor0
----
1214
1239
1268

query I rowsort
SELECT + 69 + col0 FROM tab2 AS cor0
----
147
148
76

query I rowsort
SELECT DISTINCT + 30 + + col1 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT - - 62 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
-175956
-462644
-6014

query I rowsort
SELECT - + 68 * 73 * col1 + 70 AS col0 FROM tab1 AS cor0
----
-128994
-49570
-64462

query I rowsort
SELECT - ( - col0 ) * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT 39 DIV - col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT 39 / - col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col1 + col2 - - col0 AS col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ( + col0 ) * - col2 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 41 + tab0.col2 + col1 FROM tab0
----
139
160
214

query I rowsort
SELECT DISTINCT + 33 + 13 FROM tab1
----
46

query I rowsort
SELECT ( tab1.col0 ) + col0 AS col1 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + cor0.col2 col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - 42 * col1 * - col2 FROM tab2 AS cor0
----
27132
35154
64428

query I rowsort
SELECT DISTINCT + 65 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT 66 + cor0.col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT - 74 + + col1 AS col2 FROM tab2 AS cor0
----
-15
-43
-57

query I rowsort
SELECT + 52 * - col1 AS col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT DISTINCT + col0 * 67 AS col2 FROM tab2 AS cor0
----
469
5226
5293

query I rowsort
SELECT DISTINCT - 73 + cor0.col1 + col2 FROM tab0 AS cor0
----
100
25
46

query I rowsort
SELECT ALL - 71 * + 43 AS col1 FROM tab1 AS cor0
----
-3053
-3053
-3053

query I rowsort
SELECT ALL tab2.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT col0 * - col2 * + col1 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - tab2.col1 * + tab2.col0 - col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 cor0 WHERE NULL >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3049
SELECT DISTINCT col2 * col1 DIV col1 col2 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT col2 * col1 / col1 col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT DISTINCT - col1 + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT - col1 + col2 / col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col1 AS col1 FROM tab1 AS cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT - + cor0.col1 * col0 * - cor0.col1 + col2 FROM tab0 AS cor0
----
177537
329316
737091

onlyif mysql # use DIV operator for integer division
query I rowsort label-3054
SELECT - col0 * col1 DIV - col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3054
SELECT - col0 * col1 / - col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 + cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT col1 * - col1 + col2 * col1 FROM tab1 AS cor0
----
1079
470
728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3057
SELECT DISTINCT col1 + CAST( - 57 AS SIGNED ) * - col1 AS col1 FROM tab2
----
1798
3422
986

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT col1 + CAST ( - 57 AS INTEGER ) * - col1 AS col1 FROM tab2
----
1798
3422
986

query I rowsort
SELECT DISTINCT - col1 + + 82 FROM tab2
----
23
51
65

query I rowsort
SELECT DISTINCT cor0.col2 + ( + cor0.col2 ) FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT col2 DIV col2 + + col2 + - col0 AS col0 FROM tab0 cor0
----
-33
-6
10

skipif mysql # not compatible
query I rowsort label-3060
SELECT col2 / col2 + + col2 + - col0 AS col0 FROM tab0 cor0
----
-33
-6
10

query I rowsort
SELECT DISTINCT - - col0 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + + col0 * - col0 + ( col2 + col0 ) * + 66 * - col0 FROM tab2 cor0
----
-15757
-541476
-616279

query I rowsort
SELECT ALL - col0 + + ( - 95 ) AS col0 FROM tab0 AS cor0
----
-119
-130
-184

query I rowsort
SELECT + - col2 * cor0.col0 - col2 * - col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3065
SELECT ALL - col2 * CAST( - 30 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2460
30
990

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL - col2 * CAST ( - 30 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT ALL + col1 + - col2 * cor0.col2 FROM tab1 cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT ALL + col1 + + 12 DIV col0 FROM tab1 cor0
----
10
13
30

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + col1 + + 12 / col0 FROM tab1 cor0
----
10
13
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-3068
SELECT DISTINCT 1 DIV 77 + col2 - col1 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT 1 / 77 + col2 - col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3069
SELECT DISTINCT - - ( - col2 ) DIV col2 + + col1 AS col1 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT - - ( - col2 ) / col2 + + col1 AS col1 FROM tab0 cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 * - col0 + col2 col0 FROM tab1 AS cor0
----
273
4729
5936

query I rowsort
SELECT + cor0.col1 + 35 * - col2 FROM tab2 AS cor0
----
-1313
-851
-914

query I rowsort
SELECT DISTINCT cor0.col1 * 34 + + col2 AS col0 FROM tab1 cor0
----
397
538
938

onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT ( + 92 ) + + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
92
92
96

skipif mysql # not compatible
query I rowsort label-3073
SELECT ( + 92 ) + + col1 / col0 AS col2 FROM tab2 AS cor0
----
92
92
96

query I rowsort
SELECT DISTINCT - col0 + ( cor0.col1 ) * 95 AS col2 FROM tab0 AS cor0
----
8146
8556
9180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( col2 ) ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col2 - col1 * - col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab0 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 + + col0 col2 FROM tab1 cor0
----
104
120
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT + col2 DIV 6 + col2 FROM tab0 AS cor0
----
1
38
95

skipif mysql # not compatible
query I rowsort label-3079
SELECT + col2 / 6 + col2 FROM tab0 AS cor0
----
1
38
95

query I rowsort
SELECT ALL + - 34 AS col1 FROM tab2 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL + ( - col1 ) + + col1 * + col0 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3082
SELECT - cor0.col2 * col0 DIV ( col0 * col2 + col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT - cor0.col2 * col0 / ( col0 * col2 + col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + col1 * col0 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT ALL + - 92 * + col2 FROM tab0 AS cor0
----
-3036
-7544
-92

query I rowsort
SELECT ALL + - col0 * col1 * + col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL cor0.col2 * 75 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT ALL - - col0 * col0 + - col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT - + cor0.col2 + - ( col0 ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + + col1 - 36 AS col2 FROM tab0 AS cor0
----
50
55
61

query I rowsort
SELECT ALL - col1 + 65 + cor0.col0 FROM tab2 cor0
----
127
41
84

query I rowsort
SELECT DISTINCT - col1 * col2 - + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT + col1 * + 47 + - cor0.col2 FROM tab0 AS cor0
----
4009
4195
4558

query I rowsort
SELECT + col2 + col0 + + col2 AS col0 FROM tab2
----
130
155
61

query I rowsort
SELECT col0 + - col1 * col0 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT DISTINCT - ( - col0 ) - col2 DIV + col1 FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - ( - col0 ) - col2 / + col1 FROM tab1
----
1
59
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - col2 ) col0 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 * col1 col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT ALL - col2 DIV + cor0.col0 col0 FROM tab2 cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - col2 / + cor0.col0 col0 FROM tab2 cor0
----
-3
0
0

query I rowsort
SELECT ALL - col2 * - 65 AS col1 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ( 24 ) FROM tab2, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - 7 - col2 AS col0 FROM tab0 cor0
----
-40
-8
-89

query I rowsort
SELECT ALL col2 + - 64 + col0 FROM tab2
----
-30
40
53

query I rowsort
SELECT tab0.col1 + - tab0.col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3105
SELECT ALL col1 + + 46 * 46 DIV col2 AS col2 FROM tab0
----
116
150
2213

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL col1 + + 46 * 46 / col2 AS col2 FROM tab0
----
116
150
2213

query I rowsort
SELECT DISTINCT - col0 + - 15 * col1 * tab0.col1 FROM tab0
----
-110964
-124304
-141170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col0 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - ( 76 ) * + col2 + + 82 FROM tab1
----
-4022
-4250
-7214

query I rowsort
SELECT ALL - 62 + col2 AS col1 FROM tab0 AS cor0
----
-29
-61
20

query I rowsort
SELECT cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - 3 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT ALL - + 55 + col1 AS col1 FROM tab1 cor0
----
-29
-42
-45

query I rowsort
SELECT DISTINCT + 69 + - col1 AS col0 FROM tab0 AS cor0
----
-17
-22
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT DISTINCT - 68 DIV + col0 FROM tab2 AS cor0
----
-9
0

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT - 68 / + col0 FROM tab2 AS cor0
----
-9
0

query I rowsort
SELECT ALL + col2 + col1 * ( col1 + + col1 ) FROM tab0 AS cor0
----
14825
16644
18819

onlyif mysql # use DIV operator for integer division
query I rowsort label-3118
SELECT DISTINCT col1 * - cor0.col0 + col2 DIV + col2 AS col2 FROM tab1 cor0
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT col1 * - cor0.col0 + col2 / + col2 AS col2 FROM tab1 cor0
----
-1039
-639
-77

query I rowsort
SELECT DISTINCT - + col0 - - col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 + + col1 * col0 col0 FROM tab1 AS cor0
----
105
1067
667

query I rowsort
SELECT ALL + ( ( + col0 ) ) FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 2 * + col0 + col2 AS REAL ) FROM tab0
----
260
71
81

query I rowsort
SELECT + ( - 85 ) AS col1 FROM tab0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT + 10 DIV col2 - col2 AS col2 FROM tab0 cor0
----
-33
-82
9

skipif mysql # not compatible
query I rowsort label-3124
SELECT + 10 / col2 - col2 AS col2 FROM tab0 cor0
----
-33
-82
9

query I rowsort
SELECT ALL 88 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT - 76 * col1 - - col1 * - col0 FROM tab1 AS cor0
----
-1400
-2028
-2054

query I rowsort
SELECT ALL - col0 * + col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + + 67 FROM tab0 cor0
----
67
67
67

query I rowsort
SELECT - col1 + - ( col2 ) AS col0 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + - col1 + - 86 AS col2 FROM tab2 cor0
----
-103
-117
-145

onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT - col2 DIV col0 + + 25 FROM tab0 cor0
----
24
25
25

skipif mysql # not compatible
query I rowsort label-3131
SELECT - col2 / col0 + + 25 FROM tab0 cor0
----
24
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 19 * + col2 col1 FROM tab0 AS cor0
----
-78
1467
541

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col2 + - CAST ( + col0 AS REAL ) * col0 col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT + col2 * + ( + 74 ) AS col2 FROM tab0 cor0
----
2442
6068
74

query I rowsort
SELECT DISTINCT ( + tab0.col1 ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT 16 + 93 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bbd0ebafa22aa6749e6407ebd0864df6

query I rowsort
SELECT - 1 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * - cor0.col0 * + cor0.col0 col2 FROM tab0, tab2 cor0
----
9 values hashing to 322e006213347a790d53acf9b7a91950

query I rowsort
SELECT + 70 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT col2 + - col0 * ( col1 ) * - col0 FROM tab0 cor0
----
118826
49569
720893

query I rowsort
SELECT DISTINCT col0 + ( - ( - cor0.col2 ) ) FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + - col0 * ( - col2 + - col2 ) AS col1 FROM tab1 cor0
----
15360
324
7296

query I rowsort
SELECT ALL - + ( + col0 ) + + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - cor0.col0 + - col0 + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-655
2277
416

query I rowsort
SELECT ALL - ( col1 ) + col2 * + 37 FROM tab1 cor0
----
1972
2099
3539

query I rowsort
SELECT DISTINCT 22 + + cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
178
180
36

query I rowsort
SELECT - + ( col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col1 * - 74 FROM tab1 cor0
----
1924
740
962

query I rowsort
SELECT DISTINCT - + col0 + - col0 * - col1 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT ALL - col1 + cor0.col2 * - col1 FROM tab1 cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 46 + col2 col2 FROM tab1
----
154
160
238

query I rowsort
SELECT DISTINCT 17 * 63 FROM tab0
----
1071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col1 FROM tab0
----
47
47
47

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + - col1 + 64 col1 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT ALL + + cor0.col0 - - 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5f3a7140bcecd8bbe7958b334a07ccfa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3157
SELECT ALL CAST( NULL AS SIGNED ) / 80 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL CAST ( NULL AS INTEGER ) / 80 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 + col1 * - ( col2 ) FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL col0 + ( - col1 * - tab2.col2 ) + - 94 AS col0 FROM tab2
----
1518
631
750

query I rowsort
SELECT ALL + col1 * - col1 - + 81 * col2 FROM tab2 AS cor0
----
-3148
-3367
-5587

onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT col1 + + col0 DIV + 38 col0 FROM tab1 AS cor0
----
11
15
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3161
SELECT col1 + + col0 / + 38 col0 FROM tab1 AS cor0
----
11
15
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3162
SELECT + col0 DIV col1 + + cor0.col0 + col1 col2 FROM tab2 AS cor0
----
100
138
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3162
SELECT + col0 / col1 + + cor0.col0 + col1 col2 FROM tab2 AS cor0
----
100
138
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT DISTINCT + - col0 DIV + col2 + col0 AS col1 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT + - col0 / + col2 + col0 AS col1 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT + col2 + 71 * - cor0.col0 + col0 FROM tab1 AS cor0
----
-156
-4423
-5504

query I rowsort
SELECT + col2 + ( col2 ) AS col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT ( 64 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT - + col2 + - 21 * col1 FROM tab0 cor0
----
-1839
-1993
-2038

query I rowsort
SELECT DISTINCT - ( - 56 ) FROM tab2
----
56

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + - col1 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3170
SELECT - CAST( + 28 AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
2408
2548
2716

skipif mysql # not compatible
query I rowsort label-3170
SELECT - CAST ( + 28 AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT DISTINCT 87 + - col0 FROM tab1
----
23
7
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT ALL - col0 DIV col2 AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL - col0 / col2 AS col0 FROM tab1 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * col0 col1 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT DISTINCT col0 DIV col0 + + 27 * + 38 AS col0 FROM tab0 AS cor0
----
1027

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT col0 / col0 + + 27 * + 38 AS col0 FROM tab0 AS cor0
----
1027

query I rowsort
SELECT - col1 * + tab2.col2 + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT + col2 + + col2 + 92 FROM tab1
----
200
206
284

query I rowsort
SELECT DISTINCT - + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + 4 AS col0 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT + 1 - + col2 * - 27 AS col2 FROM tab1 AS cor0
----
1459
1540
2593

query I rowsort
SELECT DISTINCT - col2 * - col1 + + col1 FROM tab0 cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3181
SELECT - 87 * - col0 + - col2 DIV + col0 AS col2 FROM tab1 cor0
----
243
5568
6959

skipif mysql # not compatible
query I rowsort label-3181
SELECT - 87 * - col0 + - col2 / + col0 AS col2 FROM tab1 cor0
----
243
5568
6959

query I rowsort
SELECT - + 17 + col1 AS col0 FROM tab1 AS cor0
----
-4
-7
9

query I rowsort
SELECT DISTINCT 60 + + col2 * - ( 41 ) FROM tab0 AS cor0
----
-1293
-3302
19

query I rowsort
SELECT ALL 6 * col0 AS col1 FROM tab0 AS cor0
----
144
210
534

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3185
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + col0 * - ( col0 ) AS col1 FROM tab2
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3187
SELECT - col0 * - CAST( - ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3187
SELECT - col0 * - CAST ( - ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 * ( col0 * tab2.col0 ) + 94 FROM tab2
----
106191
1613
359050

query I rowsort
SELECT - 60 - - 10 FROM tab0, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT + - col1 + 24 AS col1 FROM tab2 AS cor0
----
-35
-7
7

query I rowsort
SELECT ALL col0 * + cor0.col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL + col0 * 63 - 89 FROM tab2 cor0
----
352
4825
4888

query I rowsort
SELECT - ( + 66 ) AS col1 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - cor0.col0 * col1 * col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL col0 + cor0.col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL - - col2 * + 11 + + cor0.col2 FROM tab0 AS cor0
----
12
396
984

query I rowsort
SELECT DISTINCT 72 * - col0 + + cor0.col1 - 73 AS col2 FROM tab2 AS cor0
----
-546
-5630
-5744

query I rowsort
SELECT ALL + 17 * 78 FROM tab0 cor0
----
1326
1326
1326

query I rowsort
SELECT ALL - col0 * cor0.col0 + col1 * - col0 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT + col0 * + 97 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT ALL + + col2 + - col2 * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT - + cor0.col2 * cor0.col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3203
SELECT ALL - col1 + 75 DIV + col1 FROM tab2 AS cor0
----
-13
-29
-58

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - col1 + 75 / + col1 FROM tab2 AS cor0
----
-13
-29
-58

query I rowsort
SELECT DISTINCT + + 26 FROM tab0 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * ( col0 ) col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - - 97 * - col2 + col1 FROM tab0 AS cor0
----
-3115
-7863
0

query I rowsort
SELECT col1 + + col0 * - col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - 35 * + col1 AS col0 FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT + - col2 + - ( col2 ) * col2 AS col1 FROM tab0 cor0
----
-1122
-2
-6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3210
SELECT DISTINCT - ( + col2 ) DIV col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT - ( + col2 ) / col2 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3211
SELECT + 88 DIV col1 col0 FROM tab2 AS cor0
----
1
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3211
SELECT + 88 / col1 col0 FROM tab2 AS cor0
----
1
2
5

query I rowsort
SELECT ALL + + 37 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1003
-41
-603

query I rowsort
SELECT DISTINCT - - ( + col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL 74 AS col0 FROM tab1
----
74
74
74

query I rowsort
SELECT ALL 6 FROM tab1, tab0 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
54
57
96

query I rowsort
SELECT - - 21 + - col2 * + col0 AS col0 FROM tab1 cor0
----
-141
-3627
-7659

query I rowsort
SELECT + ( - col1 ) * 23 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT col1 * col0 + col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col1 * 53 AS col2 FROM tab1
----
1378
530
689

query I rowsort
SELECT ALL col1 + ( - 58 + + col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-54
14
3053

query I rowsort
SELECT DISTINCT + + col0 + + ( col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col0 * + col2 + col1 * col0 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT ALL + cor0.col2 + col2 * - 71 AS col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT - col1 * ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - cor0.col2 + cor0.col0 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3227
SELECT - col2 + + col1 DIV cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3227
SELECT - col2 + + col1 / cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col0 * col2 * + col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3229
SELECT ALL - 48 + col0 DIV + ( 49 ) FROM tab0
----
-47
-48
-48

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - 48 + col0 / + ( 49 ) FROM tab0
----
-47
-48
-48

query I rowsort
SELECT ALL + col1 + col1 * tab0.col0 * col2 + col1 AS col1 FROM tab0
----
3589
664300
68284

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - tab0.col1 ) * - col2 * 44 + col0 col0 FROM tab0
----
-124848
-328239
-4233

query I rowsort
SELECT ALL tab0.col0 * 17 FROM tab0
----
1513
408
595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3233
SELECT - col0 * CAST( NULL AS SIGNED ) + ( + col1 ) + + 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-3233
SELECT - col0 * CAST ( NULL AS INTEGER ) + ( + col1 ) + + col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * - CAST ( 15 AS REAL ) AS col1 FROM tab1 AS cor0
----
-1200
-45
-960

query I rowsort
SELECT col0 + 90 * + col1 * col0 FROM tab0 AS cor0
----
185784
305585
728999

query I rowsort
SELECT DISTINCT - col2 + + ( ( cor0.col2 ) ) * + col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + - col0 + - col2 + + col2 * + col2 FROM tab1 AS cor0
----
2859
3128
9040

query I rowsort
SELECT DISTINCT - 73 AS col0 FROM tab2, tab0 cor0
----
-73

query I rowsort
SELECT + - col1 * - col2 + col0 * col0 * col1 FROM tab0 AS cor0
----
118922
52374
728273

query I rowsort
SELECT - 22 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT - cor0.col2 + + col2 * cor0.col1 * + 72 FROM tab1 AS cor0
----
101034
40983
89760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3242
SELECT ALL col0 DIV ( - col2 ) FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL col0 / ( - col2 ) FROM tab0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT - col0 DIV + ( col2 ) FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3243
SELECT - col0 / + ( col2 ) FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT col2 * col0 + + cor0.col0 * - ( col0 + col1 ) FROM tab2 AS cor0
----
-4582
-77
-8658

query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - + 98 * cor0.col0 + col1 FROM tab0 AS cor0
----
-2266
-3333
-8631

query I rowsort
SELECT col1 + ( + col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + - 55 + col1 AS col0 FROM tab2 AS cor0
----
-24
-38
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT - 66 * col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-406
-422
-7

skipif mysql # not compatible
query I rowsort label-3249
SELECT - 66 * col0 / + col1 AS col1 FROM tab1 AS cor0
----
-406
-422
-7

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 18 AS REAL ) AS col0 FROM tab0 cor0
----
18
18
18

query I rowsort
SELECT - - col0 + + col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT 56 * col1 + ( - col0 + col0 ) * - 51 AS col0 FROM tab0 AS cor0
----
4816
5096
5432

onlyif mysql # use DIV operator for integer division
query I rowsort label-3253
SELECT + col1 * col1 DIV ( - col1 ) + + col2 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-3253
SELECT + col1 * col1 / ( - col1 ) + + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL 25 + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 525c3cf41519d9f98c4173cf35ea24ba

query I rowsort
SELECT - col1 * - col2 + col0 AS col0 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT + + col1 + - col2 DIV 58 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-3256
SELECT + + col1 + - col2 / 58 FROM tab0 AS cor0
----
86
90
97

query I rowsort
SELECT cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - + 27 + - col1 * - ( col0 + cor0.col0 ) FROM tab2 AS cor0
----
2659
407
9177

query I rowsort
SELECT 79 FROM tab1, tab1 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT 33 * + 67 FROM tab2
----
2211

query I rowsort
SELECT + 66 * 67 FROM tab2
----
4422
4422
4422

onlyif mysql # use DIV operator for integer division
query I rowsort label-3262
SELECT - ( + 93 + + col1 ) DIV 67 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3262
SELECT - ( + 93 + + col1 ) / 67 AS col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT + + 45 + - col2 FROM tab2 AS cor0
----
18
19
7

query I rowsort
SELECT ALL + + ( + col0 ) + - col1 * - 42 AS col2 FROM tab0 AS cor0
----
3636
3911
4109

query I rowsort
SELECT ALL - + 99 + col1 + 80 FROM tab1 cor0
----
-6
-9
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3266
SELECT 27 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
27

skipif mysql # not compatible
query I rowsort label-3266
SELECT 27 / col2 AS col1 FROM tab0 AS cor0
----
0
0
27

query I rowsort
SELECT DISTINCT - - ( col2 ) + col2 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col0 * ( - col1 * col1 ) - col2 col1 FROM tab1 AS cor0
----
109458
1297824
364743

query I rowsort
SELECT ALL - + cor0.col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL 94 * - col0 + + 13 * - col0 FROM tab1 AS cor0
----
-321
-6848
-8560

query I rowsort
SELECT - 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 95 - col1 * ( col1 * + col1 ) AS col1 FROM tab0
----
-636151
-753666
-912768

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT DISTINCT + col2 * + col2 + + col1 DIV col0 AS col0 FROM tab2
----
1444
676
733

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT + col2 * + col2 + + col1 / col0 AS col0 FROM tab2
----
1444
676
733

onlyif mysql # use DIV operator for integer division
query I rowsort label-3275
SELECT ALL col1 DIV + col1 + - col1 AS col2 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL col1 / + col1 + - col1 AS col2 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT DISTINCT col2 * - col2 + col1 AS col0 FROM tab0
----
-1003
-6633
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3277
SELECT ALL CAST( NULL AS SIGNED ) + - col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 99 + col2 AS col0 FROM tab1 AS cor0
----
-3
-42
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT - cor0.col0 + col2 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3279
SELECT - cor0.col0 + col2 / col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col1 * 22 - tab2.col1 * + 28 AS col0 FROM tab2
----
-102
-186
-354

query I rowsort
SELECT DISTINCT + 21 * 63 FROM tab2, tab1, tab0 AS cor0
----
1323

query I rowsort
SELECT ( 26 ) + - col2 * - col2 * - ( cor0.col1 ) FROM tab1 cor0
----
-119782
-32464
-75790

onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT + 45 DIV col2 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3283
SELECT + 45 / col2 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col1 + + col0 * + col2 * + col2 FROM tab2
----
114059
5072
52669

query I rowsort
SELECT ALL + tab0.col1 - tab0.col0 AS col0 FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + tab1.col0 + col0 col0 FROM tab1 WHERE col0 IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT DISTINCT col1 - col1 * col1 DIV + tab1.col0 AS col1 FROM tab1
----
-199
11
9

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT col1 - col1 * col1 / + tab1.col0 AS col1 FROM tab1
----
-199
11
9

query I rowsort
SELECT ALL tab2.col2 - - col0 * col1 * col0 FROM tab2
----
106135
1546
358982

query I rowsort
SELECT tab0.col2 + - col2 + + col2 AS col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + tab0.col1 * col1 col2 FROM tab0
----
7482
8372
9506

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + tab0.col2 * col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT col2 + + tab0.col2 DIV - col1 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3292
SELECT col2 + + tab0.col2 / - col1 AS col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 + - tab1.col0 col0 FROM tab1 WHERE NOT NULL NOT IN ( tab1.col1 * col0 )
----

query I rowsort
SELECT ALL - col0 * + col1 + tab1.col1 * - col2 AS col2 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT + col0 + col0 * - col1 - col1 * + col0 FROM tab1
----
-1216
-153
-2000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3296
SELECT - CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3296
SELECT - CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col1 * - col1 * col2 + - col1 * col2 FROM tab2 WHERE NULL NOT IN ( tab2.col2 / - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col2 IN ( col0 + - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col2 * + col0 + + col1 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT ALL col1 DIV col1 + col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL col1 / col1 + col1 FROM tab2
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3301
SELECT DISTINCT col2 DIV col1 + col1 AS col2 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT col2 / col1 + col1 AS col2 FROM tab2
----
19
31
59

query III rowsort
SELECT * FROM tab1 WHERE col0 <> col2 * - col0 + col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 + - tab0.col1 * - tab0.col0 + col1 AS col0 FROM tab0
----
2183
3493
8272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + tab2.col0 col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL + col2 + tab1.col2 AS col0 FROM tab1
----
108
114
192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + col1 / col2
----

query I rowsort
SELECT - tab1.col1 * + col2 - col1 * col0 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT + cor0.col0 + + col2 * + col0 * - col0 AS col0 FROM tab0 cor0
----
-1190
-18984
-649433

query I rowsort
SELECT - col1 * col0 + - tab1.col0 AS col1 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT col0 * col2 + tab0.col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT tab0.col0 + tab0.col2 FROM tab0
----
171
36
57

query I rowsort
SELECT + col2 FROM tab1 WHERE ( + col1 * - col0 / + col2 ) BETWEEN - col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( tab1.col0 )
----

query I rowsort
SELECT col1 * col1 + col1 AS col2 FROM tab0
----
7482
8372
9506

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + tab2.col0 / - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 + col1 col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + cor0.col2 * - col0 + + col1 + col2 FROM tab1 AS cor0
----
-3581
-7571
-82

query I rowsort
SELECT col2 + + cor0.col1 * - col2 + cor0.col0 FROM tab2 AS cor0
----
-1430
-529
-803

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 / - col2 > col2
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( cor0.col2 )
----

query I rowsort
SELECT ALL + col0 * - col0 * + col2 AS col1 FROM tab1 cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT col0 + - col2 * cor0.col1 + col2 FROM tab2 AS cor0
----
-1430
-529
-803

query I rowsort
SELECT col2 * col1 + col2 + col0 FROM tab0 AS cor0
----
133
2895
7633

query I rowsort
SELECT - col0 * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + col1 * - 23 - col1 AS col2 FROM tab1 AS cor0
----
-240
-312
-624

query I rowsort
SELECT ALL + col0 * + 36 AS col1 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT + col1 + ( 34 * col0 ) FROM tab0 AS cor0
----
1287
3117
902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 56 FROM tab2 cor0
----
56
56
56

query I rowsort
SELECT + ( col1 ) * col1 * col0 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT + 2 + - col0 + col1 * + col2 FROM tab0 AS cor0
----
2816
64
7375

query I rowsort
SELECT DISTINCT - col1 + + col0 * + ( - col0 ) AS col1 FROM tab2 cor0
----
-6143
-6258
-80

query I rowsort
SELECT + - 45 AS col0 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL - + col1 * cor0.col1 * + ( + col1 ) FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL ( col1 ) + col1 * tab0.col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT ( col2 ) + ( - col1 ) + + col0 FROM tab2
----
100
3
45

query I rowsort
SELECT ALL 88 * + col0 + + 29 AS col2 FROM tab1
----
293
5661
7069

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3338
SELECT + + cor0.col2 + - col2 + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT + + cor0.col2 + - col2 + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT DISTINCT + cor0.col1 + - col1 DIV + 4 AS col1 FROM tab0 AS cor0
----
65
69
73

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT + cor0.col1 + - col1 / + 4 AS col1 FROM tab0 AS cor0
----
65
69
73

query I rowsort
SELECT - + col2 + + col0 * + 82 FROM tab0 cor0
----
1935
2869
7216

query I rowsort
SELECT ALL + - 27 AS col2 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT 87 * col0 AS col2 FROM tab2 AS cor0
----
609
6786
6873

query I rowsort
SELECT + col0 + col1 * col0 * col1 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT - col1 * col1 + - 15 AS col0 FROM tab0 AS cor0
----
-7411
-8296
-9424

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 + col2 FROM tab1 AS cor0
----
1424
1461
691

query I rowsort
SELECT + col1 * - col2 + 95 AS col2 FROM tab1 AS cor0
----
-1153
-1309
-475

query I rowsort
SELECT - col2 + ( 64 ) * - col0 FROM tab0 cor0
----
-1569
-2241
-5778

query I rowsort
SELECT col1 + col1 * - 82 FROM tab2 AS cor0
----
-1377
-2511
-4779

query I rowsort
SELECT col2 * - col2 + col2 FROM tab2 AS cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 + 61 col1 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - + 43 * + col0 * col0 + - col0 AS col0 FROM tab0 cor0
----
-24792
-340692
-52710

query I rowsort
SELECT + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + ( col2 * col2 ) FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col1 FROM tab2
----
10
10
10

query I rowsort
SELECT DISTINCT + ( col2 + - col1 ) AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ( + 37 ) FROM tab1
----
37
37
37

query I rowsort
SELECT ( - 2 + + tab0.col1 * - col0 ) FROM tab0
----
-2066
-3397
-8101

query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + - 8 * 36 + col1 AS col1 FROM tab2 AS cor0
----
-229
-257
-271

query I rowsort
SELECT ALL col2 * col2 + - col1 * col1 AS col2 FROM tab2
----
-232
-2805
1155

query I rowsort
SELECT ALL 86 + - col2 AS col2 FROM tab1
----
-10
29
32

query I rowsort
SELECT ALL ( col1 ) + - col2 + + col2 * col1 AS col1 FROM tab2
----
1567
625
841

query I rowsort
SELECT - col2 + 75 FROM tab1
----
-21
18
21

query I rowsort
SELECT ALL col2 * tab1.col0 + - tab1.col1 AS col0 FROM tab1
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3366
SELECT + col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT + col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 + - col1 + col1 AS col2 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3368
SELECT ALL tab2.col1 - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL tab2.col1 - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 41 FROM tab0, tab2 AS cor0
----
41

query I rowsort
SELECT - col2 + - 79 * 11 AS col2 FROM tab0 AS cor0
----
-870
-902
-951

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - 48 - col0 col1 FROM tab1 AS cor0
----
-32
-55
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3372
SELECT + + col2 + - CAST( col1 AS SIGNED ) * col2 FROM tab2 cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-3372
SELECT + + col2 + - CAST ( col1 AS INTEGER ) * col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT col0 * + 11 AS col1 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT col1 + col1 * - 51 AS col1 FROM tab1 AS cor0
----
-1300
-500
-650

query I rowsort
SELECT - col2 * + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT cor0.col2 * col1 + ( col2 ) * cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
132
28974
605898

query I rowsort
SELECT + col2 * + ( + col0 ) + - col0 AS col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT - cor0.col0 + 94 FROM tab1 AS cor0
----
14
30
91

query I rowsort
SELECT DISTINCT col2 - col2 * + col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT - col0 + col0 - - col1 * col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - col1 * - col0 * - col1 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT col2 + tab0.col2 * col2 - + col0 FROM tab0
----
-33
1098
6717

query I rowsort
SELECT + col2 + - col1 - col1 * + col1 FROM tab1
----
-53
-648
-86

query I rowsort
SELECT col2 * col0 - + tab0.col1 * + col1 FROM tab0
----
-6604
-9374
-983

query I rowsort
SELECT - tab2.col0 + col0 * tab2.col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT DISTINCT + tab2.col2 * + col2 + - col1 FROM tab2
----
1427
617
698

query I rowsort
SELECT + col1 * col1 + cor0.col0 * col2 * col1 + cor0.col2 FROM tab1 AS cor0
----
100105
36637
4942

query I rowsort
SELECT ALL col0 + - col2 AS col1 FROM tab1 cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col2 * col2 * - col2 col2 FROM tab1 AS cor0
----
157490
185203
884749

query I rowsort
SELECT - - col2 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + - cor0.col1 + col2 * - col0 FROM tab2 AS cor0
----
-409
-4115
-6021

query I rowsort
SELECT ALL + col0 * + col2 - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + cor0.col0 + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + cor0.col2 * + col1 * col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * col0 col0 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT 63 * col1 FROM tab2 AS cor0
----
1071
1953
3717

query I rowsort
SELECT ( + col2 ) * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + 0 * - col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col2 FROM tab0 AS cor0
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-3400
SELECT ALL - ( cor0.col2 ) DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - ( cor0.col2 ) / + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT 28 * - col2 FROM tab0 AS cor0
----
-2296
-28
-924

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col2 + col1 FROM tab2 AS cor0
----
-1397
-550
-799

query I rowsort
SELECT + 20 + col0 * - cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
-177484
-329295
-736989

query I rowsort
SELECT ALL - col0 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT ALL - col0 * col2 * + col0 + - col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1327
-158184
-237158

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - col0 * col2 * + col0 + - col1 / + col0 AS col2 FROM tab2 AS cor0
----
-1327
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3407
SELECT col1 * col2 * col1 - col0 DIV col2 AS col0 FROM tab1
----
16224
36504
5699

skipif mysql # not compatible
query I rowsort label-3407
SELECT col1 * col2 * col1 - col0 / col2 AS col0 FROM tab1
----
16224
36504
5699

query I rowsort
SELECT + 63 * col1 + - col2 AS col1 FROM tab1
----
1584
573
723

query I rowsort
SELECT ALL + 0 * col2 * + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 20 + + col2 AS col2 FROM tab1 AS cor0
----
34
37
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col2 FROM tab2 cor0
----
33

query I rowsort
SELECT - col1 * col1 * - col0 + + 86 * col2 FROM tab1 AS cor0
----
11302
21776
6672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT ALL ( col0 * CAST( - 78 AS SIGNED ) ) AS col2 FROM tab0
----
-1872
-2730
-6942

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL ( col0 * CAST ( - 78 AS INTEGER ) ) AS col2 FROM tab0
----
-1872
-2730
-6942

query I rowsort
SELECT + 72 * - col2 AS col1 FROM tab2 cor0
----
-1872
-1944
-2736

query I rowsort
SELECT DISTINCT + col0 + col0 * - 43 AS col1 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT DISTINCT + 5 * + col1 AS col0 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT ALL col1 - - col2 * - 58 AS col2 FROM tab0 AS cor0
----
-1828
-4665
39

query I rowsort
SELECT col0 + - col0 * + ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - cor0.col0 * col0 + col0 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL - - 46 + + cor0.col1 * 33 AS col0 FROM tab2 AS cor0
----
1069
1993
607

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) + + col0 * col0 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL 8 * col2 * cor0.col2 FROM tab1 AS cor0
----
23328
25992
73728

query I rowsort
SELECT col1 * - cor0.col1 * - 45 AS col0 FROM tab2 cor0
----
13005
156645
43245

query I rowsort
SELECT ALL + - col0 * + cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - - col0 * col1 + 50 FROM tab2 AS cor0
----
1393
267
4652

onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT col2 + - col2 DIV 58 FROM tab1 AS cor0
----
54
57
95

skipif mysql # not compatible
query I rowsort label-3426
SELECT col2 + - col2 / 58 FROM tab1 AS cor0
----
54
57
95

query I rowsort
SELECT DISTINCT - 0 * + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 51 * + col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT ALL - 76 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

query I rowsort
SELECT + + col1 + ( 2 ) FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT DISTINCT + + col2 * - 2 - col2 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT DISTINCT + ( 15 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT 74 + + 71 AS col2 FROM tab2 AS cor0
----
145
145
145

query I rowsort
SELECT + col2 * + cor0.col1 + - col2 * - col2 + + col0 FROM tab1 AS cor0
----
10544
3883
4323

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3435
SELECT DISTINCT - - CAST( + 29 AS SIGNED ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT - - CAST ( + 29 AS INTEGER ) FROM tab2 AS cor0
----
29

query I rowsort
SELECT DISTINCT + ( - 90 ) * col1 AS col0 FROM tab1 AS cor0
----
-1170
-2340
-900

query I rowsort
SELECT + ( - col2 ) + + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + - 5 + col1 FROM tab2 AS cor0
----
12
26
54

query I rowsort
SELECT ALL - col0 * 82 - col2 AS col1 FROM tab0
----
-2001
-2871
-7380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3441
SELECT ALL + CAST( - col1 AS SIGNED ) + col1 * + col2 AS col1 FROM tab1 cor0
----
1235
1378
560

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + CAST ( - col1 AS INTEGER ) + col1 * + col2 AS col1 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT col2 * cor0.col0 + - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT tab0.col1 + + tab0.col2 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc

query I rowsort
SELECT ALL + ( 84 ) + col1 + + ( 50 ) * - col2 AS col0 FROM tab2
----
-1157
-1235
-1799

query I rowsort
SELECT + ( - 52 ) * - col1 FROM tab2
----
1612
3068
884

query I rowsort
SELECT - + col0 * - cor0.col0 + col2 * + col2 - col0 * + ( - col2 ) AS col0 FROM tab1 AS cor0
----
10993
23296
3087

onlyif mysql # use DIV operator for integer division
query I rowsort label-3447
SELECT DISTINCT + 51 * 65 + col1 DIV col2 AS col2 FROM tab0
----
3316
3317
3412

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + 51 * 65 + col1 / col2 AS col2 FROM tab0
----
3316
3317
3412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT 74 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - col0 + - col0 * 63 AS col2 FROM tab1
----
-192
-4096
-5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT + col0 DIV + col0 + - col0 AS col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-3451
SELECT + col0 / + col0 + - col0 AS col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT DISTINCT 41 * + col0 FROM tab1
----
123
2624
3280

query I rowsort
SELECT - ( + cor0.col0 ) * + col0 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
-233415
-432
-614304

query I rowsort
SELECT ALL - 72 + col0 FROM tab1 cor0
----
-69
-8
8

query I rowsort
SELECT ALL - col0 + + ( col0 ) * + col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL col0 * + 30 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT tab0.col1 AS col0 FROM tab0, tab2, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col2 - - col1 * - col2 * col2 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT DISTINCT - - col2 + - 87 * cor0.col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

query I rowsort
SELECT - - col0 - 8 * col2 AS col0 FROM tab1 AS cor0
----
-392
-429
-688

query I rowsort
SELECT ALL + + 87 * col0 + - col2 - 19 FROM tab1 AS cor0
----
188
5492
6845

query I rowsort
SELECT ALL + 22 + + col0 AS col0 FROM tab1 AS cor0
----
102
25
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT DISTINCT - col1 * col1 DIV + col0 FROM tab2 AS cor0
----
-137
-3
-44

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - col1 * col1 / + col0 FROM tab2 AS cor0
----
-137
-3
-44

query I rowsort
SELECT - + 48 * col2 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT col2 + col2 * col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT - col2 - col2 AS col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT + + col1 * + 53 + + col1 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT col1 * + col2 + col0 - col2 AS col2 FROM tab0 AS cor0
----
131
2829
7469

query I rowsort
SELECT DISTINCT - + col1 * + col0 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - + 18 * - cor0.col2 + + col2 * + ( 0 ) AS col0 FROM tab0 AS cor0
----
1476
18
594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( + ( col2 ) ) * 33 col1 FROM tab1
----
18810
41184
46332

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT + col2 DIV ( + col2 ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3472
SELECT + col2 / ( + col2 ) AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 FROM tab1, tab2, tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT col2 DIV cor0.col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3474
SELECT col2 / cor0.col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT ( - col1 ) * tab2.col1 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + + col2 * - col0 col2 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col2 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT 73 * col0 AS col2 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT tab0.col0 * col1 - col1 FROM tab0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3481
SELECT tab2.col0 + - ( col0 + tab2.col2 ) * 11 DIV col1 FROM tab2
----
-5
4
59

skipif mysql # not compatible
query I rowsort label-3481
SELECT tab2.col0 + - ( col0 + tab2.col2 ) * 11 / col1 FROM tab2
----
-5
4
59

query I rowsort
SELECT - col2 + ( - ( col2 ) ) * - ( col1 ) FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + + col1 * 89 + - col0 FROM tab2 AS cor0
----
1434
2752
5173

query I rowsort
SELECT ALL - - col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + - col1 * cor0.col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL - col0 + 17 + col2 FROM tab2 AS cor0
----
-24
-35
37

query I rowsort
SELECT ALL + col0 + - col2 * col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT DISTINCT 78 + + 93 DIV col1 AS col2 FROM tab0
----
78
79

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT 78 + + 93 / col1 AS col2 FROM tab0
----
78
79

query I rowsort
SELECT - ( + 86 ) * + col2 + + col0 AS col0 FROM tab2 cor0
----
-2158
-2315
-3189

query I rowsort
SELECT + + 62 * 86 FROM tab0 AS cor0
----
5332
5332
5332

query I rowsort
SELECT + col0 + + cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + cor0.col0 * ( col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT ( + 19 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
19

query I rowsort
SELECT col1 + col1 * + ( col0 ) AS col2 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 * col0 - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-107520
-40128
-4374

query I rowsort
SELECT DISTINCT col1 * 55 + - col2 + + tab1.col1 FROM tab1
----
1402
503
632

query I rowsort
SELECT col1 + - 96 * ( col1 * col2 ) + + col1 * col2 FROM tab2
----
-145671
-61353
-79484

onlyif mysql # use DIV operator for integer division
query I rowsort label-3498
SELECT DISTINCT col1 DIV 50 + - tab1.col2 AS col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT col1 / 50 + - tab1.col2 AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - col0 + + col1 + - col1 AS col2 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3500
SELECT DISTINCT + + col0 * col2 DIV col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT + + col0 * col2 / col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - ( - 96 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - 39 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 * cor0.col1 col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3504
SELECT + - cor0.col0 + - col1 DIV + col2 AS col0 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3504
SELECT + - cor0.col0 + - col1 / + col2 AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 81 * - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-124254
-52326
-67797

query I rowsort
SELECT ALL + 88 * 53 AS col0 FROM tab2
----
4664
4664
4664

query I rowsort
SELECT - - ( - col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3508
SELECT 77 + + col1 * col0 + + col2 DIV col1 FROM tab1 AS cor0
----
1124
157
722

skipif mysql # not compatible
query I rowsort label-3508
SELECT 77 + + col1 * col0 + + col2 / col1 FROM tab1 AS cor0
----
1124
157
722

query I rowsort
SELECT ALL + 8 * 28 * + col1 FROM tab0 AS cor0
----
19264
20384
21728

query I rowsort
SELECT DISTINCT col1 * 79 + col1 * - ( 24 ) * - col0 AS col1 FROM tab0 AS cor0
----
201565
56330
89143

query I rowsort
SELECT ALL - - col1 + cor0.col1 * col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3512
SELECT ALL + + col1 + + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + + col1 + + col2 / + col0 AS col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL - + ( cor0.col2 ) + 20 AS col0 FROM tab1 AS cor0
----
-34
-37
-76

query I rowsort
SELECT DISTINCT - 77 * + cor0.col2 + + col0 + col0 FROM tab1 AS cor0
----
-4152
-4261
-7232

query I rowsort
SELECT 36 + - 97 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL + - 19 AS col0 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3517
SELECT DISTINCT 30 + cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT 30 + cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 20 AS col1 FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT + ( - col2 ) + + col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col0 * + col2 - - 39 FROM tab2 AS cor0
----
2067
228
3041

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3522
SELECT ALL + + cor0.col0 * col0 + + col2 DIV col1 - cor0.col1 * + col1 FROM tab1 AS cor0
----
-665
4001
6238

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + + cor0.col0 * col0 + + col2 / col1 - cor0.col1 * + col1 FROM tab1 AS cor0
----
-665
4001
6238

query I rowsort
SELECT ALL - ( + col1 ) + - 96 * - col0 - cor0.col2 FROM tab2 cor0
----
614
7403
7529

query I rowsort
SELECT DISTINCT + + col2 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 86 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL + col1 + col1 * - 86 AS col2 FROM tab2 AS cor0
----
-1445
-2635
-5015

query I rowsort
SELECT + col0 + 24 * + ( + col0 ) * col0 FROM tab0 AS cor0
----
13848
190193
29435

onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT - - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3528
SELECT - - col0 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * + 41 + cor0.col0 FROM tab2 AS cor0
----
1278
2497
776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3530
SELECT ALL - 66 * col1 * CAST( - ( col1 ) AS SIGNED ) FROM tab0
----
488136
546546
620994

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL - 66 * col1 * CAST ( - ( col1 ) AS INTEGER ) FROM tab0
----
488136
546546
620994

query I rowsort
SELECT - col2 * + ( - col1 ) + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - - col0 * - ( 38 ) - + cor0.col0 * 41 * 33 FROM tab1 AS cor0
----
-111280
-4173
-89024

onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT DISTINCT - col2 DIV cor0.col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT - col2 / cor0.col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + - col0 * + 27 FROM tab0 AS cor0
----
-2403
-648
-945

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT DISTINCT - col0 DIV + col2 + col1 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - col0 / + col2 + col1 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT + col1 * 21 AS col1 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT ALL - + cor0.col1 - 1 FROM tab0 AS cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 * 6 col0 FROM tab1 AS cor0
----
3840
468
6240

query I rowsort
SELECT - + col1 + col2 * - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-16237
-36530
-5710

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab2, tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT + ( 99 ) FROM tab1, tab1 AS cor0
----
99

query I rowsort
SELECT ( - 63 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT + cor0.col1 * + cor0.col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + col1 + - 60 AS col1 FROM tab0
----
26
31
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3545
SELECT ALL + CAST( ( col1 ) AS SIGNED ) * + col0 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + CAST ( ( col1 ) AS INTEGER ) * + col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 * col2 * ( + 39 * + col0 ) FROM tab2
----
1990326
228501
4666428

query I rowsort
SELECT ALL + cor0.col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ( + 18 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT ALL 89 * col0 DIV + col0 FROM tab1 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL 89 * col0 / + col0 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT - col1 + + col1 * ( + 21 ) FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT + ( col1 ) - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 6 + + col1 FROM tab0 AS cor0
----
80
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col0 col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + col2 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - ( col2 * ( + tab2.col1 ) ) AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL - 24 + + col2 AS col2 FROM tab2 cor0
----
14
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3558
SELECT ALL + cor0.col0 + 55 DIV - cor0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 31d4ff8e7bdec2815646d49f7337a9ae

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + cor0.col0 + 55 / - cor0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 31d4ff8e7bdec2815646d49f7337a9ae

query I rowsort
SELECT 39 * cor0.col2 FROM tab1 AS cor0
----
2106
2223
3744

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 + col0 * - cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT ALL - tab2.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + col1 * ( - col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 21 col2 FROM tab2 AS cor0
----
100
28
99

query I rowsort
SELECT + + col2 + col0 * - 1 AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL cor0.col2 + col0 * - ( + col1 + col0 ) FROM tab1 AS cor0
----
-33
-4679
-7344

query I rowsort
SELECT DISTINCT + col2 + + 64 FROM tab1 AS cor0
----
118
121
160

query I rowsort
SELECT cor0.col1 + - col1 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + - ( 76 ) * col2 FROM tab1 AS cor0
----
-4104
-4332
-7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3570
SELECT ALL + ( + col0 ) + col2 + CAST( + col0 AS SIGNED ) * + col1 FROM tab0 cor0
----
2121
3431
8270

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + ( + col0 ) + col2 + CAST ( + col0 AS INTEGER ) * + col1 FROM tab0 cor0
----
2121
3431
8270

query I rowsort
SELECT DISTINCT 78 + col0 FROM tab2 AS cor0
----
156
157
85

query I rowsort
SELECT + + ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + 41 + cor0.col0 * col0 FROM tab0 cor0
----
1266
617
7962

query I rowsort
SELECT - 52 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1248
-1820
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col0 ) col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + ( 94 ) + col1 AS col2 FROM tab1 AS cor0
----
104
107
120

query I rowsort
SELECT + 98 + + tab2.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 962b1590ab4ad04f4d0639edf40c8678

query I rowsort
SELECT ALL 28 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT 32 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL + ( 66 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT col2 + + 60 FROM tab1 cor0
----
114
117
156

onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT - col2 * col1 + - col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-3582
SELECT - col2 * col1 + - col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT ( - cor0.col0 ) DIV + col1 + col1 * col1 * - col1 col1 FROM tab1 cor0
----
-1006
-17576
-2203

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3583
SELECT ( - cor0.col0 ) / + col1 + col1 * col1 * - col1 col1 FROM tab1 cor0
----
-1006
-17576
-2203

query I rowsort
SELECT DISTINCT 64 * cor0.col0 + col0 * - col1 + col0 FROM tab1 AS cor0
----
117
3520
4160

query I rowsort
SELECT ALL - col1 - - col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - cor0.col0 * + 87 - col2 * ( col1 ) FROM tab2 AS cor0
----
-1446
-7519
-8320

query I rowsort
SELECT ALL 26 * col0 + col0 AS col2 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT ALL col2 - + col1 * col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - col1 * 22 AS col0 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT ALL - 27 + - col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-110
-55
-74

query I rowsort
SELECT - 0 + col1 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - 55 + col2 AS col1 FROM tab1 AS cor0
----
-1
2
41

query I rowsort
SELECT DISTINCT - 55 + col2 AS col0 FROM tab1 AS cor0
----
-1
2
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3594
SELECT ALL col0 + + col0 - + col2 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
11
156
158

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL col0 + + col0 - + col2 / cor0.col0 AS col2 FROM tab2 AS cor0
----
11
156
158

query I rowsort
SELECT + tab0.col1 + tab0.col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - 90 * col0 FROM tab2
----
-630
-7020
-7110

query I rowsort
SELECT - ( - ( - col1 ) ) + + col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + 39 * col2 FROM tab0
----
1287
3198
39

query I rowsort
SELECT ( + col1 + col0 * - col2 ) FROM tab0
----
-706
-7207
62

query I rowsort
SELECT - tab0.col1 * col1 + - col2 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT + tab1.col2 FROM tab1, tab2, tab0 cor0, tab0
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT col1 + 78 * col1 FROM tab0
----
6794
7189
7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3603
SELECT + CAST( NULL AS SIGNED ) + tab1.col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3603
SELECT + CAST ( NULL AS INTEGER ) + tab1.col1 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab2, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 93 + + 92 AS col2 FROM tab0
----
185
185
185

query I rowsort
SELECT col1 - + 77 AS col1 FROM tab0
----
14
20
9

query I rowsort
SELECT + col0 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + ( col2 + - col2 * col0 ) FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT - 50 * col0 FROM tab0
----
-1200
-1750
-4450

query I rowsort
SELECT DISTINCT + col0 * 80 AS col0 FROM tab1 AS cor0
----
240
5120
6400

query I rowsort
SELECT + + col2 + 34 * col1 AS col0 FROM tab0 AS cor0
----
2957
3176
3299

query I rowsort
SELECT + - col0 * 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col2 - ( - 53 ) FROM tab0
----
-7245
-739
18

query I rowsort
SELECT ( + col1 ) + - ( + col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT tab1.col2 - col0 * col2 * - tab1.col1 AS col1 FROM tab1
----
36537
4266
99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-3617
SELECT DISTINCT + 63 * + col1 * + col1 - 12 DIV + col1 FROM tab1
----
10647
42588
6299

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT + 63 * + col1 * + col1 - 12 / + col1 FROM tab1
----
10647
42588
6299

onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT DISTINCT ( + col0 ) * 18 DIV 72 FROM tab2
----
1
19

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT ( + col0 ) * 18 / 72 FROM tab2
----
1
19

query I rowsort
SELECT + ( + col2 ) * - ( + col2 ) + + col1 * - col2 - + col2 AS col2 FROM tab0
----
-14268
-3960
-99

query I rowsort
SELECT DISTINCT col1 * + ( - col0 ) + + col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT tab1.col2 * 25 + col2 FROM tab1
----
1404
1482
2496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT DISTINCT col0 + + col2 DIV ( - col1 ) col2 FROM tab1
----
1
59
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT col0 + + col2 / ( - col1 ) col2 FROM tab1
----
1
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3623
SELECT DISTINCT col0 + 53 DIV col0 FROM tab0 AS cor0
----
26
36
89

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT col0 + 53 / col0 FROM tab0 AS cor0
----
26
36
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3624
SELECT - col2 + + CAST( col0 + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3624
SELECT - col2 + + CAST ( col0 + col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT ALL + col2 DIV col0 + - 43 * col0 AS col0 FROM tab0 cor0
----
-1031
-1505
-3827

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + col2 / col0 + - 43 * col0 AS col0 FROM tab0 cor0
----
-1031
-1505
-3827

query I rowsort
SELECT DISTINCT + col2 * - col0 * - ( col2 ) + col1 * - 87 FROM tab1 AS cor0
----
207066
6486
736149

query I rowsort
SELECT DISTINCT - col2 + + 79 FROM tab0 cor0
----
-3
46
78

query I rowsort
SELECT col1 * 64 AS col2 FROM tab0
----
5504
5824
6208

query I rowsort
SELECT + cor0.col1 * col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 33 col2 FROM tab0 AS cor0
----
119
124
130

query I rowsort
SELECT ( col0 ) + - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT + + ( col0 ) DIV - 50 + - col0 * cor0.col0 - + cor0.col0 * - 82 FROM tab0 AS cor0
----
-624
1392
1645

skipif mysql # not compatible
query I rowsort label-3632
SELECT + + ( col0 ) / - 50 + - col0 * cor0.col0 - + cor0.col0 * - 82 FROM tab0 AS cor0
----
-624
1392
1645

query I rowsort
SELECT col1 + + 98 FROM tab1
----
108
111
124

query I rowsort
SELECT DISTINCT - 94 + col2 + 77 * col1 FROM tab2 AS cor0
----
1253
2320
4475

query I rowsort
SELECT DISTINCT + ( col2 ) * ( - 28 ) AS col2 FROM tab0 AS cor0
----
-2296
-28
-924

query I rowsort
SELECT + col1 - + col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT 11 - col1 AS col2 FROM tab0 AS cor0
----
-75
-80
-86

query I rowsort
SELECT ALL 10 * col0 AS col0 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT ALL - 47 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
144
1637
3945

query I rowsort
SELECT col0 * - col0 + + col0 * 60 - + col0 AS col1 FROM tab0 AS cor0
----
-2670
840
840

query I rowsort
SELECT ALL + - 1 * + col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - - col1 + - col0 - col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col2 - + 44 FROM tab2
----
-17
-18
-6

query I rowsort
SELECT ALL + col2 * ( col0 ) * col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT + + col1 - - col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + + col1 * 12 AS col1 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT ALL - - col2 + col1 AS col1 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT ALL - col1 DIV - ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - col1 / - ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 70 + - col2 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT + col1 * + ( col2 ) AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - col2 + - ( - 66 ) * + col2 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT ALL col0 * - col0 * col1 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - 25 + cor0.col1 FROM tab2 AS cor0
----
-8
34
6

query I rowsort
SELECT DISTINCT 3 * - 72 FROM tab0
----
-216

query I rowsort
SELECT DISTINCT - - col1 + 43 AS col2 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT DISTINCT - 98 * ( - col1 + - cor0.col0 ) * col0 FROM tab2 AS cor0
----
1047228
26068
743232

query I rowsort
SELECT ( + col1 ) * col1 + - col2 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT + + ( col1 ) * col1 + cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT + + 54 AS col1 FROM tab0 cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 - col0 * - col2 col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3661
SELECT ALL CAST( - 45 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
-19
-32
-35

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL CAST ( - 45 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
-19
-32
-35

query I rowsort
SELECT DISTINCT - + 6 + - col0 * col1 FROM tab1 AS cor0
----
-1046
-646
-84

query I rowsort
SELECT ALL - col0 * - col1 - + cor0.col1 * ( - col1 ) FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT + col1 + + ( - cor0.col2 ) * + 63 AS col0 FROM tab1 AS cor0
----
-3376
-3581
-6035

query I rowsort
SELECT - 23 * - col0 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT - + 44 * col2 FROM tab2 AS cor0
----
-1144
-1188
-1672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col0 col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - + cor0.col0 - + cor0.col2 FROM tab0, tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT col0 * - ( - col0 ) + + cor0.col1 * - ( - col1 ) * - col1 FROM tab2 cor0
----
-199295
-29742
1328

query I rowsort
SELECT + col1 * 82 AS col0 FROM tab0 AS cor0
----
7052
7462
7954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3671
SELECT + col2 * - CAST( NULL AS SIGNED ) + col2 + - col0 * col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3671
SELECT + col2 * - CAST ( NULL AS INTEGER ) + col2 + - col0 * col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3672
SELECT - col2 * + CAST( + col1 AS SIGNED ) FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-3672
SELECT - col2 * + CAST ( + col1 AS INTEGER ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + - 18 + + col1 FROM tab2 AS cor0
----
-1
13
41

query I rowsort
SELECT - 0 + ( col1 ) AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + 10 + col2 AS col1 FROM tab2 AS cor0
----
36
37
48

query I rowsort
SELECT DISTINCT - col1 * + 42 AS col2 FROM tab2
----
-1302
-2478
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col0 ) * 56 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7090d6af660b50dfbd30028349de68af

onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT + col0 + + 5 * col2 DIV + col2 AS col2 FROM tab0
----
29
40
94

skipif mysql # not compatible
query I rowsort label-3678
SELECT + col0 + + 5 * col2 / + col2 AS col2 FROM tab0
----
29
40
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3679
SELECT tab2.col0 * - col0 + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-3679
SELECT tab2.col0 * - col0 + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT 75 * + col1 * + tab1.col0 FROM tab1
----
48000
5850
78000

query I rowsort
SELECT + 73 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT + - col0 + col0 * col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
113997
5096
52650

query I rowsort
SELECT col2 + - 26 FROM tab0
----
-25
56
7

query I rowsort
SELECT DISTINCT + tab1.col0 * 81 FROM tab1
----
243
5184
6480

query I rowsort
SELECT - col2 + - col1 * - cor0.col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - cor0.col0 * - 35 FROM tab2 AS cor0
----
245
2730
2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-3687
SELECT DISTINCT col1 * col1 DIV col2 FROM tab0
----
100
224
9409

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT col1 * col1 / col2 FROM tab0
----
100
224
9409

query I rowsort
SELECT col1 * - col2 * + col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ( + 86 ) * col2 AS col0 FROM tab1
----
4644
4902
8256

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT ( col1 + col0 ) DIV + col0 FROM tab2
----
1
1
5

skipif mysql # not compatible
query I rowsort label-3690
SELECT ( col1 + col0 ) / + col0 FROM tab2
----
1
1
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3691
SELECT + - 10 * + col0 + + col2 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT + - 10 * + col0 + + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 55 * + col0 AS col1 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT + + 64 + + col1 AS col1 FROM tab1 cor0
----
74
77
90

query I rowsort
SELECT DISTINCT + col1 * col0 - - tab0.col2 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT ( - tab1.col2 ) DIV col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3695
SELECT ( - tab1.col2 ) / col2 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + - ( - col1 ) * + col1 + ( - col1 + + col0 ) FROM tab2 cor0
----
3500
351
937

query I rowsort
SELECT - + col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3698
SELECT col1 + + col2 * + CAST( NULL AS SIGNED ) + + 80 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT col1 + + col2 * + CAST ( NULL AS INTEGER ) + + 80 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * col0 col2 FROM tab2 AS cor0
----
-511
-5694
-5767

query I rowsort
SELECT - 43 * col2 + + 22 * + 26 + - col2 AS col2 FROM tab1 AS cor0
----
-1804
-1936
-3652

query I rowsort
SELECT ( - 83 ) + tab1.col0 * col2 + col0 AS col0 FROM tab1
----
3629
7677
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + cor0.col2 * col2 col1 FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT 67 + + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1377
-609
-662

query I rowsort
SELECT DISTINCT + col2 + + col2 * + 96 + col0 FROM tab0 cor0
----
132
3225
8043

query I rowsort
SELECT + 81 + + cor0.col1 FROM tab1 AS cor0
----
107
91
94

query I rowsort
SELECT - 91 + col1 FROM tab0 AS cor0
----
-5
0
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3707
SELECT ALL + col1 * - col1 + + CAST( NULL AS SIGNED ) * + col0 - - col0 * CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL + col1 * - col1 + + CAST ( NULL AS INTEGER ) * + col0 - - col0 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3708
SELECT ALL + col1 + tab1.col2 * CAST( col2 AS SIGNED ) FROM tab1
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + col1 + tab1.col2 * CAST ( col2 AS INTEGER ) FROM tab1
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - col0 * col2 + ( - col2 + + col1 ) * col1 FROM tab2
----
-3359
-65
-81

query I rowsort
SELECT DISTINCT - ( col2 ) * cor0.col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT + - col1 DIV - col2 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3711
SELECT + - col1 / - col2 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT - col0 DIV + col0 - - col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3712
SELECT - col0 / + col0 - - col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL - ( col1 ) + + 62 FROM tab0 AS cor0
----
-24
-29
-35

query I rowsort
SELECT ALL - - ( + col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col0 * col1 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 + - CAST ( - col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3717
SELECT ALL + + col2 + 0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + + col2 + 0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col2 + + 31 FROM tab2 cor0
----
-7
4
5

query I rowsort
SELECT ALL - - col1 - - 31 AS col1 FROM tab1 AS cor0
----
41
44
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3720
SELECT ALL - col1 * - CAST( NULL AS DECIMAL ) - 69 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - col1 * - CAST ( NULL AS REAL ) - 69 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col1 AS col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3722
SELECT DISTINCT - col2 + col2 DIV - 30 AS col2 FROM tab0 AS cor0
----
-1
-34
-84

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT - col2 + col2 / - 30 AS col2 FROM tab0 AS cor0
----
-1
-34
-84

query I rowsort
SELECT + - col2 * col1 + - col1 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT DISTINCT + col2 DIV 8 + - 76 FROM tab1 cor0
----
-64
-69
-70

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT + col2 / 8 + - 76 FROM tab1 cor0
----
-64
-69
-70

query I rowsort
SELECT ALL - 83 + - col0 AS col2 FROM tab1
----
-147
-163
-86

query I rowsort
SELECT DISTINCT - - 87 * - col2 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT DISTINCT - col0 * + 61 AS col0 FROM tab0 cor0
----
-1464
-2135
-5429

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT ALL col1 DIV 18 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL col1 / 18 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col1 + cor0.col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT - 58 - + cor0.col0 FROM tab0 AS cor0
----
-147
-82
-93

query I rowsort
SELECT - - cor0.col0 * - ( + col0 ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT col2 * 83 AS col1 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT DISTINCT - col0 + - 37 FROM tab1 AS cor0
----
-101
-117
-40

query I rowsort
SELECT ALL + + col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - - ( + col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT 14 - - col1 AS col2 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT + cor0.col2 + cor0.col0 + - col0 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - col2 + col1 - col2 * - col1 * + col2 FROM tab0
----
193
611893
93707

query I rowsort
SELECT DISTINCT + 99 + - cor0.col2 - col2 FROM tab0 AS cor0
----
-65
33
97

query I rowsort
SELECT - col1 * col0 + - 59 AS col1 FROM tab2 AS cor0
----
-1402
-276
-4661

query I rowsort
SELECT ( - col2 ) + col2 * - col0 * + 61 FROM tab2
----
-11556
-123734
-183160

query I rowsort
SELECT 94 FROM tab1, tab0 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab1
----
84

query I rowsort
SELECT + + col2 * col1 + + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - + col0 + col1 * + col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - + cor0.col0 + - 43 AS col0 FROM tab2 AS cor0
----
-121
-122
-50

query I rowsort
SELECT col1 * 98 + cor0.col0 AS col2 FROM tab0 AS cor0
----
8452
9007
9541

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3750
SELECT ALL col0 * - CAST( NULL AS SIGNED ) - ( - cor0.col0 + - col2 ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) - ( - cor0.col0 + - col2 ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 - - cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3752
SELECT + col1 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-3752
SELECT + col1 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col2 + 80 AS col1 FROM tab2 AS cor0
----
106
107
118

onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT DISTINCT - col1 + - col2 + 67 DIV col1 FROM tab2
----
-52
-56
-84

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - col1 + - col2 + 67 / col1 FROM tab2
----
-52
-56
-84

query I rowsort
SELECT ALL col0 + + col1 * + ( - 97 ) FROM tab1
----
-1181
-2519
-906

query I rowsort
SELECT ALL - 5 * col2 + ( + tab0.col0 ) AS col2 FROM tab0
----
-141
-321
30

query I rowsort
SELECT + 5 + + col2 AS col0 FROM tab1
----
101
59
62

query I rowsort
SELECT 72 + - col0 + col0 * - col2 FROM tab0
----
-7315
-744
2

query I rowsort
SELECT - 91 * - col0 + ( tab1.col2 ) * col0 + col0 * col0 * col0 FROM tab1
----
271616
462
526960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3760
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 * col0 col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + col2 * 14 * + col0 FROM tab2 AS cor0
----
2646
28392
42028

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3763
SELECT ALL col2 * - CAST( col0 AS SIGNED ) FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL col2 * - CAST ( col0 AS INTEGER ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + - ( col2 ) * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col0 * + col1 * - ( - col2 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3767
SELECT - CAST( + cor0.col1 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif mysql # not compatible
query I rowsort label-3767
SELECT - CAST ( + cor0.col1 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT ALL col1 DIV + tab1.col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL col1 / + tab1.col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 * - ( - col2 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col2 * tab1.col0 * - tab1.col0 AS col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ( - col0 + - tab0.col2 ) FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col0 + - cor0.col2 + col2 * col0 * 36 FROM tab1 AS cor0
----
131335
276464
5781

onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT + ( col2 ) * - col2 * 83 + + col0 DIV - col0 + ( + col0 + + col0 ) * - 19 AS col0 FROM tab0 AS cor0
----
-1414
-561475
-91300

skipif mysql # not compatible
query I rowsort label-3774
SELECT + ( col2 ) * - col2 * 83 + + col0 / - col0 + ( + col0 + + col0 ) * - 19 AS col0 FROM tab0 AS cor0
----
-1414
-561475
-91300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * col0 * col2 col1 FROM tab1 AS cor0
----
13284
299136
629760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3776
SELECT + - CAST( - col2 AS SIGNED ) * + cor0.col2 * + col1 FROM tab0 AS cor0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort label-3776
SELECT + - CAST ( - col2 AS INTEGER ) * + cor0.col2 * + col1 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT + 2 DIV col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3777
SELECT + 2 / col2 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL - tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL col0 * - col2 + - 61 * + col1 FROM tab0 AS cor0
----
-12849
-5952
-6038

onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT ALL 51 - - col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
148
52
53

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL 51 - - col1 / cor0.col2 AS col0 FROM tab0 AS cor0
----
148
52
53

query I rowsort
SELECT 42 * + col2 FROM tab0 cor0
----
1386
3444
42

query I rowsort
SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT - col1 + col0 * + col0 AS col2 FROM tab2 cor0
----
18
6025
6224

query I rowsort
SELECT ALL - 94 + col2 AS col2 FROM tab2 AS cor0
----
-56
-67
-68

skipif mysql # not compatible
query I rowsort
SELECT + + 45 + cor0.col1 * CAST ( ( + col0 ) * - CAST ( + col2 AS REAL ) AS REAL ) AS col2 FROM tab0 cor0
----
-3350
-664073
-68067

query I rowsort
SELECT 20 + + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f45b794165c8162ee6889786b39dd8bb

query I rowsort
SELECT - col1 * ( col2 ) AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + col1 + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT 91 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3790
SELECT + col0 + CAST( col1 AS SIGNED ) * + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-3790
SELECT + col0 + CAST ( col1 AS INTEGER ) * + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - + col1 * col1 + col0 * 65 FROM tab2 AS cor0
----
-506
1589
4846

query I rowsort
SELECT ALL + + 94 * + col0 * col2 - - 61 * + col0 FROM tab2 AS cor0
----
18193
195390
287007

query I rowsort
SELECT + 52 + + col0 FROM tab2 AS cor0
----
130
131
59

query I rowsort
SELECT + col0 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + 71 + col0 * 28 * cor0.col0 FROM tab1 cor0
----
114759
179271
323

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL 77 * - col0 - + 45 * col1 FROM tab1 AS cor0
----
-1401
-5378
-6745

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab2 cor0
----
60

query I rowsort
SELECT + - cor0.col0 AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + + ( + cor0.col0 ) * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 94 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3802
SELECT 50 DIV + col1 - - col2 AS col0 FROM tab1
----
55
62
99

skipif mysql # not compatible
query I rowsort label-3802
SELECT 50 / + col1 - - col2 AS col0 FROM tab1
----
55
62
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + tab2.col1 - tab2.col2 * 41 AS col2 FROM tab2
----
-1007
-1076
-1541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * - 55 + col0 col2 FROM tab0 AS cor0
----
-3156
-3210
-3221

query I rowsort
SELECT + + 95 * - 74 + - col1 AS col1 FROM tab1 AS cor0
----
-7040
-7043
-7056

onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT - col2 DIV + col0 + col0 DIV + col2 + - 38 AS col0 FROM tab1 AS cor0
----
-37
-39
-56

skipif mysql # not compatible
query I rowsort label-3807
SELECT - col2 / + col0 + col0 / + col2 + - 38 AS col0 FROM tab1 AS cor0
----
-37
-39
-56

query I rowsort
SELECT ALL 3 * col0 AS col1 FROM tab2 cor0
----
21
234
237

query I rowsort
SELECT - col2 + + 30 - col1 * col2 FROM tab2
----
-1530
-654
-834

query I rowsort
SELECT col1 + - col1 - col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 81 FROM tab1, tab0 AS cor0
----
81

query I rowsort
SELECT 57 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + - col1 * + cor0.col1 + + col2 + col1 FROM tab1 AS cor0
----
-33
-596
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3814
SELECT + CAST( NULL AS SIGNED ) * + col1 + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT + CAST ( NULL AS INTEGER ) * + col1 + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 13 * + col1 - - tab1.col1 FROM tab1
----
-120
-156
-312

query I rowsort
SELECT DISTINCT + col2 + - col2 * + col2 - col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - col2 * - col1 * 93 + col1 * col2 FROM tab0 AS cor0
----
266772
701428
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3819
SELECT ALL + ( + col2 * col1 ) + + col2 - - ( + col2 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + ( + col2 * col1 ) + + col2 - - ( + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 15 ) AS col0 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT DISTINCT - - 20 * - col2 - col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-520
-540
-762

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - - 20 * - col2 - col2 / + col1 AS col1 FROM tab2 AS cor0
----
-520
-540
-762

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT ALL CAST( NULL AS SIGNED ) + + col1 - + col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 - + col1 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT + - 39 DIV - col2 + col1 AS col0 FROM tab0 AS cor0
----
136
87
91

skipif mysql # not compatible
query I rowsort label-3823
SELECT + - 39 / - col2 + col1 AS col0 FROM tab0 AS cor0
----
136
87
91

query I rowsort
SELECT ALL 68 * tab1.col0 + 36 + - ( col1 ) AS col0 FROM tab1
----
214
4378
5463

query I rowsort
SELECT col2 + col2 * + col2 AS col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 + + col1 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT - 6 * col1 - ( - col1 ) * col0 AS col2 FROM tab0 AS cor0
----
1548
2813
7553

query I rowsort
SELECT - col2 * + col1 + - 30 FROM tab0 AS cor0
----
-127
-2868
-7492

query I rowsort
SELECT ALL col0 + col1 * - cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
-244044
-678953
-9374

query I rowsort
SELECT DISTINCT - - col1 - - 89 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
119544
19344
409637

onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT DISTINCT - cor0.col0 DIV col2 - 14 FROM tab0 AS cor0
----
-14
-15
-49

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT - cor0.col0 / col2 - 14 FROM tab0 AS cor0
----
-14
-15
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3832
SELECT ALL - col0 / - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL - col0 / - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 - + ( + col0 + - col2 ) AS col1 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT cor0.col0 + - ( + col2 ) * + cor0.col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - 80 + 13 AS col2 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT DISTINCT - ( 91 ) * col1 + - ( cor0.col2 ) * - col0 * + 27 FROM tab1 AS cor0
----
2008
206177
97586

query I rowsort
SELECT ALL 40 * - col1 FROM tab2 AS cor0
----
-1240
-2360
-680

query I rowsort
SELECT DISTINCT - cor0.col2 * + 11 AS col0 FROM tab0 AS cor0
----
-11
-363
-902

onlyif mysql # use DIV operator for integer division
query I rowsort label-3839
SELECT ( col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3839
SELECT ( col1 ) / col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - cor0.col2 * ( col2 ) * - cor0.col0 + - col1 * col0 FROM tab0 AS cor0
----
-3360
24072
590337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * 94 col0 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT ALL ( 2 ) * col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT col0 + col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + ( - 92 ) + col1 AS col1 FROM tab1 cor0
----
-66
-79
-82

query I rowsort
SELECT ALL + 90 + - col0 * col0 FROM tab0 cor0
----
-1135
-486
-7831

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 80 col0 FROM tab1 AS cor0
----
80

query I rowsort
SELECT col1 + ( - col2 ) * col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT 36 * col0 + col1 FROM tab1 AS cor0
----
134
2314
2893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 * - cor0.col0 + - cor0.col2 col1 FROM tab0 cor0
----
-260
-71
-81

query I rowsort
SELECT DISTINCT col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col0 * cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - + 25 + + col0 FROM tab2 cor0
----
-18
53
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 - col1 * - col1 col0 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3855
SELECT col1 + col2 DIV col0 FROM tab0 cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-3855
SELECT col1 + col2 / col0 FROM tab0 cor0
----
87
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3856
SELECT col1 DIV + 98 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3856
SELECT col1 / + 98 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * col0 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
-4550
-5595
788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + 16 + + col1 * col1 col0 FROM tab1 AS cor0
----
1124
1449
724

query I rowsort
SELECT ALL cor0.col0 * + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3860
SELECT - 18 + - col0 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
-1361
-235
-4620

skipif mysql # not compatible
query I rowsort label-3860
SELECT - 18 + - col0 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
-1361
-235
-4620

query I rowsort
SELECT 23 * col2 + - col2 FROM tab1
----
1188
1254
2112

query I rowsort
SELECT - col1 * col1 + col0 AS col2 FROM tab1
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3863
SELECT DISTINCT col2 * cor0.col2 + + col0 DIV col0 + cor0.col0 FROM tab2 AS cor0
----
1524
737
755

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT col2 * cor0.col2 + + col0 / col0 + cor0.col0 FROM tab2 AS cor0
----
1524
737
755

query I rowsort
SELECT + - col2 + col2 * - col2 AS col2 FROM tab1 cor0
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT DISTINCT - - col2 + + col0 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - - col2 + + col0 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT ALL 90 DIV col0 + col1 * + 63 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
10648
42618
6301

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL 90 / col0 + col1 * + 63 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
10648
42618
6301

query I rowsort
SELECT ALL 56 * + cor0.col1 - col2 * - col2 FROM tab2 AS cor0
----
2396
2465
3980

query I rowsort
SELECT DISTINCT + 43 + cor0.col1 AS col1 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT ALL + - 14 * + col2 AS col1 FROM tab2 AS cor0
----
-364
-378
-532

query I rowsort
SELECT DISTINCT - col0 + col0 + col0 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - - col2 * 47 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
2541
2743
4592

query I rowsort
SELECT ALL cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col2 * col2 - + tab2.col0 AS col2 FROM tab2
----
1365
598
722

query I rowsort
SELECT + col0 - + 84 AS col0 FROM tab2 AS cor0
----
-5
-6
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3875
SELECT ALL - + ( + ( - col2 ) ) DIV 35 AS col1 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - + ( + ( - col2 ) ) / 35 AS col1 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT 86 + + col1 AS col0 FROM tab2 AS cor0
----
103
117
145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3877
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col1 * - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT CAST ( NULL AS REAL ) + - col1 * - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3878
SELECT + 77 * - col1 * - col2 + + ( - 66 * col0 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT + 77 * - col1 * - col2 + + ( - 66 * col0 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 35 - - col1 * + col0 AS col1 FROM tab1 AS cor0
----
1495
988
990

query I rowsort
SELECT DISTINCT + + ( 97 ) AS col1 FROM tab1 AS cor0
----
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3881
SELECT - - ( col0 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT - - ( col0 ) + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * - cor0.col2 + + ( col0 ) FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - 89 FROM tab1, tab2 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 + col1 col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT 90 + + col2 AS col0 FROM tab0 AS cor0
----
123
172
91

query I rowsort
SELECT - ( + col0 ) * 38 + ( - col2 ) * col2 FROM tab0 AS cor0
----
-10106
-1331
-2001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col1 * + ( - col0 * col2 ) col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT - col0 + + col2 + 47 AS col1 FROM tab1 AS cor0
----
40
63
98

query I rowsort
SELECT - ( cor0.col2 ) * - 47 - + col2 FROM tab0 AS cor0
----
1518
3772
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT ALL + col1 + ( col1 ) DIV + col2 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + col1 + ( col1 ) / + col2 FROM tab0
----
194
88
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3891
SELECT ALL ( - col2 ) * col1 + + col1 DIV col2 + + col2 FROM tab0
----
-2803
-7379
1

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL ( - col2 ) * col1 + + col1 / col2 + + col2 FROM tab0
----
-2803
-7379
1

query I rowsort
SELECT ALL 10 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT col2 * + ( col1 ) * col2 - col1 FROM tab1 AS cor0
----
119795
32480
75790

query I rowsort
SELECT + 4 * col0 + + col0 + + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
177
3968
8080

query I rowsort
SELECT - col0 + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT + col1 + col2 * cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
2113
247
3057

onlyif mysql # use DIV operator for integer division
query I rowsort label-3898
SELECT DISTINCT + - col1 + col2 DIV - 80 FROM tab1 AS cor0
----
-10
-14
-26

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT + - col1 + col2 / - 80 FROM tab1 AS cor0
----
-10
-14
-26

query I rowsort
SELECT - tab2.col0 * 83 FROM tab2
----
-581
-6474
-6557

query I rowsort
SELECT ALL - ( 38 ) AS col2 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL + 75 * col2 * col1 AS col0 FROM tab0
----
212850
559650
7275

query I rowsort
SELECT 52 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - + 75 + - 20 * col1 AS col2 FROM tab2 AS cor0
----
-1255
-415
-695

query I rowsort
SELECT col1 + col0 * + col1 * ( col2 ) AS col2 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT - col2 * - 51 + - col1 FROM tab0 AS cor0
----
-46
1597
4091

query I rowsort
SELECT + col1 * + col0 + - cor0.col2 + col1 FROM tab0 AS cor0
----
2117
3491
8108

query I rowsort
SELECT ALL + + col2 * - col1 + + col1 * - col2 FROM tab0 AS cor0
----
-14924
-194
-5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT - col0 * col0 * 70 - - col0 * cor0.col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-3431
-425983
-437237

skipif mysql # not compatible
query I rowsort label-3908
SELECT - col0 * col0 * 70 - - col0 * cor0.col0 / - col1 AS col0 FROM tab2 AS cor0
----
-3431
-425983
-437237

query I rowsort
SELECT + + col1 - - col0 * 61 AS col0 FROM tab1 cor0
----
209
3914
4893

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3910
SELECT ALL + + col1 * col2 * col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + + col1 * col2 * col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 39 + col2 AS col1 FROM tab2 AS cor0
----
65
66
77

query I rowsort
SELECT - ( - 42 ) + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-36
-37
35

query I rowsort
SELECT - - col2 + col0 * - col2 + col0 FROM tab2 cor0
----
-155
-1924
-2885

query I rowsort
SELECT DISTINCT 98 * - col1 FROM tab0 AS cor0
----
-8428
-8918
-9506

query I rowsort
SELECT DISTINCT - col2 * 16 + - cor0.col0 AS col1 FROM tab1 cor0
----
-1616
-867
-976

query I rowsort
SELECT - 32 + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1311
185
4570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3917
SELECT DISTINCT CAST( NULL AS SIGNED ) * cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT CAST ( NULL AS INTEGER ) * cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 31 * col2 - col1 FROM tab0 AS cor0
----
-1109
-128
-2633

query I rowsort
SELECT ALL + col0 * + ( + col2 * col0 ) + col0 * col2 FROM tab2 AS cor0
----
1512
160212
240160

query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
61

query I rowsort
SELECT + - col1 * + col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * cor0.col0 col2 FROM tab1 AS cor0
----
285
6080
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + 81 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT - col1 * col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT DISTINCT - + col1 DIV - 89 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT - + col1 / - 89 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3928
SELECT DISTINCT + - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT + - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * 12 col2 FROM tab0 AS cor0
----
12
396
984

query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT ( + 35 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
35

query I rowsort
SELECT + col0 + col2 * cor0.col0 AS col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT 32 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
32

query I rowsort
SELECT 96 + col1 * - ( + col0 ) FROM tab1
----
-544
-944
18

query I rowsort
SELECT DISTINCT col1 * + 59 AS col1 FROM tab2
----
1003
1829
3481

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3936
SELECT DISTINCT col0 - CAST( NULL AS SIGNED ) * - tab2.col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT col0 - CAST ( NULL AS INTEGER ) * - tab2.col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 * ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT ( col0 ) + col2 + + 25 FROM tab1
----
146
201
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * - tab0.col1 col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ( + 39 ) FROM tab2
----
39
39
39

query I rowsort
SELECT + ( 43 ) FROM tab1
----
43
43
43

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3943
SELECT + + ( - col1 ) + col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3943
SELECT + + ( - col1 ) + col2 / - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - ( - 3 ) + col1 AS col1 FROM tab1
----
13
16
29

query I rowsort
SELECT ALL - ( - ( tab0.col1 ) ) * - tab0.col1 + - col0 * tab0.col2 FROM tab0
----
-15579
-8188
-9444

query I rowsort
SELECT ALL col1 * - col2 + col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col2 + 76 AS col2 FROM tab0
----
-6
43
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT DISTINCT + col0 + col0 DIV + 62 AS col0 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT + col0 + col0 / + 62 AS col0 FROM tab0 AS cor0
----
24
35
90

query I rowsort
SELECT - 6 + - col2 * + ( - 10 ) + col0 FROM tab0 AS cor0
----
348
39
903

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3950
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL + col0 * - col2 + + 28 * - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-20601
-20956
-43434

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3952
SELECT DISTINCT - col1 + + col0 * CAST( 24 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2045
490
743

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - col1 + + col0 * CAST ( 24 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2045
490
743

onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT ALL + 28 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + 28 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT + 71 + col0 + 90 FROM tab2 AS cor0
----
168
239
240

query I rowsort
SELECT DISTINCT col1 * + col0 + + col1 * + col0 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT - 88 + + col1 FROM tab2 AS cor0
----
-29
-57
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3958
SELECT - CAST( NULL AS SIGNED ) * - col2 * + col0 + - CAST( - 61 + col2 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT - CAST ( NULL AS INTEGER ) * - col2 * + col0 + - CAST ( - 61 + col2 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + 14 * col1 + + col1 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT - ( col2 ) - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT 21 FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3963
SELECT - col1 + + CAST( NULL AS SIGNED ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT - col1 + + CAST ( NULL AS INTEGER ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3964
SELECT col1 DIV + 32 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3964
SELECT col1 / + 32 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( - col2 ) * + col2 AS col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT col0 * 89 FROM tab2
----
623
6942
7031

query I rowsort
SELECT DISTINCT - ( + 10 * col2 ) AS col2 FROM tab1
----
-540
-570
-960

query I rowsort
SELECT + + cor0.col1 + - 71 FROM tab0 AS cor0
----
15
20
26

query I rowsort
SELECT - col1 + + 72 * + col1 AS col1 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT + 86 * 93 * + col2 + 80 AS col1 FROM tab2 AS cor0
----
208028
216026
304004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col2 FROM tab0
----
26
26
26

query I rowsort
SELECT ALL + ( + col2 ) * ( col2 ) AS col0 FROM tab2 AS cor0
----
1444
676
729

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e

query I rowsort
SELECT DISTINCT - 8 * + col0 FROM tab0
----
-192
-280
-712

onlyif mysql # use DIV operator for integer division
query I rowsort label-3975
SELECT ALL tab2.col0 DIV - col1 col0 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL tab2.col0 / - col1 col0 FROM tab2
----
-1
-4
0

query I rowsort
SELECT ALL ( - col1 ) * + col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3977
SELECT - - col1 + + 42 DIV - col2 - col2 FROM tab0 AS cor0
----
52
54
9

skipif mysql # not compatible
query I rowsort label-3977
SELECT - - col1 + + 42 / - col2 - col2 FROM tab0 AS cor0
----
52
54
9

query I rowsort
SELECT DISTINCT + col0 + - 33 AS col0 FROM tab2 cor0
----
-26
45
46

query I rowsort
SELECT ALL col2 + ( col0 ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col0 * col1 + - col2 * + cor0.col0 AS col2 FROM tab1 cor0
----
-240
-4288
-8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3981
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3982
SELECT ALL - col0 DIV 53 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL - col0 / 53 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3983
SELECT ALL - col0 * col1 DIV col2 FROM tab0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - col0 * col1 / col2 FROM tab0
----
-3395
-62
-98

query I rowsort
SELECT DISTINCT col2 * + col1 * col0 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - - col1 + + col0 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT 30 + + 35 AS col1 FROM tab2, tab2 cor0
----
65

query I rowsort
SELECT col0 + - col0 - - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3988
SELECT + col1 + + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3988
SELECT + col1 + + col0 / + col0 AS col1 FROM tab2 AS cor0
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT CAST( - col2 AS SIGNED ) + - col1 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3989
SELECT CAST ( - col2 AS INTEGER ) + - col1 / - col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3990
SELECT ALL ( + 5 ) DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL ( + 5 ) / - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3991
SELECT 25 + col2 * col2 - CAST( ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1147
27
6831

skipif mysql # not compatible
query I rowsort label-3991
SELECT 25 + col2 * col2 - CAST ( ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1147
27
6831

query I rowsort
SELECT - 83 * - col0 + + col2 FROM tab0 cor0
----
2025
2906
7469

query I rowsort
SELECT - col1 - + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3994
SELECT + col2 DIV 53 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT + col2 / 53 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - 58 * 63 + col2 FROM tab0 cor0
----
-3572
-3621
-3653

query I rowsort
SELECT - 66 * col1 + + col1 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT ALL ( + 20 ) FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT - 41 + + col1 * - col2 FROM tab2 AS cor0
----
-1575
-687
-878

query I rowsort
SELECT - - col0 * col0 * + col2 + - 76 FROM tab2 AS cor0
----
1247
158108
237082

query I rowsort
SELECT + - 30 FROM tab2 AS cor0
----
-30
-30
-30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4001
SELECT + 82 * - col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 82 * - col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col1 * - cor0.col1 + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to be6ef433bae313f0073c58dde5ee5f2d

query I rowsort
SELECT ALL 31 * - col0 AS col1 FROM tab0
----
-1085
-2759
-744

query I rowsort
SELECT 42 FROM tab1 cor0
----
42
42
42

query I rowsort
SELECT DISTINCT 14 * - col1 FROM tab0
----
-1204
-1274
-1358

query I rowsort
SELECT ALL - 18 * + 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 55761fecef470b500a4154b602cbc79d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4007
SELECT ALL + + col0 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + + col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 * + col0 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT DISTINCT col0 + + col1 * + col0 * 1 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT 49 + + 36 FROM tab0
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4011
SELECT 48 DIV col2 + col1 * - 15 FROM tab1
----
-150
-195
-390

skipif mysql # not compatible
query I rowsort label-4011
SELECT 48 / col2 + col1 * - 15 FROM tab1
----
-150
-195
-390

query I rowsort
SELECT - 57 * tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b3c8b5d59b492d1f7afa6ee176eab00d

query I rowsort
SELECT + 66 + tab0.col0 AS col1 FROM tab0
----
101
155
90

query I rowsort
SELECT 24 + 25 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT DISTINCT 15 * + 98 FROM tab2
----
1470

query I rowsort
SELECT col0 * cor0.col1 + + 65 FROM tab2 AS cor0
----
1408
282
4667

query I rowsort
SELECT + 79 AS col1 FROM tab1 cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4018
SELECT - + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4018
SELECT - + col1 / - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - cor0.col0 + - col1 * + cor0.col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - col0 * - col2 * + 90 FROM tab2 AS cor0
----
17010
182520
270180

query I rowsort
SELECT 58 + cor0.col2 * col1 FROM tab2 AS cor0
----
1592
704
895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 * 87 col0 FROM tab1 AS cor0
----
-108576
-122148
-49590

query I rowsort
SELECT ( 1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4024
SELECT DISTINCT col0 * 77 * col1 + + col1 * CAST( - 41 AS SIGNED ) + + col0 FROM tab2
----
102793
15445
352013

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT col0 * 77 * col1 + + col1 * CAST ( - 41 AS INTEGER ) + + col0 FROM tab2
----
102793
15445
352013

query I rowsort
SELECT col0 + + 74 * col2 AS col1 FROM tab0 AS cor0
----
109
2466
6157

query I rowsort
SELECT col0 * col1 + 10 AS col1 FROM tab0 AS cor0
----
2074
3405
8109

query I rowsort
SELECT + col0 * + 24 + col1 * col1 FROM tab1 AS cor0
----
1636
2089
748

query I rowsort
SELECT DISTINCT + - 74 * + col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT ( col2 ) DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4029
SELECT ( col2 ) / col0 AS col2 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + col1 * - 40 AS col2 FROM tab1 AS cor0
----
-1040
-400
-520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 col0 FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-4032
SELECT - ( cor0.col0 ) DIV - col1 + 35 + col2 * col1 * + col0 col2 FROM tab1 AS cor0
----
36521
4247
99881

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4032
SELECT - ( cor0.col0 ) / - col1 + 35 + col2 * col1 * + col0 col2 FROM tab1 AS cor0
----
36521
4247
99881

onlyif mysql # use DIV operator for integer division
query I rowsort label-4033
SELECT DISTINCT cor0.col0 DIV + 93 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT cor0.col0 / + 93 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4034
SELECT - col0 DIV 24 AS col2 FROM tab1 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-4034
SELECT - col0 / 24 AS col2 FROM tab1 AS cor0
----
-2
-3
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4035
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 14 + + col0 * 98 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 14 + + col0 * 98 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4036
SELECT + 68 DIV col1 col1 FROM tab2 AS cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4036
SELECT + 68 / col1 col1 FROM tab2 AS cor0
----
1
2
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4037
SELECT ALL CAST( 75 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL CAST ( 75 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT + 14 + + col1 FROM tab0
----
100
105
111

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

onlyif mysql # use DIV operator for integer division
query I rowsort label-4040
SELECT DISTINCT - - 29 DIV - col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT - - 29 / - col0 FROM tab2 AS cor0
----
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4041
SELECT ALL + col0 * col0 * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + col0 * col0 * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + col2 + + col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT + 51 * col1 + - col2 FROM tab0 AS cor0
----
4353
4559
4946

query I rowsort
SELECT DISTINCT - 2 * col2 - col0 FROM tab0 AS cor0
----
-253
-37
-90

query I rowsort
SELECT ALL - + ( + col1 ) - + col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4046
SELECT DISTINCT 53 * - ( col0 ) + CAST( + cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-1239
-1854
-4635

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT 53 * - ( col0 ) + CAST ( + cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-1239
-1854
-4635

query I rowsort
SELECT ALL - - 19 + + cor0.col0 FROM tab2 AS cor0
----
26
97
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + 4 col2 FROM tab1 cor0
----
100
58
61

query I rowsort
SELECT ALL - - 10 AS col0 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT ALL 54 - col2 FROM tab1 AS cor0
----
-3
-42
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4051
SELECT - col0 + - col2 DIV + 65 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4051
SELECT - col0 + - col2 / + 65 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col2 * + 79 + ( col0 ) * + ( col2 ) AS col2 FROM tab1 cor0
----
15264
4428
8151

query I rowsort
SELECT DISTINCT - - col0 * + col1 + - col0 + - col2 AS col0 FROM tab2 cor0
----
1226
183
4498

query I rowsort
SELECT ALL - col2 + - col0 * + 30 FROM tab1 AS cor0
----
-144
-1977
-2496

query I rowsort
SELECT + col1 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col1 * + 28 + col0 FROM tab0 AS cor0
----
2432
2637
2751

query I rowsort
SELECT DISTINCT - col0 + ( - cor0.col0 ) FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL col2 * 24 - 71 AS col1 FROM tab2 AS cor0
----
553
577
841

query I rowsort
SELECT ALL + + col2 * + ( + col0 * col1 ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + cor0.col0 * ( - col0 ) + + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-4061
SELECT DISTINCT col2 DIV + col1 + - col0 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT col2 / + col1 + - col0 FROM tab1
----
-1
-59
-73

query I rowsort
SELECT ALL - col2 + + 1 * 73 AS col1 FROM tab0
----
-9
40
72

query I rowsort
SELECT col2 * col2 + + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT tab1.col1 * + 48 * col1 FROM tab1
----
32448
4800
8112

query I rowsort
SELECT - col2 + + ( - col0 * col2 ) AS col1 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT - col0 + + cor0.col0 + + col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + col2 - + cor0.col2 AND NULL
----

query I rowsort
SELECT col1 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + cor0.col0 - col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT + col0 DIV + col2 + col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4069
SELECT + col0 / + col2 + col0 FROM tab1 AS cor0
----
3
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * - tab1.col1 col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT ALL col2 + + col2 - col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT - col0 DIV + col0 + + tab0.col1 * col1 col1 FROM tab0
----
7395
8280
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4073
SELECT - col0 / + col0 + + tab0.col1 * col1 col1 FROM tab0
----
7395
8280
9408

query I rowsort
SELECT tab1.col1 * - col1 - + col1 AS col1 FROM tab1
----
-110
-182
-702

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * + col0 + - col1 col0 FROM tab2
----
312
474493
493022

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT ALL + col2 DIV - tab0.col1 + - col2 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + col2 / - tab0.col1 + - col2 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL - col1 * col2 * + col0 FROM tab1
----
-36480
-4212
-99840

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col2 OR NULL NOT BETWEEN col2 * + col1 AND col0
----

query I rowsort
SELECT - col2 + - col0 * tab1.col1 * - col1 AS col1 FROM tab1
----
13424
1974
6343

onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT - col2 + - col1 DIV tab0.col0 FROM tab0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-4081
SELECT - col2 + - col1 / tab0.col0 FROM tab0
----
-3
-36
-83

query I rowsort
SELECT DISTINCT - - col2 * col1 * col1 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + col2 * col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT tab0.col2 + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to bd4afbebf32cf7139d4a26f0c77f8156

query I rowsort
SELECT + 15 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT - col0 * + cor0.col0 + + col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT - col2 * col0 + + 18 * - col1 FROM tab0 AS cor0
----
-1781
-2340
-8936

query I rowsort
SELECT col2 * + 40 AS col1 FROM tab0 AS cor0
----
1320
3280
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT ALL - col0 DIV - 87 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL - col0 / - 87 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + ( col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT col0 * 69 DIV col0 FROM tab2 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-4091
SELECT col0 * 69 / col0 FROM tab2 AS cor0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 1 col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab2.col1 + col0 col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4095
SELECT ALL + col2 * col0 + + tab1.col2 DIV col0 FROM tab1
----
180
3648
7681

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL + col2 * col0 + + tab1.col2 / col0 FROM tab1
----
180
3648
7681

query I rowsort
SELECT ALL - col0 * col1 + - col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT + col2 * - col1 + col2 AS col2 FROM tab1
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * + tab2.col0 col1 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT col1 + - col2 - + col2 * col2 * tab0.col1 FROM tab0
----
-1
-611875
-93601

query I rowsort
SELECT col2 * - tab0.col2 * + col2 FROM tab0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT DISTINCT col1 + tab0.col0 DIV - col1 + + col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT col1 + tab0.col0 / - col1 + + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT - col1 * - col0 * + col2 + col0 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT ALL - col1 + col2 + col1 AS col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4104
SELECT ALL col1 DIV + col2 + col2 + col1 * - col2 * col2 FROM tab0
----
-611801
-93619
1

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL col1 / + col2 + col2 + col1 * - col2 * col2 FROM tab0
----
-611801
-93619
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - col1 - - col2 * + tab1.col0 AS col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT - col2 - col1 * - col1 FROM tab2
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-4108
SELECT DISTINCT col0 DIV - col0 + + col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT col0 / - col0 + + col2 FROM tab0
----
0
32
81

query I rowsort
SELECT + tab1.col1 + tab1.col1 * - col2 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT ALL + col2 + - col1 DIV col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + col2 + - col1 / col1 FROM tab0
----
0
32
81

query I rowsort
SELECT ALL col2 + + ( + cor0.col0 ) * - col2 * col2 FROM tab1 AS cor0
----
-207879
-737184
-8694

onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT col1 + - cor0.col1 * col1 DIV + col2 + col1 FROM tab1 cor0
----
19
25
40

skipif mysql # not compatible
query I rowsort label-4112
SELECT col1 + - cor0.col1 * col1 / + col2 + col1 FROM tab1 cor0
----
19
25
40

query I rowsort
SELECT ALL - col1 + - ( + col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT - col2 + - 65 * col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-154
-202
-6306

skipif mysql # not compatible
query I rowsort label-4114
SELECT - col2 + - 65 * col1 / col2 AS col2 FROM tab0 AS cor0
----
-154
-202
-6306

query I rowsort
SELECT - col2 + cor0.col1 * cor0.col2 FROM tab2 cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT ALL + col0 DIV cor0.col0 - ( col1 + - col1 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + col0 / cor0.col0 - ( col1 + - col1 ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 + col0 + col2 AS col0 FROM tab0
----
260
71
81

query I rowsort
SELECT DISTINCT tab0.col2 * - 17 AS col2 FROM tab0
----
-1394
-17
-561

query I rowsort
SELECT col2 * 86 AS col1 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT ALL col1 + col1 * col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT col0 * col1 + - 49 FROM tab1 AS cor0
----
29
591
991

query I rowsort
SELECT col1 - + col0 * - col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4123
SELECT 23 / ( col0 ) + - CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT 23 / ( col0 ) + - CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 ) + + ( - col0 ) * + col1 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + 88 * tab1.col1 AS col1 FROM tab1
----
1144
2288
880

query I rowsort
SELECT - 16 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 6a726f8493b62c5d4e1dd657007160c3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * col2 col1 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT + cor0.col2 + col0 + col1 AS col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT tab1.col2 * col1 + - col0 AS col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 12 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
13
45
94

query I rowsort
SELECT col1 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT DISTINCT - col1 DIV col1 + col2 * col0 DIV col1 + + col0 FROM tab2 AS cor0
----
111
12
254

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT - col1 / col1 + col2 * col0 / col1 + + col0 FROM tab2 AS cor0
----
111
12
254

query I rowsort
SELECT + 27 * cor0.col0 AS col0 FROM tab0 cor0
----
2403
648
945

onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT ALL - + col1 * - col0 - - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL - + col1 * - col0 - - col1 / - col1 AS col0 FROM tab2 AS cor0
----
1342
216
4601

query I rowsort
SELECT DISTINCT - - 12 AS col1 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT - + col0 * col2 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + + col2 + - col2 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + cor0.col2 * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 * - col2 col0 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + col1 col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - + col1 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT - 44 * + cor0.col0 FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT ALL - 84 * + cor0.col1 + + cor0.col2 * col1 FROM tab0 AS cor0
----
-182
-4386
-8051

query I rowsort
SELECT cor0.col1 * 1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - 24 + - 28 AS col2 FROM tab1 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( 46 AS REAL ) AS col1 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4149
SELECT DISTINCT CAST( - col1 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + - 3 AS col0 FROM tab1 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 14 * + 50 col2 FROM tab0 AS cor0
----
700
700
700

query I rowsort
SELECT DISTINCT 77 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1457
-569
-760

query I rowsort
SELECT ALL - col1 * - col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - col1 - - col2 * - col1 FROM tab2
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 * - col0 col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT col2 * + col1 - - col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - + col0 + + col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT DISTINCT + col1 - + col0 * - col0 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT ( + tab2.col0 ) * col1 * + col2 + + tab2.col2 + col2 AS col1 FROM tab2
----
119704
51110
5913

query I rowsort
SELECT DISTINCT + 98 - col2 AS col1 FROM tab1
----
2
41
44

query I rowsort
SELECT - ( - col2 ) * col1 + tab2.col0 + tab2.col1 AS col0 FROM tab2
----
1671
742
875

query I rowsort
SELECT DISTINCT - 47 * col0 + - col0 FROM tab0
----
-1152
-1680
-4272

query I rowsort
SELECT + col2 * + 14 + - col2 FROM tab1
----
1248
702
741

query I rowsort
SELECT DISTINCT + col1 * + col2 - col2 * - col1 FROM tab1
----
1140
2496
2808

query I rowsort
SELECT + col2 + col1 + - col1 * col0 AS col2 FROM tab2
----
-1288
-159
-4517

query I rowsort
SELECT DISTINCT 11 + col2 AS col0 FROM tab0 AS cor0
----
12
44
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4167
SELECT - CAST( NULL AS SIGNED ) + 6 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT - CAST ( NULL AS INTEGER ) + 6 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + col0 col0 FROM tab1 AS cor0
----
102
118
41

query I rowsort
SELECT ALL - col0 + col2 * cor0.col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 54 + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2970
3303
9270

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4172
SELECT - CAST( cor0.col1 AS SIGNED ) FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4172
SELECT - CAST ( cor0.col1 AS INTEGER ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT 20 * col1 FROM tab1 AS cor0
----
200
260
520

query I rowsort
SELECT 30 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + + 71 * + col1 col1 FROM tab1 AS cor0
----
2008
4358
8603

query I rowsort
SELECT + col0 + - col2 * + 50 FROM tab0 AS cor0
----
-15
-1626
-4011

query I rowsort
SELECT + cor0.col1 * + col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4180
SELECT DISTINCT col1 DIV col1 + + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT col1 / col1 + + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL - cor1.col0 FROM tab1, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT ALL - col1 * - 57 - 95 * + col2 FROM tab2 AS cor0
----
-2641
-798
893

query I rowsort
SELECT col0 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + - cor0.col2 + 3 AS col1 FROM tab0 cor0
----
-30
-79
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL + 14 + tab2.col2 AS col1 FROM tab2
----
40
41
52

query I rowsort
SELECT + cor0.col1 * ( - 35 ) * col0 + - ( - col0 * - col0 ) AS col2 FROM tab1 AS cor0
----
-26496
-2739
-42800

query I rowsort
SELECT + col2 * - cor0.col1 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + ( col2 ) * - col1 + col0 AS col1 FROM tab0 cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4191
SELECT DISTINCT - col2 - ( col2 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT - col2 - ( col2 ) / - col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - 80 * - 71 + - col1 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
-100417
-353276
4161

query I rowsort
SELECT ALL + col0 - - col1 * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - + ( - col2 ) * col0 + - 37 FROM tab1 cor0
----
125
3611
7643

query I rowsort
SELECT + 61 + - tab0.col0 AS col1 FROM tab0
----
-28
26
37

query I rowsort
SELECT 39 * + col0 FROM tab0
----
1365
3471
936

query I rowsort
SELECT + ( - col0 ) * - col0 + - 3 * col1 AS col2 FROM tab0 AS cor0
----
318
7648
934

query I rowsort
SELECT - + col1 * 3 + col0 * - ( col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
106046
1426
358779

onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT ALL tab0.col1 DIV - col2 + - tab0.col2 AS col1 FROM tab0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL tab0.col1 / - col2 + - tab0.col2 AS col1 FROM tab0
----
-35
-83
-98

query I rowsort
SELECT ( col2 ) - col0 FROM tab1
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4201
SELECT ALL CAST( NULL AS SIGNED ) + - 39 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL CAST ( NULL AS INTEGER ) + - 39 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 95 * col1 FROM tab1
----
1235
2470
950

query I rowsort
SELECT - col1 * - 28 + col1 AS col0 FROM tab2 cor0
----
1711
493
899

query I rowsort
SELECT - col2 + + col1 - - col0 AS col2 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT DISTINCT - - col0 * + 92 AS col1 FROM tab2 AS cor0
----
644
7176
7268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4206
SELECT ALL col1 + + CAST( + col0 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL col1 + + CAST ( + col0 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col1 + - tab1.col2 AS col0 FROM tab1
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT col0 * tab2.col1 DIV ( + col0 ) FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4208
SELECT col0 * tab2.col1 / ( + col0 ) FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT 36 DIV - col2 FROM tab0
----
-1
-36
0

skipif mysql # not compatible
query I rowsort label-4209
SELECT 36 / - col2 FROM tab0
----
-1
-36
0

query I rowsort
SELECT ALL 93 * - col2 FROM tab2
----
-2418
-2511
-3534

query I rowsort
SELECT + col1 * + col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + - col0 + + col1 - + 42 * - col2 AS col0 FROM tab1 AS cor0
----
2291
2340
3965

onlyif mysql # use DIV operator for integer division
query I rowsort label-4213
SELECT - col0 DIV - ( cor0.col0 * - col2 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT - col0 / - ( cor0.col0 * - col2 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + col1 * - col1 + + col0 - - col1 AS col2 FROM tab2 AS cor0
----
-193
-3344
-923

query I rowsort
SELECT col1 * - 51 + 88 * + col0 + - col2 FROM tab1 AS cor0
----
-1116
5065
6281

query I rowsort
SELECT ALL + 23 + + col0 * + 19 AS col0 FROM tab1
----
1239
1543
80

query I rowsort
SELECT ALL - ( col1 ) * 32 + - 18 * - tab1.col2 AS col0 FROM tab1
----
1312
140
706

query I rowsort
SELECT col1 * - cor0.col2 + + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL + col0 * - cor0.col1 * + ( col2 ) + col2 * - 66 FROM tab1 AS cor0
----
-106176
-40242
-7776

query I rowsort
SELECT DISTINCT + + col0 + col1 + col2 AS col0 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ALL 70 * col1 + col0 FROM tab0 AS cor0
----
6044
6459
6825

query I rowsort
SELECT ALL - - col1 - + col1 * - ( col0 + col0 ) AS col1 FROM tab0 AS cor0
----
16289
4214
6887

query I rowsort
SELECT ALL + col2 * - col2 + + ( cor0.col1 ) FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + - 40 * col0 + + col2 AS col0 FROM tab0 cor0
----
-1399
-3478
-927

query I rowsort
SELECT ALL + col1 + col2 * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
159
2900
7464

onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT DISTINCT + - col2 * col0 + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + - col2 * col0 + col2 / - col2 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

query I rowsort
SELECT DISTINCT - cor0.col0 + 54 FROM tab1 AS cor0
----
-10
-26
51

query I rowsort
SELECT - col1 * col1 + - col0 AS col0 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT col2 + - 5 + 5 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT DISTINCT - col2 DIV 8 FROM tab2 AS cor0
----
-3
-4

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT - col2 / 8 FROM tab2 AS cor0
----
-3
-4

query I rowsort
SELECT DISTINCT + cor0.col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT DISTINCT col0 * - cor0.col1 - + col1 * cor0.col1 DIV - ( 54 * - col0 ) FROM tab2 AS cor0
----
-1343
-219
-4602

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT col0 * - cor0.col1 - + col1 * cor0.col1 / - ( 54 * - col0 ) FROM tab2 AS cor0
----
-1343
-219
-4602

query I rowsort
SELECT ALL + col0 * col1 + tab0.col0 * col2 AS col2 FROM tab0
----
15397
2856
3430

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4234
SELECT col0 * col0 * - CAST( - col2 + col1 AS SIGNED ) FROM tab2
----
-196
-200772
131061

skipif mysql # not compatible
query I rowsort label-4234
SELECT col0 * col0 * - CAST ( - col2 + col1 AS INTEGER ) FROM tab2
----
-196
-200772
131061

query I rowsort
SELECT + col0 * col1 - + col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - col2 * + 14 + + col0 * 76 FROM tab0 AS cor0
----
1362
2646
5616

query I rowsort
SELECT DISTINCT col2 + - col1 * cor0.col1 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT ALL 88 + col0 FROM tab2 AS cor0
----
166
167
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT + + cor0.col0 - - col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + cor0.col0 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL - col2 * ( ( tab2.col0 ) + - ( 1 ) ) AS col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL + col1 * 14 AS col0 FROM tab0
----
1204
1274
1358

query I rowsort
SELECT ALL col0 + 52 + - col2 FROM tab0 AS cor0
----
43
59
86

query I rowsort
SELECT DISTINCT + + col0 + + 86 FROM tab0 AS cor0
----
110
121
175

query I rowsort
SELECT ALL cor0.col2 * col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col2 - + col0 * + col0 FROM tab0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT ALL + col0 DIV - col2 + col0 * - col0 DIV + col0 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + col0 / - col2 + col0 * - col0 / + col0 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT + 96 + col0 * col1 FROM tab2
----
1439
313
4698

query I rowsort
SELECT - col2 + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT + 55 * + col0 AS col1 FROM tab2 AS cor0
----
385
4290
4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 38 + col2 col0 FROM tab2 AS cor0
----
-11
-12
0

query I rowsort
SELECT col2 * tab2.col2 - - col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL - ( col2 ) * col2 - - col0 * col2 FROM tab2
----
-540
1352
1558

query I rowsort
SELECT + ( col0 ) * ( - col2 ) + col2 + col1 AS col1 FROM tab1 AS cor0
----
-3581
-7571
-82

query I rowsort
SELECT + + col2 - + col0 AS col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - tab0.col1 + + 55 FROM tab0
----
-31
-36
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT + ( + tab2.col2 ) DIV col1 + col1 - tab2.col2 * col2 FROM tab2
----
-1425
-617
-698

skipif mysql # not compatible
query I rowsort label-4259
SELECT + ( + tab2.col2 ) / col1 + col1 - tab2.col2 * col2 FROM tab2
----
-1425
-617
-698

query I rowsort
SELECT - col0 * col1 + col1 * + col1 FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT DISTINCT 70 + + col2 FROM tab1
----
124
127
166

query I rowsort
SELECT - - 39 AS col0 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT - - col1 + - col1 - + cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + cor0.col0 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT cor0.col1 + - col1 - + 2 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + 14 + cor0.col0 FROM tab2 AS cor0
----
21
92
93

query I rowsort
SELECT col1 * - cor0.col0 - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL + col2 + col0 * 61 AS col2 FROM tab0 AS cor0
----
1497
2136
5511

onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT ALL col0 + col1 DIV - 89 col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL col0 + col1 / - 89 col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4270
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + col2 * col2 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + col2 * col2 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + + cor0.col0 * col0 + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL cor0.col1 * - 77 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 46b7b81f1d9d9c006ab74538d9de46ba

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT cor1.col0 * 35 - 50 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 3a7512770096e4f61c1a7d44aa90d2c6

query I rowsort
SELECT DISTINCT + + ( 93 ) * - col1 AS col1 FROM tab1 cor0
----
-1209
-2418
-930

query I rowsort
SELECT DISTINCT - col1 * col0 + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - 20 * col0 AS col1 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT DISTINCT 15 * + col0 AS col0 FROM tab2 AS cor0
----
105
1170
1185

onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT ALL col1 DIV 37 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL col1 / 37 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col0 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 38 AS col1 FROM tab1 cor0
----
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4283
SELECT ALL - - CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - - CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( cor0.col1 ) * - col1 + - col0 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT 15 * col1 * + ( - col2 ) FROM tab1 AS cor0
----
-18720
-21060
-8550

query I rowsort
SELECT ALL - 2 * - col1 * - 11 FROM tab0
----
-1892
-2002
-2134

query I rowsort
SELECT ALL + col0 * col1 * - col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT DISTINCT - cor2.col1 DIV - 81 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT - cor2.col1 / - 81 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
0

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab0 cor0, tab2 cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4290
SELECT ALL + ( ( col0 ) ) DIV - 53 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + ( ( col0 ) ) / - 53 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ( 19 ) FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT ALL 93 + col0 AS col0 FROM tab1
----
157
173
96

query I rowsort
SELECT 53 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT - col1 * - 52 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-147600
-388113
-5079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + - col2 * cor0.col2 col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - 36 - + col1 AS col1 FROM tab2 AS cor0
----
-53
-67
-95

query I rowsort
SELECT ALL 8 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
117
234
90

query I rowsort
SELECT - - 16 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT - cor0.col0 * - cor0.col2 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-3239
-4056
140

query I rowsort
SELECT DISTINCT 3 + col0 FROM tab0
----
27
38
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4301
SELECT DISTINCT col1 + col1 DIV + col0 FROM tab2
----
17
35
59

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT col1 + col1 / + col0 FROM tab2
----
17
35
59

query I rowsort
SELECT DISTINCT ( - col2 ) - tab2.col1 AS col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT - + 23 + col1 AS col2 FROM tab2 AS cor0
----
-6
36
8

query I rowsort
SELECT 68 * + cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ef2f3ebc25d51d7b6f51af2f4eebf82f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4305
SELECT CAST( NULL AS SIGNED ) * ( col2 ) + - 54 + ( - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT CAST ( NULL AS INTEGER ) * ( col2 ) + - 54 + ( - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT + + ( - col2 ) DIV ( - cor0.col0 ) - col1 * cor0.col1 col2 FROM tab2 AS cor0
----
-289
-3481
-958

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4306
SELECT + + ( - col2 ) / ( - cor0.col0 ) - col1 * cor0.col1 col2 FROM tab2 AS cor0
----
-289
-3481
-958

query I rowsort
SELECT 76 * - col2 AS col0 FROM tab0
----
-2508
-6232
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4308
SELECT cor0.col2 DIV - ( tab1.col1 ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2f2598825c3da6a1c4a8eff255c611e5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4308
SELECT cor0.col2 / - ( tab1.col1 ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2f2598825c3da6a1c4a8eff255c611e5

query I rowsort
SELECT DISTINCT + col2 * ( + cor0.col0 ) + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL cor0.col0 + - col2 - - cor0.col1 * col2 FROM tab1 AS cor0
----
1232
1353
577

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + + col1 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col2 * - col1 * - col0 + col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT ( - col1 ) * - 52 * col1 AS col1 FROM tab2
----
15028
181012
49972

onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT ( + col0 ) DIV col2 + col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-4314
SELECT ( + col0 ) / col2 + col2 FROM tab1
----
54
58
96

query I rowsort
SELECT DISTINCT col2 * col1 - + col0 * col2 FROM tab1
----
-3078
-6432
1242

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4316
SELECT CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4316
SELECT CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 31 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1565
677
868

query I rowsort
SELECT + - col0 * 98 * + col0 FROM tab1 AS cor0
----
-401408
-627200
-882

query I rowsort
SELECT + 2 * + col2 * col0 AS col0 FROM tab2 cor0
----
378
4056
6004

query I rowsort
SELECT col0 + - col1 * col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + 75 * + col2 AS col2 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT 66 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT DISTINCT tab1.col2 * + 69 AS col1 FROM tab1
----
3726
3933
6624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4324
SELECT ALL col1 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 95 FROM tab0, tab1, tab1 AS cor0, tab2
----
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4326
SELECT DISTINCT CAST( - 63 AS SIGNED ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT CAST ( - 63 AS INTEGER ) FROM tab0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT + col0 DIV + 81 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT + col0 / + 81 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * - 12 AS col1 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT + ( ( col1 ) ) + col0 AS col2 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT DISTINCT + col2 DIV col1 + - col1 - - col0 AS col2 FROM tab0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT + col2 / col1 + - col1 - - col0 AS col2 FROM tab0
----
-2
-62

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 * + col1 - - col0 FROM tab2
----
-22
-505
4004

query I rowsort
SELECT - tab1.col2 + + ( col0 ) + col1 * col0 * - col0 AS col1 FROM tab1
----
-285
-40953
-83216

query I rowsort
SELECT col0 * + tab1.col2 * + col0 + - col2 FROM tab1
----
233415
432
614304

query I rowsort
SELECT ALL + + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT tab2.col1 + 28 + 16 FROM tab2
----
103
61
75

query I rowsort
SELECT + tab2.col1 + ( + col1 + - col0 ) FROM tab2
----
-45
40
55

query I rowsort
SELECT DISTINCT + col1 * col1 + 59 + col1 FROM tab0
----
7541
8431
9565

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - 38 * cor0.col2 FROM tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT + col0 + + 27 * cor0.col1 FROM tab1 AS cor0
----
334
431
705

query I rowsort
SELECT DISTINCT + + col0 * + 52 * - col1 AS col0 FROM tab0 AS cor0
----
-107328
-176540
-421148

onlyif mysql # use DIV operator for integer division
query I rowsort label-4343
SELECT - + 35 DIV - col1 - + col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-4343
SELECT - + 35 / - col1 - + col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT - - 65 + - col2 * + col0 FROM tab1 AS cor0
----
-3583
-7615
-97

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 18 + col1 FROM tab1 cor0
----
-5
-8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4347
SELECT col2 + - col0 DIV + col0 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-4347
SELECT col2 + - col0 / + col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - - ( + col1 ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4349
SELECT + ( cor0.col0 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4349
SELECT + ( cor0.col0 ) / + col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - cor0.col0 * col0 + col1 * - ( + 78 * - col2 ) - + 68 FROM tab0 AS cor0
----
220720
574047
6273

query I rowsort
SELECT + col0 * 7 AS col2 FROM tab2
----
49
546
553

query I rowsort
SELECT 5 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT - col1 * - ( - col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-4354
SELECT - + col0 + + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4354
SELECT - + col0 + + col1 / col1 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + + ( col0 ) + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - + 36 + 13 AS col1 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT - + 65 + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-32
-64
17

query I rowsort
SELECT DISTINCT - 46 * col2 AS col0 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT + - col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - + 66 * - col0 - - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
431
5089
5197

query I rowsort
SELECT ALL col1 + + col0 + + col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT DISTINCT + col0 - col0 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4364
SELECT ALL + col2 + + col1 * - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL + col2 + + col1 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + 16 * col0 + ( cor0.col0 ) * + col2 + ( + col2 ) * + col2 FROM tab1 cor0
----
18176
3126
7921

query I rowsort
SELECT col1 + 65 * col2 * col2 AS col1 FROM tab2 AS cor0
----
43999
47416
93877

query I rowsort
SELECT 71 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 FROM tab1 cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4369
SELECT DISTINCT + + col0 DIV col1 + + col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + + col0 / col1 + + col1 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( col2 ) col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + + col2 + - ( 36 ) FROM tab0 AS cor0
----
-3
-35
46

query I rowsort
SELECT ALL - - col2 * 35 + 29 FROM tab2 AS cor0
----
1359
939
974

query I rowsort
SELECT DISTINCT col0 * + col0 + + col2 - col1 * + 42 FROM tab2 AS cor0
----
-1226
3632
5565

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4374
SELECT + col2 * CAST( 7 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
182
189
266

skipif mysql # not compatible
query I rowsort label-4374
SELECT + col2 * CAST ( 7 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT DISTINCT + + col1 + ( + col1 ) * col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col1 - ( + col2 ) * + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - col1 * - ( + ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col1 + + 42 * cor0.col1 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT DISTINCT col2 * col2 + - col2 * cor0.col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 94 FROM tab2, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - col1 * ( - col2 ) AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2, tab2 AS cor0
----
-54

query I rowsort
SELECT - - 59 * col2 * col1 + + 53 FROM tab2 AS cor0
----
38167
49436
90559

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - - 17 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT - - 71 * col2 + col1 AS col2 FROM tab1 AS cor0
----
3860
4057
6829

query I rowsort
SELECT + + col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + ( col0 ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT ( col1 ) * 79 AS col0 FROM tab2 cor0
----
1343
2449
4661

query I rowsort
SELECT ALL - 14 * col1 AS col1 FROM tab0 AS cor0
----
-1204
-1274
-1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT + col0 + - col2 DIV - col1 + col1 FROM tab1 AS cor0
----
100
31
79

skipif mysql # not compatible
query I rowsort label-4393
SELECT + col0 + - col2 / - col1 + col1 FROM tab1 AS cor0
----
100
31
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT - + col1 * col1 + - col0 DIV cor0.col2 FROM tab0 AS cor0
----
-7396
-8282
-9444

skipif mysql # not compatible
query I rowsort label-4394
SELECT - + col1 * col1 + - col0 / cor0.col2 FROM tab0 AS cor0
----
-7396
-8282
-9444

query I rowsort
SELECT + col1 * + col1 * - col1 - - col0 AS col1 FROM tab1 AS cor0
----
-17573
-2117
-936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col1 col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4397
SELECT tab0.col1 + - col1 + col2 DIV - col0 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4397
SELECT tab0.col1 + - col1 + col2 / - col0 AS col2 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * col2 col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT col2 DIV - col1 + col0 DIV col0 FROM tab1
----
-1
-4
-6

skipif mysql # not compatible
query I rowsort label-4400
SELECT col2 / - col1 + col0 / col0 FROM tab1
----
-1
-4
-6

query I rowsort
SELECT ALL - col1 - - col2 AS col1 FROM tab0
----
-53
-9
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN ( NULL ) AND ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col1 * col2 * + col0 FROM tab2
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + + col0 col2 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * col0 col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT col1 + + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - + col1 * - col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - col1 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL + tab1.col2 + - tab1.col1 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT - col1 + col1 + - col2 AS col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT col2 + col2 * col0 + - col0 FROM tab1
----
213
3641
7696

query I rowsort
SELECT DISTINCT + tab1.col0 + col1 * + col0 * col2 AS col0 FROM tab1
----
36544
4215
99920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT - col2 - + col0 * col1 DIV col1 FROM tab0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-4415
SELECT - col2 - + col0 * col1 / col1 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT col1 - + col2 * - col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL - col1 - col2 * col1 AS col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT col1 * - col0 + col2 FROM tab1 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT tab0.col2 + + col2 * col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT + 44 * cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
132088
8316
89232

onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT + col2 DIV + cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4421
SELECT + col2 / + cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT + - 16 + col0 FROM tab2 cor0
----
-9
62
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4423
SELECT + 63 + - col1 * col1 DIV col1 + - col1 AS col2 FROM tab1
----
11
37
43

skipif mysql # not compatible
query I rowsort label-4423
SELECT + 63 + - col1 * col1 / col1 + - col1 AS col2 FROM tab1
----
11
37
43

query I rowsort
SELECT + col2 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL 13 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
113
182
689

query I rowsort
SELECT ALL - col0 + col1 * col1 AS col1 FROM tab1
----
36
673
89

query I rowsort
SELECT DISTINCT + - ( + col0 ) * - col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT col1 + + col1 + tab0.col1 FROM tab0
----
258
273
291

query I rowsort
SELECT DISTINCT + tab0.col2 * - col2 FROM tab0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col1 + col1 col2 FROM tab2
----
306
3540
992

query I rowsort
SELECT col2 + + col0 * - col1 - tab0.col2 AS col1 FROM tab0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL - col1 * col2 * col1 AS col1 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-4433
SELECT DISTINCT - col0 + - col0 DIV col1 AS col2 FROM tab1
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - col0 + - col0 / col1 AS col2 FROM tab1
----
-3
-70
-86

query I rowsort
SELECT DISTINCT + col2 * col2 + - col0 AS col2 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT ALL - tab1.col0 + tab1.col0 * tab1.col1 AS col0 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL col2 - - col2 AS col1 FROM tab0 WHERE NULL IN ( - col2 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 IN ( col2 * - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4438
SELECT ALL + col0 * col2 - + col1 DIV col0 AS col0 FROM tab1
----
154
3648
7680

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + col0 * col2 - + col1 / col0 AS col0 FROM tab1
----
154
3648
7680

query I rowsort
SELECT - col2 * + col0 + tab2.col0 * - col2 * + col0 FROM tab2
----
-1512
-160212
-240160

query I rowsort
SELECT + col0 - - tab0.col2 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT ( 57 ) FROM tab2
----
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4442
SELECT + + col1 + - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT + + col1 + - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 75 * + col1 FROM tab2
----
1275
2325
4425

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

query I rowsort
SELECT 31 * + 87 * col2 - 38 AS col1 FROM tab0
----
221116
2659
88963

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT - 40 DIV col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT - 40 / col0 FROM tab0
----
-1
-1
0

query I rowsort
SELECT DISTINCT col1 * + col0 + col1 * col1 AS col1 FROM tab1
----
1209
740
754

query I rowsort
SELECT + col1 + col2 + col0 AS col0 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT 67 DIV col2 + - tab0.col1 AS col1 FROM tab0
----
-30
-84
-91

skipif mysql # not compatible
query I rowsort label-4449
SELECT 67 / col2 + - tab0.col1 AS col1 FROM tab0
----
-30
-84
-91

query I rowsort
SELECT DISTINCT 47 - + col1 * + 22 * - col1 FROM tab0
----
162759
182229
207045

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT - col2 DIV + col0 + + col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-4451
SELECT - col2 / + col0 + + col0 FROM tab1
----
-15
64
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4452
SELECT - 90 * col2 + - col0 * 62 + col2 DIV tab0.col0 FROM tab0
----
-12898
-2260
-4457

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 90 * col2 + - col0 * 62 + col2 / tab0.col0 FROM tab0
----
-12898
-2260
-4457

query I rowsort
SELECT ALL + - cor0.col2 + + col2 * - 40 FROM tab0 cor0
----
-1353
-3362
-41

query I rowsort
SELECT + 75 * - col2 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT col1 - 49 * - 76 AS col2 FROM tab0
----
3810
3815
3821

query I rowsort
SELECT col1 * + col1 + + 17 FROM tab2
----
306
3498
978

query I rowsort
SELECT DISTINCT col0 + - col2 + 20 FROM tab2
----
0
61
72

query I rowsort
SELECT DISTINCT + ( 39 ) AS col1 FROM tab1, tab0 AS cor0
----
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT col0 - + col0 DIV 51 AS col0 FROM tab0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-4459
SELECT col0 - + col0 / 51 AS col0 FROM tab0
----
24
35
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4460
SELECT DISTINCT col2 DIV + ( col1 ) FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT col2 / + ( col1 ) FROM tab1
----
2
5
7

query I rowsort
SELECT ALL + cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT tab1.col1 + - 78 AS col0 FROM tab1
----
-52
-65
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT ALL col0 DIV col1 + col1 AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL col0 / col1 + col1 AS col0 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4464
SELECT ( + 64 ) * - col1 * CAST( + 25 + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-46592
-56960
-87360

skipif mysql # not compatible
query I rowsort label-4464
SELECT ( + 64 ) * - col1 * CAST ( + 25 + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-46592
-56960
-87360

query I rowsort
SELECT DISTINCT ( - col2 ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 * - col2 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL - col1 * + col2 * - col0 + ( + 32 ) * + col0 FROM tab0 AS cor0
----
4515
666966
68880

query I rowsort
SELECT ALL col0 + 2 * - cor0.col2 FROM tab1 AS cor0
----
-105
-112
-50

query I rowsort
SELECT ALL + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL - cor0.col0 * + 58 FROM tab2 AS cor0
----
-406
-4524
-4582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4471
SELECT DISTINCT - CAST( 15 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
-22
-93
-94

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT - CAST ( 15 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
-22
-93
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT ALL - + col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL - + col2 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - col2 * + 68 FROM tab1 AS cor0
----
3672
3876
6528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT ALL + CAST( 22 AS SIGNED ) FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL + CAST ( 22 AS INTEGER ) FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT col0 * col0 * - col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT - 41 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-127
-132
-138

query I rowsort
SELECT - 61 * - 84 * + col1 AS col0 FROM tab2 AS cor0
----
158844
302316
87108

query I rowsort
SELECT - - 25 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2150
2275
2425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4479
SELECT ALL + CAST( - 47 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + CAST ( - 47 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - col1 * + 23 FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT col0 * 26 * col1 FROM tab0 AS cor0
----
210574
53664
88270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col2 FROM tab2
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT + col1 * col2 DIV col0 + + col2 FROM tab1
----
111
522
65

skipif mysql # not compatible
query I rowsort label-4483
SELECT + col1 * col2 / col0 + + col2 FROM tab1
----
111
522
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4484
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4484
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - 39 * + col0 FROM tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT - + cor0.col1 + - col2 + col0 AS col1 FROM tab1 AS cor0
----
-29
-3
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 + + col1 col2 FROM tab0 cor0
----
100
139
193

query I rowsort
SELECT ALL - 51 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ALL + + cor0.col0 * + ( + col1 ) + col1 * col1 FROM tab0 cor0
----
12804
16380
9460

query I rowsort
SELECT + tab2.col1 * 8 * + tab2.col0 FROM tab2
----
10744
1736
36816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4491
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT + 53 DIV - col1 + + col0 * - col0 + col0 * col2 FROM tab2 AS cor0
----
-3242
-4056
139

skipif mysql # not compatible
query I rowsort label-4492
SELECT + 53 / - col1 + + col0 * - col0 + col0 * col2 FROM tab2 AS cor0
----
-3242
-4056
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col0 * cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4495
SELECT - col1 + + col0 * col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT - col1 + + col0 * col1 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * - col1 * + col2 + col2 FROM tab0 cor0
----
-244035
-678960
-9408

query I rowsort
SELECT DISTINCT - + 10 * - cor0.col0 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT DISTINCT cor0.col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4499
SELECT ALL CAST( NULL AS SIGNED ) * ( col2 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL CAST ( NULL AS INTEGER ) * ( col2 ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 12 * cor0.col0 FROM tab2 AS cor0
----
84
936
948

query I rowsort
SELECT - col2 - + 13 FROM tab1 AS cor0
----
-109
-67
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT ALL + col1 + - col0 + + 38 DIV + col1 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + col1 + - col0 + + 38 / + col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4503
SELECT + - col2 + - CAST( col1 * - col1 AS SIGNED ) FROM tab2 AS cor0
----
251
3455
934

skipif mysql # not compatible
query I rowsort label-4503
SELECT + - col2 + - CAST ( col1 * - col1 AS INTEGER ) FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT col0 * 44 * col1 AS col0 FROM tab1 AS cor0
----
28160
3432
45760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col0 + col2 col1 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT DISTINCT + col2 - - col0 DIV - col1 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT + col2 - - col0 / - col1 FROM tab2 AS cor0
----
25
27
34

query I rowsort
SELECT + cor0.col1 * + 56 + - cor0.col0 FROM tab0 AS cor0
----
4792
5007
5397

query I rowsort
SELECT + col1 - - 50 FROM tab2 AS cor0
----
109
67
81

query I rowsort
SELECT + + col0 * col1 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) - + ( tab2.col2 ) * col0 col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col1 + ( ( col1 ) ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 * - 93 - - 1 FROM tab2 AS cor0
----
-1580
-2882
-5486

query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - col0 + - ( cor0.col1 * + col0 ) FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4515
SELECT DISTINCT tab2.col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT tab2.col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 * - 31 + col1 FROM tab1
----
-1974
-2467
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT DISTINCT + col0 DIV ( + 16 * col1 ) + + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + col0 / ( + 16 * col1 ) + + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - col0 + 26 * - col0 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT ALL - 24 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4520
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4521
SELECT col2 DIV + col1 + + cor0.col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4521
SELECT col2 / + col1 + + cor0.col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - ( col0 ) * col1 - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - 6 * + col0 AS col1 FROM tab0 AS cor0
----
-144
-210
-534

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4525
SELECT ALL tab0.col1 + cor0.col1 * + CAST( NULL AS SIGNED ) + + 23 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL tab0.col1 + cor0.col1 * + CAST ( NULL AS INTEGER ) + + 23 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 28 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4527
SELECT + tab1.col2 * col1 DIV col1 + - ( + col0 * 79 ) FROM tab1
----
-183
-4999
-6224

skipif mysql # not compatible
query I rowsort label-4527
SELECT + tab1.col2 * col1 / col1 + - ( + col0 * 79 ) FROM tab1
----
-183
-4999
-6224

query I rowsort
SELECT ALL col0 + - col0 * + ( ( - cor0.col1 ) ) - - 65 AS col2 FROM tab0 AS cor0
----
2153
3495
8253

query I rowsort
SELECT + - 71 + cor0.col2 FROM tab0 AS cor0
----
-38
-70
11

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col0 * - col1 + cor0.col2 * - col2 FROM tab0 AS cor0
----
1375
3394
975

query I rowsort
SELECT - 47 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT DISTINCT - 39 + + 94 FROM tab2, tab0 AS cor0
----
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4535
SELECT DISTINCT - col2 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT - col2 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4536
SELECT - col1 DIV col0 + + col0 * + col2 AS col2 FROM tab2
----
185
2028
3002

skipif mysql # not compatible
query I rowsort label-4536
SELECT - col1 / col0 + + col0 * + col2 AS col2 FROM tab2
----
185
2028
3002

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4538
SELECT ALL CAST( + 35 AS SIGNED ) col0 FROM tab0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL CAST ( + 35 AS INTEGER ) col0 FROM tab0
----
35
35
35

query I rowsort
SELECT + col1 * + cor0.col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL - 0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT + col0 + 70 * cor0.col0 * + col2 + + col1 FROM tab1 AS cor0
----
11369
255434
537693

query I rowsort
SELECT + col0 + + col0 * 0 + col0 * cor0.col2 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT + col2 + col1 + 42 AS col2 FROM tab2 AS cor0
----
100
127
97

query I rowsort
SELECT - col2 * + col2 + 2 FROM tab0 AS cor0
----
-1087
-6722
1

query I rowsort
SELECT ALL - 4 AS col2 FROM tab1 cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col1 ) + col1 col2 FROM tab0 cor0
----
0

query I rowsort
SELECT - col2 * col2 + - 31 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1396
-629
-753

onlyif mysql # use DIV operator for integer division
query I rowsort label-4548
SELECT + cor0.col2 + + cor0.col1 DIV 53 + cor0.col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4548
SELECT + cor0.col2 + + cor0.col1 / 53 + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - + ( col1 ) - - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab1 cor0
----
40
40
40

query I rowsort
SELECT DISTINCT col2 * - col2 * col2 + + 12 FROM tab0 cor0
----
-35925
-551356
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 - - col1 * - col1 col1 FROM tab1 AS cor0
----
-126
-57
-633

query I rowsort
SELECT + cor0.col1 + ( col1 ) * - ( col2 ) AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4554
SELECT ALL - col1 + - col2 DIV + col0 FROM tab0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL - col1 + - col2 / + col0 FROM tab0
----
-87
-91
-97

query I rowsort
SELECT ALL + cor0.col1 * col2 + col2 * 34 AS col0 FROM tab2 AS cor0
----
1755
1938
2418

query I rowsort
SELECT ALL - - col0 - + 39 AS col0 FROM tab1 cor0
----
-36
25
41

query I rowsort
SELECT DISTINCT ( 51 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT DISTINCT ( col0 ) + - col1 * col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - - 66 * col0 + - ( - col2 ) + col2 AS col1 FROM tab2 AS cor0
----
516
5200
5290

query I rowsort
SELECT - cor0.col2 * + col1 + + 10 AS col2 FROM tab1 cor0
----
-1238
-1394
-560

query I rowsort
SELECT ALL 49 * + ( + col0 ) FROM tab2
----
343
3822
3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL + ( ( + col1 ) * - 91 ) AS col0 FROM tab0
----
-7826
-8281
-8827

query I rowsort
SELECT + ( col2 ) + col0 AS col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4566
SELECT - - col1 * 13 + 99 DIV col0 FROM tab0 AS cor0
----
1122
1184
1263

skipif mysql # not compatible
query I rowsort label-4566
SELECT - - col1 * 13 + 99 / col0 FROM tab0 AS cor0
----
1122
1184
1263

query I rowsort
SELECT + ( + tab0.col0 ) * tab0.col1 * tab0.col2 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col2 + 73 col0 FROM tab2 AS cor0
----
1517
749
802

query I rowsort
SELECT DISTINCT + + col1 * + ( + col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4570
SELECT col1 + - 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-4570
SELECT col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * + ( - col1 ) + col0 AS col0 FROM tab0 cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT + 32 DIV col0 + - col0 * col2 + + col1 * col1 AS col2 FROM tab2
----
-2713
1453
776

skipif mysql # not compatible
query I rowsort label-4572
SELECT + 32 / col0 + - col0 * col2 + + col1 * col1 AS col2 FROM tab2
----
-2713
1453
776

query I rowsort
SELECT DISTINCT - col1 - tab2.col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT 16 FROM tab0, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT col2 + + col2 * 35 * + col1 FROM tab2
----
22648
29322
53716

query I rowsort
SELECT - col1 * - ( + 18 ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1581
1720
1747

query I rowsort
SELECT ALL col2 * 92 * - col0 + col0 * + cor0.col2 FROM tab2 AS cor0
----
-17199
-184548
-273182

query I rowsort
SELECT - + col0 + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + cor0.col0 - 80 AS col1 FROM tab1 AS cor0
----
-74
48
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4580
SELECT - + col0 + - col0 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4580
SELECT - + col0 + - col0 / col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT DISTINCT - + tab2.col2 DIV ( tab2.col0 ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT - + tab2.col2 / ( tab2.col0 ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT col0 * 54 DIV col0 AS col2 FROM tab1 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-4582
SELECT col0 * 54 / col0 AS col2 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT ALL col0 + - tab0.col0 + + col1 AS col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4584
SELECT ALL col1 DIV - col2 AS col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL col1 / - col2 AS col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT + col2 + - 53 * + col1 AS col1 FROM tab2 AS cor0
----
-1616
-3101
-863

query I rowsort
SELECT + - col2 * - col1 + + col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4587
SELECT ALL CAST( + col1 AS SIGNED ) * - cor0.col1 + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL CAST ( + col1 AS INTEGER ) * - cor0.col1 + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - + col1 * col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + 59 * + col1 + col0 FROM tab1 AS cor0
----
1537
654
847

onlyif mysql # use DIV operator for integer division
query I rowsort label-4590
SELECT - 74 DIV col1 + - col0 FROM tab1 AS cor0
----
-5
-71
-85

skipif mysql # not compatible
query I rowsort label-4590
SELECT - 74 / col1 + - col0 FROM tab1 AS cor0
----
-5
-71
-85

query I rowsort
SELECT - - 43 * col1 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT + + 45 + + col2 FROM tab0 AS cor0
----
127
46
78

query I rowsort
SELECT - - col1 * + 11 AS col0 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT DISTINCT - ( + 60 ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
26
31
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT + CAST( NULL AS SIGNED ) * ( - col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT + CAST ( NULL AS INTEGER ) * ( - col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4596
SELECT ( 16 ) DIV col1 + - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4596
SELECT ( 16 ) / col1 + - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ( col0 * - tab1.col1 ) FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT + 6 DIV - col0 AS col2 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4598
SELECT + 6 / - col0 AS col2 FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL col0 + - cor0.col1 * 50 AS col1 FROM tab2 AS cor0
----
-1543
-2872
-771

query I rowsort
SELECT ALL - + col0 + + col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT DISTINCT + 52 + - col1 AS col0 FROM tab1 cor0
----
26
39
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4602
SELECT DISTINCT + 43 * + col0 + col1 * - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
270
3295
3380

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + 43 * + col0 + col1 * - col0 / col0 AS col1 FROM tab2 AS cor0
----
270
3295
3380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col1 col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT - - cor0.col2 DIV - col2 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-4605
SELECT - - cor0.col2 / - col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + + 38 * + ( col1 ) col1 FROM tab1 cor0
----
1042
437
590

query I rowsort
SELECT ALL - col0 + + col1 * col1 FROM tab1 AS cor0
----
36
673
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col2 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT col1 + + 60 FROM tab2 AS cor0
----
119
77
91

query I rowsort
SELECT ALL + + col0 + - col0 + col0 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col1 + 21 AS col1 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT DISTINCT cor0.col0 + + 34 FROM tab2 AS cor0
----
112
113
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 + + col0 - col0 * - col2 col1 FROM tab1
----
232
3779
7827

query I rowsort
SELECT DISTINCT - ( + col1 ) * + tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - ( - col1 * col0 ) FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4616
SELECT DISTINCT - 12 * 84 DIV col0 FROM tab1
----
-12
-15
-336

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - 12 * 84 / col0 FROM tab1
----
-12
-15
-336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4617
SELECT DISTINCT - ( - col2 ) * + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - ( - col2 ) * + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4618
SELECT ALL - CAST( col1 AS SIGNED ) * + col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL - CAST ( col1 AS INTEGER ) * + col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4619
SELECT CAST( - col1 * col1 AS SIGNED ) + - 24 FROM tab0
----
-7420
-8305
-9433

skipif mysql # not compatible
query I rowsort label-4619
SELECT CAST ( - col1 * col1 AS INTEGER ) + - 24 FROM tab0
----
-7420
-8305
-9433

query I rowsort
SELECT col1 * col2 * 11 FROM tab2 AS cor0
----
16874
7106
9207

query I rowsort
SELECT ALL - 90 AS col1 FROM tab2
----
-90
-90
-90

query I rowsort
SELECT ALL + + ( + 40 ) * cor0.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4fd78a366a8ff8c665c624ac16afe2c

query I rowsort
SELECT + - 31 AS col2 FROM tab0 cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - col0 + - ( col0 ) FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + - col2 + - 33 AS col2 FROM tab0 AS cor0
----
-115
-34
-66

query I rowsort
SELECT ALL 59 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT col2 * - ( col0 ) + col1 + + col1 * 84 FROM tab2 AS cor0
----
-1557
2446
2987

query I rowsort
SELECT + cor0.col2 * col0 + - 40 FROM tab0 AS cor0
----
-5
7258
752

query I rowsort
SELECT + col2 + ( col0 ) * col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col1 + - col0 + col2 FROM tab1 cor0
----
29
3
77

query I rowsort
SELECT ALL - 95 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT - 28 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT - 92 DIV ( col2 + col2 ) FROM tab0 cor0
----
-1
-46
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 92 / ( col2 + col2 ) FROM tab0 cor0
----
-1
-46
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4634
SELECT + - col1 + + col2 + cor0.col2 * CAST( 1 AS SIGNED ) FROM tab2 AS cor0
----
-7
23
59

skipif mysql # not compatible
query I rowsort label-4634
SELECT + - col1 + + col2 + cor0.col2 * CAST ( 1 AS INTEGER ) FROM tab2 AS cor0
----
-7
23
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 70 col0 FROM tab1 cor0
----
-26
13
16

query I rowsort
SELECT ALL ( col2 ) + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 54 + 7 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT - 72 * col1 + col0 FROM tab1 AS cor0
----
-1869
-656
-856

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 41 ) * col1 + + cor0.col1 * + ( - col2 ) col2 FROM tab0 AS cor0
----
-11193
-4074
-6364

query I rowsort
SELECT DISTINCT ( + 78 ) + + cor0.col1 AS col1 FROM tab1 AS cor0
----
104
88
91

query I rowsort
SELECT DISTINCT col1 + + col1 * - col1 + + col1 FROM tab0 AS cor0
----
-7224
-8099
-9215

query I rowsort
SELECT + col2 * - 41 * - col2 + - col0 FROM tab2 AS cor0
----
27638
29882
59125

query I rowsort
SELECT ALL 6 * - col2 + + cor0.col1 FROM tab1 AS cor0
----
-298
-332
-563

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT ALL 10 + col2 + - tab1.col0 FROM tab1
----
26
3
61

query I rowsort
SELECT ALL - ( - col2 ) + + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT - + cor0.col0 - + 16 FROM tab1 AS cor0
----
-19
-80
-96

query I rowsort
SELECT ALL col2 * col2 * col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT DISTINCT + col1 + + 2 AS col0 FROM tab1 AS cor0
----
12
15
28

query I rowsort
SELECT cor0.col2 * ( cor0.col0 ) + - col2 * - col1 AS col0 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT ALL - col0 * + 77 * - ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-103411
-16709
-354354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4653
SELECT ALL col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 27 * - col1 FROM tab1
----
-270
-351
-702

query I rowsort
SELECT DISTINCT col1 - 78 FROM tab0
----
13
19
8

query I rowsort
SELECT col1 * - 82 * col0 AS col0 FROM tab2
----
-110126
-17794
-377364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4657
SELECT tab1.col1 * CAST( + col2 AS SIGNED ) FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4657
SELECT tab1.col1 * CAST ( + col2 AS INTEGER ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col2 * ( - 59 ) * col0 - - col1 FROM tab2
----
-11120
-119593
-177101

query I rowsort
SELECT - col2 * - col2 + - cor0.col2 * col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + ( 22 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1916
-2091
-2169

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4661
SELECT - - col0 * 12 * - col2 + col2 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT - - col0 * 12 * - col2 + col2 / - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col2 + + 91 * - col2 + col1 FROM tab1
----
-4834
-5120
-8627

query I rowsort
SELECT 59 + col2 AS col2 FROM tab0
----
141
60
92

query I rowsort
SELECT 90 + - col1 + 81 FROM tab1 AS cor0
----
145
158
161

onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT DISTINCT col0 * col1 DIV + col0 + - col0 AS col1 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT col0 * col1 / + col0 + - col0 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL ( + col1 ) + - 38 FROM tab0 cor0
----
48
53
59

query I rowsort
SELECT + col2 * col0 + ( 29 + + col1 ) FROM tab1 AS cor0
----
217
3687
7722

query I rowsort
SELECT DISTINCT + 37 * - col1 AS col0 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT ( + col2 ) * ( + col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 + + 32 * - 6 FROM tab0 AS cor0
----
-101
-106
-95

query I rowsort
SELECT 67 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT col2 + - col1 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1567
-625
-841

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4673
SELECT ALL - col0 * CAST( 66 AS SIGNED ) col2 FROM tab1 AS cor0
----
-198
-4224
-5280

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - col0 * CAST ( 66 AS INTEGER ) col2 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - col0 * ( + col1 ) AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT DISTINCT - + col1 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - + col1 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + cor0.col1 + + ( + col1 ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - col0 * col1 + - col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 * - 92 FROM tab0 AS cor0
----
-2208
-3220
-8188

query I rowsort
SELECT ALL ( 37 ) + col2 FROM tab0 AS cor0
----
119
38
70

query I rowsort
SELECT DISTINCT ( col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4682
SELECT ALL cor1.col0 * - CAST( NULL AS SIGNED ) * tab2.col0 col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL cor1.col0 * - CAST ( NULL AS INTEGER ) * tab2.col0 col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - ( + 85 ) * - col2 FROM tab2
----
2210
2295
3230

query I rowsort
SELECT DISTINCT col2 + + 2 FROM tab1
----
56
59
98

query I rowsort
SELECT ALL + col2 * - tab2.col0 * - col0 + + col0 FROM tab2
----
1330
158262
237237

query I rowsort
SELECT + ( + col2 ) * + col0 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4687
SELECT DISTINCT CAST( 95 AS SIGNED ) * col0 AS col1 FROM tab2 cor0
----
665
7410
7505

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT CAST ( 95 AS INTEGER ) * col0 AS col1 FROM tab2 cor0
----
665
7410
7505

query I rowsort
SELECT ALL ( + col0 ) - + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 51 * 32 - - col1 FROM tab2
----
1649
1663
1691

query I rowsort
SELECT ALL 2 * - col2 * - col2 - col0 AS col0 FROM tab0
----
-33
13359
2154

query I rowsort
SELECT DISTINCT + 3 * col0 - - tab1.col0 * col2 AS col2 FROM tab1
----
171
3840
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 + - cor0.col1 * cor0.col0 * - col1 col0 FROM tab1 AS cor0
----
10048
21200
2190

query I rowsort
SELECT ( - col1 ) * 21 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT + + ( + col0 ) - - col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4695
SELECT ALL + 28 * col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + 28 * col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab0.col1 * col0 ) + + 15 - col1 * col1 col2 FROM tab0
----
-167
-5317
-5999

query I rowsort
SELECT ALL + col1 + + 29 AS col2 FROM tab1
----
39
42
55

query I rowsort
SELECT - col1 + - col0 + - tab2.col2 AS col0 FROM tab2
----
-134
-163
-65

query I rowsort
SELECT col2 - col0 * col2 AS col2 FROM tab0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - 17 col1 FROM tab0
----
-103
-108
-114

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4701
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 / + col0 - 29 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 / + col0 - 29 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 * col2 + + col1 * cor0.col0 col2 FROM tab1 AS cor0
----
-1640
-2082
-2800

query I rowsort
SELECT - col0 - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT ALL + col2 + + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL + col2 + + cor0.col2 / + col0 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT + 70 * - cor1.col1 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7b64711afc368def68edec43ab508e51

query I rowsort
SELECT ALL 61 + - tab2.col1 AS col1 FROM tab2
----
2
30
44

query I rowsort
SELECT ALL col2 * - col1 + tab1.col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT + 0 * + 24 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL 43 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT + 49 * - 53 * + col0 AS col0 FROM tab1 cor0
----
-166208
-207760
-7791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4711
SELECT col0 * - CAST( - col0 AS SIGNED ) + - col2 AS col2 FROM tab0
----
1224
543
7839

skipif mysql # not compatible
query I rowsort label-4711
SELECT col0 * - CAST ( - col0 AS INTEGER ) + - col2 AS col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL + + col0 * - 62 AS col1 FROM tab0 AS cor0
----
-1488
-2170
-5518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 98 ) * col0 col1 FROM tab1
----
-294
-6272
-7840

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab0 cor0
----
31

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + 42 * cor0.col1 - cor0.col2 AS col2 FROM tab1 AS cor0
----
1038
363
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + col1 col1 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT - col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - - 6 + col1 FROM tab2 cor0
----
23
37
65

query I rowsort
SELECT ALL - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 75 + ( col1 ) AS col1 FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT ALL + + 33 * - col2 FROM tab1 AS cor0
----
-1782
-1881
-3168

onlyif mysql # use DIV operator for integer division
query I rowsort label-4723
SELECT DISTINCT cor0.col0 DIV 77 - col1 FROM tab1 AS cor0
----
-10
-12
-26

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT cor0.col0 / 77 - col1 FROM tab1 AS cor0
----
-10
-12
-26

query I rowsort
SELECT DISTINCT 59 + col1 * col0 * ( + col2 ) FROM tab2 cor0
----
119711
51093
5918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4725
SELECT + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4726
SELECT ALL CAST( NULL AS SIGNED ) + cor0.col1 * - col0 - - 40 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col1 * - col0 - - 40 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * 56 AS col2 FROM tab0 AS cor0
----
-1848
-4592
-56

query I rowsort
SELECT ALL - tab1.col1 * tab1.col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT - - col1 * - ( col2 ) + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4731
SELECT + col2 * - col2 DIV col2 + col0 * - 63 AS col0 FROM tab1 cor0
----
-243
-4089
-5136

skipif mysql # not compatible
query I rowsort label-4731
SELECT + col2 * - col2 / col2 + col0 * - 63 AS col0 FROM tab1 cor0
----
-243
-4089
-5136

query I rowsort
SELECT DISTINCT + 76 * - col1 FROM tab2
----
-1292
-2356
-4484

query I rowsort
SELECT 50 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT DISTINCT col1 * + col0 + + col1 * col1 AS col0 FROM tab2
----
1178
1632
8083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( - col2 ) col1 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col1 FROM tab2, tab1 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT 24 * cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
1357
391
713

query I rowsort
SELECT - col1 + cor0.col2 * + col0 - col1 FROM tab2 AS cor0
----
127
1910
2968

query I rowsort
SELECT ALL + - 97 + 68 AS col2 FROM tab0 cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - 77 * cor0.col0 + - col1 * + 34 FROM tab1 cor0
----
-1115
-5268
-6602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT - col1 DIV - col2 + - col0 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-4742
SELECT - col1 / - col2 + - col0 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT 5 * - col2 AS col2 FROM tab1
----
-270
-285
-480

query I rowsort
SELECT ALL + 98 + - col1 * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
-7298
-8183
-9311

onlyif mysql # use DIV operator for integer division
query I rowsort label-4745
SELECT 41 DIV col1 + col0 col0 FROM tab1 AS cor0
----
4
68
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4745
SELECT 41 / col1 + col0 col0 FROM tab1 AS cor0
----
4
68
83

query I rowsort
SELECT - 34 + - col2 AS col1 FROM tab0 AS cor0
----
-116
-35
-67

query I rowsort
SELECT col0 * col1 + + 31 AS col0 FROM tab0 AS cor0
----
2095
3426
8130

query I rowsort
SELECT ALL 10 + col1 * col1 + - col2 FROM tab1
----
53
632
83

query I rowsort
SELECT ALL + - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 * - 66 col1 FROM tab2 AS cor0
----
44616
48114
95304

query I rowsort
SELECT + + cor0.col2 + col0 * + ( + 23 ) AS col0 FROM tab2 AS cor0
----
1820
1855
188

onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT DISTINCT + - 97 * col1 DIV ( col0 ) FROM tab2 cor0
----
-20
-429
-73

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + - 97 * col1 / ( col0 ) FROM tab2 cor0
----
-20
-429
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT DISTINCT col2 + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT col2 + col2 / - col0 AS col0 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT - + col1 - - col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT 85 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-4644
-4902
-8256

onlyif mysql # use DIV operator for integer division
query I rowsort label-4756
SELECT - + col2 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT - + col2 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col0 * col2 + - col0 * + col1 FROM tab0 AS cor0
----
-2170
16944
641423

query I rowsort
SELECT col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - cor0.col1 + + 77 FROM tab0 AS cor0
----
-14
-20
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4761
SELECT + col2 + CAST( NULL AS SIGNED ) * col2 * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT + col2 + CAST ( NULL AS INTEGER ) * col2 * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4763
SELECT DISTINCT col1 * CAST( col2 AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT col1 * CAST ( col2 AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL + 91 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + 19 * cor0.col2 col0 FROM tab1 cor0
----
1096
1153
1894

query I rowsort
SELECT - - col0 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + cor0.col1 * col1 - col2 AS col0 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT + + 62 * col0 AS col2 FROM tab2 cor0
----
434
4836
4898

query I rowsort
SELECT + cor0.col2 - + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ( col2 ) * tab2.col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col1 * - col1 + - col2 * + 3 AS col1 FROM tab0
----
7297
8035
9406

onlyif mysql # use DIV operator for integer division
query I rowsort label-4773
SELECT col1 + - cor0.col0 DIV - col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-4773
SELECT col1 + - cor0.col0 / - col2 FROM tab0 AS cor0
----
132
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 + + col2 + col0 col1 FROM tab1 AS cor0
----
118
182
237

query I rowsort
SELECT DISTINCT ( - 78 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
-78

query I rowsort
SELECT + 68 * 54 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to ff98970a655b3bfb9084a31f83170fd0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT DISTINCT cor0.col0 DIV - col1 col1 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT cor0.col0 / - col1 col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - cor0.col0 + col0 * - col0 AS col2 FROM tab0 cor0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4779
SELECT + - col1 DIV ( 98 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT + - col1 / ( 98 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT tab2.col1 + + 87 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95f89b30db8b9258878693921e0e3f51

query I rowsort
SELECT + col0 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4782
SELECT DISTINCT - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT ALL + col0 DIV col2 + col2 AS col1 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + col0 / col2 + col2 AS col1 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT ALL col0 * col1 + - col0 AS col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT + ( + cor0.col0 ) * + ( 41 ) FROM tab0, tab2 AS cor0
----
9 values hashing to ef9d6bc88cc4195c817dc603d1612be5

query I rowsort
SELECT + col0 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4787
SELECT col2 DIV col2 - - col0 AS col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4787
SELECT col2 / col2 - - col0 AS col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT - - 19 AS col0 FROM tab0 cor0
----
19

query I rowsort
SELECT DISTINCT + cor0.col1 * + 67 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT 24 * col1 + col1 AS col1 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT ALL + ( cor0.col0 ) * col0 - + col1 AS col2 FROM tab0 cor0
----
1128
490
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT DISTINCT - cor0.col2 DIV - col0 + + col1 FROM tab0 cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - cor0.col2 / - col0 + + col1 FROM tab0 cor0
----
87
91
97

query I rowsort
SELECT DISTINCT col2 * col0 * - ( 1 ) + - col0 * 39 FROM tab2 cor0
----
-462
-5070
-6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * - col0 col2 FROM tab2 AS cor0
----
-623
-6942
-7031

query I rowsort
SELECT - - 86 * + col1 FROM tab0 AS cor0
----
7396
7826
8342

onlyif mysql # use DIV operator for integer division
query I rowsort label-4796
SELECT ALL - - col2 DIV ( 77 + col2 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - - col2 / ( 77 + col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - col2 + - 43 AS col1 FROM tab2 cor0
----
-69
-70
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + ( col1 ) col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col1 * 3 FROM tab0 AS cor0
----
258
273
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col1 + - 89 FROM tab0 AS cor0
----
-3
2
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - cor0.col1 * - 59 AS col2 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT col2 * ( col2 ) AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col1 + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-4807
SELECT ALL + col1 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + col1 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL cor0.col1 - 85 AS col0 FROM tab2 AS cor0
----
-26
-54
-68

query I rowsort
SELECT ALL + - col2 + - 93 FROM tab2 AS cor0
----
-119
-120
-131

query I rowsort
SELECT DISTINCT - ( 25 ) AS col1 FROM tab0, tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + col1 * ( - col2 + col1 ) FROM tab1
----
-1079
-470
-728

query I rowsort
SELECT - tab2.col1 + - ( col1 ) * - col0 FROM tab2
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4813
SELECT + col2 + + 84 DIV - col1 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4813
SELECT + col2 + + 84 / - col1 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT - ( - 83 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT DISTINCT col1 DIV + 38 AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT col1 / + 38 AS col1 FROM tab0
----
2

query I rowsort
SELECT + - 57 * + col1 * 41 AS col2 FROM tab2 AS cor0
----
-137883
-39729
-72447

query I rowsort
SELECT col2 * - col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + - col2 + + col1 FROM tab0 cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4819
SELECT DISTINCT col2 + col0 * CAST( 4 AS SIGNED ) FROM tab1 AS cor0
----
313
416
66

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT col2 + col0 * CAST ( 4 AS INTEGER ) FROM tab1 AS cor0
----
313
416
66

query I rowsort
SELECT ALL + - col1 - + col2 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT - cor0.col1 + cor0.col0 AS col1 FROM tab1 cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT ALL - + cor0.col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL - + cor0.col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + col0 ) + + col2 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4824
SELECT ALL - col0 DIV + col2 + tab0.col2 * 2 FROM tab0
----
-33
163
66

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - col0 / + col2 + tab0.col2 * 2 FROM tab0
----
-33
163
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * 2 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # use DIV operator for integer division
query I rowsort label-4826
SELECT ALL col1 + - col1 DIV - col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL col1 + - col1 / - col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4827
SELECT - ( + col2 ) + CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT - ( + col2 ) + CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * col2 - cor0.col1 * - 36 AS col2 FROM tab1 AS cor0
----
-210
-468
-780

query I rowsort
SELECT - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT 27 + - col2 AS col1 FROM tab0 AS cor0
----
-55
-6
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + col1 + + cor0.col2 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * - col1 + ( cor0.col2 ) col0 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT + 66 * + tab0.col1 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to a0eb82c418b92374aa28df3f55172c7e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT DISTINCT col1 + + col0 DIV col2 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT col1 + + col0 / col2 FROM tab1
----
11
13
26

query I rowsort
SELECT - + col2 + - col0 * - col0 FROM tab0 AS cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 * col2 + - col2 * col0 FROM tab0 AS cor0
----
-14596
-1584
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 31 col0 FROM tab1 AS cor0
----
-310
-403
-806

query I rowsort
SELECT + cor0.col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL col2 * - ( + cor0.col2 ) FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - col0 * - col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + - col0 * - col2 + - col1 * + col1 * - col0 AS col0 FROM tab0 AS cor0
----
178296
329350
744307

query I rowsort
SELECT DISTINCT - col1 + + ( col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4844
SELECT DISTINCT - col1 + + tab0.col2 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - col1 + + tab0.col2 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + 3 * - col2 + - 58 * - col0 FROM tab1
----
12
3541
4352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4846
SELECT + CAST( - cor0.col1 AS SIGNED ) * + cor0.col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-4846
SELECT + CAST ( - cor0.col1 AS INTEGER ) * + cor0.col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - ( + 81 ) FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4848
SELECT CAST( 87 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-2088
-3045
-7743

skipif mysql # not compatible
query I rowsort label-4848
SELECT CAST ( 87 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT 94 * col0 AS col2 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT ( col1 ) * + col0 + 36 AS col2 FROM tab2 AS cor0
----
1379
253
4638

query I rowsort
SELECT ALL - tab2.col1 * + col1 * - 27 FROM tab2
----
25947
7803
93987

onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT + col1 DIV - 50 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4852
SELECT + col1 / - 50 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 19 * col1 AS col1 FROM tab1
----
-190
-247
-494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab0, tab0 cor0
----
1

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4857
SELECT - col2 * - col0 * CAST( + 7 AS SIGNED ) FROM tab1 AS cor0
----
1134
25536
53760

skipif mysql # not compatible
query I rowsort label-4857
SELECT - col2 * - col0 * CAST ( + 7 AS INTEGER ) FROM tab1 AS cor0
----
1134
25536
53760

query I rowsort
SELECT DISTINCT 40 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2876
-3209
-9176

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT + col1 + + col1 DIV - col0 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-4859
SELECT + col1 + + col1 / - col0 FROM tab0
----
83
90
95

query I rowsort
SELECT DISTINCT 4 * + col1 FROM tab0
----
344
364
388

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT ALL - ( + 61 ) DIV - col1 AS col0 FROM tab1
----
2
4
6

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL - ( + 61 ) / - col1 AS col0 FROM tab1
----
2
4
6

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-4863
SELECT - - col2 * - col0 - - 24 * col2 DIV - col2 FROM tab1 AS cor0
----
-186
-3672
-7704

skipif mysql # not compatible
query I rowsort label-4863
SELECT - - col2 * - col0 - - 24 * col2 / - col2 FROM tab1 AS cor0
----
-186
-3672
-7704

query I rowsort
SELECT - + ( cor1.col2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 + col0 col1 FROM tab1 AS cor0
----
-6
-67
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * col1 col2 FROM tab2 AS cor0
----
1241
2263
4307

query I rowsort
SELECT DISTINCT + 74 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
160
165
171

query I rowsort
SELECT + + 24 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1296
1368
2304

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT ALL - + col1 DIV - col2 - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL - + col1 / - col2 - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - 35 * col0 AS col0 FROM tab2 AS cor0
----
-245
-2730
-2765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4871
SELECT DISTINCT + col2 * col0 + - CAST( NULL AS SIGNED ) + + col0 * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT + col2 * col0 + - CAST ( NULL AS INTEGER ) + + col0 * col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col1 + - col1 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4873
SELECT - col0 DIV + col0 - 53 AS col2 FROM tab2 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-4873
SELECT - col0 / + col0 - 53 AS col2 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL cor0.col1 * col1 * - cor0.col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + col0 + col0 * 66 AS col2 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT ALL col1 + col1 + 32 FROM tab2 cor0
----
150
66
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 - col2 * col0 * - col0 col0 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT - col1 + + 45 AS col0 FROM tab1
----
19
32
35

query I rowsort
SELECT ALL - col0 + tab1.col1 + - 23 FROM tab1
----
-77
-90
0

query I rowsort
SELECT + col1 + - col0 + col0 AS col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT DISTINCT - col1 DIV - col1 + col2 AS col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - col1 / - col1 + col2 AS col1 FROM tab2
----
27
28
39

query I rowsort
SELECT + cor0.col0 + ( + col2 ) + + col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT - cor0.col2 + - col1 * + col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT col1 + + col0 + 5 * + col2 FROM tab0 AS cor0
----
137
275
590

onlyif mysql # use DIV operator for integer division
query I rowsort label-4885
SELECT 37 DIV cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

skipif mysql # not compatible
query I rowsort label-4885
SELECT 37 / cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

query I rowsort
SELECT + + 98 * + col2 * + cor0.col1 FROM tab0 AS cor0
----
278124
731276
9506

query I rowsort
SELECT ALL + 76 * + 84 AS col1 FROM tab2 AS cor0
----
6384
6384
6384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab2, tab0 cor0
----
24
35
89

query I rowsort
SELECT - + col0 * - 28 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT - 75 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1950
-750
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT 78 * 1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4893
SELECT ALL + CAST( NULL AS SIGNED ) + - 93 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL + CAST ( NULL AS INTEGER ) + - 93 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 90 ) + - col0 * + col2 AS col2 FROM tab1 cor0
----
-3558
-72
-7590

query I rowsort
SELECT DISTINCT cor0.col2 * + cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT DISTINCT + col0 DIV col1 + col1 * col2 FROM tab2 AS cor0
----
1535
650
837

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + col0 / col1 + col1 * col2 FROM tab2 AS cor0
----
1535
650
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 + - col2 col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL - + col0 - + col2 * + col0 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif mysql # not compatible
query I rowsort
SELECT ALL + + cor0.col1 + + CAST ( col2 AS REAL ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4900
SELECT DISTINCT cor0.col0 DIV CAST( - ( + col1 ) AS SIGNED ) + - ( + 2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT cor0.col0 / CAST ( - ( + col1 ) AS INTEGER ) + - ( + 2 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT DISTINCT col0 * - col1 + col0 * col2 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT ALL col2 * - 84 FROM tab2 cor0
----
-2184
-2268
-3192

query I rowsort
SELECT - - col1 + - 85 AS col1 FROM tab2 AS cor0
----
-26
-54
-68

query I rowsort
SELECT DISTINCT - - col1 * col0 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + - cor0.col2 + + 36 FROM tab0 AS cor0
----
-46
3
35

query I rowsort
SELECT + ( + 68 ) + col2 - col2 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT - - cor0.col1 + - col2 * col0 AS col2 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab1, tab1 AS cor0
----
-1

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * + col1 col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col0 + + col0 * + col0 FROM tab2 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT - col2 + tab2.col1 * - col0 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT + col0 + + col2 * tab0.col2 + col0 FROM tab0
----
1137
6902
71

query I rowsort
SELECT - tab2.col1 * - tab2.col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT + - col1 - - col0 * col1 FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + 75 * col0 col2 FROM tab0 cor0
----
-623
1008
2590

query I rowsort
SELECT ALL ( 8 ) AS col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT ALL col1 DIV tab2.col0 + col2 * + tab2.col0 FROM tab2
----
193
2028
3002

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL col1 / tab2.col0 + col2 * + tab2.col0 FROM tab2
----
193
2028
3002

query I rowsort
SELECT col0 + col1 - - col2 AS col2 FROM tab0 WHERE NULL = ( col2 + col0 * col2 )
----

query I rowsort
SELECT - tab1.col1 * + col1 + - tab1.col0 AS col2 FROM tab1
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col0 FROM tab2
----
-24
19
62

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + col2 IN ( tab1.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT tab1.col2 DIV col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4923
SELECT tab1.col2 / col1 AS col0 FROM tab1
----
2
5
7

query I rowsort
SELECT col0 * col0 + col2 FROM tab2 WHERE NOT ( - col0 / - col1 + + col1 ) NOT IN ( col1 * + col0 + tab2.col1 )
----

query I rowsort
SELECT DISTINCT - col2 + col0 * col2 AS col1 FROM tab0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 * col1 col0 FROM tab2
----
1003
1829
3481

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4927
SELECT ALL - cor0.col0 - + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - cor0.col0 - + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - + col1 - + col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT cor0.col1 + - col2 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL + 74 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1417
291
4676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab2 cor0
----
10

query I rowsort
SELECT DISTINCT + col0 - - cor0.col0 * col1 * 35 FROM tab0 AS cor0
----
118860
283554
72264

query I rowsort
SELECT ALL - col2 * col2 + 64 * col1 AS col0 FROM tab2 AS cor0
----
-356
1255
3100

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col0 * col0 FROM tab2
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-4935
SELECT ALL + col0 * + col1 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + col0 * + col1 / - col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + - cor0.col0 * - cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - ( 90 ) FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 7414b682e5ab5dac55bc20746601d17a

query I rowsort
SELECT - + col1 + col1 * 71 * col0 FROM tab2 AS cor0
----
15376
326683
95336

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab2, tab0 AS cor0
----
43

query I rowsort
SELECT ALL + col1 * 72 AS col1 FROM tab1
----
1872
720
936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4941
SELECT + CAST( NULL AS SIGNED ) * - col2 - + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4941
SELECT + CAST ( NULL AS INTEGER ) * - col2 - + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4942
SELECT - + 62 + 64 DIV - col0 AS col1 FROM tab2 AS cor0
----
-62
-62
-71

skipif mysql # not compatible
query I rowsort label-4942
SELECT - + 62 + 64 / - col0 AS col1 FROM tab2 AS cor0
----
-62
-62
-71

query I rowsort
SELECT cor0.col1 * cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 4a2f25e7025075a0ce048be425c35957

onlyif mysql # use DIV operator for integer division
query I rowsort label-4944
SELECT + - 14 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4944
SELECT + - 14 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4945
SELECT + col0 * col0 DIV + col2 + + col1 FROM tab0 cor0
----
103
1322
187

skipif mysql # not compatible
query I rowsort label-4945
SELECT + col0 * col0 / + col2 + + col1 FROM tab0 cor0
----
103
1322
187

onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT - 35 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 35 / col1 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT + - col0 * col2 + col0 DIV - col0 FROM tab0 cor0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-4947
SELECT + - col0 * col2 + col0 / - col0 FROM tab0 cor0
----
-36
-7299
-793

query I rowsort
SELECT + ( + col2 ) + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - col0 + + cor0.col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - col1 + - col0 * - col2 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT ( + col2 ) + - tab2.col2 AS col1 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT DISTINCT - 57 DIV - ( - col2 * tab0.col1 ) + col2 * col0 + tab0.col1 AS col1 FROM tab0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT - 57 / - ( - col2 * tab0.col1 ) + col2 * col0 + tab0.col1 AS col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL - ( 68 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + cor0.col0 * - ( - col2 ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4955
SELECT + - col1 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-4955
SELECT + - col1 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - - cor0.col1 + cor0.col2 AS col1 FROM tab0 cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col0 FROM tab1 cor0
----
94
94
94

query I rowsort
SELECT ALL + 48 * + 2 + cor0.col0 FROM tab1 AS cor0
----
160
176
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4959
SELECT - col0 DIV + 79 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-4959
SELECT - col0 / + 79 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-92
-97

query I rowsort
SELECT + + 19 + - cor0.col2 * + col0 FROM tab1 AS cor0
----
-143
-3629
-7661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( 68 * tab1.col0 + col2 ) col1 FROM tab1
----
-44090
-6708
-71968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * ( - ( col2 ) ) col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL + ( 54 ) + + cor0.col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
151
2892
7516

query I rowsort
SELECT DISTINCT + col1 * 59 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT + 5 - col2 AS col2 FROM tab1 AS cor0
----
-49
-52
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4966
SELECT ALL + - ( col0 ) + col1 DIV 65 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + - ( col0 ) + col1 / 65 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT 93 - + col2 AS col2 FROM tab1
----
-3
36
39

query I rowsort
SELECT - 15 * + tab0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 8738fe4eca3c02f22b4a2ba140770692

query I rowsort
SELECT + 41 + - col2 * + 77 AS col1 FROM tab1 AS cor0
----
-4117
-4348
-7351

query I rowsort
SELECT DISTINCT - + col1 * + 40 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT col2 * + 34 * 79 FROM tab0 cor0
----
220252
2686
88638

onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT ALL - col0 DIV 50 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - col0 / 50 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4973
SELECT DISTINCT + col2 - CAST( col2 + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT + col2 - CAST ( col2 + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - col0 * 14 + col0 + col2 AS col1 FROM tab2 AS cor0
----
-64
-988
-989

query I rowsort
SELECT ALL - col2 * col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + + cor0.col0 + - 58 * 74 FROM tab0 cor0
----
-4203
-4257
-4268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4977
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) / col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) / col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col0 FROM tab2
----
26
26
26

query I rowsort
SELECT DISTINCT + tab2.col2 AS col1 FROM tab2, tab0, tab0 AS cor0, tab1 AS cor1
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col0 FROM tab0
----
82

query I rowsort
SELECT ALL - 77 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 + - cor1.col2 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col2 * - col2 + cor0.col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 FROM tab2 cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4985
SELECT + col2 - ( col0 ) * - tab2.col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-119626
-50996
-5832

skipif mysql # not compatible
query I rowsort label-4985
SELECT + col2 - ( col0 ) * - tab2.col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT + 64 AS col1 FROM tab0, tab0 AS cor0, tab2, tab1 cor1
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f

query I rowsort
SELECT DISTINCT - - 86 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT ALL 10 + col0 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT - 93 - 30 FROM tab0 AS cor0
----
-123
-123
-123

query I rowsort
SELECT ALL + 9 - - 97 AS col2 FROM tab0
----
106
106
106

query I rowsort
SELECT + 8 + - cor0.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 80ba4cfd7d07a980c1de923a2d7e1457

query I rowsort
SELECT ALL - 19 * col1 * - col2 - - col2 AS col1 FROM tab1 AS cor0
----
10887
23808
26730

query I rowsort
SELECT + col1 + - col0 * - cor0.col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4994
SELECT ALL + 50 DIV col0 - cor0.col0 * 5 col0 FROM tab2 cor0
----
-28
-390
-395

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + 50 / col0 - cor0.col0 * 5 col0 FROM tab2 cor0
----
-28
-390
-395

query I rowsort
SELECT DISTINCT + 45 + - col2 AS col0 FROM tab0 AS cor0
----
-37
12
44

query I rowsort
SELECT + cor0.col2 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT ALL col2 + + cor0.col1 DIV + col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL col2 + + cor0.col1 / + col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT DISTINCT + col0 * col2 + - col2 * ( - col2 * col0 ) FROM tab0 AS cor0
----
26928
605734
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4999
SELECT DISTINCT col1 DIV col0 + + col1 * + col1 FROM tab2 AS cor0
----
289
3481
965

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT col1 / col0 + + col1 * + col1 FROM tab2 AS cor0
----
289
3481
965

query I rowsort
SELECT + ( + 67 ) * col0 AS col0 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT ALL - 14 + col1 * - col0 AS col0 FROM tab2 cor0
----
-1357
-231
-4616

query I rowsort
SELECT + cor0.col1 * + col1 + + col2 + col2 FROM tab0 cor0
----
7462
8445
9411

query I rowsort
SELECT DISTINCT ( + 30 ) * + col1 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT ALL cor0.col2 + - 33 + + col2 AS col2 FROM tab0 AS cor0
----
-31
131
33

query I rowsort
SELECT + ( + 32 ) FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT + + col2 + + cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL - + ( - col0 ) - + col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - + col2 * + 92 AS col1 FROM tab0 AS cor0
----
-3036
-7544
-92

query I rowsort
SELECT ALL + 50 AS col0 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT - - ( + cor0.col0 ) * col1 + col1 * col1 + col2 AS col2 FROM tab0 AS cor0
----
12805
16462
9493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5012
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col1 + col1 + cor0.col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT - ( col0 ) * - col2 AS col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT col0 + + col0 DIV ( 70 ) AS col1 FROM tab1 AS cor0
----
3
64
81

skipif mysql # not compatible
query I rowsort label-5015
SELECT col0 + + col0 / ( 70 ) AS col1 FROM tab1 AS cor0
----
3
64
81

query I rowsort
SELECT DISTINCT - col1 - - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + cor0.col2 * + ( ( + col0 ) * + col2 ) + + 1 + col2 * 66 * cor0.col1 FROM tab0 AS cor0
----
1090929
213445
6438

query I rowsort
SELECT + col0 * 81 * - col0 + col1 FROM tab2 AS cor0
----
-3938
-492745
-505504

query I rowsort
SELECT - col0 + - ( col0 ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5020
SELECT - + col2 + - CAST( + col1 AS SIGNED ) DIV + col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-5020
SELECT - + col2 + - CAST ( + col1 AS INTEGER ) / + col1 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT ALL cor0.col0 * + 99 + 0 + col1 AS col1 FROM tab2 AS cor0
----
724
7781
7838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5022
SELECT ALL col0 * - col2 * - col1 + - col0 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
32384
4203
93440

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL col0 * - col2 * - col1 + - col0 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
32384
4203
93440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5023
SELECT - CAST( 41 AS SIGNED ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5023
SELECT - CAST ( 41 AS INTEGER ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT + cor0.col1 + 31 AS col2 FROM tab2 cor0
----
48
62
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT DISTINCT - - col2 + col2 * 1 DIV col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT - - col2 + col2 * 1 / col0 FROM tab0 AS cor0
----
1
34
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5026
SELECT + col1 DIV ( 36 ) + col1 * tab0.col1 col1 FROM tab0
----
7398
8283
9411

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5026
SELECT + col1 / ( 36 ) + col1 * tab0.col1 col1 FROM tab0
----
7398
8283
9411

query I rowsort
SELECT DISTINCT + col0 + - col1 * + tab1.col1 AS col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT tab2.col1 * - tab2.col2 - + col2 AS col0 FROM tab2
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT col1 * 31 FROM tab0
----
2666
2821
3007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - tab2.col2 col1 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT + tab1.col2 + ( + col0 ) FROM tab1
----
121
176
57

query I rowsort
SELECT ALL + col0 + - 1 * 32 * col1 FROM tab1
----
-256
-336
-829

query I rowsort
SELECT ALL col1 + - 0 AS col0 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) + + cor0.col1 col1 FROM tab2 cor0
----
-18
-6025
-6224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5036
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 cor0, tab0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5036
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 cor0, tab0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + col1 + + col1 * - col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - 12 * + tab0.col2 FROM tab0
----
-12
-396
-984

query I rowsort
SELECT col1 * col1 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-2713
1453
772

onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT - - col2 + col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-5040
SELECT - - col2 + col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT - col0 * + 61 + + col2 AS col1 FROM tab2 AS cor0
----
-400
-4732
-4781

query I rowsort
SELECT ALL - col2 * 34 + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1368
-2016
-432

query I rowsort
SELECT DISTINCT col0 * col2 * + tab2.col1 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col0 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT ALL - - 31 * + col2 * + ( col0 ) AS col1 FROM tab2 cor0
----
5859
62868
93062

query I rowsort
SELECT ALL + col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - - 6 * col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT cor0.col1 + col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + cor0.col2 * + ( - 62 ) FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT ALL + + col2 * col0 * col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT col1 - ( + cor0.col0 ) * - col0 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT - cor0.col1 DIV 27 + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-21
41
50

skipif mysql # not compatible
query I rowsort label-5052
SELECT - cor0.col1 / 27 + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-21
41
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL col1 * 92 * + col2 FROM tab1 cor0
----
114816
129168
52440

onlyif mysql # use DIV operator for integer division
query I rowsort label-5055
SELECT + - col0 - 71 DIV col0 AS col1 FROM tab0 AS cor0
----
-26
-37
-89

skipif mysql # not compatible
query I rowsort label-5055
SELECT + - col0 - 71 / col0 AS col1 FROM tab0 AS cor0
----
-26
-37
-89

query I rowsort
SELECT DISTINCT tab1.col1 * + col1 AS col1 FROM tab1
----
100
169
676

query I rowsort
SELECT + - col0 * - col2 - 53 FROM tab2 AS cor0
----
136
1975
2949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + 12 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + - col2 col1 FROM tab2
----
15
26
27

query I rowsort
SELECT col0 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + 20 * col1 + 78 * + ( col1 ) * + ( - col1 ) - + cor0.col1 * col2 FROM tab0 AS cor0
----
-578006
-651560
-732059

onlyif mysql # use DIV operator for integer division
query I rowsort label-5064
SELECT ALL - cor0.col1 DIV + col1 + col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - cor0.col1 / + col1 + col2 FROM tab2 AS cor0
----
25
26
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5065
SELECT col1 * CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5065
SELECT col1 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col0 col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5067
SELECT col0 DIV ( col1 ) - tab1.col0 FROM tab1
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-5067
SELECT col0 / ( col1 ) - tab1.col0 FROM tab1
----
-3
-58
-74

query I rowsort
SELECT DISTINCT - col0 + col0 * + tab0.col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT col2 * col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5070
SELECT + + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT + + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 * + col2 * cor0.col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT - col0 * + col1 + col1 * + ( cor0.col0 + + col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - cor0.col1 * - 49 AS col0 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT ALL col1 + - col0 + col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - 76 * cor0.col2 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT + 58 * col0 AS col0 FROM tab1 cor0
----
174
3712
4640

query I rowsort
SELECT DISTINCT + 86 * col1 + col1 AS col0 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT DISTINCT 87 * - col2 + + col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + ( - col2 ) col0 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT ALL - ( + 42 ) * col2 + - 51 DIV col1 AS col2 FROM tab0
----
-1386
-3444
-42

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - ( + 42 ) * col2 + - 51 / col1 AS col2 FROM tab0
----
-1386
-3444
-42

query I rowsort
SELECT ALL - 55 * - col2 * + tab0.col1 FROM tab0
----
156090
410410
5335

query I rowsort
SELECT DISTINCT + 43 + - 16 * + col0 * ( + col0 ) + cor0.col2 FROM tab0 AS cor0
----
-126611
-19556
-9140

query I rowsort
SELECT DISTINCT + 65 * + col1 * + col0 FROM tab1 AS cor0
----
41600
5070
67600

query I rowsort
SELECT DISTINCT + tab0.col1 + col2 * col2 FROM tab0
----
1175
6815
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5088
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1, tab1 cor0
----
NULL

query I rowsort
SELECT - ( col2 ) + - col0 * 8 * col2 AS col2 FROM tab0 cor0
----
-281
-58466
-6369

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5090
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5091
SELECT - + CAST( 27 AS SIGNED ) * col1 + col2 FROM tab0 AS cor0
----
-2289
-2375
-2618

skipif mysql # not compatible
query I rowsort label-5091
SELECT - + CAST ( 27 AS INTEGER ) * col1 + col2 FROM tab0 AS cor0
----
-2289
-2375
-2618

query I rowsort
SELECT ALL + 45 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
131
136
142

query I rowsort
SELECT ALL + cor0.col0 + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT col0 * - col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5096
SELECT - 36 * + col1 + - CAST( NULL AS SIGNED ) + + col2 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-5096
SELECT - 36 * + col1 + - CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5097
SELECT DISTINCT - cor0.col1 + - col2 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT - cor0.col1 + - col2 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col1 + col0 + - 68 AS col0 FROM tab0 AS cor0
----
112
42
64

query I rowsort
SELECT - - cor0.col2 + cor0.col1 * ( + col0 + - col1 ) AS col0 FROM tab1 cor0
----
-544
597
967

query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT + + ( col1 ) + - 37 + + col2 FROM tab2 cor0
----
18
21
48

query I rowsort
SELECT 11 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT DISTINCT - 65 * - col2 + tab2.col2 FROM tab2
----
1716
1782
2508

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5104
SELECT col0 + col1 * CAST( + 68 AS SIGNED ) FROM tab0 AS cor0
----
5872
6277
6631

skipif mysql # not compatible
query I rowsort label-5104
SELECT col0 + col1 * CAST ( + 68 AS INTEGER ) FROM tab0 AS cor0
----
5872
6277
6631

query I rowsort
SELECT DISTINCT 43 * col2 * cor0.col0 FROM tab1 cor0
----
156864
330240
6966

query I rowsort
SELECT + ( - ( + tab1.col0 ) * + col0 ) - - col2 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT 49 + 16 FROM tab2
----
65
65
65

query I rowsort
SELECT DISTINCT + 4 + - 55 * col2 AS col1 FROM tab2
----
-1426
-1481
-2086

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5109
SELECT - col0 - - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT - col0 - - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 95 + 93 AS col0 FROM tab0 AS cor0
----
8263
8738
9308

query I rowsort
SELECT - cor0.col0 + ( + 99 ) * - col2 * 51 AS col0 FROM tab2 AS cor0
----
-131352
-136330
-191941

onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT ALL + + col1 DIV col1 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + + col1 / col1 AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 * col0 - + col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + + cor0.col1 + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + col1 * + col0 + + 18 FROM tab1 AS cor0
----
1058
658
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5116
SELECT ALL + col0 + - CAST( - 24 + cor0.col1 AS SIGNED ) FROM tab0 cor0
----
-38
-38
22

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + col0 + - CAST ( - 24 + cor0.col1 AS INTEGER ) FROM tab0 cor0
----
-38
-38
22

query I rowsort
SELECT + col1 * 2 * ( col2 ) + col1 AS col1 FROM tab2 AS cor0
----
1309
1705
3127

query I rowsort
SELECT - + col2 * col0 + col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT DISTINCT col0 DIV col1 + col0 AS col2 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT col0 / col1 + col0 AS col2 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT - - col0 * 65 + col2 * - col1 FROM tab1 AS cor0
----
-1209
3590
3952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + ( col1 ) * + col1 col2 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5122
SELECT DISTINCT - - col2 + cor0.col0 DIV 55 AS col2 FROM tab2 AS cor0
----
27
39

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT - - col2 + cor0.col0 / 55 AS col2 FROM tab2 AS cor0
----
27
39

query I rowsort
SELECT ALL - col2 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - col1 * col0 * cor0.col1 - col0 FROM tab1 AS cor0
----
-13600
-2031
-6464

query I rowsort
SELECT ALL - col2 + 80 FROM tab0 cor0
----
-2
47
79

query I rowsort
SELECT DISTINCT - col0 - + col2 * col1 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - col2 * 75 - + col0 FROM tab0
----
-110
-2499
-6239

onlyif mysql # use DIV operator for integer division
query I rowsort label-5128
SELECT DISTINCT + col2 + 50 DIV - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT + col2 + 50 / - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 51 * + col2 FROM tab2 AS cor0
----
-1326
-1377
-1938

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23

query I rowsort
SELECT - col2 + + 34 FROM tab2 AS cor0
----
-4
7
8

query I rowsort
SELECT - col1 * - col0 + col0 AS col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL ( col0 * + col1 + ( + col1 ) ) FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL - 90 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT DISTINCT + col1 * - col2 + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5137
SELECT ALL col2 * + CAST( col1 AS SIGNED ) - - col0 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL col2 * + CAST ( col1 AS INTEGER ) - - col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - col2 * + 37 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT - col0 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - col2 + ( 34 ) * + col1 AS col2 FROM tab0 AS cor0
----
2891
3012
3297

query I rowsort
SELECT + col2 * + col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - cor0.col0 * + col1 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-5143
SELECT - ( - 65 ) DIV col0 FROM tab2 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-5143
SELECT - ( - 65 ) / col0 FROM tab2 AS cor0
----
0
0
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT CAST( col1 AS SIGNED ) DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5144
SELECT CAST ( col1 AS INTEGER ) / col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL 6 * col0 AS col1 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT ALL + ( + 36 ) FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT ALL 75 + cor0.col2 * + col2 FROM tab1 AS cor0
----
2991
3324
9291

query I rowsort
SELECT ALL - 49 + - cor0.col2 FROM tab1 AS cor0
----
-103
-106
-145

query I rowsort
SELECT DISTINCT + col1 + 7 * - col0 AS col0 FROM tab2 cor0
----
-18
-487
-536

query I rowsort
SELECT ALL - - ( col2 ) + + cor0.col1 * col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL ( - 11 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5153
SELECT 95 * col1 + - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT 95 * col1 + - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 11 * + col1 AS col2 FROM tab1 AS cor0
----
-110
-143
-286

onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT - col0 DIV col0 + + 56 * 54 + col0 FROM tab2 AS cor0
----
3030
3101
3102

skipif mysql # not compatible
query I rowsort label-5155
SELECT - col0 / col0 + + 56 * 54 + col0 FROM tab2 AS cor0
----
3030
3101
3102

onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT - cor0.col2 * cor0.col1 + + CAST( col2 AS SIGNED ) DIV - col0 - + 31 * 97 col2 FROM tab1 AS cor0
----
-3577
-4256
-4429

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5156
SELECT - cor0.col2 * cor0.col1 + + CAST ( col2 AS INTEGER ) / - col0 - + 31 * 97 col2 FROM tab1 AS cor0
----
-3577
-4256
-4429

onlyif mysql # use DIV operator for integer division
query I rowsort label-5157
SELECT col0 * col1 + + col1 DIV + col1 + col1 AS col0 FROM tab1
----
105
1054
651

skipif mysql # not compatible
query I rowsort label-5157
SELECT col0 * col1 + + col1 / + col1 + col1 AS col0 FROM tab1
----
105
1054
651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + cor0.col1 * ( + 69 ) col1 FROM tab0 AS cor0
----
5977
6322
6736

query I rowsort
SELECT - 69 * col1 AS col0 FROM tab1 AS cor0
----
-1794
-690
-897

onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT ALL col2 * + 29 * + col2 + col0 DIV - 58 + - col2 * + col1 FROM tab1 AS cor0
----
266015
83160
93650

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL col2 * + 29 * + col2 + col0 / - 58 + - col2 * + col1 FROM tab1 AS cor0
----
266015
83160
93650

query I rowsort
SELECT - - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5162
SELECT + - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5162
SELECT + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT col2 + + 11 FROM tab0
----
12
44
93

query I rowsort
SELECT DISTINCT ( - col2 * - col1 ) AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT + ( + 33 ) FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT - cor0.col2 * + 68 FROM tab2, tab0 AS cor0
----
9 values hashing to 3452369445287b3fdb4ef1c2f2be37af

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5167
SELECT ALL - + CAST( NULL AS SIGNED ) + - 70 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 70 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT + cor0.col1 * - cor0.col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - + cor0.col0 col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + - col1 * col0 * + cor0.col1 AS col2 FROM tab2 cor0
----
-22831
-271518
-6727

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT tab2.col0 + - col1 * + col0 AS col2 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col0 * + col1 + col2 * col1 AS col1 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT tab0.col2 * col2 + - col0 FROM tab0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT tab0.col0 * tab0.col2 + + col0 AS col0 FROM tab0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 18 col0 FROM tab2
----
468
486
684

query I rowsort
SELECT ALL 16 * - col2 FROM tab2
----
-416
-432
-608

query I rowsort
SELECT + + col2 * - col1 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + - col0 * + col2 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-15360
-324
-7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-5182
SELECT DISTINCT 73 * col1 + + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
6279
6644
7082

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT 73 * col1 + + col2 / col2 AS col2 FROM tab0 AS cor0
----
6279
6644
7082

query I rowsort
SELECT ALL + 69 - - cor0.col0 FROM tab1 cor0
----
133
149
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT tab0.col1 DIV + ( - col2 * col1 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5184
SELECT tab0.col1 / + ( - col2 * col1 ) FROM tab0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT - CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT - CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col1 * col0 + - col2 FROM tab1
----
-36537
-4266
-99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT 9 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT 9 / - col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL ( 98 + - col2 ) * col0 * col1 AS col2 FROM tab2
----
15407
331344
80580

query I rowsort
SELECT - col0 * col2 * cor0.col2 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-114722
-54262
-5940

query I rowsort
SELECT 26 - + col0 AS col1 FROM tab2 AS cor0
----
-52
-53
19

query I rowsort
SELECT + + ( + col1 ) * col1 + + col2 * - col2 - + col0 FROM tab0 AS cor0
----
1468
6283
9373

query I rowsort
SELECT col1 * + col0 * - col0 AS col1 FROM tab2
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5193
SELECT DISTINCT + col0 * col1 DIV - col2 AS col0 FROM tab1
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + col0 * col1 / - col2 AS col0 FROM tab1
----
-1
-10
-11

query I rowsort
SELECT + col1 * - col2 - col2 AS col0 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT tab1.col0 FROM tab1 WHERE NULL <> ( col0 + col2 - - col0 )
----

query I rowsort
SELECT + col1 * col1 * col0 AS col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT col2 + tab0.col0 * - col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT col0 * + col1 + tab1.col0 + tab1.col1 AS col0 FROM tab1
----
107
1133
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 - col2 col2 FROM tab0
----
131
77
98

query I rowsort
SELECT DISTINCT - col0 + - col2 * - col1 + - col0 FROM tab1
----
1088
1398
442

query I rowsort
SELECT col2 * - tab1.col0 * col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - col1 + col0 + + col1 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT + col1 * col2 - - col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT - col0 * col0 + + col2 - col0 AS col1 FROM tab1
----
-4103
-6384
42

query I rowsort
SELECT col0 * + col2 - col0 AS col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT + tab1.col2 * col0 + col0 * - col0 * col1 AS col1 FROM tab1
----
-37312
-72
-75520

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> col0 * - col1 * col0 + - col1
----

query I rowsort
SELECT DISTINCT - col1 - - col2 * col1 AS col2 FROM tab2
----
1475
629
806

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 * col2 ) IN ( col0 + col0 )
----

query I rowsort
SELECT - col0 * col1 FROM tab1 WHERE NOT - col0 > + col1
----
-1040
-640
-78

query I rowsort
SELECT - col1 FROM tab1 WHERE - col2 * col0 - + col2 / + col0 IN ( col1 )
----

query I rowsort
SELECT tab0.col1 * tab0.col2 - col0 * tab0.col1 AS col0 FROM tab0
----
-3298
-637
774

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 + col2 * + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - col2 ) AND col0 OR + cor0.col1 BETWEEN NULL AND ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT + + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT + + col2 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + col1 * + col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL col2 + col1 * col0 AS col1 FROM tab1 cor0
----
1136
132
697

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT cor0.col2 + col2 * - cor0.col0 * col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT - col0 / col2 FROM tab0 AS cor0 WHERE NOT NULL >= - col0 * col0 * col2 + - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5224
SELECT DISTINCT + col0 DIV + tab1.col0 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + col0 / + tab1.col0 AS col2 FROM tab1
----
1

query I rowsort
SELECT col1 * - col2 * + col1 - col2 FROM tab1 WHERE NOT - tab1.col0 * col0 < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5226
SELECT col2 * + 78 - col2 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
2028
2106
2962

skipif mysql # not compatible
query I rowsort label-5226
SELECT col2 * + 78 - col2 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
2028
2106
2962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5227
SELECT ALL - ( - col0 ) * col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - ( - col0 ) * col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5228
SELECT ALL - + CAST( - 92 AS SIGNED ) - col1 FROM tab1 AS cor0
----
66
79
82

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - + CAST ( - 92 AS INTEGER ) - col1 FROM tab1 AS cor0
----
66
79
82

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * ( + col1 ) col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + col2 + - ( col2 + col1 ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT tab0.col1 * 93 - col2 AS col2 FROM tab0
----
7965
8381
9020

query I rowsort
SELECT ALL - tab0.col2 - + 18 * - 50 AS col2 FROM tab0
----
818
867
899

query I rowsort
SELECT DISTINCT - tab1.col0 - + col2 AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + col2 * 22 * col0 + + tab1.col2 * + col0 AS col1 FROM tab1
----
176640
3726
83904

query I rowsort
SELECT DISTINCT ( col2 * - col1 + - ( 99 ) ) FROM tab1
----
-1347
-1503
-669

query I rowsort
SELECT DISTINCT - ( col2 + col2 ) FROM tab1
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + 67 + - col2 AS col1 FROM tab0
----
-15
34
66

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2, tab2 cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT - col2 * + 92 * col1 + col2 FROM tab1 AS cor0
----
-114720
-129114
-52383

query I rowsort
SELECT DISTINCT 35 * 9 + cor0.col1 AS col0 FROM tab0 AS cor0
----
401
406
412

query I rowsort
SELECT DISTINCT - + col1 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL - ( 46 ) AS col1 FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5244
SELECT CAST( - cor0.col0 AS SIGNED ) + cor0.col2 * 66 AS col0 FROM tab1 AS cor0
----
3561
3698
6256

skipif mysql # not compatible
query I rowsort label-5244
SELECT CAST ( - cor0.col0 AS INTEGER ) + cor0.col2 * 66 AS col0 FROM tab1 AS cor0
----
3561
3698
6256

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5245
SELECT + - CAST( NULL AS SIGNED ) + - 58 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT + - CAST ( NULL AS INTEGER ) + - 58 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5246
SELECT DISTINCT + cor0.col1 DIV col2 + col0 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
-3298
-664117
-68110

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT + cor0.col1 / col2 + col0 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
-3298
-664117
-68110

query I rowsort
SELECT ALL - + col0 * col0 + cor0.col2 AS col0 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT + cor1.col2 + 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bff21414625c6b821505b8eb61865ab4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT - col1 * 49 - - col0 * col1 DIV - col1 FROM tab0 AS cor0
----
-4238
-4548
-4788

skipif mysql # not compatible
query I rowsort label-5249
SELECT - col1 * 49 - - col0 * col1 / - col1 FROM tab0 AS cor0
----
-4238
-4548
-4788

query I rowsort
SELECT DISTINCT - + 68 * col0 + col2 * 76 FROM tab2 cor0
----
-2484
-3328
1576

query I rowsort
SELECT ALL - - col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL cor0.col2 - 10 FROM tab0, tab2 cor0
----
9 values hashing to 384eb786be362e0a167602ef777581a0

query I rowsort
SELECT ALL + cor0.col2 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - cor0.col2 * + ( + 51 ) AS col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT col0 * 90 AS col0 FROM tab1 AS cor0
----
270
5760
7200

query I rowsort
SELECT - col0 + 6 FROM tab2 AS cor0
----
-1
-72
-73

query I rowsort
SELECT ALL - - col1 * + col0 * + cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT ALL - col2 DIV - 2 AS col2 FROM tab1
----
27
28
48

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL - col2 / - 2 AS col2 FROM tab1
----
27
28
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 92 col1 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT DISTINCT - + col0 * - col0 + - col2 * - col1 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT col0 * 23 * col0 AS col1 FROM tab1 AS cor0
----
147200
207
94208

query I rowsort
SELECT - col1 + + col1 * col2 * col0 AS col2 FROM tab2 AS cor0
----
119593
51017
5828

onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT + 77 DIV 51 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5263
SELECT + 77 / 51 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col2 + + 28 FROM tab2
----
54
55
66

query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 + col2 * - 88 FROM tab1 AS cor0
----
-4832
-5083
-8557

query I rowsort
SELECT - 92 + col1 * 67 FROM tab2 cor0
----
1047
1985
3861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 col1 FROM tab2, tab2 cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a

query I rowsort
SELECT ALL + 12 + col2 * - col2 FROM tab1 AS cor0
----
-2904
-3237
-9204

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT DISTINCT + col0 DIV cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + col0 / cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT 55 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1589
701
892

query I rowsort
SELECT ALL - col1 * col2 + + cor0.col0 * - 62 AS col1 FROM tab0 AS cor0
----
-12980
-2267
-4326

query I rowsort
SELECT col1 * cor0.col2 + col1 * 38 FROM tab2 cor0
----
1292
2015
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5273
SELECT - 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-5273
SELECT - col1 / col2 col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL + 18 * + tab0.col1 FROM tab0
----
1548
1638
1746

query I rowsort
SELECT tab1.col0 * col2 * - col2 AS col2 FROM tab1
----
-207936
-737280
-8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5276
SELECT - 48 * col1 + - ( 91 ) * col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT - 48 * col1 + - ( 91 ) * col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 75 + col2 AS col2 FROM tab1 AS cor0
----
129
132
171

query I rowsort
SELECT - col0 - - cor0.col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5279
SELECT - col0 DIV - col2 + col0 * + 48 * cor0.col1 - ( + cor0.col0 * col0 ) col2 FROM tab1 AS cor0
----
26625
3735
43520

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5279
SELECT - col0 / - col2 + col0 * + 48 * cor0.col1 - ( + cor0.col0 * col0 ) col2 FROM tab1 AS cor0
----
26625
3735
43520

onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT - 72 * col0 DIV + 49 FROM tab1 cor0
----
-117
-4
-94

skipif mysql # not compatible
query I rowsort label-5280
SELECT - 72 * col0 / + 49 FROM tab1 cor0
----
-117
-4
-94

query I rowsort
SELECT + + 10 * col2 - + ( + col0 + col1 ) AS col0 FROM tab1 cor0
----
496
511
867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5282
SELECT ALL + col1 * CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + + ( - 26 ) AS col0 FROM tab0 AS cor0
----
-25
56
7

query I rowsort
SELECT - 72 * col2 FROM tab2 AS cor0
----
-1872
-1944
-2736

query I rowsort
SELECT cor1.col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL col1 * + ( cor0.col2 ) + + col0 AS col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT - ( + 32 ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT DISTINCT col1 + - cor0.col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT col1 + - cor0.col1 / - col1 AS col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT + 54 + col0 - cor0.col1 * + 40 FROM tab2 AS cor0
----
-1179
-2228
-547

query I rowsort
SELECT DISTINCT + col2 * col0 + 18 FROM tab2 AS cor0
----
2046
207
3020

query I rowsort
SELECT + 81 * - col1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-2097
3286
5347

query I rowsort
SELECT + col1 + cor0.col0 * - col0 - col0 AS col0 FROM tab1 AS cor0
----
-4150
-6467
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT DISTINCT + + 20 * col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT + + 20 * col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + + col2 * 11 AS col1 FROM tab1 AS cor0
----
1069
620
637

query I rowsort
SELECT tab0.col1 + - col0 * col2 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT - col2 + - col2 * 96 FROM tab1
----
-5238
-5529
-9312

query I rowsort
SELECT 60 + col2 + 59 * 83 AS col0 FROM tab0
----
4958
4990
5039

query I rowsort
SELECT 83 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5300
SELECT tab1.col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5300
SELECT tab1.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT DISTINCT + col2 + col1 DIV CAST( + 54 AS SIGNED ) FROM tab2 AS cor0
----
27
38

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT + col2 + col1 / CAST ( + 54 AS INTEGER ) FROM tab2 AS cor0
----
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 44 col2 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT - 41 * col1 * 42 + tab0.col2 * - tab0.col0 + + col1 AS col1 FROM tab0
----
-148798
-163909
-166972

query I rowsort
SELECT col2 + + col0 * tab1.col0 * col2 AS col0 FROM tab1
----
233529
540
614496

query I rowsort
SELECT col1 + + 7 * - col0 FROM tab2
----
-18
-487
-536

query I rowsort
SELECT - tab0.col1 - + col0 * col0 AS col0 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT - 86 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-248
-3734
-7766

query I rowsort
SELECT DISTINCT - + col0 + col1 + col0 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ( 43 ) FROM tab0 AS cor0
----
43
43
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT DISTINCT - col0 DIV 92 + col2 * - 8 FROM tab0 AS cor0
----
-264
-656
-8

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT - col0 / 92 + col2 * - 8 FROM tab0 AS cor0
----
-264
-656
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 58 ) * col0 - + col0 col0 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT DISTINCT + col0 * + 29 - col2 FROM tab0 AS cor0
----
1014
2499
663

query I rowsort
SELECT ALL - 37 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-111
-2368
-2960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5314
SELECT + CAST( NULL AS SIGNED ) + - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5314
SELECT + CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 56 + col2 + col2 * col1 FROM tab2 AS cor0
----
1616
740
920

query I rowsort
SELECT DISTINCT - col1 - + 67 AS col1 FROM tab0 AS cor0
----
-153
-158
-164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5317
SELECT ALL CAST( + ( col0 ) AS SIGNED ) * col2 col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL CAST ( + ( col0 ) AS INTEGER ) * col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + + col1 * 59 * - col0 FROM tab0 AS cor0
----
-121776
-200305
-477841

query I rowsort
SELECT + ( 17 ) FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT + + col1 * + 66 AS col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT ALL + col0 * 58 AS col0 FROM tab2 cor0
----
406
4524
4582

query I rowsort
SELECT - 4 FROM tab0, tab0 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL + col0 * 23 AS col1 FROM tab1
----
1472
1840
69

query I rowsort
SELECT DISTINCT 81 FROM tab0, tab1 AS cor0
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT 86 DIV cor1.col1 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ece29cd20d575fabb9157b319c085715

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5325
SELECT 86 / cor1.col1 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ece29cd20d575fabb9157b319c085715

query I rowsort
SELECT - 56 * + col0 AS col2 FROM tab1 AS cor0
----
-168
-3584
-4480

query I rowsort
SELECT DISTINCT + col0 * 26 AS col2 FROM tab0
----
2314
624
910

query I rowsort
SELECT tab2.col2 + ( - 90 ) AS col1 FROM tab2
----
-52
-63
-64

query I rowsort
SELECT col0 * col1 + col1 * - col0 * col0 FROM tab1 cor0
----
-156
-40320
-82160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5330
SELECT col2 * - col2 + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1461
-735
-760

skipif mysql # not compatible
query I rowsort label-5330
SELECT col2 * - col2 + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT ALL - ( + col0 ) + - ( col2 ) * cor0.col2 FROM tab2 cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL + + col2 * cor0.col1 + + ( col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5334
SELECT DISTINCT CAST( - col0 * col0 AS SIGNED ) + col0 AS col0 FROM tab2
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT CAST ( - col0 * col0 AS INTEGER ) + col0 AS col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT - 33 + col1 * col2 FROM tab1
----
1215
1371
537

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) + + col2 * + tab0.col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT + + 69 AS col1 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5338
SELECT ( - ( col1 ) ) * CAST( - col1 AS SIGNED ) + + col1 FROM tab1
----
110
182
702

skipif mysql # not compatible
query I rowsort label-5338
SELECT ( - ( col1 ) ) * CAST ( - col1 AS INTEGER ) + + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT 85 + - col1 FROM tab2
----
26
54
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + col2 col0 FROM tab2
----
81
82
93

query I rowsort
SELECT DISTINCT - 92 * - col0 * col1 AS col1 FROM tab0
----
189888
312340
745108

query I rowsort
SELECT - cor0.col1 * col1 + + 33 FROM tab1 AS cor0
----
-136
-643
-67

query I rowsort
SELECT ALL + + col0 * col1 + 51 FROM tab1 AS cor0
----
1091
129
691

query I rowsort
SELECT DISTINCT - cor0.col1 + - 1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT cor0.col2 + 16 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 9d703c16a40654c427edf3fea00c0445

query I rowsort
SELECT tab0.col2 + ( 19 ) AS col0 FROM tab0
----
101
20
52

query I rowsort
SELECT - - col0 + 71 AS col0 FROM tab2 AS cor0
----
149
150
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT + col0 + col1 DIV - 87 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5348
SELECT + col0 + col1 / - 87 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 19 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL tab2.col2 AS col1 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * + col1 col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col0 + col2 * - cor0.col1 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
-641
2435
572

query I rowsort
SELECT + 64 + - col2 AS col1 FROM tab1 AS cor0
----
-32
10
7

query I rowsort
SELECT 44 + 25 AS col2 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT + 93 * + ( col2 ) - - col2 * col2 AS col0 FROM tab0 AS cor0
----
14350
4158
94

query I rowsort
SELECT + col0 * 30 FROM tab1
----
1920
2400
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT + col2 DIV + 58 + col0 col2 FROM tab0 cor0
----
24
35
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5357
SELECT + col2 / + 58 + col0 col2 FROM tab0 cor0
----
24
35
90

query I rowsort
SELECT ALL + + 17 + col2 FROM tab2 cor0
----
43
44
55

query I rowsort
SELECT 66 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + col1 * col0 + - col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - col2 + - col1 * + 44 FROM tab0 AS cor0
----
-3817
-4086
-4269

query I rowsort
SELECT ALL + 22 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT + col0 + col1 * + ( - 92 ) AS col1 FROM tab0 cor0
----
-7888
-8283
-8889

query I rowsort
SELECT - col2 * - col1 + + cor0.col0 * col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT - col1 - 52 FROM tab0
----
-138
-143
-149

query I rowsort
SELECT cor0.col1 * 18 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to bc562a3709efcd412b43f20058044b26

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 39 AS REAL ) * - tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3c9fb06536a5ea37f7497a6a4dc0b1a3

query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col0 AS col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT col1 DIV ( + col2 ) + ( + col2 ) AS col1 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-5369
SELECT col1 / ( + col2 ) + ( + col2 ) AS col1 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT tab2.col0 + - cor0.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a2817ca2245c4aefa16a39f1a9a0f95

query I rowsort
SELECT + ( col2 ) + + col2 * col0 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab2, tab0 AS cor0
----
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5373
SELECT DISTINCT - col0 * col1 + + col2 DIV ( - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-1345
-217
-4602

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - col0 * col1 + + col2 / ( - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-1345
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col1 ) * + col2 col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5375
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT - - 76 + - col1 * + cor0.col1 + + col0 DIV col0 FROM tab2 AS cor0
----
-212
-3404
-884

skipif mysql # not compatible
query I rowsort label-5376
SELECT - - 76 + - col1 * + cor0.col1 + + col0 / col0 FROM tab2 AS cor0
----
-212
-3404
-884

query I rowsort
SELECT ALL + col1 * col1 + tab0.col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT + col0 + - col0 * - cor0.col2 + + col2 FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT ALL + col0 + tab1.col2 * + ( col2 ) * tab1.col1 + col2 FROM tab1
----
119984
32611
75873

query I rowsort
SELECT ALL 26 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1251
602
7947

query I rowsort
SELECT + cor0.col1 * 75 AS col1 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT - cor0.col2 * + 68 FROM tab2 AS cor0
----
-1768
-1836
-2584

query I rowsort
SELECT + + col1 + col2 * + col1 * col0 AS col2 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT + - col2 + - col2 * 4 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT col2 * - 50 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab0
----
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5387
SELECT DISTINCT + col2 + col2 DIV + col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT + col2 + col2 / + col1 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT DISTINCT + col1 * col0 + - 87 * col0 AS col0 FROM tab0 cor0
----
-24
350
356

query I rowsort
SELECT ALL 60 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT ALL - + col1 + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - + col1 + col0 / col2 AS col1 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT ALL - col1 * + col2 + + col1 * + col1 FROM tab1 AS cor0
----
-1079
-470
-728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5392
SELECT ALL - col2 + + ( - 6 ) DIV cor0.col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - col2 + + ( - 6 ) / cor0.col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL col0 * col1 - + col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - - col1 * col2 * - 96 FROM tab2 AS cor0
----
-147264
-62016
-80352

query I rowsort
SELECT - tab1.col2 - - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 + - 81 * - col1 AS col2 FROM tab2 AS cor0
----
1360
2480
4720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5397
SELECT + + ( + col2 ) + - col2 * - CAST( ( + col2 ) * ( + col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
157518
185250
884832

skipif mysql # not compatible
query I rowsort label-5397
SELECT + + ( + col2 ) + - col2 * - CAST ( ( + col2 ) * ( + col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
157518
185250
884832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5398
SELECT DISTINCT - col2 * col2 DIV col0 FROM tab1 AS cor0
----
-115
-50
-972

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT - col2 * col2 / col0 FROM tab1 AS cor0
----
-115
-50
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 53 col0 FROM tab1 cor0
----
1378
530
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-5400
SELECT col0 + col1 DIV + col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5400
SELECT col0 + col1 / + col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT 68 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2848
-3181
-9148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT DISTINCT + 78 + col0 FROM tab0 AS cor0
----
102
113
167

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT - col0 + + cor0.col0 DIV 29 AS col2 FROM tab0 AS cor0
----
-24
-34
-86

skipif mysql # not compatible
query I rowsort label-5404
SELECT - col0 + + cor0.col0 / 29 AS col2 FROM tab0 AS cor0
----
-24
-34
-86

query I rowsort
SELECT DISTINCT - col2 - + cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + cor0.col2 - cor0.col0 AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + + col0 * - col2 + + col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + ( cor0.col1 ) * - ( + 64 ) + cor0.col2 + - col1 * - col0 FROM tab1 AS cor0
----
-1532
304
57

query I rowsort
SELECT ALL 42 * col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
1410
3533
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5411
SELECT DISTINCT - tab0.col0 DIV tab0.col1 + + col0 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT - tab0.col0 / tab0.col1 + + col0 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - col2 * + col1 + - col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT 71 - + col2 * - col0 FROM tab0
----
106
7369
863

onlyif mysql # use DIV operator for integer division
query I rowsort label-5414
SELECT - col0 DIV + 26 AS col0 FROM tab2
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-5414
SELECT - col0 / + 26 AS col0 FROM tab2
----
-3
-3
0

query I rowsort
SELECT + - cor1.col0 * 50 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1dc293101ed66b81901bb8a040cd1cba

query I rowsort
SELECT ALL 99 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
SELECT - CAST( NULL AS SIGNED ) * 79 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5417
SELECT - CAST ( NULL AS INTEGER ) * 79 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 * - col0 * col1 col1 FROM tab1 AS cor0
----
-36490
-4238
-99853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 12 + - col2 col2 FROM tab0 AS cor0
----
-21
-70
11

query I rowsort
SELECT DISTINCT 39 + col0 * col1 + col1 AS col1 FROM tab0 AS cor0
----
2189
3531
8229

onlyif mysql # use DIV operator for integer division
query I rowsort label-5421
SELECT ALL 0 * + cor0.col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL 0 * + cor0.col1 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5422
SELECT ALL - col2 * col2 + - 65 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2917
-3250
-9216

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL - col2 * col2 + - 65 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2917
-3250
-9216

query I rowsort
SELECT DISTINCT + + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL cor0.col2 + + col0 * 73 FROM tab2 AS cor0
----
538
5720
5805

query I rowsort
SELECT ALL - 8 + - col2 FROM tab1 AS cor0
----
-104
-62
-65

query I rowsort
SELECT col2 * + ( + col1 ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - ( tab0.col2 ) * - col1 AS col0 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 55 col1 FROM tab1
----
165
3520
4400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5429
SELECT DISTINCT - CAST( 92 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT - CAST ( 92 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT ALL col2 * - col0 + - cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5431
SELECT ALL + 50 DIV + ( col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL + 50 / + ( col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 29 + - 89 AS col1 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT - 77 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-2002
-2079
-2926

query I rowsort
SELECT DISTINCT + col2 - - col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + col0 + col1 * 49 FROM tab0 AS cor0
----
4238
4548
4788

onlyif mysql # use DIV operator for integer division
query I rowsort label-5436
SELECT DISTINCT - 47 DIV - col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT - 47 / - col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + ( 84 ) AS col2 FROM tab2
----
84
84
84

query I rowsort
SELECT col1 + 16 AS col0 FROM tab1 cor0
----
26
29
42

query I rowsort
SELECT DISTINCT - - col0 + 68 AS col0 FROM tab1 AS cor0
----
132
148
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5440
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col2 + + ( + ( col2 ) ) * + col1 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 * + cor0.col1 col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT cor0.col1 + col1 * + col1 + col2 AS col1 FROM tab2 cor0
----
1019
344
3566

query I rowsort
SELECT ALL - col0 + - cor0.col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT col1 + - ( - col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - - col1 - 23 * + col2 FROM tab0 AS cor0
----
-1795
-673
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5447
SELECT ALL col1 + col1 * CAST( NULL AS SIGNED ) - tab1.col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL col1 + col1 * CAST ( NULL AS INTEGER ) - tab1.col1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5448
SELECT ALL - col1 * - 6 + 44 DIV col2 FROM tab1 AS cor0
----
156
60
78

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL - col1 * - 6 + 44 / col2 FROM tab1 AS cor0
----
156
60
78

query I rowsort
SELECT ALL + col2 + col2 * col0 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - + col1 * col1 - ( + col2 + col1 ) AS col1 FROM tab1 cor0
----
-167
-278
-756

query I rowsort
SELECT ALL col2 + + ( + 94 ) * + col2 FROM tab1
----
5130
5415
9120

query I rowsort
SELECT ( - cor0.col2 ) * - cor0.col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - col1 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT - 71 + 68 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + - col0 * + col1 + + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - 90 + + col2 FROM tab1 cor0
----
-33
-36
6

query I rowsort
SELECT - - 74 * + col2 - col2 * - col0 FROM tab0 cor0
----
109
13366
3234

query I rowsort
SELECT ALL + + tab2.col1 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT col1 * - col1 + col0 + col0 FROM tab0 cor0
----
-7348
-8103
-9339

query I rowsort
SELECT tab1.col1 * ( + col1 * - col2 ) + + col0 FROM tab1
----
-16144
-36501
-5636

query I rowsort
SELECT DISTINCT 12 FROM tab1, tab1 AS cor0
----
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5462
SELECT + ( col2 ) * cor0.col2 DIV col1 + + 84 + col2 AS col0 FROM tab0 AS cor0
----
129
239
85

skipif mysql # not compatible
query I rowsort label-5462
SELECT + ( col2 ) * cor0.col2 / col1 + + 84 + col2 AS col0 FROM tab0 AS cor0
----
129
239
85

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + cor0.col0 * - cor0.col1 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT DISTINCT + 23 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
23

query I rowsort
SELECT - + 92 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT ALL - + ( - 23 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT - 68 * - 83 FROM tab0, tab2, tab2 AS cor0, tab1
----
5644

query I rowsort
SELECT + tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col0 + col0 * + 2 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT col1 + col1 * - col1 * cor0.col0 AS col2 FROM tab1 cor0
----
-13507
-2002
-6390

query I rowsort
SELECT DISTINCT - - ( + col1 ) * cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + + col1 + + cor0.col2 + - col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col2 * cor0.col1 col2 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 71 + col1 col2 FROM tab1 AS cor0
----
81
84
97

query I rowsort
SELECT DISTINCT + + 2 * col1 AS col2 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT ALL - col2 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL col0 + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL + col0 * col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT tab2.col0 * - col1 + + tab2.col1 AS col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT + ( - tab1.col0 ) AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 75 + - 39 AS col2 FROM tab0
----
36

query I rowsort
SELECT DISTINCT - 50 * - 28 + tab0.col0 * col1 + col2 AS col0 FROM tab0
----
3497
4796
9581

query I rowsort
SELECT + 8 - col1 AS col0 FROM tab2
----
-23
-51
-9

query I rowsort
SELECT ALL - ( - ( col0 ) ) + + col2 * tab1.col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL - 82 AS col1 FROM tab2
----
-82
-82
-82

query I rowsort
SELECT - ( - 88 ) AS col2 FROM tab1
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5488
SELECT DISTINCT col1 DIV - col1 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT col1 / - col1 AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL 5 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-59
-75
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 + - col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + + ( - col1 ) * - col2 * - col1 + + cor0.col0 FROM tab2 AS cor0
----
-10903
-25940
-90428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5492
SELECT DISTINCT CAST( + col2 AS SIGNED ) + col2 * - col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + col2 * - col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT ALL col0 + col1 * + cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT ALL col1 + 12 AS col1 FROM tab0
----
103
109
98

query I rowsort
SELECT 96 * col0 - - col0 FROM tab2
----
679
7566
7663

query I rowsort
SELECT 13 * - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-1136
-889
-93

query I rowsort
SELECT DISTINCT ( col0 * - col1 ) + - col1 AS col0 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT ALL col2 + - tab0.col0 * - col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL - - 8 * col1 FROM tab2 AS cor0
----
136
248
472

onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT ALL - col2 * 73 DIV col1 AS col1 FROM tab0 AS cor0
----
-28
-65
0

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL - col2 * 73 / col1 AS col1 FROM tab0 AS cor0
----
-28
-65
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col2 FROM tab2
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT ALL col1 DIV col1 + tab0.col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL col1 / col1 + tab0.col2 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT DISTINCT col0 + col1 DIV + col2 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT col0 + col1 / + col2 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + - cor0.col2 * col1 * + col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - + cor0.col0 + cor0.col0 * + col0 * cor0.col1 FROM tab1 AS cor0
----
231
40896
83120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + col1 + col1 col1 FROM tab2 AS cor0
----
111
6202
6275

onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT ALL - + col0 DIV - col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL - + col0 / - col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * + col2 + - col0 AS col0 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT ALL - col0 DIV col2 - + col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-571

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL - col0 / col2 - + col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-571

query I rowsort
SELECT ALL + col2 - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + col0 NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + cor0.col0 + + col2 col1 FROM tab0 AS cor0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-5512
SELECT DISTINCT col0 DIV col0 - col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT col0 / col0 - col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col0 * cor0.col0 + + col2 * col1 FROM tab0 AS cor0
----
1322
15383
3414

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT + col2 * - cor0.col0 + col0 DIV col0 FROM tab0 cor0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-5515
SELECT + col2 * - cor0.col0 + col0 / col0 FROM tab0 cor0
----
-34
-7297
-791

query I rowsort
SELECT ALL + col1 + tab1.col2 + - col1 * col0 FROM tab1
----
-573
-931
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5517
SELECT DISTINCT col1 + - col1 DIV + col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT col1 + - col1 / + col0 FROM tab1
----
10
13
18

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5519
SELECT DISTINCT col2 DIV col0 + col1 col2 FROM tab0 AS cor0
----
87
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT col2 / col0 + col1 col2 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT DISTINCT tab0.col1 * + col2 + col2 - - col2 AS col2 FROM tab0
----
2904
7626
99

query I rowsort
SELECT + col0 + - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col1 + + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - col1 * col2 * col0 + col2 * col2 + - col0 * col2 * + col1 FROM tab0
----
-1321512
-135135
-6789

query I rowsort
SELECT DISTINCT tab1.col2 * - col2 + - col0 * + col0 FROM tab1
----
-15616
-2925
-7345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 + tab2.col1 col0 FROM tab2, tab0 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * - col2 + + col0 col1 FROM tab0
----
-7127
-735
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 + + col0 - col1 * + col0 col2 FROM tab1
----
-1216
-153
-2000

query I rowsort
SELECT + col1 * + col0 + col0 + col1 FROM tab2
----
1439
255
4739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + col1 col1 FROM tab2
----
175
215
45

query I rowsort
SELECT + col1 + tab0.col2 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL col0 + col1 * tab1.col1 * col2 + + col0 FROM tab1
----
16384
36510
5828

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab2
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col0 ) col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + 87 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT ALL col2 DIV + ( - col2 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL col2 / + ( - col2 ) FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT DISTINCT col2 DIV ( - col2 * + tab1.col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT col2 / ( - col2 * + tab1.col2 ) AS col1 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT + col1 + ( + col0 ) + col2 DIV CAST( col2 AS SIGNED ) FROM tab1 cor0
----
30
75
94

skipif mysql # not compatible
query I rowsort label-5537
SELECT + col1 + ( + col0 ) + col2 / CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
30
75
94

query I rowsort
SELECT DISTINCT + + col0 + 74 AS col1 FROM tab0 AS cor0
----
109
163
98

query I rowsort
SELECT 86 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT tab2.col1 * + 77 FROM tab2
----
1309
2387
4543

query I rowsort
SELECT - col0 * 15 * - col2 + col1 * + col1 AS col2 FROM tab0
----
117751
19276
9934

query I rowsort
SELECT + 26 * + col0 AS col0 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT ALL + ( + col1 ) * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 43 * - ( + tab2.col0 ) AS col2 FROM tab2
----
-301
-3354
-3397

query I rowsort
SELECT + 48 FROM tab2, tab2 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT ALL - col2 DIV + cor0.col2 + col0 * + col2 + - col2 DIV col1 FROM tab0 AS cor0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL - col2 / + cor0.col2 + col0 * + col2 + - col2 / col1 FROM tab0 AS cor0
----
34
7297
791

onlyif mysql # use DIV operator for integer division
query I rowsort label-5547
SELECT + col2 - col1 DIV - col2 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5547
SELECT + col2 - col1 / - col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT 45 * + col1 - + 62 * col1 AS col2 FROM tab1 AS cor0
----
-170
-221
-442

query I rowsort
SELECT col1 * + cor0.col2 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT DISTINCT tab1.col0 - + 18 * + 95 AS col2 FROM tab1, tab1 AS cor0
----
-1630
-1646
-1707

query I rowsort
SELECT + col2 * col0 + - ( - col1 ) FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT col1 * + col1 * col2 AS col0 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT ALL tab0.col1 - col1 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 * col0 col1 FROM tab1
----
156
3328
4160

query I rowsort
SELECT DISTINCT col1 * tab0.col0 * col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ALL - cor0.col2 * 55 FROM tab1, tab2 AS cor0
----
9 values hashing to a23807e41a70f256f70e1215018b7273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * ( - cor0.col0 ) col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - col2 * 31 FROM tab1 AS cor0
----
-1674
-1767
-2976

onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT DISTINCT + col2 DIV ( - cor0.col2 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + col2 / ( - cor0.col2 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col0 + ( 5 * + col1 ) - col0 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT + cor0.col2 + + ( cor0.col1 ) AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col0 + - 82 AS col1 FROM tab2 AS cor0
----
-3
-4
-75

query I rowsort
SELECT DISTINCT ( + col2 + col1 ) AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 + ( + 27 ) AS col2 FROM tab2 cor0
----
53
54
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT - col0 DIV ( 79 * - col1 ) - - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5565
SELECT - col0 / ( 79 * - col1 ) - - col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT col1 * + ( col0 ) + - col1 + col0 * col0 DIV col1 FROM tab0 cor0
----
1984
3310
8095

skipif mysql # not compatible
query I rowsort label-5566
SELECT col1 * + ( col0 ) + - col1 + col0 * col0 / col1 FROM tab0 cor0
----
1984
3310
8095

query I rowsort
SELECT DISTINCT - - col1 + - col2 * + col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT col1 + + col1 * col2 DIV - ( 64 * col1 ) + + col1 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-5568
SELECT col1 + + col1 * col2 / - ( 64 * col1 ) + + col1 / cor0.col0 AS col2 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT - + col2 * 78 AS col0 FROM tab1 AS cor0
----
-4212
-4446
-7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-5570
SELECT col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT col0 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT - col1 * - 16 AS col2 FROM tab2 AS cor0
----
272
496
944

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 0 AS REAL ) * col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 90 * - col0 FROM tab1 AS cor0
----
-270
-5760
-7200

query I rowsort
SELECT DISTINCT - 19 * + col0 AS col0 FROM tab1
----
-1216
-1520
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 + col2 col0 FROM tab0 cor0
----
152
255
99

query I rowsort
SELECT - ( - cor0.col2 ) * col0 + - 27 + col2 FROM tab2 AS cor0
----
189
2027
3013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 * + col2 + + col0 * - col0 col0 FROM tab0 cor0
----
-1227
-642
-8085

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 + - col2 col1 FROM tab0
----
131
77
98

query I rowsort
SELECT ALL - col0 + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL 14 * 41 + col0 + - col1 AS col1 FROM tab0 AS cor0
----
512
512
572

query I rowsort
SELECT DISTINCT + col2 * + col0 + + col2 AS col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT ALL + col2 * - 18 AS col2 FROM tab1
----
-1026
-1728
-972

query I rowsort
SELECT + 81 FROM tab1, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ALL + col1 + 85 + col0 FROM tab1 AS cor0
----
114
159
178

query I rowsort
SELECT ALL cor0.col2 * col0 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col1 + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL 0 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - ( + col2 ) * col2 FROM tab2 cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5591
SELECT ALL 49 DIV col0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL 49 / col0 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT DISTINCT ( + 35 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5593
SELECT + - col1 DIV - col0 col2 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5593
SELECT + - col1 / - col0 col2 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT 27 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT ALL - 78 + - col2 * - col1 AS col0 FROM tab0
----
19
2760
7384

query I rowsort
SELECT ALL + col1 + 82 FROM tab0
----
168
173
179

query I rowsort
SELECT DISTINCT col1 + + col2 * col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT col0 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - 47 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5600
SELECT tab1.col1 + CAST( 94 AS SIGNED ) FROM tab1
----
104
107
120

skipif mysql # not compatible
query I rowsort label-5600
SELECT tab1.col1 + CAST ( 94 AS INTEGER ) FROM tab1
----
104
107
120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT col2 + - col0 DIV col0 + + col0 AS col2 FROM tab2
----
103
116
33

skipif mysql # not compatible
query I rowsort label-5601
SELECT col2 + - col0 / col0 + + col0 AS col2 FROM tab2
----
103
116
33

query I rowsort
SELECT + col1 * 16 * 71 - col0 * col1 FROM tab2
----
17969
34999
62422

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT ALL col2 DIV - 41 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL col2 / - 41 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * + 25 * + col2 FROM tab1
----
230400
72900
81225

query I rowsort
SELECT ALL - col0 - 90 * 54 FROM tab1
----
-4863
-4924
-4940

query I rowsort
SELECT ALL - col2 * 1 + + col1 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT DISTINCT + - col0 DIV + 21 + - col0 FROM tab0 cor0
----
-25
-36
-93

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT + - col0 / + 21 + - col0 FROM tab0 cor0
----
-25
-36
-93

query I rowsort
SELECT ALL col1 * - ( col0 ) * col2 + col1 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT + cor0.col0 * + col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - 90 AS col0 FROM tab2
----
-90
-90
-90

query I rowsort
SELECT ALL + col2 * 31 * - col1 FROM tab1 AS cor0
----
-17670
-38688
-43524

query I rowsort
SELECT 42 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT 77 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
112
7375
869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * col1 + col0 col2 FROM tab0 cor0
----
6904
7369
7795

query I rowsort
SELECT DISTINCT + col0 * col2 + col0 + ( + ( + col0 ) ) * col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
178320
329385
744396

query I rowsort
SELECT col0 + + 80 AS col2 FROM tab1 AS cor0
----
144
160
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5617
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + + col0 * + 64 * + col0 FROM tab1 AS cor0
----
262087
409504
522

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + + col0 * + 64 * + col0 FROM tab1 AS cor0
----
262087
409504
522

query I rowsort
SELECT - ( col0 ) * + col2 * + col1 + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 67 AS REAL ) + + col0 FROM tab1 AS cor0
----
131
147
70

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab0 AS cor0
----
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5621
SELECT DISTINCT tab1.col2 DIV col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT tab1.col2 / col1 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 * - ( + col2 + - col1 ) col0 FROM tab0 AS cor0
----
-150414
-67158
-9312

query I rowsort
SELECT ALL - + cor0.col1 + + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT col0 * cor0.col1 * + col0 AS col0 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT - cor0.col1 * - 92 AS col2 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT ALL - col2 * - 57 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1995
-415986
-45144

query I rowsort
SELECT ALL col2 * 98 FROM tab2 AS cor0
----
2548
2646
3724

query I rowsort
SELECT cor0.col0 * - col0 + 16 FROM tab0 AS cor0
----
-1209
-560
-7905

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - + col0 + + ( + col1 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + - col0 * col1 - 67 FROM tab2 AS cor0
----
-1410
-284
-4669

onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT col2 * col0 * + 32 + col1 DIV - cor0.col0 FROM tab0 AS cor0
----
1118
233535
25341

skipif mysql # not compatible
query I rowsort label-5632
SELECT col2 * col0 * + 32 + col1 / - cor0.col0 FROM tab0 AS cor0
----
1118
233535
25341

query I rowsort
SELECT ALL + col0 - - 94 AS col1 FROM tab0 AS cor0
----
118
129
183

query I rowsort
SELECT - - col1 * + cor0.col0 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col0 * 53 AS col0 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT ALL + - col1 * col0 + col1 * + col2 + - cor0.col1 FROM tab0 AS cor0
----
-3395
-728
688

query I rowsort
SELECT col0 * 94 + col2 AS col2 FROM tab2 AS cor0
----
685
7358
7464

query I rowsort
SELECT ALL col1 + 5 AS col2 FROM tab2 AS cor0
----
22
36
64

query I rowsort
SELECT DISTINCT tab0.col2 + cor0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
9 values hashing to ed0f18675169071c56b762ebcebeac71

query I rowsort
SELECT DISTINCT + col2 * - ( 66 ) FROM tab1 AS cor0
----
-3564
-3762
-6336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5641
SELECT + cor0.col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT + cor0.col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 * - col0 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT - + col2 DIV + cor0.col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT - + col2 / + cor0.col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL - + col2 * + ( ( col0 ) ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * col2 + col2 * col1 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT 7 + col1 AS col1 FROM tab0 AS cor0
----
104
93
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT + col2 + - cor0.col1 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5647
SELECT + col2 + - cor0.col1 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
27
28
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= col2
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( + col0 )
----

query I rowsort
SELECT - col2 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 - - col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + + 42 col2 FROM tab2
----
1385
259
4644

query I rowsort
SELECT DISTINCT col1 + col2 * + ( col1 ) AS col2 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT - - 22 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5654
SELECT - - 22 / col1 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT + 59 DIV col0 AS col0 FROM tab2
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5655
SELECT + 59 / col0 AS col0 FROM tab2
----
0
0
8

query I rowsort
SELECT ALL + col2 * + col1 FROM tab0 WHERE + col2 = NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE - col0 > ( NULL )
----

query I rowsort
SELECT + col1 + + col0 * col0 * - col2 AS col2 FROM tab2
----
-1292
-158125
-237141

query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - tab0.col1 - + tab0.col0 * tab0.col2 FROM tab0
----
-132
-7389
-878

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5662
SELECT DISTINCT + col0 DIV + col2 - col0 FROM tab1
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + col0 / + col2 - col0 FROM tab1
----
-3
-63
-80

query I rowsort
SELECT ALL col2 + + tab2.col0 * col1 * tab2.col0 AS col1 FROM tab2 WHERE NOT + col1 BETWEEN ( NULL ) AND ( col2 * - col0 - - col0 * col1 )
----
106135
1546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 * + col1 col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 FROM tab1 WHERE NULL IN ( col1 + tab1.col2 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col0 col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + tab2.col1 + + col0 FROM tab2
----
137
38
96

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 >= ( - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + tab1.col2 - + col0 * col1 * col2 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 / col1 AS col1 FROM tab0 WHERE col0 > NULL
----

query I rowsort
SELECT DISTINCT col0 * + col2 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - col0 * - tab2.col2 + col2 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT tab0.col1 * col2 * col1 + col2 * col0 AS col2 FROM tab0
----
244860
686340
9444

query I rowsort
SELECT DISTINCT col1 * col1 + - col2 * col1 FROM tab0
----
4558
819
9312

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 * col2 * + col1 AND - tab0.col2
----

query I rowsort
SELECT ALL col1 + col1 * col0 AS col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT + tab1.col1 + tab1.col1 FROM tab1
----
20
26
52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + tab1.col0
----

query I rowsort
SELECT DISTINCT ( 82 * + col0 ) AS col0 FROM tab1
----
246
5248
6560

query I rowsort
SELECT DISTINCT 82 * cor0.col0 FROM tab1, tab2 AS cor0
----
574
6396
6478

onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT - - 8 DIV 7 col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5681
SELECT - - 8 / 7 col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + - 9 + + col2 AS col2 FROM tab0 AS cor0
----
-8
24
73

query I rowsort
SELECT col1 * - col1 * + col0 AS col0 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - - 81 * + cor0.col0 FROM tab0 AS cor0
----
1944
2835
7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT ALL + - col2 + col0 DIV col2 - col1 FROM tab0 cor0
----
-119
-172
-63

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL + - col2 + col0 / col2 - col1 FROM tab0 cor0
----
-119
-172
-63

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab0 AS cor0
----
72

query I rowsort
SELECT + col1 * - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL + col1 * 68 AS col0 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT + col2 * + col1 + + col2 + + col1 FROM tab0 AS cor0
----
195
2957
7635

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT + cor0.col2 * - col2 * cor0.col1 + - col1 DIV - 49 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif mysql # not compatible
query I rowsort label-5690
SELECT + cor0.col2 * - col2 * cor0.col1 + - col1 / - 49 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - - col2 + + ( - col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - + col0 + ( col2 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT cor0.col1 * - cor0.col1 * 82 AS col2 FROM tab2 AS cor0
----
-23698
-285442
-78802

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5694
SELECT - + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT - + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 10 * col1 + col0 + col2 AS col1 FROM tab2 AS cor0
----
287
344
694

onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT + ( + col2 ) DIV - col0 + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-5696
SELECT + ( + col2 ) / - col0 + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT DISTINCT - col1 * + CAST( 14 * - col1 + col0 AS SIGNED ) FROM tab0
----
101480
107835
128331

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT - col1 * + CAST ( 14 * - col1 + col0 AS INTEGER ) FROM tab0
----
101480
107835
128331

query I rowsort
SELECT tab0.col0 * + tab0.col2 + + col0 * - col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT col1 - - col1 DIV 78 AS col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5700
SELECT col1 - - col1 / 78 AS col2 FROM tab0
----
87
92
98

query I rowsort
SELECT ALL - col1 * - col1 + col0 * + col1 FROM tab1
----
1209
740
754

query I rowsort
SELECT DISTINCT + 72 * - col2 + - ( col1 + + col0 ) FROM tab0
----
-204
-2486
-6084

onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT 92 + col1 * - col0 + col1 DIV - col0 AS col2 FROM tab1
----
-548
-948
6

skipif mysql # not compatible
query I rowsort label-5703
SELECT 92 + col1 * - col0 + col1 / - col0 AS col2 FROM tab1
----
-548
-948
6

query I rowsort
SELECT DISTINCT - 14 * tab2.col1 - 91 FROM tab2
----
-329
-525
-917

query I rowsort
SELECT DISTINCT ( col0 ) * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 6 * cor0.col1 AS col1 FROM tab1 cor0
----
156
60
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT col0 DIV col2 col1 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5707
SELECT col0 / col2 col1 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT tab0.col0 + - col0 + - 71 * 79 FROM tab0
----
-5609

query I rowsort
SELECT DISTINCT col0 * col0 + ( ( col2 ) ) FROM tab0
----
1226
609
8003

query I rowsort
SELECT - 60 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
102
3588
7620

query I rowsort
SELECT + cor0.col0 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 col0 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( col1 ) - col1 col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT + col0 * col2 + 29 FROM tab0 AS cor0
----
64
7327
821

query I rowsort
SELECT ALL + col0 + - 83 AS col1 FROM tab2 AS cor0
----
-4
-5
-76

query I rowsort
SELECT ALL + col0 + + 46 AS col0 FROM tab0 AS cor0
----
135
70
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5717
SELECT + col0 * - CAST( - 9 AS SIGNED ) + col1 * - col2 FROM tab2 AS cor0
----
-774
-832
65

skipif mysql # not compatible
query I rowsort label-5717
SELECT + col0 * - CAST ( - 9 AS INTEGER ) + col1 * - col2 FROM tab2 AS cor0
----
-774
-832
65

query I rowsort
SELECT ALL + col1 * + 59 + col1 * col2 FROM tab1 cor0
----
1160
2015
2938

query I rowsort
SELECT - cor0.col2 + ( 49 ) * + cor0.col0 FROM tab2 AS cor0
----
316
3796
3833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 3 * - col0 + + col2 col0 FROM tab2 AS cor0
----
-540
-6058
-8968

query I rowsort
SELECT ALL - col1 - col0 * + 1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col1 * - col2 + ( + col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) - col2 col2 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col0 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT + col2 - ( + 56 ) * + col1 FROM tab1 AS cor0
----
-1402
-503
-632

query I rowsort
SELECT col0 * + cor0.col0 + - 79 FROM tab0 AS cor0
----
1146
497
7842

query I rowsort
SELECT + - col0 * - ( col1 ) * + col2 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT - - ( ( col2 ) ) FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT col1 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5729
SELECT col1 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 53 FROM tab0 AS cor0
----
53

query I rowsort
SELECT DISTINCT - col2 * col0 * col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT + - ( + col1 ) * col1 + - ( col2 ) * + col2 FROM tab0 AS cor0
----
-15005
-8485
-9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5733
SELECT + + CAST( - 98 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-5733
SELECT + + CAST ( - 98 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL - ( col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - 5 * cor0.col1 FROM tab1 cor0
----
-130
-50
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT - col0 * col2 DIV col0 + - 53 * + col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

skipif mysql # not compatible
query I rowsort label-5736
SELECT - col0 * col2 / col0 + - 53 * + col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT DISTINCT + cor0.col1 DIV cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT + cor0.col1 / cor0.col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - - 25 * + col2 FROM tab1 cor0
----
1350
1425
2400

query I rowsort
SELECT ALL + 74 + col0 FROM tab1 AS cor0
----
138
154
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 79 col1 FROM tab2 cor0
----
79

query I rowsort
SELECT ALL + + col1 + - col1 * + 43 FROM tab0 AS cor0
----
-3612
-3822
-4074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col1 ) + 70 col2 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT DISTINCT col0 + + cor0.col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT - col1 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT 98 * - cor0.col2 FROM tab0 AS cor0
----
-3234
-8036
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * col1 * 39 col0 FROM tab2 AS cor0
----
12090
23010
6630

query I rowsort
SELECT ALL 11 * col2 + - col1 + 49 AS col0 FROM tab0
----
-37
326
860

query I rowsort
SELECT + + col0 * cor0.col2 - col0 * col0 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT col0 + + col1 * - col2 * cor0.col2 FROM tab1 AS cor0
----
-119728
-32426
-75813

query I rowsort
SELECT ALL + 19 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5751
SELECT ALL + cor0.col2 + CAST( + 67 AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to e1fcf074d345e992f85d57a04f30cab4

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL + cor0.col2 + CAST ( + 67 AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to e1fcf074d345e992f85d57a04f30cab4

query I rowsort
SELECT ALL + col2 * col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - - col2 * + col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT col1 + - 18 AS col2 FROM tab1
----
-5
-8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5755
SELECT ( tab1.col0 ) * col1 DIV col0 + - col1 * - col2 AS col1 FROM tab1
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-5755
SELECT ( tab1.col0 ) * col1 / col0 + - col1 * - col2 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + 30 + 76 AS col0 FROM tab1
----
106
106
106

query I rowsort
SELECT ALL - 0 * ( col2 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 + - 28 * - col2 FROM tab0 cor0
----
-69
2205
838

query I rowsort
SELECT ALL ( - 67 ) - - col0 AS col0 FROM tab2 AS cor0
----
-60
11
12

query I rowsort
SELECT - - col2 + + 9 AS col1 FROM tab2 AS cor0
----
35
36
47

query I rowsort
SELECT DISTINCT col2 * col0 + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT + + 9 * - 28 + col0 AS col2 FROM tab2 AS cor0
----
-173
-174
-245

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) * col1 - col0 * + ( col2 ) * ( + col0 ) col0 FROM tab0 AS cor0
----
-11612
-641241
8184

query I rowsort
SELECT 53 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT + col1 * ( - col1 * col2 ) FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 + col1 col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col0 * ( - cor0.col1 ) * col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + cor0.col2 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( col2 ) ) + col0 * + col0 col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + 39 + 60 AS col1 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT tab0.col0 * 6 - + tab0.col1 FROM tab0, tab0 cor0
----
9 values hashing to c7579063176d08d24899b023f2376f4a

query I rowsort
SELECT ALL + 90 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b

query I rowsort
SELECT + + 88 * - col2 * col0 AS col2 FROM tab1 AS cor0
----
-14256
-321024
-675840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT + col1 + - col2 + - 25 DIV - col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-5774
SELECT + col1 + - col2 + - 25 / - col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 32 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

onlyif mysql # use DIV operator for integer division
query I rowsort label-5776
SELECT - cor0.col0 + + cor0.col0 + - 34 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5776
SELECT - cor0.col0 + + cor0.col0 + - 34 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 98 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-294
-6272
-7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT ALL - col2 DIV col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL - col2 / col1 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5779
SELECT col0 * - col2 + - 18 DIV 86 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5779
SELECT col0 * - col2 + - 18 / 86 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col0 * - 39 AS col2 FROM tab1 AS cor0
----
-117
-2496
-3120

query I rowsort
SELECT cor0.col0 * + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT - col1 * 14 AS col2 FROM tab0 cor0
----
-1204
-1274
-1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT + col2 + 86 DIV + 12 + col1 AS col2 FROM tab0 AS cor0
----
105
126
180

skipif mysql # not compatible
query I rowsort label-5783
SELECT + col2 + 86 / + 12 + col1 AS col2 FROM tab0 AS cor0
----
105
126
180

query I rowsort
SELECT DISTINCT + - col1 + + col1 * + ( - cor0.col0 + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT + col1 DIV + 17 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-5785
SELECT + col1 / + 17 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT - ( + cor1.col0 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab0 cor0, tab1, tab1 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT col0 * 29 + + col1 FROM tab2
----
2308
2321
234

query I rowsort
SELECT DISTINCT col0 + 29 AS col2 FROM tab2
----
107
108
36

query I rowsort
SELECT DISTINCT tab1.col0 + ( - col1 ) * - col2 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL - col2 + col1 + col0 AS col2 FROM tab0
----
131
77
98

query I rowsort
SELECT - col0 + - ( + 49 ) FROM tab0
----
-138
-73
-84

query I rowsort
SELECT col2 + - 17 * col2 AS col1 FROM tab1
----
-1536
-864
-912

query I rowsort
SELECT DISTINCT + - cor0.col1 + tab1.col2 AS col1 FROM tab1, tab2, tab2 cor0
----
-2
-5
23
26
37
40
65
79

query I rowsort
SELECT DISTINCT tab1.col1 * cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 9337cab14248fdf0584f0cfce23b6e23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5796
SELECT DISTINCT CAST( col2 * col0 AS SIGNED ) FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT CAST ( col2 * col0 AS INTEGER ) FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + + col0 col1 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5798
SELECT - - 37 * col2 + CAST( col1 + + col2 AS SIGNED ) FROM tab1 AS cor0
----
2078
2176
3661

skipif mysql # not compatible
query I rowsort label-5798
SELECT - - 37 * col2 + CAST ( col1 + + col2 AS INTEGER ) FROM tab1 AS cor0
----
2078
2176
3661

query I rowsort
SELECT tab0.col2 * 77 FROM tab0
----
2541
6314
77

query I rowsort
SELECT ALL + col0 * col2 + 58 FROM tab2
----
2086
247
3060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 96 ) col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-96

query I rowsort
SELECT + + col1 * + col2 + 71 * 66 FROM tab1 AS cor0
----
5256
5934
6090

query I rowsort
SELECT 16 * col1 - col2 * - 13 * - col2 FROM tab2 AS cor0
----
-18500
-7844
-8981

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5804
SELECT ( col1 ) + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT ( col1 ) + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT col2 * col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT col0 * + col2 + + col2 * - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 * col0 * + col0 FROM tab2 cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT - - col2 + + 78 FROM tab2 AS cor0
----
104
105
116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5810
SELECT DISTINCT - ( col2 ) + col1 * CAST( - 70 * - cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
11734
47266
6943

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT - ( col2 ) + col1 * CAST ( - 70 * - cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
11734
47266
6943

onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT DISTINCT 29 + + 8 DIV + col0 FROM tab1 AS cor0
----
29
31

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT 29 + + 8 / + col0 FROM tab1 AS cor0
----
29
31

query I rowsort
SELECT + ( + col1 ) * + col1 + + ( - col2 ) FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL col2 * - 32 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT ALL 26 * col0 + + col1 FROM tab1
----
104
1674
2093

query I rowsort
SELECT col1 * + col0 * + col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - col1 + 76 AS col2 FROM tab1 AS cor0
----
50
63
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5817
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col0 * col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 * col0 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT DISTINCT + 74 DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT + 74 / col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - 9 * - 78 * cor0.col0 - - col0 AS col0 FROM tab1 AS cor0
----
2109
44992
56240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5820
SELECT - CAST( NULL AS SIGNED ) - 49 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT - CAST ( NULL AS INTEGER ) - 49 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col1 ) * - col0 + + 95 FROM tab1 AS cor0
----
1135
173
735

query I rowsort
SELECT col1 * + 90 - - col1 FROM tab2 cor0
----
1547
2821
5369

query I rowsort
SELECT ALL + + 78 * col2 * - col0 + ( 9 * - col1 ) FROM tab1 AS cor0
----
-12870
-284634
-599157

query I rowsort
SELECT ALL + + ( 70 ) * + col1 * col1 AS col1 FROM tab1 AS cor0
----
11830
47320
7000

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5826
SELECT ALL + CAST( NULL AS DECIMAL ) * - col2 + - cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL + CAST ( NULL AS REAL ) * - col2 + - cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 98 * col1 * + col0 FROM tab2 AS cor0
----
-131614
-21266
-450996

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT ALL - col2 DIV tab1.col2 + ( + col1 ) FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL - col2 / tab1.col2 + ( + col1 ) FROM tab1
----
12
25
9

query I rowsort
SELECT - col2 + col0 + col1 FROM tab0 AS cor0
----
131
77
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * - col1 + col0 * - cor0.col0 col0 FROM tab2 AS cor0
----
-1010
-6530
-9565

query I rowsort
SELECT + 11 + + col2 * + 3 AS col0 FROM tab1 AS cor0
----
173
182
299

query I rowsort
SELECT - + col1 + col2 * - col0 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + ( + col1 ) + 34 + - 1 * col1 AS col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT - 5 + + col1 FROM tab2 AS cor0
----
12
26
54

query I rowsort
SELECT DISTINCT + - 45 FROM tab1 AS cor0
----
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5837
SELECT + 35 * + col1 + CAST( col2 + - col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
3010
3185
3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5837
SELECT + 35 * + col1 + CAST ( col2 + - col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
3010
3185
3395

onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT + + col2 DIV col0 + col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-5838
SELECT + + col2 / col0 + col1 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT ALL col0 * ( col0 ) * - col0 FROM tab1 AS cor0
----
-262144
-27
-512000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5840
SELECT + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - cor0.col2 - col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 + 63 FROM tab0 AS cor0
----
-19
30
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5843
SELECT - col2 + + CAST( col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-5843
SELECT - col2 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - cor0.col1 + - 34 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0394961f543353302f72bb13eeb2c361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - col1 * + 42 AS col0 FROM tab1 AS cor0
----
-1092
-420
-546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5847
SELECT + col2 + - col2 * col1 * cor0.col2 + + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT + col2 + - col2 * col1 * cor0.col2 + + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col2 * ( 51 ) AS col0 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT ALL + col1 * ( cor0.col0 ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL col1 * - col1 * 91 + cor0.col0 * col2 * + col2 + col2 AS col2 FROM tab2 AS cor0
----
-264017
-82321
87815

query I rowsort
SELECT - - col1 * cor0.col1 * 59 AS col0 FROM tab0 AS cor0
----
436364
488579
555131

onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT ALL - cor0.col2 + ( col1 ) DIV col0 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - cor0.col2 + ( col1 ) / col0 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT col1 * - 66 * col1 AS col2 FROM tab0 AS cor0
----
-488136
-546546
-620994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5854
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + ( - col1 ) * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + ( - col1 ) * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 46 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 086e8f56201fbf4c0ce74087e710811d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5856
SELECT DISTINCT - - ( - col1 ) + col0 * cor0.col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - - ( - col1 ) + col0 * cor0.col2 / - col2 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL 93 * col2 + 66 FROM tab2 AS cor0
----
2484
2577
3600

query I rowsort
SELECT - - cor0.col2 + - col2 + + 25 AS col0 FROM tab1 cor0
----
25
25
25

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ( - col2 ) + 30 FROM tab2 AS cor0
----
-8
3
4

query I rowsort
SELECT + col1 * col2 + - col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT + 86 * + col1 + col0 AS col0 FROM tab2
----
1541
2673
5152

query I rowsort
SELECT ALL + cor0.col1 + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + 96 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL col1 * - col2 * col2 + + col2 * - col2 FROM tab2
----
-23328
-25992
-40560

query I rowsort
SELECT ALL + 99 * col1 + - col1 + - 49 AS col2 FROM tab2
----
1617
2989
5733

query I rowsort
SELECT col0 * ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col2 + - tab2.col2 * + 9 AS col2 FROM tab2
----
-208
-216
-304

query I rowsort
SELECT DISTINCT - 80 + col1 + 34 AS col1 FROM tab2
----
-15
-29
13

query I rowsort
SELECT ALL - - 29 * col2 FROM tab2 AS cor0
----
1102
754
783

onlyif mysql # use DIV operator for integer division
query I rowsort label-5871
SELECT col2 DIV + col1 + 67 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT col2 / + col1 + 67 / - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 93 + tab2.col1 FROM tab2
----
-34
-62
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col1 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col2 FROM tab2, tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT + 58 + tab0.col2 FROM tab0, tab2 AS cor0
----
140
59
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 7 col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to eb8e4907382073cf46d4e4e322830309

query I rowsort
SELECT ALL - ( 44 ) * + col2 AS col2 FROM tab1
----
-2376
-2508
-4224

query I rowsort
SELECT + col1 * col0 * - col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + + ( col0 ) * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT tab0.col1 * 11 AS col2 FROM tab0
----
1001
1067
946

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22

query I rowsort
SELECT col2 * col2 * 15 FROM tab1 AS cor0
----
138240
43740
48735

query I rowsort
SELECT col2 + 32 * + col1 AS col1 FROM tab0 AS cor0
----
2785
2994
3105

query I rowsort
SELECT ALL + 42 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT + col0 * - 54 + col0 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-560
-6162
-7189

query I rowsort
SELECT - + col1 + 43 FROM tab0 AS cor0
----
-43
-48
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 25 col0 FROM tab0 AS cor0
----
2150
2275
2425

query I rowsort
SELECT 67 + col1 * col2 FROM tab1 AS cor0
----
1315
1471
637

query I rowsort
SELECT col2 * + 21 AS col0 FROM tab0 AS cor0
----
1722
21
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - col1 + 96 * - col1 FROM tab1 AS cor0
----
-1261
-2522
-970

query I rowsort
SELECT col1 + - 78 FROM tab1 AS cor0
----
-52
-65
-68

query I rowsort
SELECT DISTINCT + col1 + - col0 * + 35 AS col0 FROM tab2
----
-214
-2671
-2748

query I rowsort
SELECT ALL col0 + ( col0 ) + + col2 * + 83 * + ( + col0 * 26 ) FROM tab0
----
15749262
1709184
75600

query I rowsort
SELECT + tab2.col0 + 75 AS col1 FROM tab2
----
153
154
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT DISTINCT col1 * + col1 * + col1 + - col1 * + col0 * - col1 AS col1 FROM tab2
----
27744
36518
476897

query I rowsort
SELECT + - col1 * cor0.col1 + col1 * - ( + col0 ) FROM tab1 AS cor0
----
-1209
-740
-754

query I rowsort
SELECT + 44 * + cor0.col0 + - col1 FROM tab0 cor0
----
1443
3825
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-5900
SELECT DISTINCT + tab0.col1 * - col2 + - col2 DIV CAST( + ( + col1 ) AS SIGNED ) FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + tab0.col1 * - col2 + - col2 / CAST ( + ( + col1 ) AS INTEGER ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 95 * + col1 * - tab1.col2 + - ( col0 + + col2 ) FROM tab1
----
-118736
-133437
-54271

query I rowsort
SELECT + + 32 + + col2 AS col2 FROM tab0 cor0
----
114
33
65

query I rowsort
SELECT - 57 + - col0 AS col1 FROM tab2 AS cor0
----
-135
-136
-64

query I rowsort
SELECT DISTINCT + col1 * 99 + col1 AS col1 FROM tab1 cor0
----
1000
1300
2600

query I rowsort
SELECT - + 58 - cor0.col1 FROM tab0 AS cor0
----
-144
-149
-155

query I rowsort
SELECT + col0 - 83 AS col1 FROM tab0 AS cor0
----
-48
-59
6

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-5908
SELECT DISTINCT cor0.col1 DIV - col1 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT cor0.col1 / - col1 AS col2 FROM tab2 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + + cor0.col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - 1 + + col2 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5911
SELECT - col2 + cor0.col2 DIV + col0 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-5911
SELECT - col2 + cor0.col2 / + col0 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT - ( col0 ) * col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL + + ( - cor0.col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + 89 * + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-252582
-664118
-8633

query I rowsort
SELECT DISTINCT + + col0 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + col2 * cor0.col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - ( + col1 ) + + 25 AS col1 FROM tab0 cor0
----
-61
-66
-72

query I rowsort
SELECT - ( + 23 ) * - col0 FROM tab2
----
161
1794
1817

query I rowsort
SELECT 65 FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2

query I rowsort
SELECT + ( tab0.col0 ) * col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL - tab1.col0 * + tab1.col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + col1 * - ( - 41 ) + col0 * - ( col1 * col1 ) AS col0 FROM tab1 AS cor0
----
-14053
-3094
-6810

query I rowsort
SELECT ALL col2 * + 51 + - col1 AS col2 FROM tab2 cor0
----
1267
1346
1921

query I rowsort
SELECT - col1 * + ( col2 + col2 ) AS col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col0 FROM tab1
----
81

query I rowsort
SELECT col1 + + 71 * cor0.col0 AS col2 FROM tab1 AS cor0
----
239
4554
5693

query I rowsort
SELECT ALL + col0 * - ( col2 ) AS col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + col2 * + ( + col2 ) col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT - col0 * 23 FROM tab0 AS cor0
----
-2047
-552
-805

query I rowsort
SELECT ALL + col1 * + 93 AS col0 FROM tab0 AS cor0
----
7998
8463
9021

onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT + - col2 + ( ( - col2 ) ) DIV - col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-5931
SELECT + - col2 + ( ( - col2 ) ) / - col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT ALL + cor0.col2 * + 1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT CAST( 32 AS SIGNED ) * + tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b021124a67f03bd690bf85089039c654

skipif mysql # not compatible
query I rowsort label-5933
SELECT CAST ( 32 AS INTEGER ) * + tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b021124a67f03bd690bf85089039c654

query I rowsort
SELECT ALL col1 * 69 FROM tab1
----
1794
690
897

onlyif mysql # use DIV operator for integer division
query I rowsort label-5935
SELECT DISTINCT col2 DIV 77 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT col2 / 77 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT + tab0.col0 * 30 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 5e32ffbbbc021b2e0273869aa7570abb

query I rowsort
SELECT DISTINCT 85 * cor0.col2 FROM tab2, tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT 82 FROM tab0, tab0 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL tab0.col1 * + 40 FROM tab0
----
3440
3640
3880

query I rowsort
SELECT + - col1 + col2 + + col0 * 11 * col0 AS col0 FROM tab1 AS cor0
----
127
45103
70483

query I rowsort
SELECT DISTINCT - col1 + + col1 * 32 * col1 + col1 * + cor0.col1 AS col2 FROM tab0 cor0
----
243982
273182
310400

query I rowsort
SELECT - 5 + col1 + - col2 FROM tab0 cor0
----
4
48
91

query I rowsort
SELECT + cor0.col1 * + col2 + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL ( + col2 ) * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - + 86 + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-121
-7384
-878

query I rowsort
SELECT ALL ( col0 ) * + ( - 60 ) - + col2 FROM tab1 AS cor0
----
-234
-3897
-4896

query I rowsort
SELECT DISTINCT 60 + + col0 * col1 FROM tab1
----
1100
138
700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT 8 DIV + col1 + col2 + - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5948
SELECT 8 / + col1 + col2 + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 - + 78 FROM tab1
----
-142
-158
-81

query I rowsort
SELECT + col1 * + col1 * + col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL + - 49 + col0 AS col0 FROM tab2 AS cor0
----
-42
29
30

query I rowsort
SELECT ALL - + col0 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT DISTINCT + cor0.col1 DIV - col0 + col1 + cor0.col2 * + col1 col0 FROM tab1 AS cor0
----
1261
1422
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + cor0.col1 / - col0 + col1 + cor0.col2 * + col1 col0 FROM tab1 AS cor0
----
1261
1422
580

query I rowsort
SELECT ALL tab1.col2 + 24 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 65ca12690a9d5762bce589d33233c759

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - col1 * + col2 + + 44 FROM tab2
----
-1490
-602
-793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * - col2 col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 56 AS col2 FROM tab1
----
56

query I rowsort
SELECT - col2 * - col1 + 65 AS col0 FROM tab2
----
1599
711
902

query I rowsort
SELECT - col0 * - 65 + + cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
11684
14066
8956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 col0 FROM tab2, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col0 + col2 * + cor0.col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT 36 - + 17 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + - col1 + ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5967
SELECT ALL col2 * CAST( NULL AS SIGNED ) + - 7 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + - 7 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col2 * 3 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT - + col0 + - 63 FROM tab2 cor0
----
-141
-142
-70

query I rowsort
SELECT + cor0.col2 * + 44 AS col0 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT ALL col0 + - tab0.col1 * col2 FROM tab0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5972
SELECT - CAST( 13 AS SIGNED ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

skipif mysql # not compatible
query I rowsort label-5972
SELECT - CAST ( 13 AS INTEGER ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT ALL - 70 + - 34 FROM tab1
----
-104
-104
-104

query I rowsort
SELECT ALL col0 * + tab0.col2 + col2 * - 8 * - col0 AS col1 FROM tab0
----
315
65682
7128

query I rowsort
SELECT ALL + ( cor0.col2 ) + col1 * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + col2 * - ( - col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - + col1 * - col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col0 * 99 FROM tab2 AS cor0
----
-693
-7722
-7821

query I rowsort
SELECT DISTINCT - 11 * col2 AS col2 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT ALL + + 38 * + col1 * col0 FROM tab1 AS cor0
----
24320
2964
39520

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5982
SELECT DISTINCT 94 DIV col0 AS col1 FROM tab2 AS cor0
----
1
13

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT 94 / col0 AS col1 FROM tab2 AS cor0
----
1
13

query I rowsort
SELECT ALL - - 5 FROM tab1 cor0
----
5
5
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT ALL - - col2 DIV - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - - col2 / - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT + col0 * + col0 - col1 AS col0 FROM tab2 cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT - + col0 DIV - col1 + col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-5986
SELECT - + col0 / - col1 + col2 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT ALL col2 * col0 + col0 * - col1 * - col0 AS col1 FROM tab0 AS cor0
----
118860
50328
728109

query I rowsort
SELECT - 40 - + col1 * 42 FROM tab2 AS cor0
----
-1342
-2518
-754

query I rowsort
SELECT + col2 * 54 * + col2 + + 90 + 70 * col2 FROM tab2
----
38414
41346
80726

query I rowsort
SELECT ALL col2 * tab0.col0 * col2 AS col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + tab1.col0 * + tab1.col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT tab0.col0 * col1 + - tab0.col2 DIV - col0 AS col2 FROM tab0
----
2065
3395
8099

skipif mysql # not compatible
query I rowsort label-5992
SELECT tab0.col0 * col1 + - tab0.col2 / - col0 AS col2 FROM tab0
----
2065
3395
8099

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT ALL + col2 + col0 * col1 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT - col1 * + col2 * + col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col0 * - col1 + - col2 * col1 + - tab2.col2 FROM tab2
----
-1081
-2027
-6162

query I rowsort
SELECT ALL col1 + col2 * + tab0.col1 + col2 FROM tab0
----
195
2957
7635

query I rowsort
SELECT ALL - tab2.col0 + col2 + col1 AS col0 FROM tab2
----
-24
51
7

query I rowsort
SELECT ALL + col0 * - tab0.col1 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 * + col0 * + col0 AS col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT tab1.col1 / + col2 AS col0 FROM tab1 WHERE NULL IN ( col0 * col0 )
----

query I rowsort
SELECT ALL col1 * - col2 + col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col2 * tab1.col1 + - col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT col2 + - col0 * tab2.col0 * col0 AS col2 FROM tab2
----
-316
-474526
-493001

query I rowsort
SELECT col0 * + col0 * - col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT col0 * col1 - + col0 AS col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + - col2 * col0 AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT col0 + col0 * + col2 AS col2 FROM tab1 WHERE - col1 * col2 * - col0 = NULL
----

query I rowsort
SELECT ALL + 3 + - col0 AS col0 FROM tab1 AS cor0
----
-61
-77
0

query I rowsort
SELECT ALL col2 * col2 FROM tab1 WHERE NOT + col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL col1 + col0 + - col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL col0 + + col1 + col2 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NULL IN ( + col0 * col2 - - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col0 * col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT DISTINCT tab0.col2 + + col1 DIV col1 + col1 FROM tab0
----
120
174
99

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT tab0.col2 + + col1 / col1 + col1 FROM tab0
----
120
174
99

query I rowsort
SELECT + tab0.col2 * col2 + + col1 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT col0 - tab2.col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL col1 + col1 + + col0 FROM tab2 WHERE NULL BETWEEN NULL AND tab2.col1 - - col1
----

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 * col2 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + cor0.col2 * 43 FROM tab2 AS cor0
----
1118
1161
1634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6026
SELECT - col1 + + CAST( 52 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

skipif mysql # not compatible
query I rowsort label-6026
SELECT - col1 + + CAST ( 52 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2, tab0 AS cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT - col1 DIV 17 - 1 * col0 * - 34 AS col1 FROM tab2
----
237
2649
2685

skipif mysql # not compatible
query I rowsort label-6028
SELECT - col1 / 17 - 1 * col0 * - 34 AS col1 FROM tab2
----
237
2649
2685

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6029
SELECT CAST( NULL AS DECIMAL ) + 86 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT CAST ( NULL AS REAL ) + 86 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * ( + col2 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + 85 + col2 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
-6548
-918
181

query I rowsort
SELECT DISTINCT col0 - + col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL - ( 64 ) + col1 * + col0 FROM tab2 AS cor0
----
1279
153
4538

query I rowsort
SELECT ( + col2 ) * - col0 - + 78 FROM tab2 cor0
----
-2106
-267
-3080

query I rowsort
SELECT + cor0.col1 + 24 * col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
13690
29965
33722

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 AS col2 FROM tab0 cor0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT ALL - - col2 DIV - col2 + + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL - - col2 / - col2 + + col2 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6038
SELECT - CAST( - col0 AS SIGNED ) * col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-6038
SELECT - CAST ( - col0 AS INTEGER ) * col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT col2 * + 61 + cor0.col1 FROM tab2 AS cor0
----
1645
1678
2335

query I rowsort
SELECT + - col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 39 * col1 AS col0 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT - col2 * + col2 + - ( + col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
-2973
-3370
-9392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + + col2 * col0 col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + + col0 * + 96 AS col1 FROM tab1 cor0
----
288
6144
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6045
SELECT DISTINCT cor0.col1 + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT cor0.col1 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT ALL - + col2 DIV ( - col2 ) + col0 AS col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - + col2 / ( - col2 ) + col0 AS col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT col0 + + 1 - col1 AS col1 FROM tab2 AS cor0
----
-23
20
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT ALL - col1 * col2 DIV + col0 FROM tab2 AS cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - col1 * col2 / + col0 FROM tab2 AS cor0
----
-119
-19
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col1 + + ( + 30 + cor0.col1 ) FROM tab0 AS cor0
----
202
212
224

query I rowsort
SELECT DISTINCT - 70 * - col0 * + col1 FROM tab1
----
44800
5460
72800

query I rowsort
SELECT DISTINCT 12 * + col2 AS col2 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT ALL - 13 + 31 AS col2 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6055
SELECT ALL - CAST( + 99 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
-3
-42
-45

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL - CAST ( + 99 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
-3
-42
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT - cor0.col0 * - ( cor0.col0 ) + - 67 * cor0.col2 FROM tab2 AS cor0
----
-1760
3695
4342

query I rowsort
SELECT ALL 63 AS col0 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT + col2 + - col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - 4 - col2 AS col1 FROM tab0 AS cor0
----
-37
-5
-86

query I rowsort
SELECT DISTINCT col2 + col1 + - col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT 80 * col0 + cor0.col1 FROM tab1 AS cor0
----
266
5130
6413

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col0 FROM tab0 AS cor0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - 77 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT 86 * col0 - col2 * + col1 * 46 AS col0 FROM tab1
----
-20716
-50528
-64326

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 33 AS REAL ) + + col0 + - CAST ( + tab2.col2 AS INTEGER ) col0 FROM tab2
----
-53
19
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT - - col1 + 9 DIV col2 FROM tab0 AS cor0
----
106
86
91

skipif mysql # not compatible
query I rowsort label-6069
SELECT - - col1 + 9 / col2 FROM tab0 AS cor0
----
106
86
91

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + + col2 * - ( + col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT - col0 DIV ( + col2 * cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6073
SELECT - col0 / ( + col2 * cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 1 col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6075
SELECT + col1 DIV + col1 + 75 AS col0 FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-6075
SELECT + col1 / + col1 + 75 AS col0 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT col0 + 83 AS col0 FROM tab1 AS cor0
----
147
163
86

query I rowsort
SELECT - - cor0.col0 * col0 + col2 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT col0 - - 86 AS col2 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT col0 * - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL col2 * 13 + + col1 FROM tab0 AS cor0
----
110
1157
515

query I rowsort
SELECT cor0.col1 * col0 + col1 - - col1 AS col1 FROM tab0 cor0
----
2236
3589
8281

query I rowsort
SELECT ALL cor0.col1 * + 54 AS col0 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col0 * + 95 * + col0 AS col1 FROM tab2 AS cor0
----
4628
577954
592857

query I rowsort
SELECT + col0 * col2 * + tab1.col0 + + col0 FROM tab1
----
233536
489
614480

query I rowsort
SELECT DISTINCT - cor0.col1 * - 97 AS col2 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT cor0.col1 + - 60 FROM tab2 cor0
----
-1
-29
-43

query I rowsort
SELECT + tab1.col1 + col0 * col2 - col0 * - ( + col0 ) AS col0 FROM tab1
----
14093
197
7754

query I rowsort
SELECT col1 * + 84 + cor0.col1 * col2 FROM tab1 AS cor0
----
1410
2340
3588

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT - - col1 * - 10 + col0 AS col0 FROM tab0 AS cor0
----
-821
-836
-935

query I rowsort
SELECT - + ( + col2 ) * - col2 - + 16 AS col1 FROM tab0 AS cor0
----
-15
1073
6708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6092
SELECT CAST( NULL AS SIGNED ) + - 85 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT CAST ( NULL AS INTEGER ) + - 85 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col0 ) * - col1 - - col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + 26 + - col0 FROM tab0 AS cor0
----
-63
-9
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6095
SELECT + col2 + - col0 DIV col0 + + tab0.col1 * 90 AS col0 FROM tab0
----
7772
8271
8730

skipif mysql # not compatible
query I rowsort label-6095
SELECT + col2 + - col0 / col0 + + tab0.col1 * 90 AS col0 FROM tab0
----
7772
8271
8730

onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT tab1.col2 DIV tab1.col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6096
SELECT tab1.col2 / tab1.col1 AS col0 FROM tab1
----
2
5
7

query I rowsort
SELECT - tab0.col1 * + col1 + - col1 + tab0.col2 FROM tab0
----
-7449
-8290
-9505

query I rowsort
SELECT 5 + 23 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT 38 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6100
SELECT col2 * + CAST( + col1 AS SIGNED ) FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6100
SELECT col2 * + CAST ( + col1 AS INTEGER ) FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6101
SELECT ALL 34 + - 44 DIV col0 FROM tab0
----
33
33
34

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL 34 + - 44 / col0 FROM tab0
----
33
33
34

query I rowsort
SELECT - - col2 * col0 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - 85 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-4536
-4788
-8064

onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT DISTINCT + + ( - 91 ) DIV - col1 + ( + cor0.col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
2065
3395
8100

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + + ( - 91 ) / - col1 + ( + cor0.col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
2065
3395
8100

query I rowsort
SELECT ALL - col1 + + col2 * col2 FROM tab0 cor0
----
-96
1003
6633

onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT ALL ( + cor0.col2 ) + col1 DIV 53 + - col2 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL ( + cor0.col2 ) + col1 / 53 + - col2 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 + + ( - col1 ) * cor0.col1 FROM tab2 AS cor0
----
-124
-1947
357

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col1 AS REAL ) + + col2 * + ( - 5 ) FROM tab2 AS cor0
----
-166
-189
-207

query I rowsort
SELECT ALL - col2 + + 62 * cor0.col2 FROM tab0 AS cor0
----
2013
5002
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6110
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col2 + + col1 * cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col2 + + col1 * cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 25 - - col2 FROM tab1 AS cor0
----
29
32
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col0 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT - 34 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col0 * + col0 col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - ( - col1 ) * 43 * col0 AS col2 FROM tab1 AS cor0
----
27520
3354
44720

query I rowsort
SELECT ALL - + cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - col1 + col0 * col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - col2 * + col2 + 92 * tab1.col2 AS col2 FROM tab1
----
-384
1995
2052

onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT ALL + col1 DIV col1 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL + col1 / col1 col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + cor0.col1 * - 56 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 5b445dedd379af65fa299a7799018663

onlyif mysql # use DIV operator for integer division
query I rowsort label-6121
SELECT DISTINCT + col2 + col0 DIV + 71 FROM tab2 AS cor0
----
27
39

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT + col2 + col0 / + 71 FROM tab2 AS cor0
----
27
39

query I rowsort
SELECT DISTINCT - - col2 * ( - 14 ) + + cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
-189
1664
2470

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6123
SELECT + col0 * col1 + - CAST( cor0.col1 AS SIGNED ) - col0 * cor0.col0 * 52 FROM tab1 AS cor0
----
-212362
-331773
-416

skipif mysql # not compatible
query I rowsort label-6123
SELECT + col0 * col1 + - CAST ( cor0.col1 AS INTEGER ) - col0 * cor0.col0 * 52 FROM tab1 AS cor0
----
-212362
-331773
-416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 - col1 col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col0 * - col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6126
SELECT + - col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6126
SELECT + - col0 / - col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL cor0.col1 - ( + cor0.col0 ) FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT - col0 DIV cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-6128
SELECT - col0 / cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT ALL - 47 FROM tab1, tab2 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT - + col1 * 81 AS col0 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT 68 * col2 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT - ( - cor0.col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - cor1.col0 * - 17 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to c6bfd975c7caf2d8b33a51530f0b1caf

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6135
SELECT ALL ( - col1 + col1 ) * CAST( + col2 AS SIGNED ) col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL ( - col1 + col1 ) * CAST ( + col2 AS INTEGER ) col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 75 AS col2 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT DISTINCT ( 65 ) FROM tab2
----
65

query I rowsort
SELECT - 69 FROM tab2, tab1 cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT DISTINCT 38 * + cor1.col2 - - cor1.col0 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
2055
2230
3728

query I rowsort
SELECT col1 + 25 * - tab0.col0 FROM tab0
----
-2134
-514
-778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6141
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col1 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + + 46 AS col0 FROM tab2 cor0
----
46
46
46

query I rowsort
SELECT 38 + cor0.col1 * col1 * col1 FROM tab0 AS cor0
----
636094
753609
912711

onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT DISTINCT + 41 DIV - col2 FROM tab0
----
-1
-41
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + 41 / - col2 FROM tab0
----
-1
-41
0

query I rowsort
SELECT + cor0.col2 + cor0.col0 * cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 99f725eba7b240a279d81420ab8d8da0

query I rowsort
SELECT cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ALL 97 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT - col2 DIV - tab2.col0 + + col1 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6150
SELECT - col2 / - tab2.col0 + + col1 FROM tab2
----
17
34
59

query I rowsort
SELECT DISTINCT + col1 + 68 FROM tab0
----
154
159
165

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6152
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6153
SELECT + col2 + + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-6153
SELECT + col2 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * + col2 col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - + 3 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT col0 + - ( col2 ) * col2 * + col0 FROM tab2
----
-113997
-5096
-52650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col1 FROM tab2 AS cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 58 ) col0 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT 43 + col1 * col1 AS col1 FROM tab2 AS cor0
----
1004
332
3524

query I rowsort
SELECT DISTINCT col0 - - 55 AS col0 FROM tab1 AS cor0
----
119
135
58

query I rowsort
SELECT ALL 90 + col2 * + cor0.col2 * - col1 FROM tab1 AS cor0
----
-119718
-32400
-75726

query I rowsort
SELECT DISTINCT tab1.col2 * + ( - ( + tab1.col1 ) ) FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT + col1 + ( col2 ) DIV 96 col1 FROM tab1 AS cor0
----
10
14
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6163
SELECT + col1 + ( col2 ) / 96 col1 FROM tab1 AS cor0
----
10
14
26

query I rowsort
SELECT + ( - col2 ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + + col1 + + col1 AS col0 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - col1 * - col1 - - col2 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-6167
SELECT DISTINCT + col2 * col0 - col2 DIV 94 AS col0 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT + col2 * col0 - col2 / 94 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6168
SELECT - + 45 DIV + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
10
25
6

skipif mysql # not compatible
query I rowsort label-6168
SELECT - + 45 / + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
10
25
6

query I rowsort
SELECT col0 + + col0 + + col0 AS col2 FROM tab1
----
192
240
9

query I rowsort
SELECT 97 + tab1.col1 - col2 FROM tab1
----
14
50
69

query I rowsort
SELECT - + cor0.col2 - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT col2 * + col1 + 95 AS col2 FROM tab1 AS cor0
----
1343
1499
665

query I rowsort
SELECT ALL + col2 + + col0 - col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - col2 * + col1 + 42 * - tab0.col2 * - col0 FROM tab0
----
1373
299054
30426

query I rowsort
SELECT 35 + - col1 * col1 FROM tab0 AS cor0
----
-7361
-8246
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT DISTINCT cor0.col0 * + col1 + ( 2 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT cor0.col0 * + col1 + ( 2 ) / + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - + cor0.col0 * 21 AS col2 FROM tab0 AS cor0
----
-1869
-504
-735

query I rowsort
SELECT + col2 + - col2 + - 14 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-6179
SELECT ALL - col0 + - 92 * 21 DIV col1 AS col2 FROM tab0 cor0
----
-110
-46
-54

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL - col0 + - 92 * 21 / col1 AS col2 FROM tab0 cor0
----
-110
-46
-54

query I rowsort
SELECT col0 * + col0 + 28 * + col1 AS col2 FROM tab1 AS cor0
----
4376
6764
737

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 96 col2 FROM tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT + cor0.col2 + + col2 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT col2 DIV - 84 + cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-6184
SELECT col2 / - 84 + cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - - cor0.col2 * + col0 + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT tab1.col0 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT 47 * ( cor0.col1 ) FROM tab2 cor0
----
1457
2773
799

query I rowsort
SELECT ALL + + 57 + + col2 - + col2 * 46 FROM tab2 AS cor0
----
-1113
-1158
-1653

query I rowsort
SELECT + col2 * - 31 * col1 FROM tab2 AS cor0
----
-20026
-25947
-47554

onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT ALL - ( 11 ) * cor0.col1 - - 27 DIV + col0 AS col0 FROM tab0 cor0
----
-1001
-1067
-945

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL - ( 11 ) * cor0.col1 - - 27 / + col0 AS col0 FROM tab0 cor0
----
-1001
-1067
-945

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - + 96 AS col0 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT - - 42 - col1 AS col0 FROM tab0 AS cor0
----
-44
-49
-55

query I rowsort
SELECT ALL - 96 * + col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT DISTINCT 2 FROM tab0 cor0
----
2

query I rowsort
SELECT DISTINCT + 95 + + col1 * + ( + col2 * col1 ) FROM tab0 cor0
----
244163
679137
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - 11 * col2 + ( - col2 ) FROM tab1 AS cor0
----
-1152
-648
-684

query I rowsort
SELECT + ( - col1 ) * - col0 + - 36 FROM tab2 AS cor0
----
1307
181
4566

query I rowsort
SELECT ALL - - col1 * + col1 AS col2 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 37 * col2 AS col2 FROM tab0 cor0
----
1221
3034
37

query I rowsort
SELECT DISTINCT + col1 + col2 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL 7 + col1 FROM tab0 AS cor0
----
104
93
98

query I rowsort
SELECT ALL col1 * - col2 - - col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6205
SELECT + col2 * 89 - - col2 DIV cor0.col0 FROM tab1 AS cor0
----
4824
5073
8545

skipif mysql # not compatible
query I rowsort label-6205
SELECT + col2 * 89 - - col2 / cor0.col0 FROM tab1 AS cor0
----
4824
5073
8545

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6206
SELECT - col0 * + CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT - col0 * + CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col1 * - 72 * col1 - - col2 AS col1 FROM tab2 AS cor0
----
20846
250658
69219

query I rowsort
SELECT col2 + col2 + + 6 * col1 AS col0 FROM tab1 AS cor0
----
174
264
270

onlyif mysql # use DIV operator for integer division
query I rowsort label-6209
SELECT + ( - cor0.col2 ) + col1 DIV - 84 + - ( cor0.col0 ) col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6209
SELECT + ( - cor0.col2 ) + col1 / - 84 + - ( cor0.col0 ) col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - + col0 + 44 AS col1 FROM tab1 cor0
----
-20
-36
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6211
SELECT ALL CAST( NULL AS DECIMAL ) 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-6211
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 36 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1947
2116
3536

onlyif mysql # use DIV operator for integer division
query I rowsort label-6213
SELECT ALL col0 + + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL col0 + + col1 / col0 AS col0 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT DISTINCT + 53 * + 61 + - col0 + col0 AS col1 FROM tab1 AS cor0
----
3233

query I rowsort
SELECT ALL col0 * 8 + - tab0.col0 FROM tab0
----
168
245
623

query I rowsort
SELECT + col0 * 49 AS col1 FROM tab1
----
147
3136
3920

query I rowsort
SELECT DISTINCT - ( col1 ) * col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6218
SELECT DISTINCT - + col0 DIV 16 FROM tab2 cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT - + col0 / 16 FROM tab2 cor0
----
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6219
SELECT + col1 + col2 + col0 DIV - 42 FROM tab2 AS cor0
----
54
58
84

skipif mysql # not compatible
query I rowsort label-6219
SELECT + col1 + col2 + col0 / - 42 FROM tab2 AS cor0
----
54
58
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * col2 * col0 col1 FROM tab1
----
233472
486
614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6221
SELECT ALL + - 40 + + ( + col1 ) + + CAST( NULL AS SIGNED ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + - 40 + + ( + col1 ) + + CAST ( NULL AS INTEGER ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - ( + col0 ) * + tab2.col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ( - 74 ) * col1 AS col1 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT - + col2 + ( cor0.col0 ) FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - 28 + 56 AS col2 FROM tab2 AS cor0
----
28

query I rowsort
SELECT DISTINCT - 46 * col0 + col1 FROM tab0 AS cor0
----
-1018
-1513
-4003

query I rowsort
SELECT DISTINCT + - ( + col2 ) * col0 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col0 FROM tab1 cor0
----
-33
-33
-33

query I rowsort
SELECT + - col1 * col1 + - col0 * - col1 FROM tab1 AS cor0
----
-598
540
871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + + col2 col1 FROM tab0 AS cor0
----
41
9
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT col0 + + col2 DIV 37 AS col0 FROM tab2 AS cor0
----
7
78
80

skipif mysql # not compatible
query I rowsort label-6231
SELECT col0 + + col2 / 37 AS col0 FROM tab2 AS cor0
----
7
78
80

query I rowsort
SELECT + col2 + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT - col1 * 30 DIV ( + col1 * - 3 ) + - 93 AS col1 FROM tab1 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-6233
SELECT - col1 * 30 / ( + col1 * - 3 ) + - 93 AS col1 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6234
SELECT DISTINCT + - cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT + - cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6235
SELECT DISTINCT - col1 DIV CAST( 17 AS SIGNED ) FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT - col1 / CAST ( 17 AS INTEGER ) FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + col1 * - ( 9 ) AS col1 FROM tab2 AS cor0
----
-153
-279
-531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 38 * + 91 col0 FROM tab1 AS cor0
----
-34580
-44954
-89908

onlyif mysql # use DIV operator for integer division
query I rowsort label-6238
SELECT - col0 + - col0 DIV col1 FROM tab1
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-6238
SELECT - col0 + - col0 / col1 FROM tab1
----
-3
-70
-86

query I rowsort
SELECT - col0 * + 75 * - 77 FROM tab2 AS cor0
----
40425
450450
456225

query I rowsort
SELECT col0 * col1 * col1 + col2 FROM tab1 AS cor0
----
13616
2082
6457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6241
SELECT ALL + col0 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + col0 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col2 * 38 FROM tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT - col1 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + col0 * ( - 75 ) * col1 FROM tab2 AS cor0
----
-100725
-16275
-345150

query I rowsort
SELECT ALL - col0 * 83 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT DISTINCT - col1 * ( cor0.col0 ) * - cor0.col1 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-6247
SELECT ALL + col1 DIV 25 AS col2 FROM tab0 cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL + col1 / 25 AS col2 FROM tab0 cor0
----
3
3
3

query I rowsort
SELECT ALL - col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col2 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + 28 AS col2 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

query I rowsort
SELECT - col1 - col2 * col0 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT + 27 * cor0.col2 AS col1 FROM tab0 cor0
----
2214
27
891

query I rowsort
SELECT ALL - col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col1 * + col2 + + ( col1 ) FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + + col1 * + col0 + + col1 * col2 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL 83 * col0 + col2 * + col2 * col2 FROM tab1 AS cor0
----
157713
190505
891376

query I rowsort
SELECT tab2.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT 30 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6258
SELECT 30 / col0 AS col2 FROM tab0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6259
SELECT ALL - CAST( NULL AS SIGNED ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * col0 + + tab1.col1 AS col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT 97 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
97

query I rowsort
SELECT - col1 + col2 * - 83 * col2 FROM tab1 AS cor0
----
-242054
-269677
-764941

query I rowsort
SELECT DISTINCT - col1 * - col1 * ( 98 ) + col0 * 8 AS col0 FROM tab2
----
28954
341762
94234

query I rowsort
SELECT - tab1.col2 + - col1 + + 96 FROM tab1
----
-13
16
29

query I rowsort
SELECT DISTINCT + tab0.col0 + - col1 * col0 + - 76 * col0 AS col0 FROM tab0
----
-14774
-3864
-6020

query I rowsort
SELECT - tab2.col0 + tab2.col2 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT + 35 * col0 AS col2 FROM tab0 cor0
----
1225
3115
840

query I rowsort
SELECT ALL - col0 * + col2 * col2 + col1 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT - ( 51 ) + col1 * + col1 FROM tab0
----
7345
8230
9358

query I rowsort
SELECT + ( + tab1.col1 * - col2 ) + tab1.col0 * col0 * - col2 + col2 AS col2 FROM tab1
----
-1836
-233985
-615552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6271
SELECT CAST( NULL AS SIGNED ) / + 68 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT CAST ( NULL AS INTEGER ) / + 68 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 + col0 + col0 FROM tab0
----
167
37
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT 2 DIV col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6273
SELECT 2 / col2 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT + ( - 85 ) * col1 + - col1 FROM tab2
----
-1462
-2666
-5074

query I rowsort
SELECT ALL + + 92 AS col1 FROM tab2 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + - cor0.col2 col1 FROM tab1 AS cor0
----
-4
35
38

query I rowsort
SELECT + 93 * 44 FROM tab2
----
4092
4092
4092

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT + tab0.col0 * + col0 + 10 AS col1 FROM tab0
----
1235
586
7931

query I rowsort
SELECT DISTINCT - col0 + col2 * + 73 * col2 FROM tab1
----
212865
237113
672688

query I rowsort
SELECT col1 + + col0 * 14 FROM tab0
----
1337
422
587

query I rowsort
SELECT ALL col2 * 14 - col1 AS col2 FROM tab2 AS cor0
----
305
347
515

query I rowsort
SELECT ALL col2 + col1 * - col0 + col2 AS col1 FROM tab1 AS cor0
----
-526
-848
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col0 FROM tab1
----
-47

query I rowsort
SELECT - col2 + + col2 * - col2 AS col2 FROM tab2
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6287
SELECT 83 - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT 83 - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6288
SELECT DISTINCT - col2 + + col0 DIV col0 AS col0 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - col2 + + col0 / col0 AS col0 FROM tab2
----
-25
-26
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + cor0.col1 * - col0 col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - col0 * + 31 AS col0 FROM tab0 AS cor0
----
-1085
-2759
-744

query I rowsort
SELECT ALL 55 FROM tab2, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL - col0 * col2 - cor0.col2 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT col0 * ( + 8 ) + col2 + col0 AS col2 FROM tab0 AS cor0
----
249
316
883

query I rowsort
SELECT ALL + col0 - 89 AS col2 FROM tab0 AS cor0
----
-54
-65
0

query I rowsort
SELECT DISTINCT col1 * 34 + - col2 FROM tab1 AS cor0
----
283
346
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6296
SELECT DISTINCT + + col1 + + CAST( NULL AS DECIMAL ) * 37 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT + + col1 + + CAST ( NULL AS REAL ) * 37 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + + 37 * col1 FROM tab1 AS cor0
----
1729
2366
940

query I rowsort
SELECT DISTINCT + col2 + + col1 * - cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1226
-183
-4498

query I rowsort
SELECT cor0.col1 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + + col2 * col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - - cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col0 + col1 col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL col2 * cor0.col1 - col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col1 col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - col0 * col0 * + col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-6306
SELECT + col2 DIV col1 + - col1 * - col0 FROM tab2 AS cor0
----
1345
217
4602

skipif mysql # not compatible
query I rowsort label-6306
SELECT + col2 / col1 + - col1 * - col0 FROM tab2 AS cor0
----
1345
217
4602

query I rowsort
SELECT + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - 80 + col0 * col1 FROM tab2 AS cor0
----
1263
137
4522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 83 * col2 * + col1 FROM tab1 cor0
----
103584
116532
47310

query I rowsort
SELECT + col2 * + cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 72 * col1 - col2 col1 FROM tab2 AS cor0
----
-1262
-2259
-4274

query I rowsort
SELECT + col2 * - col1 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + - 7 + col2 FROM tab2 AS cor0
----
19
20
31

query I rowsort
SELECT 10 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT + col2 - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * col0 * + col2 col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + - col0 - col1 * - col1 AS col2 FROM tab2 AS cor0
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col0 * col2 + col0 AS col0 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT ALL + col0 * tab1.col0 DIV col1 + + col0 * - col1 FROM tab1
----
-231
-548
-78

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL + col0 * tab1.col0 / col1 + + col0 * - col1 FROM tab1
----
-231
-548
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT - + cor0.col1 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6323
SELECT - + cor0.col1 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL - 22 * col1 AS col0 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT - col1 + cor0.col2 * - col2 AS col1 FROM tab1 cor0
----
-2942
-3259
-9229

query I rowsort
SELECT 70 * col1 * tab0.col0 FROM tab0
----
144480
237650
566930

query I rowsort
SELECT + 95 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT DISTINCT 26 * + col1 AS col0 FROM tab1
----
260
338
676

query I rowsort
SELECT - 2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - + ( + cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT 42 AS col0 FROM tab1 cor0
----
42
42
42

query I rowsort
SELECT - col1 * cor0.col1 + - 44 FROM tab0 AS cor0
----
-7440
-8325
-9453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( 80 ) - col2 col1 FROM tab1 AS cor0
----
186
5063
6304

query I rowsort
SELECT DISTINCT col1 + - col2 * + col1 + col0 FROM tab1 AS cor0
----
-1155
-1375
-496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT ( col2 ) + + cor0.col0 DIV - col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-6335
SELECT ( col2 ) + + cor0.col0 / - col2 FROM tab0 AS cor0
----
-34
33
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6336
SELECT - - CAST( + col2 AS SIGNED ) + col2 * ( 54 ) AS col0 FROM tab0 AS cor0
----
1815
4510
55

skipif mysql # not compatible
query I rowsort label-6336
SELECT - - CAST ( + col2 AS INTEGER ) + col2 * ( 54 ) AS col0 FROM tab0 AS cor0
----
1815
4510
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT col1 * + col1 + + col1 DIV col1 - - col1 * - col0 FROM tab2
----
-1053
-1120
745

skipif mysql # not compatible
query I rowsort label-6337
SELECT col1 * + col1 + + col1 / col1 - - col1 * - col0 FROM tab2
----
-1053
-1120
745

query I rowsort
SELECT + 87 + - col0 * col2 AS col2 FROM tab0
----
-705
-7211
52

query I rowsort
SELECT DISTINCT ( tab2.col1 * col1 ) FROM tab2
----
289
3481
961

query I rowsort
SELECT col2 * col2 * tab0.col2 - col1 AS col1 FROM tab0
----
-96
35851
551277

query I rowsort
SELECT - ( - 69 ) AS col1 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT DISTINCT 21 * - col1 - + col1 * ( 77 ) DIV + col1 FROM tab0 AS cor0
----
-1883
-1988
-2114

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT 21 * - col1 - + col1 * ( 77 ) / + col1 FROM tab0 AS cor0
----
-1883
-1988
-2114

onlyif mysql # use DIV operator for integer division
query I rowsort label-6343
SELECT - ( col0 ) + col0 DIV - ( 11 ) AS col2 FROM tab2 AS cor0
----
-7
-85
-86

skipif mysql # not compatible
query I rowsort label-6343
SELECT - ( col0 ) + col0 / - ( 11 ) AS col2 FROM tab2 AS cor0
----
-7
-85
-86

query I rowsort
SELECT - ( - col0 ) + + col2 * col2 * - col0 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT ALL ( col0 ) + - col0 * 38 FROM tab1
----
-111
-2368
-2960

query I rowsort
SELECT 22 + 15 * - col1 AS col2 FROM tab2 AS cor0
----
-233
-443
-863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6347
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 35 * cor0.col1 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
10036
121757
33628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6350
SELECT + - col0 DIV - col0 + cor0.col0 * 92 FROM tab0 AS cor0
----
2209
3221
8189

skipif mysql # not compatible
query I rowsort label-6350
SELECT + - col0 / - col0 + cor0.col0 * 92 FROM tab0 AS cor0
----
2209
3221
8189

onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT ALL ( + col2 ) DIV 77 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL ( + col2 ) / 77 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ( col1 ) + + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL ( col1 ) * col2 + 18 AS col2 FROM tab1 cor0
----
1266
1422
588

query I rowsort
SELECT DISTINCT 55 - + col0 AS col1 FROM tab2 AS cor0
----
-23
-24
48

query I rowsort
SELECT - col0 * - col2 + 88 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2112
-53
82

query I rowsort
SELECT DISTINCT col0 - 64 AS col0 FROM tab2
----
-57
14
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT + col1 DIV col1 + col2 * 15 * + col2 FROM tab2 AS cor0
----
10141
10936
21661

skipif mysql # not compatible
query I rowsort label-6357
SELECT + col1 / col1 + col2 * 15 * + col2 FROM tab2 AS cor0
----
10141
10936
21661

query I rowsort
SELECT ( - col0 * + col2 ) AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - + col1 * 85 AS col2 FROM tab1 AS cor0
----
-1105
-2210
-850

query I rowsort
SELECT DISTINCT col0 + ( col2 ) * col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT - col1 DIV 89 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6361
SELECT - col1 / 89 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT tab2.col1 * + 55 FROM tab2, tab0 AS cor0
----
9 values hashing to 0a6d0f460fe2cb2f7eccfbb13ec302e6

query I rowsort
SELECT DISTINCT col1 * + col0 * + col0 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT 96 * cor0.col2 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT + + col1 * + ( cor0.col0 ) - - col1 * ( - col0 + col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + ( - 15 ) * col2 FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT DISTINCT + 3 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 9 * cor0.col0 FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + + col2 - + col1 col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - - col0 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + tab1.col1 * 11 AS col1 FROM tab1
----
110
143
286

query I rowsort
SELECT + 86 - 3 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT + col1 + - 71 FROM tab0 cor0
----
15
20
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6375
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 - - 5 * + col1 col2 FROM tab2 AS cor0
----
-1733
-2917
-34

query I rowsort
SELECT ALL 86 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

query I rowsort
SELECT DISTINCT - col2 * + 86 * + 80 FROM tab1
----
-371520
-392160
-660480

query I rowsort
SELECT ALL - - 61 * tab0.col2 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 958ec4704f8e143192a38a569426b799

query I rowsort
SELECT DISTINCT - 61 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

query I rowsort
SELECT + col1 + col2 * col2 AS col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT ALL col1 + 21 + 10 AS col1 FROM tab0 AS cor0
----
117
122
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 10 * col0 col2 FROM tab0 AS cor0
----
264
385
979

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c

query I rowsort
SELECT DISTINCT + 45 + 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
113

onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT tab1.col2 DIV - ( col1 ) + - col0 FROM tab1
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-6386
SELECT tab1.col2 / - ( col1 ) + - col0 FROM tab1
----
-5
-69
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6387
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 7eb416b97f0ed263f6364cf59aa64c2b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6389
SELECT cor0.col1 * - col1 + - CAST( NULL AS DECIMAL ) * + 15 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT cor0.col1 * - col1 + - CAST ( NULL AS REAL ) * + 15 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + col2 * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + - 20 + col0 FROM tab0 AS cor0
----
15
4
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + cor0.col2 ) * ( + cor0.col1 ) - + col1 col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT 80 * col1 + col2 AS col0 FROM tab0
----
6913
7362
7761

query I rowsort
SELECT DISTINCT + col1 * col0 + 86 FROM tab0
----
2150
3481
8185

query I rowsort
SELECT - col1 + col0 + col0 AS col2 FROM tab0 cor0
----
-27
-38
87

query I rowsort
SELECT col0 * 45 AS col0 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT DISTINCT - col1 * col0 + ( + col0 ) * + col0 * tab0.col1 + col0 AS col2 FROM tab0
----
115465
47496
712801

onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT DISTINCT + 60 * col0 + - col1 DIV + col1 FROM tab1
----
179
3839
4799

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT + 60 * col0 + - col1 / + col1 FROM tab1
----
179
3839
4799

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab1, tab2 cor0
----
43

query I rowsort
SELECT - - col1 + + 52 AS col0 FROM tab1 AS cor0
----
62
65
78

query I rowsort
SELECT + + col1 + ( col2 ) FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL ( - col0 * ( - col1 ) ) FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT tab2.col2 * + col2 * 7 FROM tab2
----
10108
4732
5103

query I rowsort
SELECT + col1 * col1 + + col0 + col1 AS col2 FROM tab2 AS cor0
----
3618
385
999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6405
SELECT col2 + + CAST( - col2 AS SIGNED ) * col1 AS col0 FROM tab1 cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-6405
SELECT col2 + + CAST ( - col2 AS INTEGER ) * col1 AS col0 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT - + cor0.col2 * col1 + + col0 * col1 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT + col1 * - col0 + 64 + cor0.col2 FROM tab1 AS cor0
----
-519
-880
40

query I rowsort
SELECT - ( + col1 ) * + col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL tab2.col2 + 80 AS col0 FROM tab2
----
106
107
118

query I rowsort
SELECT ALL tab1.col0 + ( col2 ) AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL + + ( 14 ) AS col0 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT - 4 * col0 AS col2 FROM tab1 AS cor0
----
-12
-256
-320

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( + col2 AS REAL ) * col0 / - col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 95 * 79 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to a086ef2f97dd61d956252838ea692429

query I rowsort
SELECT - 85 * col1 + col1 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
1092
150
15366

query I rowsort
SELECT col0 * col1 + col0 + col0 AS col0 FROM tab1 AS cor0
----
1200
768
84

query I rowsort
SELECT ALL - cor0.col1 * + col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + ( col0 ) - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + ( - 14 + col0 ) AS col2 FROM tab2 AS cor0
----
1408
210
4666

query I rowsort
SELECT ALL + ( + col2 ) + - col0 * - col2 * cor0.col0 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT - col1 * - col2 + cor0.col1 AS col2 FROM tab0 cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 * - cor0.col0 col1 FROM tab1 AS cor0
----
12
256
320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6423
SELECT - 23 * + col1 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT - 23 * + col1 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col2 + + col1 AS col2 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT cor1.col2 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-6426
SELECT DISTINCT + col0 + col2 DIV - col0 + + col1 AS col0 FROM tab1
----
11
74
92

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT + col0 + col2 / - col0 + + col1 AS col0 FROM tab1
----
11
74
92

query I rowsort
SELECT ALL 75 + + 42 FROM tab2 AS cor0
----
117
117
117

query I rowsort
SELECT ALL - 38 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT + col2 * 11 + - col1 AS col0 FROM tab0 AS cor0
----
-86
277
811

query I rowsort
SELECT cor0.col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6431
SELECT CAST( NULL AS SIGNED ) * - col1 - + col1 / + 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT CAST ( NULL AS INTEGER ) * - col1 - + col1 / + 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - col2 + + col1 * - 93 FROM tab0 AS cor0
----
-15761
-8790
-9056

query I rowsort
SELECT col0 + - col2 * + 98 FROM tab1 AS cor0
----
-5289
-5522
-9328

query I rowsort
SELECT - + 45 * + col2 FROM tab0 cor0
----
-1485
-3690
-45

query I rowsort
SELECT ALL - 96 * + col1 FROM tab1 AS cor0
----
-1248
-2496
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 * col1 col0 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - 76 * col1 + + col0 FROM tab0 AS cor0
----
-6512
-6827
-7337

query I rowsort
SELECT ALL + 57 + col0 * col2 * ( + col1 ) FROM tab0
----
3452
664175
68169

query I rowsort
SELECT DISTINCT 40 + tab0.col0 FROM tab0, tab2, tab2 cor0, tab2 AS cor1
----
129
64
75

query I rowsort
SELECT + + col1 + - 94 * + col1 FROM tab2 AS cor0
----
-1581
-2883
-5487

query I rowsort
SELECT + - ( tab1.col2 ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL - ( - col2 ) * + ( + col2 ) * col1 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT ALL 67 DIV 75 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL 67 / 75 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 + - 98 AS col2 FROM tab2 AS cor0
----
-60
-71
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT + - cor0.col1 DIV col1 + + col1 + - col0 * col2 FROM tab0 cor0
----
-707
-7208
61

skipif mysql # not compatible
query I rowsort label-6446
SELECT + - cor0.col1 / col1 + + col1 + - col0 * col2 FROM tab0 cor0
----
-707
-7208
61

query I rowsort
SELECT cor0.col0 * + col2 + col1 * - col2 - + 1 AS col0 FROM tab0 AS cor0
----
-165
-2047
-63

query I rowsort
SELECT tab2.col2 + col0 * + 58 AS col2 FROM tab2
----
433
4550
4620

query I rowsort
SELECT + cor0.col1 + + 7 AS col1 FROM tab0 AS cor0
----
104
93
98

query I rowsort
SELECT DISTINCT ( - ( cor0.col0 ) ) * col2 * - cor0.col2 + + col1 AS col2 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT ALL + - 54 * ( col0 ) + col2 * - 52 AS col1 FROM tab0 AS cor0
----
-1942
-3012
-9070

query I rowsort
SELECT ALL col1 * - 8 + col2 AS col0 FROM tab1 cor0
----
-154
-23
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT DISTINCT - col2 DIV 83 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - col2 / 83 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 93 + col0 AS col2 FROM tab2 AS cor0
----
100
171
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT DISTINCT col2 DIV 97 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT col2 / 97 FROM tab0
----
0

query I rowsort
SELECT - col0 + 10 AS col0 FROM tab2
----
-68
-69
3

query I rowsort
SELECT + ( - 58 ) - col2 AS col1 FROM tab0 AS cor0
----
-140
-59
-91

query I rowsort
SELECT DISTINCT + - col1 * ( col1 ) + - col0 * + 30 AS col1 FROM tab1 AS cor0
----
-2020
-2569
-766

query I rowsort
SELECT DISTINCT col2 * - 64 * - col1 + col0 FROM tab2 AS cor0
----
41423
53575
98254

query I rowsort
SELECT 83 * col1 + + col2 * 63 FROM tab1 AS cor0
----
4421
5560
7127

onlyif mysql # use DIV operator for integer division
query I rowsort label-6461
SELECT ALL 52 DIV 8 AS col1 FROM tab0 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL 52 / 8 AS col1 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - - 21 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-6463
SELECT DISTINCT col0 DIV + 46 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT col0 / + 46 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + col0 + 31 - + col2 FROM tab0 AS cor0
----
22
38
65

query I rowsort
SELECT + - 5 * 97 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 461dbcb9c77b4fc3708e13f9fe612822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT 52 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL - 45 AS col2 FROM tab0
----
-45
-45
-45

query I rowsort
SELECT + col0 * - col0 * - 25 FROM tab0 cor0
----
14400
198025
30625

query I rowsort
SELECT ALL + 92 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-5
1
6

query I rowsort
SELECT DISTINCT - + ( col1 ) * + 23 FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT + col0 * col2 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab1
----
77

query I rowsort
SELECT + - col2 + - col0 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + + col1 + - 54 FROM tab1 AS cor0
----
-28
-41
-44

query I rowsort
SELECT - col2 * 11 FROM tab2 AS cor0
----
-286
-297
-418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + 29 col0 FROM tab0 cor0
----
2378
29
957

query I rowsort
SELECT DISTINCT - col2 - + col1 * - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT col2 + col2 + + col2 * col2 FROM tab2 AS cor0
----
1520
728
783

query I rowsort
SELECT DISTINCT + cor0.col2 * - 99 * - col1 AS col0 FROM tab1 AS cor0
----
123552
138996
56430

query I rowsort
SELECT ALL - + col2 * - cor0.col2 FROM tab1 cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 90 + cor0.col1 col2 FROM tab1 cor0
----
-1157
-2314
-890

query I rowsort
SELECT ALL ( 14 ) FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT - col2 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT col1 + ( + col1 ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + 0 - - 61 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT ALL col2 * - col1 + col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT 48 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT ALL - 94 * + col2 AS col2 FROM tab0 AS cor0
----
-3102
-7708
-94

query I rowsort
SELECT + col2 + - 64 AS col1 FROM tab0 AS cor0
----
-31
-63
18

query I rowsort
SELECT DISTINCT + - col2 + + 64 * - col0 FROM tab1 AS cor0
----
-246
-4153
-5216

query I rowsort
SELECT DISTINCT - + ( col0 ) - col0 AS col2 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - 94 * - col2 FROM tab2 AS cor0
----
2444
2538
3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 80 * col0 col1 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT - 76 * col0 + col1 FROM tab0 AS cor0
----
-1738
-2563
-6673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab1 AS cor0
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-6497
SELECT DISTINCT + col0 * col0 - 45 DIV 89 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + col0 * col0 - 45 / 89 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - - col2 * - col0 + + col2 AS col0 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - col1 * + cor0.col2 + - col0 * col0 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT ALL + cor0.col2 * + col1 * - 39 + + col0 * - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-284374
-54783
-560672

query I rowsort
SELECT ALL + 97 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT DISTINCT tab1.col0 + col2 + + col2 AS col2 FROM tab1
----
111
178
272

query I rowsort
SELECT + col1 + + col2 + col1 * + col2 AS col0 FROM tab0
----
195
2957
7635

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6504
SELECT DISTINCT - cor0.col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT - cor0.col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6505
SELECT + cor0.col2 * + 74 + + ( + col1 ) + CAST( 17 AS SIGNED ) FROM tab1 AS cor0
----
4039
4245
7134

skipif mysql # not compatible
query I rowsort label-6505
SELECT + cor0.col2 * + 74 + + ( + col1 ) + CAST ( 17 AS INTEGER ) FROM tab1 AS cor0
----
4039
4245
7134

query I rowsort
SELECT DISTINCT - - col0 * + 25 FROM tab0 AS cor0
----
2225
600
875

query I rowsort
SELECT - - ( col1 ) + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + - col2 * - 15 FROM tab0 AS cor0
----
1230
15
495

onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT - col2 + - 26 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-6509
SELECT - col2 + - 26 / col0 AS col2 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT ALL + ( + col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col2 + col2 - col0 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT DISTINCT tab1.col1 * - tab1.col0 + col1 FROM tab1
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6513
SELECT DISTINCT + col1 + CAST( + col1 AS SIGNED ) * col0 AS col0 FROM tab2
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT + col1 + CAST ( + col1 AS INTEGER ) * col0 AS col0 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT - col2 DIV 72 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6514
SELECT - col2 / 72 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT - col2 + - ( 74 ) + - col2 AS col2 FROM tab2
----
-126
-128
-150

onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT ALL col0 * col0 - col0 DIV col2 FROM tab0
----
1190
576
7920

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL col0 * col0 - col0 / col2 FROM tab0
----
1190
576
7920

query I rowsort
SELECT - col0 * col0 + + 41 + - col2 FROM tab2
----
-35
-6069
-6238

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6518
SELECT + CAST( col1 AS SIGNED ) * col2 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-6518
SELECT + CAST ( col1 AS INTEGER ) * col2 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT - + 90 + col0 DIV - col0 col1 FROM tab2 AS cor0
----
-91
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6519
SELECT - + 90 + col0 / - col0 col1 FROM tab2 AS cor0
----
-91
-91
-91

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6521
SELECT ALL - col1 + col2 * + col0 + tab1.col2 DIV - col1 FROM tab1
----
134
3633
7660

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - col1 + col2 * + col0 + tab1.col2 / - col1 FROM tab1
----
134
3633
7660

onlyif mysql # use DIV operator for integer division
query I rowsort label-6522
SELECT - ( col1 ) * + col1 * - ( col2 ) + - cor0.col0 * - col1 - col2 DIV col2 FROM tab1 cor0
----
17263
36581
6339

skipif mysql # not compatible
query I rowsort label-6522
SELECT - ( col1 ) * + col1 * - ( col2 ) + - cor0.col0 * - col1 - col2 / col2 FROM tab1 cor0
----
17263
36581
6339

query I rowsort
SELECT - 72 * ( col2 ) + ( col2 ) - col1 AS col0 FROM tab2 AS cor0
----
-1905
-1948
-2715

query I rowsort
SELECT ( - col2 + - col2 ) AS col1 FROM tab0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6525
SELECT 39 DIV col1 + col1 * col2 AS col0 FROM tab2
----
1534
648
838

skipif mysql # not compatible
query I rowsort label-6525
SELECT 39 / col1 + col1 * col2 AS col0 FROM tab2
----
1534
648
838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT + - CAST( NULL AS SIGNED ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6526
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * col1 col2 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT 19 FROM tab1, tab2 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 + col1 * tab1.col2 col2 FROM tab1
----
1266
1422
588

query I rowsort
SELECT DISTINCT - tab0.col2 + + col1 * col2 AS col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT + 7 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT col2 DIV - col1 + 44 AS col2 FROM tab2
----
42
44
44

skipif mysql # not compatible
query I rowsort label-6532
SELECT col2 / - col1 + 44 AS col2 FROM tab2
----
42
44
44

query I rowsort
SELECT + - col2 * 54 AS col2 FROM tab0 cor0
----
-1782
-4428
-54

query I rowsort
SELECT ALL 43 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT col2 DIV 26 FROM tab1 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-6535
SELECT col2 / 26 FROM tab1 AS cor0
----
2
2
3

query I rowsort
SELECT ALL - - col0 * + col1 + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + col1 * + 6 AS col2 FROM tab0 cor0
----
516
546
582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6538
SELECT col2 / CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6538
SELECT col2 / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-6540
SELECT + + col2 DIV + 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6540
SELECT + + col2 / + 93 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 + col2 * - 28 FROM tab1 AS cor0
----
-1486
-1586
-2675

onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT DISTINCT + col2 DIV 22 AS col0 FROM tab1 AS cor0
----
2
4

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT + col2 / 22 AS col0 FROM tab1 AS cor0
----
2
4

query I rowsort
SELECT ALL 22 * - col1 - + col0 * 53 FROM tab0
----
-3164
-3989
-6719

query I rowsort
SELECT + 92 * col0 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT + col0 * + col1 + + 39 * + col2 AS col0 FROM tab0 cor0
----
11297
3351
3434

query I rowsort
SELECT - col2 + - col2 * 49 AS col2 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT DISTINCT cor0.col1 + - 14 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT - col1 * 6 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
-3477
-7584
-8478

query I rowsort
SELECT - - cor0.col2 * + 95 * - 81 + - col0 FROM tab1 AS cor0
----
-415533
-438679
-738800

query I rowsort
SELECT DISTINCT + col2 + 80 + - col0 FROM tab2 AS cor0
----
100
28
39

query I rowsort
SELECT col1 + - 44 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
158
2826
3533

query I rowsort
SELECT ( - col1 ) + col0 * - 54 FROM tab2 AS cor0
----
-409
-4271
-4283

query I rowsort
SELECT + 56 * - col2 + col0 + 94 AS col1 FROM tab0 AS cor0
----
-1730
-4409
73

query I rowsort
SELECT - ( - cor0.col0 ) + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + + 38 AS col0 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT - ( - ( col2 ) ) FROM tab0
----
1
33
82

query I rowsort
SELECT ALL col0 * col0 + ( - ( + col1 ) ) * col0 FROM tab1 AS cor0
----
-69
3456
5360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL + 31 * + cor0.col0 FROM tab1 AS cor0
----
1984
2480
93

query I rowsort
SELECT DISTINCT - - 22 + - col0 * ( - cor0.col2 ) FROM tab1 AS cor0
----
184
3670
7702

query I rowsort
SELECT DISTINCT - ( - col1 ) * ( cor0.col2 ) + cor0.col0 * 27 AS col2 FROM tab1 AS cor0
----
1485
2298
3408

query I rowsort
SELECT - - ( col1 ) * + 83 FROM tab2 cor0
----
1411
2573
4897

query I rowsort
SELECT DISTINCT - col2 + - col0 + + col2 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ( - col1 + col2 ) AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT - ( col2 ) - ( + col0 ) FROM tab2
----
-104
-117
-34

query I rowsort
SELECT 73 * - col2 FROM tab2 AS cor0
----
-1898
-1971
-2774

query I rowsort
SELECT ALL + ( col1 ) * + 18 * - 77 + col2 * - col1 AS col1 FROM tab2 cor0
----
-24208
-43803
-83308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + 28 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + col2 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - 90 + cor0.col1 AS col0 FROM tab0 AS cor0
----
176
181
187

query I rowsort
SELECT col1 * + 22 + + col2 FROM tab1 AS cor0
----
277
382
626

query I rowsort
SELECT DISTINCT col1 * + col2 + + 32 * col0 AS col2 FROM tab2
----
1061
3174
4030

query I rowsort
SELECT 53 + col2 FROM tab1 AS cor0
----
107
110
149

query I rowsort
SELECT + col2 * col1 * col0 + col0 + col2 FROM tab0 AS cor0
----
3431
664289
68169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col0 FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 4eecc28c48bfdf162a585f11d1dd0b6c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT ALL + - cor0.col0 + - col1 DIV + cor0.col1 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL + - cor0.col0 + - col1 / + cor0.col1 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT DISTINCT - col0 * ( col0 + col0 ) AS col1 FROM tab0 AS cor0
----
-1152
-15842
-2450

query I rowsort
SELECT - cor0.col0 * 3 FROM tab1 AS cor0
----
-192
-240
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6580
SELECT ALL - CAST( NULL AS SIGNED ) * 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL - CAST ( NULL AS INTEGER ) * 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6581
SELECT ALL 70 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL 70 / col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 - - cor0.col0 col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + 53 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT - col0 * cor0.col0 + + col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1226
-14645
-1665

onlyif mysql # use DIV operator for integer division
query I rowsort label-6585
SELECT + col1 DIV - 22 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT + col1 / - 22 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6586
SELECT - + col0 + + ( - col2 ) DIV col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6586
SELECT - + col0 + + ( - col2 ) / col1 FROM tab0 AS cor0
----
-24
-35
-89

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT - col2 DIV - col1 + + 30 AS col2 FROM tab2
----
30
30
32

skipif mysql # not compatible
query I rowsort label-6588
SELECT - col2 / - col1 + + 30 AS col2 FROM tab2
----
30
30
32

query I rowsort
SELECT col2 + col1 + - tab2.col2 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - col0 * + col2 + - ( - 95 ) + col2 AS col0 FROM tab0
----
-664
-7121
61

query I rowsort
SELECT ALL 7 * col1 + col2 AS col0 FROM tab0
----
635
680
719

query I rowsort
SELECT ALL col1 * - 47 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT ALL col0 * 87 * col1 FROM tab0 AS cor0
----
179568
295365
704613

query I rowsort
SELECT + col1 * + 94 * - col1 + - col2 AS col0 FROM tab0 cor0
----
-695257
-778496
-884447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * col2 col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6596
SELECT + - col1 * col2 DIV - cor0.col0 + - col1 FROM tab2 cor0
----
-40
-9
88

skipif mysql # not compatible
query I rowsort label-6596
SELECT + - col1 * col2 / - cor0.col0 + - col1 FROM tab2 cor0
----
-40
-9
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6597
SELECT + cor0.col0 * + CAST( NULL AS DECIMAL ) - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT + cor0.col0 * + CAST ( NULL AS REAL ) - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 16 * cor0.col1 * - 36 AS col0 FROM tab1, tab1 AS cor0
----
-14976
-5760
-7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-6599
SELECT DISTINCT tab2.col0 * col1 DIV col0 AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT tab2.col0 * col1 / col0 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT + + 92 * col0 + col0 * ( + 99 + + col1 ) FROM tab0 AS cor0
----
10080
25098
6648

query I rowsort
SELECT ALL - col2 * + col0 + - col2 * col2 FROM tab1 AS cor0
----
-16896
-3078
-6897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6602
SELECT ALL - CAST( col2 AS SIGNED ) - col2 FROM tab2 AS cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL - CAST ( col2 AS INTEGER ) - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT 9 * - col0 FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT - 52 + cor0.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 099152650f7a4637cbc508ed7e80cfb0

query I rowsort
SELECT DISTINCT tab1.col1 + + col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT 4 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
4

query I rowsort
SELECT DISTINCT + ( tab0.col2 ) + tab0.col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT col2 + - col2 DIV 53 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6608
SELECT col2 + - col2 / 53 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT - 57 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT ALL ( col0 ) * col1 + - col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT ALL + col0 * + col2 * col1 AS col0 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6613
SELECT + col0 + col0 DIV - cor0.col1 AS col2 FROM tab2 cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-6613
SELECT + col0 + col0 / - cor0.col1 AS col2 FROM tab2 cor0
----
7
75
77

query I rowsort
SELECT ALL + col1 * + col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT + - 96 AS col0 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT ( - col1 ) + - col0 AS col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - ( col2 ) * col0 * - col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + 73 * - col0 AS col0 FROM tab2 AS cor0
----
-511
-5694
-5767

onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT ALL cor0.col0 DIV - 74 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL cor0.col0 / - 74 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col1 + - 21 * - col1 AS col2 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT 94 * cor0.col1 + col0 FROM tab0 AS cor0
----
8108
8643
9153

query I rowsort
SELECT 3 FROM tab2, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT + tab1.col2 + - col1 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT - 85 * col2 FROM tab1 AS cor0
----
-4590
-4845
-8160

query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab1, tab0 AS cor0
----
67

query I rowsort
SELECT ALL - col2 * - 42 FROM tab1
----
2268
2394
4032

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6628
SELECT - ( 91 ) + + col1 * - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-2155
-3486
-8190

skipif mysql # not compatible
query I rowsort label-6628
SELECT - ( 91 ) + + col1 * - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-2155
-3486
-8190

query I rowsort
SELECT ALL + - cor0.col0 + - col2 * col2 FROM tab0 cor0
----
-1113
-36
-6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT 55 + 96 FROM tab2 AS cor0
----
151

query I rowsort
SELECT DISTINCT - col0 * 67 AS col1 FROM tab0
----
-1608
-2345
-5963

query I rowsort
SELECT - 10 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT - ( + 68 ) * col2 + + col1 AS col1 FROM tab0
----
-2158
-5485
29

query I rowsort
SELECT col0 - 65 FROM tab1
----
-1
-62
15

query I rowsort
SELECT DISTINCT + + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + - 70 * col0 AS col1 FROM tab0 AS cor0
----
-1680
-2450
-6230

query I rowsort
SELECT - ( 30 ) * col0 FROM tab2 AS cor0
----
-210
-2340
-2370

query I rowsort
SELECT DISTINCT - - cor0.col2 + 57 FROM tab1 AS cor0
----
111
114
153

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6640
SELECT 64 * col1 * CAST( - 91 AS SIGNED ) AS col2 FROM tab0
----
-500864
-529984
-564928

skipif mysql # not compatible
query I rowsort label-6640
SELECT 64 * col1 * CAST ( - 91 AS INTEGER ) AS col2 FROM tab0
----
-500864
-529984
-564928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + - col1 col1 FROM tab2
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * 80 col0 FROM tab1 AS cor0
----
-2026
-743
-944

query I rowsort
SELECT ALL col0 * + cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col0 + - 84 AS col1 FROM tab0 cor0
----
-49
-60
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6646
SELECT DISTINCT + col1 DIV - 52 + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3482
-961

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT + col1 / - 52 + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3482
-961

query I rowsort
SELECT ALL cor1.col0 + + tab0.col0 * - 78 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 851c0063577d6dea441e97cd50746eb1

query I rowsort
SELECT ALL + col0 * + ( col1 ) FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT ALL col0 + + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL col0 + + col2 / col0 AS col1 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT ALL col1 * + 15 FROM tab1
----
150
195
390

query I rowsort
SELECT ALL - + col1 * 62 FROM tab1 AS cor0
----
-1612
-620
-806

query I rowsort
SELECT ALL - col1 * - 19 - ( col2 ) AS col2 FROM tab1 AS cor0
----
133
151
440

query I rowsort
SELECT ALL + 43 FROM tab0, tab0 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT col2 * + col1 + + col2 AS col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT ALL - + col2 * ( col2 ) * + col0 + + ( + cor0.col0 ) FROM tab1 AS cor0
----
-207872
-737200
-8745

onlyif mysql # use DIV operator for integer division
query I rowsort label-6656
SELECT - col1 DIV cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-6656
SELECT - col1 / cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( cor0.col1 ) col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col0 + + 31 AS col1 FROM tab0 AS cor0
----
-4
-58
7

query I rowsort
SELECT + col0 * + 10 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT DISTINCT - 10 - 17 FROM tab1 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 + + 39 col0 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT ALL 17 + - col0 FROM tab1 AS cor0
----
-47
-63
14

query I rowsort
SELECT + - col0 * + col1 + - col2 * - 31 AS col2 FROM tab2 AS cor0
----
-165
-3796
620

query I rowsort
SELECT ALL + col1 * 99 - + col2 AS col1 FROM tab2 AS cor0
----
1645
3042
5815

query I rowsort
SELECT ALL + col0 * ( + col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL + - col1 + - col0 + + col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT - col2 * - 11 AS col0 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT DISTINCT + col1 - 50 FROM tab1 AS cor0
----
-24
-37
-40

query I rowsort
SELECT ALL - col1 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT 63 * - tab0.col2 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
-2079
-5166
-63

query I rowsort
SELECT DISTINCT col1 + + 0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT + col1 * col0 + - 53 FROM tab2
----
1290
164
4549

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6674
SELECT - col2 * CAST( NULL AS SIGNED ) / - 97 + tab0.col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6674
SELECT - col2 * CAST ( NULL AS INTEGER ) / - 97 + tab0.col1 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + 29 FROM tab1
----
-16
-19
-3

query I rowsort
SELECT col2 * ( col2 ) AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - col2 + 31 AS col1 FROM tab2
----
-7
4
5

query I rowsort
SELECT - col2 + + 17 AS col1 FROM tab1
----
-37
-40
-79

query I rowsort
SELECT + col2 * + col0 + 3 * col1 - col2 AS col1 FROM tab0 AS cor0
----
1017
325
7489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col0 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT - col0 * - col1 + - col0 - col2 FROM tab2 cor0
----
1226
183
4498

query I rowsort
SELECT - + 16 + col1 * - 39 AS col1 FROM tab1 AS cor0
----
-1030
-406
-523

query I rowsort
SELECT ALL - + 99 + + col0 FROM tab1 AS cor0
----
-19
-35
-96

query I rowsort
SELECT + - col1 + col0 + - ( - 93 ) AS col2 FROM tab0 AS cor0
----
31
31
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT DISTINCT - + col1 DIV - col0 col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT - + col1 / - col0 col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + - 87 col1 FROM tab0 AS cor0
----
-52
705
7211

query I rowsort
SELECT DISTINCT + 59 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-19
-581
-981

onlyif mysql # use DIV operator for integer division
query I rowsort label-6688
SELECT - cor0.col2 * 17 DIV - 84 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to de141c41ef359680f5bc39c2839a8a08

skipif mysql # not compatible
query I rowsort label-6688
SELECT - cor0.col2 * 17 / - 84 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to de141c41ef359680f5bc39c2839a8a08

query I rowsort
SELECT col2 - col1 AS col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col0 * + col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - col1 - col1 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT + cor0.col0 - cor0.col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - - col1 * - col2 * ( + cor0.col2 + - col2 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 24 + - col2 FROM tab0 AS cor0
----
-58
-9
23

query I rowsort
SELECT - + cor0.col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col0 * cor0.col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ( col1 * + 67 ) AS col1 FROM tab0
----
5762
6097
6499

query I rowsort
SELECT + col0 + + col1 * 3 FROM tab2 AS cor0
----
100
130
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * ( + col0 ) col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col2 * col1 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + ( col0 + col1 * 86 ) FROM tab1
----
1198
2239
924

onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT + - col0 + col1 DIV col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6702
SELECT + - col0 + col1 / col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - cor0.col2 + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - - 84 + - col0 AS col0 FROM tab2 AS cor0
----
5
6
77

query I rowsort
SELECT ALL + + ( - cor0.col2 ) * col2 * - col0 FROM tab0 cor0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-6707
SELECT ( - col0 ) + + tab0.col2 DIV + col2 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6707
SELECT ( - col0 ) + + tab0.col2 / + col2 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT 11 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL - 46 * + col0 AS col1 FROM tab0
----
-1104
-1610
-4094

query I rowsort
SELECT - - 32 FROM tab0 cor0
----
32
32
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT 89 + - col0 * CAST( + col0 + cor0.col2 * col2 AS SIGNED ) FROM tab2 AS cor0
----
-120228
-5063
-58723

skipif mysql # not compatible
query I rowsort label-6711
SELECT 89 + - col0 * CAST ( + col0 + cor0.col2 * col2 AS INTEGER ) FROM tab2 AS cor0
----
-120228
-5063
-58723

query I rowsort
SELECT + - col1 * - col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col2 + + col0 * - col0 + - tab2.col0 FROM tab2
----
-29
-6136
-6282

query I rowsort
SELECT + cor0.col1 + 4 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 26646b1b348207b2790e8b1a9ce9907c

query I rowsort
SELECT col0 * - col1 + + col0 - + col2 AS col0 FROM tab1 AS cor0
----
-1056
-129
-633

skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( - 69 AS REAL ) - + col1 AS col0 FROM tab0 AS cor0
----
-166
-2363
-5749

query I rowsort
SELECT ALL + col0 + col1 * col2 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL col0 + + 69 * 71 FROM tab2
----
4906
4977
4978

query I rowsort
SELECT DISTINCT + 40 + col0 AS col1 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab0, tab1 AS cor0
----
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6721
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 0 * + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 0 * + col0 FROM tab0
----
NULL

query I rowsort
SELECT 28 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 * cor0.col0 * col1 col1 FROM tab2 AS cor0
----
-179478
-52377
-8463

query I rowsort
SELECT 87 + cor0.col2 * cor0.col1 + - 48 * cor0.col1 FROM tab2 cor0
----
-1211
-564
-83

query I rowsort
SELECT DISTINCT 0 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 + col1 col2 FROM tab0 AS cor0
----
178
183
189

query I rowsort
SELECT ALL - ( 97 ) AS col2 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT 88 * - col1 FROM tab0
----
-7568
-8008
-8536

query I rowsort
SELECT DISTINCT + - 80 FROM tab1 cor0
----
-80

query I rowsort
SELECT ALL + col0 + col1 * col0 * ( cor0.col0 ) FROM tab1 AS cor0
----
237
41024
83280

query I rowsort
SELECT 82 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT - 55 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-385
-4290
-4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( + col2 ) col2 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 19 + - col1 * cor0.col0 + cor0.col1 col0 FROM tab0 AS cor0
----
-2605
-3317
-9566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( 38 ) + - col1 col1 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT DISTINCT - + col0 + 14 AS col0 FROM tab1 AS cor0
----
-50
-66
11

query I rowsort
SELECT - - col0 + 16 * + 61 FROM tab1 AS cor0
----
1040
1056
979

query I rowsort
SELECT ( col0 ) * - col0 + - 44 AS col0 FROM tab1 AS cor0
----
-4140
-53
-6444

query I rowsort
SELECT - ( col2 ) * - col0 + - col0 FROM tab2 cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6740
SELECT - CAST( NULL AS SIGNED ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT - CAST ( NULL AS INTEGER ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + col1 * col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab1, tab0 AS cor0
----
59

query I rowsort
SELECT + 63 + col2 FROM tab1 AS cor0
----
117
120
159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6744
SELECT tab1.col2 + CAST( - col1 AS SIGNED ) * col2 AS col2 FROM tab1
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-6744
SELECT tab1.col2 + CAST ( - col1 AS INTEGER ) * col2 AS col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - col2 * 40 + col1 * - col2 AS col1 FROM tab0
----
-10742
-137
-4158

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + cor0.col1 * col1 + - cor0.col2 / col0 )
----

query I rowsort
SELECT ALL col0 + col0 + - col0 * + col1 FROM tab0 cor0
----
-2016
-3325
-7921

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 <> - col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT col0 + col2 / col1 AS col0 FROM tab2 WHERE NOT ( + col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT col1 - - tab1.col1 AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT col1 * col1 + - col0 * + col0 + - tab0.col2 FROM tab0
----
278
6787
8183

query I rowsort
SELECT col1 * col2 * + tab2.col2 FROM tab2 WHERE NULL IN ( + tab2.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT - col1 DIV - tab0.col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6755
SELECT - col1 / - tab0.col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + tab2.col0 - - col0 * col1 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + col1 * col0 + col0 AS col0 FROM tab0 WHERE col2 <> ( NULL )
----

query I rowsort
SELECT col2 * col1 - col0 FROM tab0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * + col2 IN ( col1 )
----

query I rowsort
SELECT ALL cor0.col2 * col0 + - cor0.col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT + col2 * - col1 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL col2 * - col0 + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - tab0.col0 * + tab0.col2 - col0 AS col0 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT ALL tab2.col1 * + tab2.col1 + - col1 AS col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT ALL + tab2.col2 * + col0 * + col0 + - col1 FROM tab2
----
1292
158125
237141

onlyif mysql # use DIV operator for integer division
query I rowsort label-6766
SELECT - tab2.col2 * + col2 + col2 DIV col1 AS col2 FROM tab2
----
-1442
-676
-729

skipif mysql # not compatible
query I rowsort label-6766
SELECT - tab2.col2 * + col2 + col2 / col1 AS col2 FROM tab2
----
-1442
-676
-729

query I rowsort
SELECT ALL + + 59 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT DISTINCT - tab0.col0 + - col0 * + tab0.col2 * col2 AS col0 FROM tab0
----
-26160
-598525
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT 52 + + col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT 52 + + col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 + + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - - 94 AS col0 FROM tab0 cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6772
SELECT ALL - cor0.col1 + col1 * CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - cor0.col1 + col1 * CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * tab2.col0 + col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col1 + - col0 * - 80 FROM tab2
----
591
6299
6337

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6775
SELECT DISTINCT + col2 + + CAST( + ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT + col2 + + CAST ( + ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col1 + ( col2 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - + col0 * - 15 AS col2 FROM tab2 cor0
----
105
1170
1185

query I rowsort
SELECT ALL - + col0 * col2 + - col2 + col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col2 + - 42 * + cor0.col0 + col2 FROM tab0 cor0
----
-1468
-3574
-942

query I rowsort
SELECT DISTINCT cor0.col0 * + 13 AS col0 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT ALL - 47 - 83 FROM tab1, tab0 AS cor0
----
9 values hashing to 3e323cca4480a8ff656f0db20c1c30c5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6782
SELECT ALL col1 * CAST( NULL AS SIGNED ) - - 31 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL col1 * CAST ( NULL AS INTEGER ) - - 31 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + 25 FROM tab2 AS cor0
----
42
56
84

query I rowsort
SELECT DISTINCT + col1 * + 94 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT - col2 * + 12 - col2 AS col2 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT ALL - col2 - - tab1.col0 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL - 37 - - col2 FROM tab1
----
17
20
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - cor0.col1 + - 68 FROM tab0 AS cor0
----
-154
-159
-165

query I rowsort
SELECT - col1 * col1 + + col1 + + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
-881
2662
5969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6791
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 * + 52 AS col1 FROM tab1 AS cor0
----
29640
64896
73008

query I rowsort
SELECT + - col1 + - 69 * + col2 * col2 FROM tab2 AS cor0
----
-46703
-50332
-99653

query I rowsort
SELECT col0 - col2 * col1 * col2 FROM tab0
----
-611795
-62
-93630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + col0 * - col1 col2 FROM tab2
----
-1054
-1121
744

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col2 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE - col0 NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col2 AS col0 FROM tab2
----
162
2002
2964

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= col1
----

query I rowsort
SELECT col1 + col0 * + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + + col2 * col1 + - col2 + + cor0.col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
6849
7592
859

query I rowsort
SELECT ALL 22 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to c6f049334398e3533dd6996714479a2f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + + 91 col0 FROM tab0 cor0
----
7487
8372
9500

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6805
SELECT col2 * col1 - CAST( NULL AS DECIMAL ) / 30 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6805
SELECT col2 * col1 - CAST ( NULL AS REAL ) / 30 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 97 + cor0.col1 FROM tab1 AS cor0
----
107
110
123

query I rowsort
SELECT - + col1 * - col0 + 98 AS col0 FROM tab2 AS cor0
----
1441
315
4700

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT DISTINCT + col2 + + col2 DIV col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT + col2 + + col2 / col1 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT DISTINCT + tab0.col2 + col1 * - col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + col2 * col2 AS col2 FROM tab1 WHERE NOT ( col0 ) NOT IN ( col2 )
----

query I rowsort
SELECT + tab1.col1 + col0 + - tab1.col1 FROM tab1
----
3
64
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT tab1.col2 < - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - col2 * + col1 * col1 AS col2 FROM tab1 WHERE + col0 NOT BETWEEN NULL AND ( col2 )
----
-5700

query I rowsort
SELECT + col0 + - tab1.col1 * + col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - + tab2.col1 FROM tab2, tab0, tab0 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - col1 * - col0 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + col1 * col2 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT DISTINCT - col2 * - ( - col0 * - col0 ) + cor0.col0 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT DISTINCT 83 * col2 AS col1 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT ALL - - col0 * - 29 FROM tab1 AS cor0
----
-1856
-2320
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT ALL col0 DIV col0 + - col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL col0 / col0 + - col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT 96 AS col0 FROM tab2 cor0
----
96
96
96

query I rowsort
SELECT ( 56 ) AS col2 FROM tab1 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 + + col2 col2 FROM tab1 cor0
----
-4039
-6304
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6825
SELECT ALL - col1 + + col0 * - CAST( NULL AS SIGNED ) * + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - col1 + + col0 * - CAST ( NULL AS INTEGER ) * + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 22 + cor0.col0 * col2 FROM tab2 AS cor0
----
167
2006
2980

query I rowsort
SELECT DISTINCT ( col2 ) + - col1 * 65 AS col0 FROM tab0 AS cor0
----
-5557
-5833
-6304

query I rowsort
SELECT ALL + col2 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col0 + 47 * - 72 col2 FROM tab1 cor0
----
-2344
-2744
-3306

query I rowsort
SELECT ALL + + col1 * col2 + 82 * + col1 FROM tab1 AS cor0
----
1390
2314
3536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6831
SELECT col0 + - col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT col0 + - col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * col1 + 73 AS col2 FROM tab1 AS cor0
----
-5
-567
-967

onlyif mysql # use DIV operator for integer division
query I rowsort label-6833
SELECT cor0.col0 DIV - col2 + col1 AS col1 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-6833
SELECT cor0.col0 / - col2 + col1 AS col1 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT DISTINCT + - col1 * col2 + 37 * col2 * col0 - col1 FROM tab0 AS cor0
----
1101
262473
26380

query I rowsort
SELECT - 21 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-18
43
59

query I rowsort
SELECT DISTINCT col0 * col1 + 46 FROM tab2 AS cor0
----
1389
263
4648

query I rowsort
SELECT + col1 * - col1 * - 62 + col2 FROM tab2 AS cor0
----
17956
215848
59609

query I rowsort
SELECT + col2 + + 15 AS col1 FROM tab1 AS cor0
----
111
69
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT - col2 DIV col1 + 58 FROM tab2 AS cor0
----
56
58
58

skipif mysql # not compatible
query I rowsort label-6840
SELECT - col2 / col1 + 58 FROM tab2 AS cor0
----
56
58
58

query I rowsort
SELECT - col1 * - col2 AS col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT + col1 DIV col0 + col2 * + col0 FROM tab1 AS cor0
----
170
3648
7680

skipif mysql # not compatible
query I rowsort label-6842
SELECT + col1 / col0 + col2 * + col0 FROM tab1 AS cor0
----
170
3648
7680

query I rowsort
SELECT DISTINCT - 23 * + col2 AS col2 FROM tab2
----
-598
-621
-874

query I rowsort
SELECT + 33 AS col2 FROM tab0
----
33
33
33

query I rowsort
SELECT - col1 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT ALL - col1 * col2 + 75 AS col1 FROM tab0 AS cor0
----
-22
-2763
-7387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6847
SELECT - col2 + + CAST( 96 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
14
63
95

skipif mysql # not compatible
query I rowsort label-6847
SELECT - col2 + + CAST ( 96 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
14
63
95

query I rowsort
SELECT DISTINCT + 50 * cor0.col2 * - col0 FROM tab1 cor0
----
-182400
-384000
-8100

query I rowsort
SELECT + col1 + 1 * 30 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT DISTINCT 76 * - 89 FROM tab0, tab2 AS cor0
----
-6764

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT ALL + col0 + - 51 AS col0 FROM tab0
----
-16
-27
38

query I rowsort
SELECT + - 14 * + col2 + + 16 AS col0 FROM tab2 AS cor0
----
-348
-362
-516

onlyif mysql # use DIV operator for integer division
query I rowsort label-6854
SELECT ( col1 ) * col2 + + col0 * - col1 * + cor0.col2 - col0 DIV + cor0.col0 FROM tab1 AS cor0
----
-2809
-35911
-98593

skipif mysql # not compatible
query I rowsort label-6854
SELECT ( col1 ) * col2 + + col0 * - col1 * + cor0.col2 - col0 / + cor0.col0 FROM tab1 AS cor0
----
-2809
-35911
-98593

onlyif mysql # use DIV operator for integer division
query I rowsort label-6855
SELECT ALL + ( + col1 ) DIV - col1 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + ( + col1 ) / - col1 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT - - 63 + + col1 DIV ( col2 ) FROM tab0 AS cor0
----
160
64
65

skipif mysql # not compatible
query I rowsort label-6856
SELECT - - 63 + + col1 / ( col2 ) FROM tab0 AS cor0
----
160
64
65

query I rowsort
SELECT - - ( col2 ) + 78 * + cor0.col0 FROM tab2 AS cor0
----
573
6110
6200

query I rowsort
SELECT col1 * - tab2.col2 * tab2.col0 + col1 FROM tab2
----
-119593
-51017
-5828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col1 FROM tab0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6860
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 37 * + col2 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
11315
8617
9446

onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT ALL - 54 + 45 DIV col0 AS col0 FROM tab1 AS cor0
----
-39
-54
-54

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - 54 + 45 / col0 AS col0 FROM tab1 AS cor0
----
-39
-54
-54

query I rowsort
SELECT DISTINCT + 57 + col0 AS col1 FROM tab2 AS cor0
----
135
136
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT ALL - col0 DIV ( col0 ) + 30 * - cor0.col2 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1073
3364
5638

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL - col0 / ( col0 ) + 30 * - cor0.col2 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1073
3364
5638

query I rowsort
SELECT + ( col0 ) * - col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + 50 * + col2 + + col2 FROM tab0 AS cor0
----
1683
4182
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6867
SELECT DISTINCT - - col2 + ( - col0 ) * CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT - - col2 + ( - col0 ) * CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 42 ) + - col0 col2 FROM tab1 AS cor0
----
-22
-38
39

query I rowsort
SELECT DISTINCT + 73 * col1 * + 60 + col2 * - col2 FROM tab0 AS cor0
----
375591
391856
424859

query I rowsort
SELECT ALL - ( col0 ) * - 79 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT + col2 * + col1 + + 11 * col2 AS col1 FROM tab2 AS cor0
----
1064
1134
1820

onlyif mysql # use DIV operator for integer division
query I rowsort label-6872
SELECT ALL + + cor0.col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + + cor0.col2 / col0 AS col2 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT ALL + cor0.col1 * col2 - + ( + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - col2 + col0 * cor0.col2 * + 78 AS col2 FROM tab2 AS cor0
----
14715
158158
234118

query I rowsort
SELECT + + col0 + - col2 * + 42 FROM tab2 AS cor0
----
-1014
-1127
-1517

query I rowsort
SELECT DISTINCT - 73 * - col1 - + 87 FROM tab2 AS cor0
----
1154
2176
4220

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2

query I rowsort
SELECT ALL - - col0 * col2 * cor0.col2 + col0 + col2 FROM tab0 cor0
----
26193
598607
71

query I rowsort
SELECT DISTINCT + col2 * + 41 FROM tab0 cor0
----
1353
3362
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - col1 + - 71 FROM tab0 AS cor0
----
-157
-162
-168

query I rowsort
SELECT col2 * 6 * col1 AS col1 FROM tab1
----
3420
7488
8424

onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT ALL - col2 + cor0.col1 * - col0 + + 47 DIV + col2 col2 FROM tab0 AS cor0
----
-2096
-3349
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - col2 + cor0.col1 * - col0 + + 47 / + col2 col2 FROM tab0 AS cor0
----
-2096
-3349
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( + col0 ) col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 + - col2 + - col0 col0 FROM tab1 AS cor0
----
-126
-7
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT - col0 DIV - 11 - + col0 FROM tab1 AS cor0
----
-3
-59
-73

skipif mysql # not compatible
query I rowsort label-6886
SELECT - col0 / - 11 - + col0 FROM tab1 AS cor0
----
-3
-59
-73

query I rowsort
SELECT DISTINCT + - ( col0 ) - + col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL tab0.col0 - + 74 FROM tab0
----
-39
-50
15

query I rowsort
SELECT ALL + col2 * 66 FROM tab1
----
3564
3762
6336

query I rowsort
SELECT - col0 * ( 25 ) FROM tab1
----
-1600
-2000
-75

query I rowsort
SELECT ALL - 72 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT + + cor0.col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT col2 - - ( + col2 ) AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL col2 * - 49 * - col1 FROM tab0 AS cor0
----
139062
365638
4753

query I rowsort
SELECT ALL + 40 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT CAST( - col0 AS SIGNED ) DIV + col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6896
SELECT CAST ( - col0 AS INTEGER ) / + col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - - 95 * - col0 FROM tab2 AS cor0
----
-665
-7410
-7505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6900
SELECT DISTINCT col2 * ( 87 * - col2 + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT col2 * ( 87 * - col2 + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 750b3c1b743e18f68d402d034647fcf2

query I rowsort
SELECT - col1 + - col2 * ( - col1 ) FROM tab2
----
1475
629
806

query I rowsort
SELECT col0 * 44 + col0 + col1 AS col0 FROM tab0
----
1166
1672
4096

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6904
SELECT CAST( col0 AS SIGNED ) + col1 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6904
SELECT CAST ( col0 AS INTEGER ) + col1 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT ALL - 11 + + 35 DIV col0 + tab1.col2 AS col2 FROM tab1
----
46
54
85

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - 11 + + 35 / col0 + tab1.col2 AS col2 FROM tab1
----
46
54
85

query I rowsort
SELECT DISTINCT - 22 * + col1 AS col2 FROM tab1 AS cor0
----
-220
-286
-572

skipif mysql # not compatible
query I rowsort
SELECT + 76 * 95 * - cor0.col1 + + CAST ( + 55 AS REAL ) AS col1 FROM tab0 AS cor0
----
-620865
-656965
-700285

query I rowsort
SELECT + 22 * + 0 + col0 AS col0 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6909
SELECT ( + 59 + col2 ) DIV + 38 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-6909
SELECT ( + 59 + col2 ) / + 38 FROM tab1
----
2
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * tab0.col0 col2 FROM tab0
----
1992
2905
7387

query I rowsort
SELECT col2 * + col1 * + col1 AS col0 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT DISTINCT + col0 * + tab1.col0 * col0 + + 90 DIV + col1 FROM tab1
----
262153
30
512006

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT + col0 * + tab1.col0 * col0 + + 90 / + col1 FROM tab1
----
262153
30
512006

query I rowsort
SELECT ALL + 64 AS col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT DISTINCT + + col0 + + 68 FROM tab0 cor0
----
103
157
92

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + tab1.col1 * - CAST ( + col2 AS REAL ) AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT 65 * col2 * + 40 + - col1 * - col1 AS col0 FROM tab0
----
12009
221481
93196

onlyif mysql # use DIV operator for integer division
query I rowsort label-6917
SELECT + col0 DIV + col0 + ( col2 + - col0 ) col0 FROM tab1
----
-6
17
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6917
SELECT + col0 / + col0 + ( col2 + - col0 ) col0 FROM tab1
----
-6
17
52

query I rowsort
SELECT ALL 72 + col1 * cor0.col0 FROM tab0 AS cor0
----
2136
3467
8171

onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT DISTINCT col1 DIV col1 + ( + cor0.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-6919
SELECT DISTINCT col1 / col1 + ( + cor0.col1 * col1 ) col0 FROM tab0 AS cor0
----
7397
8282
9410

query I rowsort
SELECT col2 + - col2 * + tab1.col1 FROM tab1
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT ALL - - cor0.col2 + + 77 * col2 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT DISTINCT - - cor0.col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6924
SELECT DISTINCT + cor0.col1 * 85 * col0 + + col2 DIV col0 col2 FROM tab2 AS cor0
----
114155
18448
391170

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT + cor0.col1 * 85 * col0 + + col2 / col0 col2 FROM tab2 AS cor0
----
114155
18448
391170

query I rowsort
SELECT DISTINCT col2 * + 23 * 53 FROM tab1 AS cor0
----
117024
65826
69483

onlyif mysql # use DIV operator for integer division
query I rowsort label-6926
SELECT DISTINCT + col0 DIV 80 col1 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT + col0 / 80 col1 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT + col0 DIV 63 col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6928
SELECT + col0 / 63 col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + cor0.col1 * - 84 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT ALL cor0.col0 * ( col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col2 * 2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab0, tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT 4 + + col2 FROM tab2
----
30
31
42

query I rowsort
SELECT 60 + - col2 FROM tab0
----
-22
27
59

query I rowsort
SELECT - tab2.col2 + tab2.col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT + col2 + 28 FROM tab1
----
124
82
85

query I rowsort
SELECT - 97 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5

query I rowsort
SELECT ALL + col1 * + col1 + + col1 * 13 FROM tab2 AS cor0
----
1364
4248
510

query I rowsort
SELECT - - 40 AS col0 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT ALL - col2 + - col2 * ( col2 + col2 ) AS col2 FROM tab0 AS cor0
----
-13530
-2211
-3

query I rowsort
SELECT - ( + tab0.col0 ) AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - - col1 * - col0 + + col1 * col1 + - col1 FROM tab0 AS cor0
----
5246
5917
91

query I rowsort
SELECT + + col0 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - + ( col2 * - col2 ) col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL + cor0.col0 + 11 FROM tab0 AS cor0
----
100
35
46

query I rowsort
SELECT ALL cor0.col0 + + ( col2 + col0 ) * 99 AS col1 FROM tab2 AS cor0
----
10374
11662
3373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 * + col2 col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL col2 * + 27 AS col2 FROM tab2 AS cor0
----
1026
702
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6951
SELECT + col0 + + CAST( - col0 AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

skipif mysql # not compatible
query I rowsort label-6951
SELECT + col0 + + CAST ( - col0 AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT DISTINCT - - col1 + + 41 DIV - col1 AS col0 FROM tab1 AS cor0
----
10
25
6

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT - - col1 + + 41 / - col1 AS col0 FROM tab1 AS cor0
----
10
25
6

query I rowsort
SELECT ALL + col2 + col1 + + col2 FROM tab1 cor0
----
124
134
205

query I rowsort
SELECT ALL + col0 * 59 + - col2 * - col0 FROM tab2 AS cor0
----
602
6630
7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-6955
SELECT DISTINCT col1 DIV - col0 + - col2 FROM tab2 AS cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT col1 / - col0 + - col2 FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT + 68 + col0 FROM tab2 AS cor0
----
146
147
75

query I rowsort
SELECT - ( 76 ) * + col0 - + 10 FROM tab1 AS cor0
----
-238
-4874
-6090

query I rowsort
SELECT + ( 49 ) + col1 FROM tab2 cor0
----
108
66
80

query I rowsort
SELECT + 84 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9

query I rowsort
SELECT + - ( + 74 ) + col1 * - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-7470
-8355
-9483

query I rowsort
SELECT + cor0.col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col1 * + 21 + + col2 AS col2 FROM tab1 AS cor0
----
267
369
600

query I rowsort
SELECT + 3 FROM tab1, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT col2 * - col0 + - col0 AS col0 FROM tab0 cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT + - col1 + col1 - - col0 * cor0.col2 DIV + ( + col1 + col2 ) AS col2 FROM tab0 AS cor0
----
0
42
6

skipif mysql # not compatible
query I rowsort label-6965
SELECT + - col1 + col1 - - col0 * cor0.col2 / + ( + col1 + col2 ) AS col2 FROM tab0 AS cor0
----
0
42
6

query I rowsort
SELECT - col2 + - ( + col2 ) FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT + + col0 * + 73 - cor0.col0 AS col0 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT - col2 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + + col0 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ( cor0.col1 ) * + col1 + + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT - cor0.col0 * 64 - - col0 FROM tab1 AS cor0
----
-189
-4032
-5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6972
SELECT + + CAST( 1 AS SIGNED ) DIV col1 + ( ( col1 ) ) col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6972
SELECT + + CAST ( 1 AS INTEGER ) / col1 + ( ( col1 ) ) col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6973
SELECT ALL - + 82 + - col0 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-1122
-160
-722

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - + 82 + - col0 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-1122
-160
-722

query I rowsort
SELECT ALL col1 + + cor0.col2 * + ( col1 ) FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT + col1 * col0 + 60 FROM tab1 AS cor0
----
1100
138
700

query I rowsort
SELECT - 35 * + col0 * col2 - 13 * + col1 AS col0 FROM tab1 AS cor0
----
-127810
-268969
-6008

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2, tab0 AS cor1
----
3645 values hashing to ca4c79a162f92454e0544707b897521a

query I rowsort
SELECT ALL - 98 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT + col1 + - 77 * - col1 * - col1 FROM tab1 AS cor0
----
-13000
-52026
-7690

query I rowsort
SELECT - col1 * col2 * - 27 AS col0 FROM tab2 AS cor0
----
17442
22599
41418

query I rowsort
SELECT 78 + + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b04daaebb2e123b8fd5550695158f

skipif mysql # not compatible
query I rowsort
SELECT col0 + - col1 + CAST ( + col1 AS REAL ) * col1 * + ( + 45 ) FROM tab2
----
13067
156664
43221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 52 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52

query I rowsort
SELECT DISTINCT tab0.col2 - col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL + - cor0.col2 * + col2 + col1 * - col2 FROM tab1 AS cor0
----
-10464
-3819
-4320

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT + col0 + + cor0.col1 - - col0 AS col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT + col2 + 35 FROM tab0 AS cor0
----
117
36
68

query I rowsort
SELECT DISTINCT + + col0 * + col2 + + 98 AS col2 FROM tab2 AS cor0
----
2126
287
3100

query I rowsort
SELECT ALL + col2 + 11 * + col2 FROM tab0 AS cor0
----
12
396
984

query I rowsort
SELECT col1 - 15 FROM tab0 AS cor0
----
71
76
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6993
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT + CAST ( NULL AS REAL ) * col2 FROM tab0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + 92 - 69 AS col0 FROM tab1
----
23
23
23

query I rowsort
SELECT - col1 * - col2 + - col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT tab2.col1 * 77 + + col2 FROM tab2
----
1347
2414
4569

onlyif mysql # use DIV operator for integer division
query I rowsort label-6998
SELECT + + CAST( - col0 AS SIGNED ) DIV col0 + - 17 FROM tab2 cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-6998
SELECT + + CAST ( - col0 AS INTEGER ) / col0 + - 17 FROM tab2 cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - - col1 - col2 * - 82 AS col2 FROM tab0 AS cor0
----
179
2792
6815

query I rowsort
SELECT col0 * + col2 * 77 FROM tab2 AS cor0
----
14553
156156
231154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 + - cor0.col2 col1 FROM tab1 AS cor0
----
-151
-154
-193

query I rowsort
SELECT ALL col2 * - col0 + + col2 FROM tab2 cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-7003
SELECT DISTINCT - - ( col0 ) + col1 DIV + ( + col0 ) AS col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT - - ( col0 ) + col1 / + ( + col0 ) AS col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT DISTINCT - + 95 * col1 * col2 + col2 * col0 AS col1 FROM tab1 AS cor0
----
-110880
-133218
-50502

query I rowsort
SELECT ALL 43 + col0 - - 42 FROM tab2 AS cor0
----
163
164
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7006
SELECT ALL - + 78 DIV - col1 + 67 * - col2 AS col0 FROM tab2 AS cor0
----
-1741
-1807
-2542

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL - + 78 / - col1 + 67 * - col2 AS col0 FROM tab2 AS cor0
----
-1741
-1807
-2542

query I rowsort
SELECT ALL 82 FROM tab0, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT ( + 44 ) FROM tab2
----
44

query I rowsort
SELECT ALL + + 24 + col2 * - 21 FROM tab1 AS cor0
----
-1110
-1173
-1992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * - ( + tab2.col1 ) col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT ALL + - 67 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT 94 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6

query I rowsort
SELECT ALL + col1 * col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT col2 + + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-7015
SELECT DISTINCT + col2 * - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT + col2 * - col1 / + col1 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col2 - col2 * col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL col2 * + 70 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
1879
1921
2677

query I rowsort
SELECT DISTINCT - cor0.col2 - 37 AS col0 FROM tab2 AS cor0
----
-63
-64
-75

query I rowsort
SELECT DISTINCT - 73 - tab0.col1 FROM tab0, tab2, tab1 cor0
----
-159
-164
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col0 FROM tab2
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col1 FROM tab0, tab2, tab2 AS cor0
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT + col2 + col0 * col0 DIV - col1 FROM tab2
----
-329
-77
26

skipif mysql # not compatible
query I rowsort label-7023
SELECT + col2 + col0 * col0 / - col1 FROM tab2
----
-329
-77
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 72 ) col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
72

query I rowsort
SELECT ALL + 90 * + col0 + - cor0.col2 * + col2 AS col1 FROM tab0 AS cor0
----
1071
1286
3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - - 51 + col0 AS col1 FROM tab2 AS cor0
----
129
130
58

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 * col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL + ( col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7030
SELECT + CAST( NULL AS DECIMAL ) / - col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT + CAST ( NULL AS REAL ) / - col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 46 * + 28 * - col0 FROM tab0 AS cor0
----
114632
30912
45080

query I rowsort
SELECT DISTINCT - - cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7033
SELECT ALL CAST( - ( col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL CAST ( - ( col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + 44 + + ( cor0.col2 ) * cor0.col2 + - col0 FROM tab2 cor0
----
1409
642
766

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT ALL col1 + + cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL col1 + + cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT - 91 * - col1 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT DISTINCT + - 76 FROM tab0 cor0
----
-76

query I rowsort
SELECT - 54 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
24
586
986

query I rowsort
SELECT ALL col0 * ( col1 * + col1 ) + ( - 1 ) AS col2 FROM tab1
----
13519
2027
6399

query I rowsort
SELECT DISTINCT - col2 + tab0.col1 * + 57 + col0 AS col1 FROM tab0
----
4893
5194
5563

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7041
SELECT ALL col0 * col0 + col0 * col2 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL col0 * col0 + col0 * col2 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col1 ) * col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - 60 * + ( + col0 ) FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT - + cor0.col2 * + col0 + + cor0.col1 + - col2 FROM tab2 cor0
----
-185
-1995
-3023

query I rowsort
SELECT DISTINCT 95 + + 55 AS col2 FROM tab1 AS cor0
----
150

query I rowsort
SELECT + - cor0.col2 + 57 AS col1 FROM tab0 AS cor0
----
-25
24
56

query I rowsort
SELECT 42 + + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
2070
231
3044

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab0, tab2 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
26
27
38

query I rowsort
SELECT + 95 + - col2 AS col1 FROM tab1 AS cor0
----
-1
38
41

query I rowsort
SELECT - 11 + + cor0.col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + cor0.col1 + 46 FROM tab2 AS cor0
----
105
63
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7052
SELECT DISTINCT - col1 + - col0 * + ( - col2 + CAST( - col2 AS SIGNED ) ) FROM tab0
----
-27
14505
1498

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT - col1 + - col0 * + ( - col2 + CAST ( - col2 AS INTEGER ) ) FROM tab0
----
-27
14505
1498

onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT - col0 DIV + 7 FROM tab2
----
-1
-11
-11

skipif mysql # not compatible
query I rowsort label-7053
SELECT - col0 / + 7 FROM tab2
----
-1
-11
-11

query I rowsort
SELECT 56 * col2 - col1 AS col2 FROM tab1 AS cor0
----
2998
3182
5363

query I rowsort
SELECT + - 99 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-10
-64
-75

query I rowsort
SELECT 12 + col1 FROM tab2 AS cor0
----
29
43
71

query I rowsort
SELECT DISTINCT ( col0 ) * - tab0.col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - ( - 4 ) AS col1 FROM tab0
----
4

query I rowsort
SELECT col0 * + 2 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL col2 * - tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL 42 * col2 FROM tab0
----
1386
3444
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT ALL 91 * col1 FROM tab0
----
7826
8281
8827

query I rowsort
SELECT DISTINCT + 59 FROM tab0, tab0 cor0
----
59

query I rowsort
SELECT + 70 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT col2 DIV + 20 col0 FROM tab1 AS cor0
----
2
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7066
SELECT col2 / + 20 col0 FROM tab1 AS cor0
----
2
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 - - col1 col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col1 * cor0.col1 * 20 FROM tab1 AS cor0
----
13520
2000
3380

query I rowsort
SELECT ALL + + col0 * 25 FROM tab0 cor0
----
2225
600
875

query I rowsort
SELECT + col0 + col2 * col0 * col2 AS col1 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT DISTINCT - ( 86 ) AS col2 FROM tab2, tab1 AS cor0
----
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT DISTINCT - col0 DIV - 13 FROM tab1
----
0
4
6

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT - col0 / - 13 FROM tab1
----
0
4
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7073
SELECT ( - col2 ) * - col2 + CAST( 43 AS SIGNED ) * + col0 - + ( - col2 + + col0 ) * col2 AS col2 FROM tab0 AS cor0
----
1472
2418
9977

skipif mysql # not compatible
query I rowsort label-7073
SELECT ( - col2 ) * - col2 + CAST ( 43 AS INTEGER ) * + col0 - + ( - col2 + + col0 ) * col2 AS col2 FROM tab0 AS cor0
----
1472
2418
9977

query I rowsort
SELECT ( + col2 ) + col0 - 53 * col0 AS col2 FROM tab1 cor0
----
-102
-3271
-4064

query I rowsort
SELECT + - 80 FROM tab0 cor0
----
-80
-80
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7076
SELECT - CAST( NULL AS SIGNED ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 97 AS col0 FROM tab0 cor0
----
-97
-97
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7078
SELECT CAST( NULL AS SIGNED ) + col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT ALL + + cor0.col1 + col1 DIV - col0 col0 FROM tab0 AS cor0
----
83
90
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL + + cor0.col1 + col1 / - col0 col0 FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT - + 74 + 98 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 24 + cor0.col2 col2 FROM tab2 AS cor0
----
14
2
3

query I rowsort
SELECT + 37 * col0 + col2 FROM tab1 AS cor0
----
165
2425
3056

query I rowsort
SELECT col0 * col2 + - col1 AS col2 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT 91 * - 66 AS col2 FROM tab2, tab1 AS cor0
----
-6006

query I rowsort
SELECT DISTINCT - + col0 + col2 + col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT - + col2 * 83 AS col2 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT + 21 AS col1 FROM tab2
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( + 54 ) col0 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 * + col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + col0 + + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT tab1.col2 - col1 * col0 AS col0 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT tab0.col2 - col2 DIV tab0.col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7092
SELECT tab0.col2 - col2 / tab0.col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + tab1.col1 * col0 + col1 AS col1 FROM tab1
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT + col0 - col0 DIV - tab1.col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-7094
SELECT + col0 - col0 / - tab1.col1 FROM tab1
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7095
SELECT ALL + col0 + cor0.col2 DIV cor0.col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL + col0 + cor0.col2 / cor0.col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - col2 / col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL cor0.col2 * col0 + + cor0.col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - 84 + + col1 AS col2 FROM tab0
----
13
2
7

query I rowsort
SELECT + cor0.col1 * col1 + + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + 95 * col1 AS col2 FROM tab0
----
8170
8645
9215

query I rowsort
SELECT col0 * + col0 - col1 FROM tab2
----
18
6025
6224

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL NOT IN ( - cor0.col2 )
----

query I rowsort
SELECT - col1 * + col0 + + col1 * col1 + col0 * col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7104
SELECT DISTINCT - cor0.col2 DIV col0 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1041
-640
-96

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT - cor0.col2 / col0 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1041
-640
-96

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 * col2 + col2 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT DISTINCT col1 * + col2 + col2 AS col1 FROM tab0
----
2871
7544
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( tab0.col1 * + col1 )
----

query I rowsort
SELECT - col0 + + col1 * - col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT col2 * + tab0.col0 + - col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT col1 IN ( col2 / + col1 )
----
-7
-78
-79

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col1 + - tab0.col1 * col0 FROM tab0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab2.col1 + + tab2.col1 col2 FROM tab2
----
306
3540
992

query I rowsort
SELECT col2 FROM tab2 WHERE - col0 < col2 * col1
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 * - col0 * col1 + col0 - + tab0.col0 FROM tab0 WHERE tab0.col0 IN ( + col2 + col1 )
----

query I rowsort
SELECT ALL tab1.col0 + + col0 * col1 AS col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT - col2 * col1 + col2 AS col2 FROM tab2
----
-1508
-608
-810

query III rowsort
SELECT * FROM tab2 WHERE col1 IN ( col0 )
----

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + cor0.col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + + 6 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT + + 24 + + col0 * col1 FROM tab0 AS cor0
----
2088
3419
8123

query I rowsort
SELECT + + col0 * cor0.col1 * 66 FROM tab2 AS cor0
----
14322
303732
88638

query I rowsort
SELECT + col1 * + col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT + - col1 * - col2 DIV - col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7125
SELECT + - col1 * - col2 / - col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7126
SELECT ALL - col2 + col0 + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-17
-69
7

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL - col2 + col0 + col2 / - col0 AS col0 FROM tab1 AS cor0
----
-17
-69
7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL col2 * - col0 - + col2 AS col0 FROM tab0
----
-36
-7380
-825

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col1 * + col1 * - col0 + cor0.col1 / col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7130
SELECT - col0 DIV col1 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1046
-646
-78

skipif mysql # not compatible
query I rowsort label-7130
SELECT - col0 / col1 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1046
-646
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT ALL - cor0.col0 DIV + col1 + - cor0.col1 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - cor0.col0 / + col1 + - cor0.col1 FROM tab2 AS cor0
----
-21
-31
-60

query I rowsort
SELECT ALL tab1.col2 + - col0 - + col1 AS col2 FROM tab1
----
-17
25
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7133
SELECT - col1 * - col2 DIV col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7133
SELECT - col1 * - col2 / col2 FROM tab1
----
10
13
26

query I rowsort
SELECT + col2 * tab2.col1 * col1 - - col1 AS col2 FROM tab2
----
10999
25978
90565

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( - col1 * col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7136
SELECT DISTINCT col2 + col0 DIV + col2 - col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT col2 + col0 / + col2 - col2 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT tab1.col0 * - col0 * col2 AS col0 FROM tab1 WHERE NOT col1 IN ( col0 + - tab1.col0 / col2 )
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT tab1.col0 * - tab1.col1 + + col2 DIV col2 AS col0 FROM tab1
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-7138
SELECT tab1.col0 * - tab1.col1 + + col2 / col2 AS col0 FROM tab1
----
-1039
-639
-77

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col0 <= - col0
----
3
64
80

query I rowsort
SELECT col2 * col0 * - col2 AS col2 FROM tab1 WHERE ( col1 + col1 ) >= + col2 * col0
----

query I rowsort
SELECT ALL + tab1.col0 + - col0 + + col1 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col1 + - col0 + col1 AS col2 FROM tab0
----
148
159
93

query I rowsort
SELECT col0 * col0 * col1 - - tab1.col1 * col0 FROM tab1
----
312
41600
84240

query I rowsort
SELECT ALL - col0 + + col0 + + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - 99 * col0 + cor0.col2 * 95 FROM tab2 AS cor0
----
-4211
-5252
1872

onlyif mysql # use DIV operator for integer division
query I rowsort label-7146
SELECT DISTINCT - 74 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT - 74 / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + - 26 * col1 AS col1 FROM tab1 cor0
----
-260
-338
-676

query I rowsort
SELECT 55 AS col0 FROM tab2
----
55
55
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7149
SELECT 32 DIV - 51 - cor0.col0 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif mysql # not compatible
query I rowsort label-7149
SELECT 32 / - 51 - cor0.col0 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif mysql # not compatible
query I rowsort
SELECT col1 + - CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - 32 + col2 AS col0 FROM tab0 AS cor0
----
-1023
-2542
-31

query I rowsort
SELECT col1 * cor0.col2 + - col2 FROM tab2 cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT ALL col2 + col1 * - col2 DIV - col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL col2 + col1 * - col2 / - col2 FROM tab0
----
119
173
98

query I rowsort
SELECT tab0.col0 + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

query I rowsort
SELECT - col2 * - col1 * ( col0 ) + col0 + + col1 FROM tab2
----
119789
51130
5897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7156
SELECT + CAST( NULL AS SIGNED ) * cor0.col2 + col1 + - col2 / - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT + CAST ( NULL AS INTEGER ) * cor0.col2 + col1 + - col2 / - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7157
SELECT DISTINCT + col1 DIV + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT + col1 / + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL ( + 27 ) AS col1 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT col1 * - tab1.col0 * - ( tab1.col0 ) + + ( - col0 ) FROM tab1
----
231
40896
83120

query I rowsort
SELECT DISTINCT col1 * + ( col2 ) + - col0 AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0, tab2 AS cor0
----
93

query I rowsort
SELECT - col1 + 26 AS col0 FROM tab0 AS cor0
----
-60
-65
-71

query I rowsort
SELECT DISTINCT tab0.col0 + - 69 * col0 FROM tab0
----
-1632
-2380
-6052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 21 ) col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab0, tab1 cor0
----
-30

query I rowsort
SELECT ALL - col0 + 84 FROM tab0 cor0
----
-5
49
60

query I rowsort
SELECT DISTINCT - 26 - - col0 FROM tab2 AS cor0
----
-19
52
53

query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 + col0 ) * tab2.col1 * 63 col2 FROM tab2
----
-102816
-509229
-74214

query I rowsort
SELECT ALL - col0 * + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7172
SELECT - 33 DIV - cor0.col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 1fc9d366516f04208797907945465f57

skipif mysql # not compatible
query I rowsort label-7172
SELECT - 33 / - cor0.col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 1fc9d366516f04208797907945465f57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7173
SELECT + col0 + cor0.col0 + - 40 * - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
110
218
88

skipif mysql # not compatible
query I rowsort label-7173
SELECT + col0 + cor0.col0 + - 40 * - col2 / col2 AS col0 FROM tab0 AS cor0
----
110
218
88

query I rowsort
SELECT ALL col2 * - col1 + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT ALL 36 * col2 AS col1 FROM tab0 cor0
----
1188
2952
36

query I rowsort
SELECT ALL - ( - col2 + col0 ) * + ( - col1 ) * + col2 FROM tab0
----
-25542
3298
52234

query I rowsort
SELECT - cor0.col1 * + 52 - 45 * col0 FROM tab0 AS cor0
----
-5552
-6619
-8737

onlyif mysql # use DIV operator for integer division
query I rowsort label-7178
SELECT col1 * + col2 - + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-7178
SELECT col1 * + col2 - + col1 / - col1 AS col2 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT - + col2 * - col0 - + col0 * - col0 FROM tab2 AS cor0
----
238
8112
9243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col0 col2 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT col1 + - 89 * col1 AS col2 FROM tab2 cor0
----
-1496
-2728
-5192

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + col1 * ( col1 ) + - col1 * - 23 FROM tab2
----
1674
4838
680

query I rowsort
SELECT 63 * 49 + + col0 FROM tab0
----
3111
3122
3176

query I rowsort
SELECT + col2 - ( - col2 ) FROM tab2
----
52
54
76

query I rowsort
SELECT + col1 * cor0.col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + + ( ( cor0.col2 ) ) * 89 AS col1 FROM tab0 AS cor0
----
2937
7298
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - ( col2 ) + 38 * col2 col2 FROM tab2 AS cor0
----
0
297
312

query I rowsort
SELECT - 61 + - col1 FROM tab1 AS cor0
----
-71
-74
-87

query I rowsort
SELECT ALL - + col1 * cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7191
SELECT - col1 DIV 91 + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7191
SELECT - col1 / 91 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + col2 * col2 * + col0 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - cor0.col1 * col1 * + 19 FROM tab2 AS cor0
----
-18259
-5491
-66139

query I rowsort
SELECT ALL col1 * cor0.col0 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + cor0.col0 + 7 * - 12 AS col0 FROM tab2 AS cor0
----
-5
-6
-77

query I rowsort
SELECT DISTINCT col1 * col1 + col2 AS col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT DISTINCT - col2 + + 68 + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-259
-3439
-920

query I rowsort
SELECT ALL - - cor0.col1 + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - - cor0.col0 - - col2 * 91 * + col1 FROM tab2 AS cor0
----
139672
58865
76174

query I rowsort
SELECT + col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7201
SELECT ALL + - col2 DIV cor0.col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + - col2 / cor0.col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL - 74 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT DISTINCT - - col1 * 35 AS col2 FROM tab1 AS cor0
----
350
455
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7204
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) * 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) * 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 61 * + 10 + col2 FROM tab2 AS cor0
----
-4243
-47554
-48152

query I rowsort
SELECT col2 + ( col0 ) AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - + cor0.col1 * 4 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT + + col0 * - col1 + col0 AS col2 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT - col1 + - col1 * col1 * - col0 AS col2 FROM tab1 AS cor0
----
13507
2002
6390

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + CAST ( 85 AS REAL ) * col1 col1 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT DISTINCT - col0 - + col0 * - col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL 42 + col1 AS col2 FROM tab2 AS cor0
----
101
59
73

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT cor0.col0 + - 21 FROM tab2 AS cor0
----
-14
57
58

query I rowsort
SELECT DISTINCT - col1 + + 33 FROM tab2 AS cor0
----
-26
16
2

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab0, tab1 AS cor0
----
31

query I rowsort
SELECT DISTINCT col1 * - 98 FROM tab1
----
-1274
-2548
-980

query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 * 7 FROM tab1 AS cor0
----
404
409
685

query I rowsort
SELECT ALL - cor0.col1 + - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + - 68 + col2 AS col1 FROM tab1 cor0
----
-11
-14
28

query I rowsort
SELECT ALL col0 * col0 * ( - 2 ) AS col2 FROM tab1 AS cor0
----
-12800
-18
-8192

query I rowsort
SELECT - - 72 - col0 FROM tab0 AS cor0
----
-17
37
48

query I rowsort
SELECT + ( cor0.col1 ) * 22 * + 83 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6afc3b04c5454d84f0d1a5b428e1bc6e

query I rowsort
SELECT 85 + col2 * tab0.col1 FROM tab0
----
182
2923
7547

onlyif mysql # use DIV operator for integer division
query I rowsort label-7225
SELECT ALL col2 + col0 DIV 4 AS col2 FROM tab1
----
116
54
73

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL col2 + col0 / 4 AS col2 FROM tab1
----
116
54
73

query I rowsort
SELECT - col0 + - tab2.col0 + - col2 FROM tab2
----
-182
-196
-41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7227
SELECT ALL col1 * + tab2.col0 + CAST( + col2 AS SIGNED ) + + col2 FROM tab2
----
1419
271
4654

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL col1 * + tab2.col0 + CAST ( + col2 AS INTEGER ) + + col2 FROM tab2
----
1419
271
4654

query I rowsort
SELECT + + cor0.col2 + - col0 AS col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT col2 * cor0.col0 + - col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT + tab0.col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 68 AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT - col1 + col2 * + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT tab0.col1 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT DISTINCT tab0.col0 * - col2 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 24 - tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
-58
-9
23

query I rowsort
SELECT DISTINCT col0 + - ( + 38 ) FROM tab2 AS cor0
----
-31
40
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + 40 + + col0 FROM tab0
----
129
64
75

query I rowsort
SELECT col0 * - 79 - + tab1.col0 FROM tab1
----
-240
-5120
-6400

query I rowsort
SELECT ALL - 67 AS col0 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7241
SELECT - CAST( NULL AS SIGNED ) + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7241
SELECT - CAST ( NULL AS INTEGER ) + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 45 AS col0 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT ( col0 ) + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - col0 + - col1 AS col2 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - + ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 - - col0 col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + ( col1 ) + col2 * col2 * col2 FROM tab2 AS cor0
----
17635
19714
54889

query I rowsort
SELECT 55 * col0 - col1 FROM tab2 AS cor0
----
354
4231
4328

query I rowsort
SELECT DISTINCT + 5 + - col0 AS col1 FROM tab0 AS cor0
----
-19
-30
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7251
SELECT DISTINCT - ( - col2 ) * 55 DIV ( - col2 * + ( cor0.col1 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT - ( - col2 ) * 55 / ( - col2 * + ( cor0.col1 ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 1 AS col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ALL + - ( col0 ) + + col1 * + cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col0 col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL 14 * 7 FROM tab0
----
98
98
98

query I rowsort
SELECT 27 - - col2 * - col1 AS col0 FROM tab0
----
-2811
-70
-7435

query I rowsort
SELECT ALL - - 65 + cor0.col0 * col0 AS col1 FROM tab1 cor0
----
4161
6465
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7259
SELECT - - 11 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
11

skipif mysql # not compatible
query I rowsort label-7259
SELECT - - 11 / col2 AS col2 FROM tab0 AS cor0
----
0
0
11

query I rowsort
SELECT - 71 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT ALL + cor0.col0 + col0 FROM tab0 cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-7263
SELECT ALL - col0 DIV col0 col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - col0 / col0 col0 FROM tab1
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7264
SELECT - CAST( 77 * col1 + - ( - col2 ) * + col0 AS SIGNED ) FROM tab1
----
-2164
-4418
-8681

skipif mysql # not compatible
query I rowsort label-7264
SELECT - CAST ( 77 * col1 + - ( - col2 ) * + col0 AS INTEGER ) FROM tab1
----
-2164
-4418
-8681

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7265
SELECT - 85 + + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7265
SELECT - 85 + + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( 74 ) + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-115
-1954
-2928

onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT - 4 * + cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7267
SELECT - 4 * + cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT + 46 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL + 20 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT + 60 * tab1.col2 FROM tab1
----
3240
3420
5760

query I rowsort
SELECT - 16 * col0 AS col1 FROM tab1
----
-1024
-1280
-48

query I rowsort
SELECT ALL + ( + col0 ) * - col0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7273
SELECT col0 * - col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT col0 * - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 11 + - col0 FROM tab1 AS cor0
----
283
46
63

query I rowsort
SELECT + col1 + 69 AS col0 FROM tab0 AS cor0
----
155
160
166

query I rowsort
SELECT - + col2 * 0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT col0 DIV - 77 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7277
SELECT col0 / - 77 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col0 * col0 + 75 + col2 AS col0 FROM tab1 AS cor0
----
-3964
-6229
120

query I rowsort
SELECT 36 * - col0 AS col0 FROM tab0
----
-1260
-3204
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col1 FROM tab0
----
-82
-82
-82

query I rowsort
SELECT - 44 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT + col1 * - tab0.col1 * - 75 AS col2 FROM tab0
----
554700
621075
705675

query I rowsort
SELECT + col1 + + ( col1 + + col2 ) FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT - 67 + col1 AS col2 FROM tab1
----
-41
-54
-57

query I rowsort
SELECT + col1 * + ( col0 ) * col0 + + col1 * + col2 FROM tab1 AS cor0
----
1638
41530
84448

query I rowsort
SELECT ALL col1 * + ( + 50 ) * + col0 + col0 * + 76 FROM tab0
----
105024
172410
411714

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - - col2 * + 60 + + col0 + + col2 FROM tab1 AS cor0
----
3297
3541
5936

query I rowsort
SELECT ALL - col1 * ( col0 ) + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7290
SELECT ALL + col0 DIV + col1 + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + col0 / + col1 + col2 / + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 * col1 + 37 + + col0 AS col0 FROM tab0 AS cor0
----
2125
3467
8225

query I rowsort
SELECT DISTINCT 3 + 43 * + cor0.col0 * col2 AS col0 FROM tab1 cor0
----
156867
330243
6969

query I rowsort
SELECT DISTINCT + col0 - + 10 * col0 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT DISTINCT cor0.col1 + + 18 AS col2 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT - col0 * cor0.col2 * + col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT DISTINCT + + col2 + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7297
SELECT ALL - CAST( + cor0.col1 AS SIGNED ) + col2 AS col0 FROM tab1 cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL - CAST ( + cor0.col1 AS INTEGER ) + col2 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT col2 * ( col2 ) + + 46 * 46 FROM tab1 AS cor0
----
11332
5032
5365

query I rowsort
SELECT DISTINCT + col0 * - 55 * col1 FROM tab2 AS cor0
----
-11935
-253110
-73865

onlyif mysql # use DIV operator for integer division
query I rowsort label-7300
SELECT ALL CAST( + 30 AS SIGNED ) DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL CAST ( + 30 AS INTEGER ) / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-10
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7301
SELECT ALL col1 DIV CAST( - col2 AS SIGNED ) + col0 DIV - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL col1 / CAST ( - col2 AS INTEGER ) + col0 / - col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - tab2.col0 + col0 AS col2 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT - col2 * col1 - - col2 DIV - col1 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-7303
SELECT - col2 * col1 - - col2 / - col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7304
SELECT + col1 + - CAST( col2 AS SIGNED ) FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-7304
SELECT + col1 + - CAST ( col2 AS INTEGER ) FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort
SELECT col2 * + CAST ( + col1 AS REAL ) * col0 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - 94 * - col2 AS col1 FROM tab1 AS cor0
----
5076
5358
9024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - + col1 + + col0 * + 21 FROM tab0 AS cor0
----
1778
418
638

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7309
SELECT col2 * - col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT col2 * - col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 90 * cor0.col2 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7312
SELECT - + col0 * cor0.col0 + - 11 DIV col0 FROM tab0 cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-7312
SELECT - + col0 * cor0.col0 + - 11 / col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT tab0.col2 - + col1 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + col2 * tab1.col1 - col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL ( col0 ) * - col2 + - col0 * 48 + + col1 * - col2 AS col1 FROM tab2
----
-1362
-7306
-7440

query I rowsort
SELECT DISTINCT ( col2 ) + col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL - tab1.col1 + col0 + col0 * - col1 AS col2 FROM tab1
----
-101
-586
-973

query I rowsort
SELECT - col1 * col0 + - col1 AS col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL cor1.col0 * cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab1 cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4

query I rowsort
SELECT + + 99 + cor0.col1 * + col2 FROM tab1 AS cor0
----
1347
1503
669

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col1 FROM tab2, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - ( col0 ) + tab2.col1 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT 34 + col2 * - col0 FROM tab0
----
-1
-7264
-758

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7325
SELECT CAST( 87 AS SIGNED ) + - col2 AS col1 FROM tab1
----
-9
30
33

skipif mysql # not compatible
query I rowsort label-7325
SELECT CAST ( 87 AS INTEGER ) + - col2 AS col1 FROM tab1
----
-9
30
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-7326
SELECT + col2 + col1 DIV tab2.col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-7326
SELECT + col2 + col1 / tab2.col0 FROM tab2
----
26
31
38

query I rowsort
SELECT DISTINCT ( 39 ) + col1 FROM tab0
----
125
130
136

query I rowsort
SELECT DISTINCT + 89 * - col2 AS col0 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT DISTINCT - - 4 + + col1 AS col2 FROM tab1 AS cor0
----
14
17
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7330
SELECT ALL + col2 * col1 + - CAST( - 51 AS SIGNED ) FROM tab2 AS cor0
----
1585
697
888

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL + col2 * col1 + - CAST ( - 51 AS INTEGER ) FROM tab2 AS cor0
----
1585
697
888

query I rowsort
SELECT + col2 + + col1 * - col1 * 5 FROM tab2 AS cor0
----
-1407
-17379
-4778

query I rowsort
SELECT ALL - col1 + + cor0.col0 * + 37 FROM tab1 cor0
----
2358
2947
85

query I rowsort
SELECT DISTINCT + - 85 * - 57 - - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
4871
4872
4883

query I rowsort
SELECT - 59 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT DISTINCT + ( col1 ) + + col1 * + cor0.col1 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT - - ( cor0.col0 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 * + col2 + col2 * + col2 * - col0 FROM tab2 AS cor0
----
-114722
-54262
-5940

query I rowsort
SELECT DISTINCT + + 75 + - col1 AS col0 FROM tab1 AS cor0
----
49
62
65

query I rowsort
SELECT DISTINCT + col2 * col0 + - 44 + - 16 * col1 FROM tab2 AS cor0
----
-351
1040
2686

query I rowsort
SELECT DISTINCT + col2 * col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL + col2 + - ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 91 col1 FROM tab0
----
124
173
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7343
SELECT DISTINCT + + col2 DIV + col2 col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT + + col2 / + col2 col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( col2 ) col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL col2 + cor0.col2 + col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT DISTINCT + + col2 - 20 AS col1 FROM tab1 cor0
----
34
37
76

query I rowsort
SELECT ALL - + cor0.col2 * 73 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT ALL + - cor0.col0 + + 85 AS col0 FROM tab2 AS cor0
----
6
7
78

query I rowsort
SELECT DISTINCT - cor0.col1 + + 42 * + col0 - + col1 * + ( + col1 * col2 ) FROM tab0 AS cor0
----
-243146
-675395
-8036

query I rowsort
SELECT ALL + 72 * col0 + col1 FROM tab2 AS cor0
----
535
5675
5705

query I rowsort
SELECT DISTINCT + 65 + - cor0.col1 FROM tab1 AS cor0
----
39
52
55

query I rowsort
SELECT DISTINCT 13 * - col1 + - col2 FROM tab1 AS cor0
----
-187
-265
-392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col1 + - cor0.col0 col1 FROM tab2 AS cor0
----
-175
-215
-45

query I rowsort
SELECT - col0 - 62 FROM tab0 cor0
----
-151
-86
-97

query I rowsort
SELECT DISTINCT - col2 + col0 * col1 AS col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT cor0.col0 + col0 * col1 * 72 FROM tab1 AS cor0
----
46144
5619
74960

query I rowsort
SELECT ALL 18 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - - col2 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + + 19 + col2 FROM tab0 AS cor0
----
101
20
52

query I rowsort
SELECT 81 * col2 * - col2 FROM tab2 AS cor0
----
-116964
-54756
-59049

onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT ALL + 69 DIV 51 - - col0 DIV 5 AS col0 FROM tab2 AS cor0
----
16
16
2

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + 69 / 51 - - col0 / 5 AS col0 FROM tab2 AS cor0
----
16
16
2

query I rowsort
SELECT 84 * col0 * cor0.col2 FROM tab0 AS cor0
----
2940
613032
66528

query I rowsort
SELECT - ( + 35 ) * + cor0.col0 + - 48 AS col1 FROM tab0 cor0
----
-1273
-3163
-888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7364
SELECT ALL + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 20 * col1 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT DISTINCT + col0 + col0 * cor0.col2 * col1 + 69 * + col0 FROM tab2 cor0
----
125112
56564
6349

query I rowsort
SELECT DISTINCT col0 * - col0 - col0 AS col2 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT + - cor0.col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col1 * 66 * col2 FROM tab2 AS cor0
----
101244
42636
55242

query I rowsort
SELECT col2 * - cor0.col0 - + 32 * + col0 FROM tab0 AS cor0
----
-10146
-1155
-1560

query I rowsort
SELECT + + 82 * + col1 * + 17 - col1 AS col0 FROM tab1 AS cor0
----
13930
18109
36218

query I rowsort
SELECT - col2 + col2 * - ( - col0 ) FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT ALL 32 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + 16 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL 98 * + ( - col0 ) + col2 * 37 FROM tab2
----
-6336
-6682
313

query I rowsort
SELECT ALL - col2 * + 60 FROM tab1 AS cor0
----
-3240
-3420
-5760

query I rowsort
SELECT DISTINCT col1 * + ( 71 * col2 ) AS col2 FROM tab0 AS cor0
----
201498
529802
6887

onlyif mysql # use DIV operator for integer division
query I rowsort label-7378
SELECT ALL - - col2 DIV col1 AS col0 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - - col2 / col1 AS col0 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT - col1 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - col2 * + col0 * col1 AS col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - col1 + ( + 43 ) - - cor0.col0 FROM tab2 AS cor0
----
105
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT DISTINCT + cor0.col2 DIV 61 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + cor0.col2 / 61 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + col1 * - 55 AS col1 FROM tab2 AS cor0
----
-1705
-3245
-935

query I rowsort
SELECT ALL - col2 * + ( col1 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 43 + col1 AS col0 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT - 41 + col1 * + col0 AS col2 FROM tab0 cor0
----
2023
3354
8058

query I rowsort
SELECT + col0 * col0 + + ( + col0 ) * col0 FROM tab2 AS cor0
----
12168
12482
98

query I rowsort
SELECT + + col0 * col0 + + col0 * col0 + + col2 * + col2 AS col2 FROM tab0 cor0
----
2241
22566
2451

onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT DISTINCT - col0 DIV - col0 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT - col0 / - col0 AS col0 FROM tab2
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT - col0 + + col2 DIV col0 + col2 AS col1 FROM tab0
----
-34
-7
10

skipif mysql # not compatible
query I rowsort label-7390
SELECT - col0 + + col2 / col0 + col2 AS col1 FROM tab0
----
-34
-7
10

query I rowsort
SELECT ALL col1 * col0 + col0 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT col0 + - 77 * - col1 FROM tab1
----
1081
2005
834

onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT - col1 DIV + 86 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7393
SELECT - col1 / + 86 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7394
SELECT ALL - col0 * col1 + col2 * - col0 + CAST( - col2 * - col1 + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-3334
-51
-8017

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - col0 * col1 + col2 * - col0 + CAST ( - col2 * - col1 + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-3334
-51
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-7395
SELECT tab0.col2 DIV ( col0 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7395
SELECT tab0.col2 / ( col0 ) FROM tab0
----
0
0
1

query I rowsort
SELECT - ( col1 ) + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - 1 + - col1 AS col1 FROM tab0 AS cor0
----
-87
-92
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7398
SELECT + col2 - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-7398
SELECT + col2 - col0 / col1 AS col2 FROM tab2 AS cor0
----
25
27
34

query I rowsort
SELECT ( + col2 ) + - col0 * - 75 * - 30 FROM tab1 AS cor0
----
-143943
-179904
-6696

query I rowsort
SELECT 75 + + col0 FROM tab1 AS cor0
----
139
155
78

query I rowsort
SELECT - - 22 - - col0 AS col1 FROM tab1 AS cor0
----
102
25
86

query I rowsort
SELECT + + 66 * - col1 + col0 FROM tab2 AS cor0
----
-1043
-2039
-3816

query I rowsort
SELECT col1 + col2 * col1 * col2 AS col1 FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT - - 17 + 13 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT - - 16 - + cor0.col2 DIV col0 FROM tab1 AS cor0
----
-2
15
16

skipif mysql # not compatible
query I rowsort label-7405
SELECT - - 16 - + cor0.col2 / col0 FROM tab1 AS cor0
----
-2
15
16

query I rowsort
SELECT ALL - col2 * tab0.col1 - - col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT 85 + - tab0.col0 + + col1 AS col2 FROM tab0
----
147
147
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7408
SELECT - + 85 DIV cor0.col0 FROM tab2 AS cor0
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-7408
SELECT - + 85 / cor0.col0 FROM tab2 AS cor0
----
-1
-1
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-7409
SELECT - cor0.col0 DIV col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7409
SELECT - cor0.col0 / col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * - col1 FROM tab1 cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-7411
SELECT ALL - col1 * - col2 + col1 DIV col0 + col0 FROM tab1 AS cor0
----
1328
1415
634

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - col1 * - col2 + col1 / col0 + col0 FROM tab1 AS cor0
----
1328
1415
634

query I rowsort
SELECT ALL + 56 * col2 + - col2 AS col2 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT 12 + + col2 AS col2 FROM tab2 AS cor0
----
38
39
50

query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab0
----
-87

query I rowsort
SELECT - tab1.col1 * + 7 AS col1 FROM tab1
----
-182
-70
-91

query I rowsort
SELECT 91 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL + cor0.col2 + col2 * + col2 * + col2 FROM tab1 AS cor0
----
157518
185250
884832

query I rowsort
SELECT - col0 - - cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - + 16 AS col0 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT ALL + - 17 + col0 * + cor0.col0 FROM tab0 cor0
----
1208
559
7904

query I rowsort
SELECT + col2 * col0 + - col1 + + col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 74 * + 88 FROM tab2
----
6512

query I rowsort
SELECT ALL - - col0 + ( + col1 * col2 ) FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * CAST ( + col1 AS REAL ) * + col0 + - col0 * - col0 + - col2 col1 FROM tab2 cor0
----
112300
1541
365014

query I rowsort
SELECT - col2 * - 19 FROM tab2 AS cor0
----
494
513
722

query I rowsort
SELECT - - col0 * - 67 * - col1 FROM tab1 AS cor0
----
42880
5226
69680

query I rowsort
SELECT - col2 * ( + 95 ) FROM tab2 AS cor0
----
-2470
-2565
-3610

query I rowsort
SELECT DISTINCT + - col2 + 12 FROM tab0 AS cor0
----
-21
-70
11

query I rowsort
SELECT DISTINCT - + col0 + - col2 * + col2 * col2 FROM tab1 AS cor0
----
-157467
-185257
-884816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7430
SELECT + + CAST( NULL AS SIGNED ) * 55 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT + + CAST ( NULL AS INTEGER ) * 55 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 61 * - col2 * + col2 + + col1 FROM tab0 AS cor0
----
158
410255
66515

query I rowsort
SELECT cor0.col2 + ( + col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + + 64 + col1 FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT ALL col2 * ( - tab2.col0 ) AS col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7435
SELECT + 5 DIV cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7435
SELECT + 5 / cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT col1 * col1 * + col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - col0 - col0 AS col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + col1 - - col0 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT + 30 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT ALL cor0.col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7441
SELECT col0 DIV + 36 + 72 AS col2 FROM tab2 AS cor0
----
72
74
74

skipif mysql # not compatible
query I rowsort label-7441
SELECT col0 / + 36 + 72 AS col2 FROM tab2 AS cor0
----
72
74
74

query I rowsort
SELECT DISTINCT - - col1 * - 69 FROM tab1 AS cor0
----
-1794
-690
-897

onlyif mysql # use DIV operator for integer division
query I rowsort label-7443
SELECT + col2 DIV + ( + cor0.col1 ) FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7443
SELECT + col2 / + ( + cor0.col1 ) FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + col1 + 22 FROM tab2
----
39
53
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7445
SELECT col0 + - CAST( + col2 * - col2 AS SIGNED ) FROM tab2
----
1523
736
754

skipif mysql # not compatible
query I rowsort label-7445
SELECT col0 + - CAST ( + col2 * - col2 AS INTEGER ) FROM tab2
----
1523
736
754

query I rowsort
SELECT DISTINCT + col2 + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - - col2 + - 20 AS col0 FROM tab0 AS cor0
----
-19
13
62

query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 AS col0 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + - col2 * 57 + + cor0.col1 * col1 * ( ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-24997
-273000
-8266

query I rowsort
SELECT + col1 + 9 FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT - col1 + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7452
SELECT - - 92 DIV + 11 AS col2 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-7452
SELECT - - 92 / + 11 AS col2 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7453
SELECT - CAST( 10 AS SIGNED ) + col1 DIV + col0 FROM tab0 AS cor0
----
-7
-8
-9

skipif mysql # not compatible
query I rowsort label-7453
SELECT - CAST ( 10 AS INTEGER ) + col1 / + col0 FROM tab0 AS cor0
----
-7
-8
-9

query I rowsort
SELECT ALL - 46 + + 64 AS col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + col0 + - 54 AS col1 FROM tab1 AS cor0
----
-51
10
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7456
SELECT DISTINCT + col1 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT + col1 / cor0.col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col0 FROM tab2
----
51

query I rowsort
SELECT ALL + 92 * - col2 FROM tab2 AS cor0
----
-2392
-2484
-3496

query I rowsort
SELECT ALL - + 95 + - col1 * col0 FROM tab1 AS cor0
----
-1135
-173
-735

onlyif mysql # use DIV operator for integer division
query I rowsort label-7460
SELECT DISTINCT + + 32 DIV col0 AS col0 FROM tab1 AS cor0
----
0
10

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT + + 32 / col0 AS col0 FROM tab1 AS cor0
----
0
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 77 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
77

query I rowsort
SELECT ALL + ( col1 ) + + col2 * + col1 FROM tab1 cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-7464
SELECT ALL col1 * + col1 * - col1 + + cor0.col1 DIV + col0 + + CAST( col0 AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
-638117
-761669
-916066

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL col1 * + col1 * - col1 + + cor0.col1 / + col0 + + CAST ( col0 AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
-638117
-761669
-916066

onlyif mysql # use DIV operator for integer division
query I rowsort label-7465
SELECT DISTINCT - cor0.col1 DIV - col0 - col2 FROM tab2 cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT - cor0.col1 / - col0 - col2 FROM tab2 cor0
----
-23
-26
-38

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab2
----
43

query I rowsort
SELECT DISTINCT + col1 + - col0 + - 34 AS col0 FROM tab0 AS cor0
----
-32
28

query I rowsort
SELECT DISTINCT - col2 * col1 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col2 * + col2 * + ( 58 + col2 ) FROM tab2 AS cor0
----
138624
56784
61965

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7470
SELECT DISTINCT - col0 + + col0 * - CAST( 70 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1704
-2485
-6319

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT - col0 + + col0 * - CAST ( 70 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT DISTINCT + + col2 + col2 + ( col2 ) AS col0 FROM tab2 cor0
----
114
78
81

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94

query I rowsort
SELECT ALL 16 FROM tab1, tab0 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT col0 * col2 * + 68 FROM tab2
----
12852
137904
204136

query I rowsort
SELECT DISTINCT 30 * col2 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

query I rowsort
SELECT ALL + col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + - col2 - - cor0.col0 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7480
SELECT ALL + col1 DIV + 83 + + cor0.col0 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-7480
SELECT ALL + col1 / + 83 + + cor0.col0 col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + col1 * - col2 - - col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL 17 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT col0 * col1 * tab1.col0 + + tab1.col2 FROM tab1
----
288
41017
83296

query I rowsort
SELECT col2 * col1 + - 52 AS col1 FROM tab0
----
2786
45
7410

query I rowsort
SELECT + 91 + col2 * + col1 AS col1 FROM tab0
----
188
2929
7553

query I rowsort
SELECT DISTINCT - tab1.col0 + 79 FROM tab1
----
-1
15
76

query I rowsort
SELECT + col1 * + col2 + col2 * - tab2.col2 * - tab2.col0 AS col1 FROM tab2
----
114722
54262
5940

query I rowsort
SELECT 41 * - tab0.col2 + col2 AS col1 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT 97 * tab2.col0 FROM tab2
----
679
7566
7663

query I rowsort
SELECT col2 + col1 * col0 * - 77 AS col0 FROM tab2
----
-103373
-16682
-354328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 47 * col0 ) col0 FROM tab1
----
141
3008
3760

query I rowsort
SELECT DISTINCT + col0 + ( col0 ) FROM tab0
----
178
48
70

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL IN ( cor0.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col1 FROM tab0
----
-42

query I rowsort
SELECT + tab1.col2 + - tab1.col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 78 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1170
1326
492

query I rowsort
SELECT + + ( 1 ) + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - - cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-7499
SELECT + col2 + + col2 DIV + col2 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7499
SELECT + col2 + + col2 / + col2 AS col0 FROM tab0
----
2
34
83

query I rowsort
SELECT - col0 * cor0.col2 + + col1 * + 75 AS col0 FROM tab1 AS cor0
----
-2898
-6705
1788

query I rowsort
SELECT + + 4 AS col2 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - - cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - + col1 * col0 * + col1 - - 95 FROM tab0 AS cor0
----
-177409
-329220
-736914

query I rowsort
SELECT - col2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7505
SELECT - ( - cor0.col0 ) + + CAST( NULL AS SIGNED ) + - col2 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT - ( - cor0.col0 ) + + CAST ( NULL AS INTEGER ) + - col2 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 + col1 + - col0 FROM tab0 AS cor0
----
159
2900
7464

query I rowsort
SELECT ALL ( - 91 ) FROM tab0
----
-91
-91
-91

query I rowsort
SELECT - col2 + 52 FROM tab0 AS cor0
----
-30
19
51

query I rowsort
SELECT + col1 * ( 29 ) AS col1 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT + 82 + + col2 FROM tab0
----
115
164
83

query I rowsort
SELECT - 86 - - col1 AS col2 FROM tab1 AS cor0
----
-60
-73
-76

query I rowsort
SELECT DISTINCT + col1 * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT cor0.col0 * 94 FROM tab0 cor0
----
2256
3290
8366

query I rowsort
SELECT ALL tab1.col0 + - 47 FROM tab1, tab1 AS cor0
----
9 values hashing to 45a8386addc13a8059534ba7fb95e44e

query I rowsort
SELECT DISTINCT - 82 * ( - cor0.col2 ) AS col1 FROM tab2 cor0
----
2132
2214
3116

query I rowsort
SELECT ALL + 83 * cor0.col1 FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT ALL + col0 * ( 60 ) AS col0 FROM tab0
----
1440
2100
5340

query I rowsort
SELECT 75 + tab1.col0 - - col0 * 85 AS col0 FROM tab1
----
333
5579
6955

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7519
SELECT DISTINCT + ( col0 ) - + tab2.col1 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT + ( col0 ) - + tab2.col1 / + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 79 + col2 FROM tab0 AS cor0
----
112
161
80

query I rowsort
SELECT ALL 33 * col0 + col1 * col0 + + col2 AS col1 FROM tab2
----
3988
475
7202

query I rowsort
SELECT - + 96 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

query I rowsort
SELECT ALL 16 * col0 * + col1 AS col0 FROM tab2
----
21488
3472
73632

query I rowsort
SELECT cor0.col2 + cor0.col0 + 56 * col2 AS col1 FROM tab1 AS cor0
----
3081
3313
5552

query I rowsort
SELECT col0 + col2 * + ( col0 ) AS col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - col0 * ( 92 ) FROM tab2 AS cor0
----
-644
-7176
-7268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7527
SELECT + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + ( - 50 ) FROM tab2 cor0
----
-76
-77
-88

query I rowsort
SELECT - col1 * + 38 * - ( col2 ) FROM tab0 AS cor0
----
107844
283556
3686

query I rowsort
SELECT DISTINCT - col1 + col0 + + ( - col2 * + ( + ( cor0.col0 ) ) ) AS col2 FROM tab0 AS cor0
----
-7300
-854
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + cor0.col0 * - 44 col0 FROM tab2 cor0
----
-339
-3491
-3493

onlyif mysql # use DIV operator for integer division
query I rowsort label-7532
SELECT - - col2 DIV + col0 + col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7532
SELECT - - col2 / + col0 + col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7533
SELECT col1 * 52 + cor0.col0 + + col2 DIV ( 95 ) FROM tab1 AS cor0
----
1355
584
757

skipif mysql # not compatible
query I rowsort label-7533
SELECT col1 * 52 + cor0.col0 + + col2 / ( 95 ) FROM tab1 AS cor0
----
1355
584
757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7534
SELECT DISTINCT + cor0.col0 + + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT + cor0.col0 + + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * col2 - col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL col1 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - 53 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + col1 * - col0 * + 19 FROM tab2 AS cor0
----
-25517
-4123
-87438

query I rowsort
SELECT + cor0.col0 * 81 FROM tab1 AS cor0
----
243
5184
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( + col1 ) col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT col1 * - col1 + col2 AS col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT - 72 + - col0 * + ( col2 ) AS col2 FROM tab2
----
-2100
-261
-3074

onlyif mysql # use DIV operator for integer division
query I rowsort label-7544
SELECT ALL + cor0.col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + cor0.col0 / col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + + col0 * 70 AS col0 FROM tab1 AS cor0
----
210
4480
5600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7546
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + cor0.col2 ) col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * - col0 + - col1 + + col1 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + + ( + col1 ) - col1 * - col0 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT - - 34 * col1 AS col2 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT + 84 * + col0 AS col0 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT DISTINCT ( col1 ) * - col2 + 96 FROM tab1 AS cor0
----
-1152
-1308
-474

query I rowsort
SELECT col1 - + 62 FROM tab2
----
-3
-31
-45

query I rowsort
SELECT ALL + col0 + - col1 * col2 AS col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL tab2.col0 * ( + col0 ) + - col0 * - 96 FROM tab2
----
13572
13825
721

query I rowsort
SELECT ALL col1 * + 16 + 99 + + col0 AS col2 FROM tab1
----
323
387
518

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e

query I rowsort
SELECT cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
-83

query I rowsort
SELECT ALL col0 * 12 * col1 AS col0 FROM tab2 AS cor0
----
16116
2604
55224

query I rowsort
SELECT - + col2 * 14 * col0 FROM tab0 AS cor0
----
-102172
-11088
-490

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ( - 84 ) * + col1 + + col2 AS col1 FROM tab0 AS cor0
----
-7191
-7562
-8147

query I rowsort
SELECT ALL - + ( col2 ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 * col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT - ( - col0 ) - - col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + 7 * col0 AS col1 FROM tab2
----
49
546
553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7568
SELECT CAST( col2 AS SIGNED ) * col2 + 96 AS col2 FROM tab2
----
1540
772
825

skipif mysql # not compatible
query I rowsort label-7568
SELECT CAST ( col2 AS INTEGER ) * col2 + 96 AS col2 FROM tab2
----
1540
772
825

query I rowsort
SELECT - col0 * - col2 + - col2 * + cor0.col2 + + col2 FROM tab2 AS cor0
----
-513
1378
1596

query I rowsort
SELECT ( col1 * + col0 ) + - 12 FROM tab2
----
1331
205
4590

onlyif mysql # use DIV operator for integer division
query I rowsort label-7571
SELECT - 58 * col1 DIV col2 + ( col0 * col2 ) AS col2 FROM tab0 AS cor0
----
-5591
641
7234

skipif mysql # not compatible
query I rowsort label-7571
SELECT - 58 * col1 / col2 + ( col0 * col2 ) AS col2 FROM tab0 AS cor0
----
-5591
641
7234

query I rowsort
SELECT ALL + + 6 * + 40 AS col1 FROM tab2 AS cor0
----
240
240
240

query I rowsort
SELECT DISTINCT ( - col0 ) * + tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( + ( + col2 ) ) * - ( + col1 + tab2.col2 ) FROM tab2
----
1566
2090
2210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * ( col0 ) * col2 col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - col0 + - col1 * + ( - col2 ) AS col1 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT ALL + 98 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
2
98

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + 98 / + col2 AS col0 FROM tab0 AS cor0
----
1
2
98

query I rowsort
SELECT DISTINCT - col2 * - tab0.col0 * col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL ( - tab0.col2 ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + - 59 + cor0.col0 + col1 FROM tab1 cor0
----
-30
15
34

query I rowsort
SELECT - cor0.col2 * + cor0.col2 * 41 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2b20773f9434c906775af80af9b3a2d9

query I rowsort
SELECT ALL + col2 - - ( + col2 ) FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-7583
SELECT DISTINCT - col0 DIV 85 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT - col0 / 85 AS col1 FROM tab2 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7584
SELECT DISTINCT + - col0 + + CAST( col1 AS SIGNED ) * col2 * + col2 FROM tab0 AS cor0
----
611795
62
93630

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT + - col0 + + CAST ( col1 AS INTEGER ) * col2 * + col2 FROM tab0 AS cor0
----
611795
62
93630

query I rowsort
SELECT DISTINCT - col0 * 65 + 68 FROM tab1 cor0
----
-127
-4092
-5132

query I rowsort
SELECT DISTINCT - col2 + 4 AS col1 FROM tab1 AS cor0
----
-50
-53
-92

query I rowsort
SELECT - + col1 - + col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + col1 - 1 FROM tab2 AS cor0
----
16
30
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7589
SELECT DISTINCT - + col1 / ( - cor0.col0 ) + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - + col1 / ( - cor0.col0 ) + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7590
SELECT CAST( + col0 AS SIGNED ) - - col0 * + 18 FROM tab2 AS cor0
----
133
1482
1501

skipif mysql # not compatible
query I rowsort label-7590
SELECT CAST ( + col0 AS INTEGER ) - - col0 * + 18 FROM tab2 AS cor0
----
133
1482
1501

onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT + col1 + - col0 * - col2 + 50 DIV 15 AS col0 FROM tab2 AS cor0
----
2090
223
3022

skipif mysql # not compatible
query I rowsort label-7591
SELECT + col1 + - col0 * - col2 + 50 / 15 AS col0 FROM tab2 AS cor0
----
2090
223
3022

onlyif mysql # use DIV operator for integer division
query I rowsort label-7592
SELECT ALL 54 DIV col0 FROM tab1
----
0
0
18

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL 54 / col0 FROM tab1
----
0
0
18

query I rowsort
SELECT - 57 * + col0 AS col1 FROM tab1 AS cor0
----
-171
-3648
-4560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7594
SELECT - col1 + - CAST( - col1 + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-7594
SELECT - col1 + - CAST ( - col1 + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7595
SELECT ALL - + col0 * CAST( - col1 AS SIGNED ) * - col0 + - col1 FROM tab2 AS cor0
----
-106114
-1550
-359015

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL - + col0 * CAST ( - col1 AS INTEGER ) * - col0 + - col1 FROM tab2 AS cor0
----
-106114
-1550
-359015

query I rowsort
SELECT - + cor0.col1 + - 8 AS col1 FROM tab2 AS cor0
----
-25
-39
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7597
SELECT - - ( + col2 ) + col0 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7597
SELECT - - ( + col2 ) + col0 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 4 + col0 * cor0.col1 AS col0 FROM tab0 cor0
----
2068
3399
8103

query I rowsort
SELECT + 28 + - col2 * col2 * cor0.col2 FROM tab1 AS cor0
----
-157436
-185165
-884708

query I rowsort
SELECT + - col1 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT 7 * - col1 + + col2 FROM tab1
----
-128
-13
5

query I rowsort
SELECT + + cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + cor0.col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + + 65 + - 78 FROM tab2, tab1, tab1 AS cor0
----
-13

query I rowsort
SELECT DISTINCT 30 * col2 AS col0 FROM tab1 AS cor0
----
1620
1710
2880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7606
SELECT - 76 + col0 * - CAST( - 86 AS SIGNED ) col2 FROM tab2 AS cor0
----
526
6632
6718

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7606
SELECT - 76 + col0 * - CAST ( - 86 AS INTEGER ) col2 FROM tab2 AS cor0
----
526
6632
6718

onlyif mysql # use DIV operator for integer division
query I rowsort label-7607
SELECT 53 * + col2 + 80 DIV col1 AS col0 FROM tab1 AS cor0
----
2865
3029
5094

skipif mysql # not compatible
query I rowsort label-7607
SELECT 53 * + col2 + 80 / col1 AS col0 FROM tab1 AS cor0
----
2865
3029
5094

query I rowsort
SELECT - 10 - col1 FROM tab2
----
-27
-41
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - ( col1 + + col0 ) col0 FROM tab1
----
-1566
-4218
-8928

query I rowsort
SELECT ALL + 80 + + col2 * + col0 AS col2 FROM tab1 AS cor0
----
242
3728
7760

query I rowsort
SELECT ALL col2 - col0 * col1 AS col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL - ( + 51 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7614
SELECT DISTINCT - 17 DIV - col1 + col2 + 68 AS col0 FROM tab2
----
107
94
95

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT - 17 / - col1 + col2 + 68 AS col0 FROM tab2
----
107
94
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7615
SELECT + CAST( NULL AS SIGNED ) + + 45 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT + CAST ( NULL AS INTEGER ) + + 45 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + ( + col0 ) AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * ( + col2 ) + + col1 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT + 65 DIV - 46 + col1 + 21 AS col2 FROM tab2 AS cor0
----
37
51
79

skipif mysql # not compatible
query I rowsort label-7618
SELECT + 65 / - 46 + col1 + 21 AS col2 FROM tab2 AS cor0
----
37
51
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7619
SELECT + 15 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7619
SELECT + 15 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + ( - 35 ) AS col0 FROM tab0 AS cor0
----
-117
-36
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT DISTINCT col1 DIV 36 col0 FROM tab0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT col1 / 36 col0 FROM tab0
----
2

query I rowsort
SELECT col1 * 83 + - col1 FROM tab0
----
7052
7462
7954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7623
SELECT + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 45 FROM tab1
----
102
141
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7625
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7626
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 82 - - 66 FROM tab0 AS cor0
----
-6986
-7396
-7888

query I rowsort
SELECT ALL - + col0 + ( col1 ) AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL col0 - 94 FROM tab1 AS cor0
----
-14
-30
-91

query I rowsort
SELECT - + 19 * col2 FROM tab1 AS cor0
----
-1026
-1083
-1824

query I rowsort
SELECT - - ( - cor0.col0 ) + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT - col2 * + ( + cor0.col1 + col1 * + col0 ) FROM tab1 cor0
----
-101088
-37050
-5616

query I rowsort
SELECT DISTINCT - + ( - col1 ) + col2 * ( + cor0.col1 + col0 ) AS col1 FROM tab2 AS cor0
----
1057
3621
3665

query I rowsort
SELECT DISTINCT - + col1 * - col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT cor0.col1 * + col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - tab0.col0 + 33 FROM tab0
----
-2
-56
9

query I rowsort
SELECT DISTINCT - col2 * + col2 + - col2 FROM tab1 cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL + ( col1 ) * 1 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL col1 * + col2 - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col0 + - col1 * ( - 3 ) AS col1 FROM tab2 AS cor0
----
100
130
255

onlyif mysql # use DIV operator for integer division
query I rowsort label-7641
SELECT ALL - 26 DIV - cor0.col1 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - 26 / - cor0.col1 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT + + 76 + + col0 FROM tab0 AS cor0
----
100
111
165

query I rowsort
SELECT DISTINCT - 10 + cor0.col1 FROM tab0 AS cor0
----
76
81
87

query I rowsort
SELECT - tab0.col0 + - 43 - col1 FROM tab0
----
-153
-175
-223

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7645
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + 18 col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT CAST ( NULL AS REAL ) - + 18 col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + + 53 FROM tab2 AS cor0
----
53

query I rowsort
SELECT - col0 + + col2 * + ( - col0 ) AS col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT col0 + + tab0.col2 * col1 AS col2 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT + col1 DIV - ( - col2 ) + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7649
SELECT + col1 / - ( - col2 ) + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col1 * col2 + - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7651
SELECT + + col1 - + CAST( NULL AS SIGNED ) / + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT + + col1 - + CAST ( NULL AS INTEGER ) / + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 * 19 col1 FROM tab0 AS cor0
----
-140524
-157339
-178771

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7653
SELECT col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7654
SELECT col2 * col2 DIV col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7654
SELECT col2 * col2 / col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT 83 * - col2 * - tab2.col1 FROM tab2
----
127322
53618
69471

query I rowsort
SELECT ALL col0 + col0 * col2 + + col2 FROM tab2
----
2132
223
3119

query I rowsort
SELECT ALL - 68 + + col0 + col1 * - col2 * col2 FROM tab0
----
-130
-611863
-93698

query I rowsort
SELECT ALL 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + - col2 * + ( - cor0.col0 ) + + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col1 + + ( col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - cor0.col1 + + 90 * - col1 AS col2 FROM tab0 AS cor0
----
-7826
-8281
-8827

query I rowsort
SELECT ALL + - col1 * 55 FROM tab1 cor0
----
-1430
-550
-715

query I rowsort
SELECT DISTINCT - + col2 + ( + col0 ) * col1 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT col1 * - col1 * col1 FROM tab0 cor0
----
-636056
-753571
-912673

query I rowsort
SELECT col0 * 65 + 38 FROM tab0 cor0
----
1598
2313
5823

query I rowsort
SELECT ALL + col2 * + cor0.col2 - + 79 AS col1 FROM tab2 AS cor0
----
1365
597
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7668
SELECT DISTINCT col0 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT col0 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 37 * + col2 + - col0 FROM tab2
----
1327
884
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-7670
SELECT DISTINCT + + 91 DIV - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT + + 91 / - col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + 59 * col1 FROM tab1 AS cor0
----
1534
590
767

query I rowsort
SELECT + cor0.col1 * 47 * col2 FROM tab1 AS cor0
----
26790
58656
65988

query I rowsort
SELECT 88 * + cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d5f52a6a54d5bb581088e40cfe39ac99

query I rowsort
SELECT ALL + ( col1 ) * + 59 + col2 AS col2 FROM tab0 cor0
----
5107
5451
5724

query I rowsort
SELECT ALL - + ( col1 ) * ( cor0.col1 ) AS col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + 96 * col0 * col0 FROM tab0 cor0
----
117600
55296
760416

query I rowsort
SELECT 76 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT + - tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL 8 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT ALL - + ( - ( + col2 ) ) * cor0.col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - col2 + + 15 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1253
327
524

query I rowsort
SELECT DISTINCT - + ( - col1 ) * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + 83 * - 87 FROM tab2 AS cor0
----
-7221
-7221
-7221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7684
SELECT ALL CAST( - cor0.col2 AS SIGNED ) - - col1 * + col1 * ( col0 + col2 ) FROM tab1 AS cor0
----
12043
29648
38478

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL CAST ( - cor0.col2 AS INTEGER ) - - col1 * + col1 * ( col0 + col2 ) FROM tab1 AS cor0
----
12043
29648
38478

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT col1 * 35 AS col1 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT - tab1.col0 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT col2 * col2 + 55 * + col1 AS col1 FROM tab0 AS cor0
----
11729
5336
5819

query I rowsort
SELECT - + cor0.col0 * - col0 + + 75 AS col1 FROM tab0 AS cor0
----
1300
651
7996

query I rowsort
SELECT - + 76 - col0 FROM tab2 AS cor0
----
-154
-155
-83

query I rowsort
SELECT DISTINCT + - cor1.col0 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-1225
-2136
-3115
-576
-7921
-840

query I rowsort
SELECT ALL + ( + tab0.col1 ) AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + tab0.col1 - col0 FROM tab0
----
2
62
62

query I rowsort
SELECT - col1 + + 75 FROM tab2
----
16
44
58

query I rowsort
SELECT ALL + cor0.col2 + + 92 AS col1 FROM tab0 AS cor0
----
125
174
93

query I rowsort
SELECT DISTINCT + + col0 + col0 * + col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col1 + + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - col2 + + 98 FROM tab0
----
16
65
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7699
SELECT + col1 * - CAST( 62 AS SIGNED ) + col0 FROM tab1
----
-1609
-556
-726

skipif mysql # not compatible
query I rowsort label-7699
SELECT + col1 * - CAST ( 62 AS INTEGER ) + col0 FROM tab1
----
-1609
-556
-726

query I rowsort
SELECT ALL tab1.col2 + - 59 FROM tab1
----
-2
-5
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7701
SELECT DISTINCT + col1 * col1 + col1 * col2 DIV col0 + + col1 * col1 col1 FROM tab2 AS cor0
----
2041
586
6981

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT + col1 * col1 + col1 * col2 / col0 + + col1 * col1 col1 FROM tab2 AS cor0
----
2041
586
6981

query I rowsort
SELECT DISTINCT + col0 * + col2 + 90 + + col1 * cor0.col0 FROM tab1 AS cor0
----
330
4378
8810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7703
SELECT ALL - col2 * CAST( col0 AS SIGNED ) - + col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - col2 * CAST ( col0 AS INTEGER ) - + col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + col1 + ( 12 ) AS col0 FROM tab2 AS cor0
----
29
43
71

query I rowsort
SELECT col1 - - col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT cor0.col2 + + cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 967dc9bd7c6cd98d217c6cb5a61f5e63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( col2 ) ) * col2 + + col1 col2 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT - + cor0.col0 + + col0 DIV - col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-7708
SELECT - + cor0.col0 + + col0 / - col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT DISTINCT col0 * ( col2 + + col0 * col1 ) AS col1 FROM tab0 AS cor0
----
118860
50328
728109

onlyif mysql # use DIV operator for integer division
query I rowsort label-7710
SELECT col2 + 74 DIV + col1 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7710
SELECT col2 + 74 / + col1 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - 36 * - col0 + cor0.col0 + col2 AS col2 FROM tab2 cor0
----
286
2912
2961

query I rowsort
SELECT DISTINCT - col0 + col2 * 19 FROM tab1
----
1019
1023
1744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7713
SELECT - col2 * - CAST( - col1 AS SIGNED ) + + col2 AS col2 FROM tab2
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-7713
SELECT - col2 * - CAST ( - col1 AS INTEGER ) + + col2 AS col2 FROM tab2
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col2 + 96 col2 FROM tab1 AS cor0
----
-1152
-1308
-474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + + 33 * col1 * + col1 col0 FROM tab2 cor0
----
111392
30752
9248

query I rowsort
SELECT ( + col0 ) * + col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL - 12 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT + cor0.col0 * + ( + col1 ) * + col2 + - col2 FROM tab1 AS cor0
----
36423
4158
99744

query I rowsort
SELECT ALL - col0 + 59 AS col0 FROM tab2 AS cor0
----
-19
-20
52

query I rowsort
SELECT col0 * col0 + col0 * cor0.col1 * col2 + - cor0.col0 AS col0 FROM tab2 cor0
----
125658
57196
5901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - ( - col0 ) col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7722
SELECT - col2 + 97 * 24 DIV col1 AS col0 FROM tab2 AS cor0
----
13
48
98

skipif mysql # not compatible
query I rowsort label-7722
SELECT - col2 + 97 * 24 / col1 AS col0 FROM tab2 AS cor0
----
13
48
98

query I rowsort
SELECT ALL - col1 * + cor0.col1 + 80 AS col2 FROM tab2 AS cor0
----
-209
-3401
-881

query I rowsort
SELECT - col1 * cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT tab1.col1 + - ( + 31 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 62546acdb78daa375c532aeee92b5983

query I rowsort
SELECT ALL - col2 * - tab1.col1 - ( tab1.col0 ) AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL 91 - tab1.col2 * + 89 AS col1 FROM tab1
----
-4715
-4982
-8453

query I rowsort
SELECT - 77 + col0 - 12 * col2 FROM tab1
----
-1149
-697
-722

query I rowsort
SELECT ALL col2 - - col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 * - col2 * col1 FROM tab1
----
-16144
-36501
-5636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT - - cor0.col2 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT + col1 + - cor0.col2 * - 74 AS col1 FROM tab1 AS cor0
----
4022
4228
7117

onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT DISTINCT - col0 * col0 DIV col1 + + col0 * + col0 FROM tab0
----
1213
570
7834

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT - col0 * col0 / col1 + + col0 * + col0 FROM tab0
----
1213
570
7834

query I rowsort
SELECT ALL + + cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + 91 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT col2 * tab0.col0 + - col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + + 88 * col0 + 80 FROM tab1 AS cor0
----
344
5712
7120

query I rowsort
SELECT - col2 * - col0 + 12 AS col1 FROM tab0 AS cor0
----
47
7310
804

query I rowsort
SELECT ALL col2 * tab0.col1 * - col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT tab1.col1 * - ( 13 + col0 ) * col2 FROM tab1
----
-116064
-22464
-43890

query I rowsort
SELECT - 72 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 5c2c2ca7fa0b39f4356738191775bccf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 + cor0.col0 col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL col2 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 55 + col2 AS col2 FROM tab0 cor0
----
137
56
88

query I rowsort
SELECT - - 8 + col1 FROM tab0 AS cor0
----
105
94
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7748
SELECT + ( col2 ) * col0 + - col1 - - 96 DIV col0 FROM tab0 AS cor0
----
-60
710
7208

skipif mysql # not compatible
query I rowsort label-7748
SELECT + ( col2 ) * col0 + - col1 - - 96 / col0 FROM tab0 AS cor0
----
-60
710
7208

query I rowsort
SELECT ALL + - col1 * - 86 * + col1 FROM tab0 AS cor0
----
636056
712166
809174

query I rowsort
SELECT ALL - 76 AS col0 FROM tab1 cor0
----
-76
-76
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7751
SELECT + - CAST( + col1 AS SIGNED ) * - cor0.col2 * col2 + col2 FROM tab0 AS cor0
----
611966
93687
98

skipif mysql # not compatible
query I rowsort label-7751
SELECT + - CAST ( + col1 AS INTEGER ) * - cor0.col2 * col2 + col2 FROM tab0 AS cor0
----
611966
93687
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7752
SELECT DISTINCT + - CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col2 col1 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + tab1.col0 + + 50 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ce94d2f006e626cb4160dce7673dac79

query I rowsort
SELECT col0 + + 97 * col2 * col1 AS col1 FROM tab0
----
275310
723903
9444

query I rowsort
SELECT + - 42 FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - 74 FROM tab2, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col1 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT - col2 + - col0 * + ( + 61 ) AS col2 FROM tab1 AS cor0
----
-237
-3961
-4976

query I rowsort
SELECT - ( col2 ) * col2 - col2 * col2 * - col2 FROM tab2 cor0
----
16900
18954
53428

query I rowsort
SELECT cor0.col0 * col1 + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + 11 * - col0 FROM tab0 AS cor0
----
-264
-385
-979

query I rowsort
SELECT ALL - 73 + + col1 FROM tab0
----
13
18
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7765
SELECT DISTINCT col1 DIV + col0 + - col2 * 29 AS col0 FROM tab1
----
-1558
-1653
-2784

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT col1 / + col0 + - col2 * 29 AS col0 FROM tab1
----
-1558
-1653
-2784

query I rowsort
SELECT - col1 * + ( + col0 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col0 * col0 + - col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT - col0 * cor0.col0 + col2 * col2 FROM tab1 AS cor0
----
-847
2816
2907

query I rowsort
SELECT - + col2 * ( 23 ) FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT DISTINCT + + cor0.col2 * col1 + - col1 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT ALL - + col0 + 50 FROM tab2 AS cor0
----
-28
-29
43

query I rowsort
SELECT - + col1 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7773
SELECT + col1 + CAST( - 10 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-514
-560
-947

skipif mysql # not compatible
query I rowsort label-7773
SELECT + col1 + CAST ( - 10 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-514
-560
-947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7774
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 + 80 * - tab1.col2 FROM tab1
----
-4317
-4496
-7600

query I rowsort
SELECT ALL + col1 + - col0 * - col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - - cor0.col1 * 22 * col0 + col0 * + col0 FROM tab1 AS cor0
----
1725
18176
29280

query I rowsort
SELECT + col2 * + cor0.col1 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-2356
-494
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-7779
SELECT - col0 DIV tab0.col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7779
SELECT - col0 / tab0.col0 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - ( col0 ) * - tab0.col0 * col1 AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT col0 - + col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 44 + - col2 col0 FROM tab1 AS cor0
----
2759
3424
78

query I rowsort
SELECT + + col1 + + cor0.col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 29 * + col0 col2 FROM tab0 AS cor0
----
1016
2663
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7785
SELECT DISTINCT + + col1 DIV 64 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT + + col1 / 64 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + cor0.col0 - + 83 FROM tab0, tab1 AS cor0
----
9 values hashing to 8fbf8f7e463b6dcda4ebd947677aac3b

query I rowsort
SELECT DISTINCT + 16 * col1 * ( 42 ) FROM tab0 AS cor0
----
57792
61152
65184

query III rowsort
SELECT * FROM tab0 WHERE col1 + - col2 * - col1 <= NULL
----

query I rowsort
SELECT col1 * + col2 + - tab2.col0 AS col1 FROM tab2
----
1456
567
830

query I rowsort
SELECT ALL col2 * + col2 + col2 AS col0 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1 WHERE NOT col2 * - col2 < + col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7793
SELECT col0 + - tab0.col0 DIV tab0.col0 col0 FROM tab0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7793
SELECT col0 + - tab0.col0 / tab0.col0 col0 FROM tab0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * col1 col0 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT ALL col1 * - col2 + col1 AS col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT 38 * - col0 AS col0 FROM tab0
----
-1330
-3382
-912

query I rowsort
SELECT - + 93 * col0 + + 5 FROM tab0 AS cor0
----
-2227
-3250
-8272

query I rowsort
SELECT 29 + col1 AS col2 FROM tab2
----
46
60
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 + col1 col0 FROM tab0
----
133
143
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 - col0 col1 FROM tab2
----
-13
-14
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-7801
SELECT DISTINCT tab1.col0 DIV 62 FROM tab1, tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT tab1.col0 / 62 FROM tab1, tab1 cor0
----
0
1

query I rowsort
SELECT ALL + - cor0.col1 + col0 * + col1 AS col0 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT - 85 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT + 77 AS col2 FROM tab1
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7805
SELECT DISTINCT + ( - col0 + col2 ) DIV col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + ( - col0 + col2 ) / col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - 80 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7807
SELECT CAST( + 47 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1128
1645
4183

skipif mysql # not compatible
query I rowsort label-7807
SELECT CAST ( + 47 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT - cor1.col2 + + 14 FROM tab0, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to e062b2161153172d056e8f71e38c5d25

query I rowsort
SELECT DISTINCT - 64 * + col0 + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
-2054
-259
-2964

query I rowsort
SELECT DISTINCT - + ( + cor0.col0 ) + 55 + col1 FROM tab0 AS cor0
----
117
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7811
SELECT DISTINCT col2 DIV col1 + 39 AS col2 FROM tab2 AS cor0
----
39
41

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT col2 / col1 + 39 AS col2 FROM tab2 AS cor0
----
39
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 25 * - col0 col2 FROM tab2 AS cor0
----
-175
-1950
-1975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 42 * + col1 FROM tab2 AS cor0
----
1302
2478
714

query I rowsort
SELECT DISTINCT + 46 * - col0 AS col0 FROM tab1 cor0
----
-138
-2944
-3680

query I rowsort
SELECT - 53 AS col0 FROM tab1
----
-53
-53
-53

query I rowsort
SELECT ALL col0 * + col0 + 36 FROM tab1 AS cor0
----
4132
45
6436

query I rowsort
SELECT DISTINCT - ( - col2 ) + - 88 * col2 AS col2 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT ALL ( tab2.col2 ) AS col1 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + cor0.col2 col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + + col2 * + cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + + col1 * col0 + + col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-7823
SELECT - col0 DIV col0 - - col1 col0 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7823
SELECT - col0 / col0 - - col1 col0 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - cor0.col2 col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - col1 + + col2 * - col0 + col0 * col2 AS col1 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * + col1 + col1 * col2 col1 FROM tab0
----
3492
671580
70950

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + col2 * col2 + + col1 * tab2.col2 AS col2 FROM tab2
----
1566
2090
2210

query I rowsort
SELECT + col0 * col1 + + col0 * - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * col0 + col0 + tab0.col2 FROM tab0
----
2121
3431
8270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 + - col0 col0 FROM tab1
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-7832
SELECT + col1 + - col1 DIV + col1 + col1 FROM tab0
----
171
181
193

skipif mysql # not compatible
query I rowsort label-7832
SELECT + col1 + - col1 / + col1 + col1 FROM tab0
----
171
181
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - col1 + + col1 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT tab1.col1 * + col0 * - col1 FROM tab1
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 col2 FROM tab2
----
1456
567
830

query I rowsort
SELECT ALL + 18 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT col0 * - ( + col2 * col2 ) - tab0.col0 * tab0.col0 AS col1 FROM tab0
----
-1260
-26712
-606357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # use DIV operator for integer division
query I rowsort label-7840
SELECT + tab2.col1 + + 50 DIV col0 AS col0 FROM tab2
----
17
38
59

skipif mysql # not compatible
query I rowsort label-7840
SELECT + tab2.col1 + + 50 / col0 AS col0 FROM tab2
----
17
38
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + col2 col2 FROM tab0
----
107
156
75

query I rowsort
SELECT - ( - col2 + col0 * - col0 ) AS col2 FROM tab2
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 + col0 * col0 ) col0 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT - 57 * - col2 * tab2.col1 AS col0 FROM tab2
----
36822
47709
87438

query I rowsort
SELECT ( col2 + tab2.col1 * - col0 ) FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT - 6 + col0 FROM tab1
----
-3
58
74

query I rowsort
SELECT ALL + - 1 * + col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ( col0 ) + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 12 * - col0 AS col2 FROM tab2 cor0
----
-84
-936
-948

query I rowsort
SELECT DISTINCT ( - col2 ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + 54 - - col0 FROM tab2 AS cor0
----
132
133
61

query I rowsort
SELECT ALL - 53 + + col2 FROM tab1 cor0
----
1
4
43

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - + ( - col2 ) * col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col2 col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + col0 + + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + col0 - - col2 * + col0 AS col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL col2 FROM tab2 WHERE col2 * + col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col0 FROM tab0 WHERE NOT - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + col2 col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + col2 + - col0 * + cor0.col0 AS col1 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col0 + + col1 * + col2 * - col1 FROM tab0
----
-244092
-679131
-9444

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + + col1 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT col2 + col1 * tab0.col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + col0 + - tab2.col0 * col0 * col2 AS col2 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab2 WHERE col1 >= col0
----
14

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - tab2.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL + col1 + + col0 * col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT - tab1.col1 * + col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - tab0.col0 * tab0.col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - tab2.col2 + + col0 * col1 AS col1 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col0 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col2 col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT ALL cor0.col1 * col0 + + col0 * - cor0.col0 * col2 AS col1 FROM tab1 cor0
----
-232832
-408
-613360

query I rowsort
SELECT + col2 + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + col0 + col0 * cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
6188
6358
83

query I rowsort
SELECT + + cor0.col2 + + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT col2 * - col0 - - col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL col2 + - tab1.col1 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL + col0 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL - col1 * + col0 - + col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * - cor0.col1 col1 FROM tab2 AS cor0
----
-272
-3422
-930

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + col2 ) = + col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT + tab1.col2 * + col1 / - col0 + + col2 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col2 + col1 AND NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7890
SELECT ALL CAST( - col2 AS SIGNED ) * col1 * ( - col0 ) + col1 - tab1.col0 AS col0 FROM tab1
----
36426
4235
99773

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL CAST ( - col2 AS INTEGER ) * col1 * ( - col0 ) + col1 - tab1.col0 AS col0 FROM tab1
----
36426
4235
99773

query I rowsort
SELECT DISTINCT + col0 + + col2 - col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7892
SELECT 48 DIV 51 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7892
SELECT 48 / 51 FROM tab0
----
0
0
0

query I rowsort
SELECT ( col1 ) + + col0 * + col0 + - ( col0 ) * col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - col1 - - col0 * col0 FROM tab0
----
1128
490
7830

query I rowsort
SELECT 4 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1347
221
4606

query I rowsort
SELECT DISTINCT - + 51 * + cor0.col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT col1 * cor0.col0 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + 44 * col2 + + col2 * col1 FROM tab0 AS cor0
----
11070
141
4290

query I rowsort
SELECT - ( - col1 ) * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT DISTINCT col2 DIV ( col2 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT col2 / ( col2 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - ( 55 ) FROM tab1
----
-55

query I rowsort
SELECT - 5 * - col0 FROM tab1
----
15
320
400

query I rowsort
SELECT col0 * col2 - col1 * 81 AS col2 FROM tab0 AS cor0
----
-6174
-73
-7822

query I rowsort
SELECT DISTINCT + - ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - - 88 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
616
6864
6952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7906
SELECT - ( col1 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT - ( col1 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 70 + cor0.col0 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT ALL + - col2 * - col0 + + 39 AS col0 FROM tab2 AS cor0
----
2067
228
3041

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col0 - + 66 FROM tab1 AS cor0
----
-2
-63
14

query I rowsort
SELECT ALL - + cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - col1 * 95 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT ALL + - cor0.col0 + - col0 * - col0 FROM tab1 AS cor0
----
4032
6
6320

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT DISTINCT + - 66 + col0 FROM tab2 cor0
----
-59
12
13

query I rowsort
SELECT + + 63 AS col2 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT ALL col2 * 44 + col0 FROM tab1 AS cor0
----
2379
2572
4304

query I rowsort
SELECT ALL - ( cor0.col2 ) - - col0 * col1 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - + col1 + - ( - col2 * 76 ) + col2 FROM tab0 AS cor0
----
-20
2455
6223

onlyif mysql # use DIV operator for integer division
query I rowsort label-7921
SELECT ALL cor0.col0 + - col1 DIV - col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL cor0.col0 + - col1 / - col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + ( - 84 ) FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT ALL + col1 * 63 AS col1 FROM tab2 AS cor0
----
1071
1953
3717

onlyif mysql # use DIV operator for integer division
query I rowsort label-7924
SELECT DISTINCT - + col1 DIV ( cor0.col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT - + col1 / ( cor0.col1 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + tab0.col0 - 83 * 74 FROM tab0
----
-6053
-6107
-6118

query I rowsort
SELECT + col2 + 27 * + 28 FROM tab1
----
810
813
852

query I rowsort
SELECT ALL tab0.col0 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7928
SELECT ALL - col1 DIV col1 + col1 * col1 FROM tab1 AS cor0
----
168
675
99

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL - col1 / col1 + col1 * col1 FROM tab1 AS cor0
----
168
675
99

query I rowsort
SELECT - 38 * 75 * - col0 AS col1 FROM tab1 cor0
----
182400
228000
8550

query I rowsort
SELECT DISTINCT cor0.col1 - col2 AS col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT - col1 - - col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT - ( + col0 + col0 ) AS col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT ALL 76 - col1 FROM tab0 AS cor0
----
-10
-15
-21

query I rowsort
SELECT col2 * col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL - ( ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT 52 + - col1 FROM tab1
----
26
39
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-7938
SELECT DISTINCT 55 * col2 * + ( + col0 ) + - col1 DIV - tab1.col0 AS col0 FROM tab1
----
200640
422400
8918

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT 55 * col2 * + ( + col0 ) + - col1 / - tab1.col0 AS col0 FROM tab1
----
200640
422400
8918

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0, tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7940
SELECT - col2 * + 57 + col2 DIV col1 AS col2 FROM tab1
----
-3076
-3244
-5465

skipif mysql # not compatible
query I rowsort label-7940
SELECT - col2 * + 57 + col2 / col1 AS col2 FROM tab1
----
-3076
-3244
-5465

query I rowsort
SELECT + + col0 * + 9 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
56
624
632

query I rowsort
SELECT col1 - + 12 FROM tab2
----
19
47
5

query I rowsort
SELECT 24 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT + + cor0.col0 * 84 + + col2 FROM tab1 AS cor0
----
306
5433
6816

query I rowsort
SELECT ALL - cor0.col2 + - col2 * + 12 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT + col2 * 30 FROM tab2 AS cor0
----
1140
780
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7947
SELECT DISTINCT cor0.col2 DIV - col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT cor0.col2 / - col0 FROM tab2 AS cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - 6 * ( col0 ) col1 FROM tab1 AS cor0
----
-2934
-3633
-9696

query I rowsort
SELECT DISTINCT 67 * col1 AS col1 FROM tab2 cor0
----
1139
2077
3953

query I rowsort
SELECT 47 + + col2 * col1 * - 16 AS col1 FROM tab0
----
-119345
-1505
-45361

query I rowsort
SELECT ALL 8 + - cor0.col2 FROM tab0 AS cor0
----
-25
-74
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7952
SELECT + + 71 DIV col2 col1 FROM tab0 AS cor0
----
0
2
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7952
SELECT + + 71 / col2 col1 FROM tab0 AS cor0
----
0
2
71

query I rowsort
SELECT ALL 77 + col2 FROM tab0 AS cor0
----
110
159
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7954
SELECT DISTINCT col2 * col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT col2 * col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * - col1 col2 FROM tab0 cor0
----
-5418
-5733
-6111

query I rowsort
SELECT + col2 * + ( + col0 ) AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - 96 FROM tab2, tab2 cor0
----
-96

query I rowsort
SELECT col1 * 47 + col2 FROM tab2 cor0
----
1484
2799
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7959
SELECT DISTINCT col1 DIV + ( col0 ) + cor0.col0 * - 98 * col2 AS col0 FROM tab0 AS cor0
----
-3428
-715203
-77613

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT col1 / + ( col0 ) + cor0.col0 * - 98 * col2 AS col0 FROM tab0 AS cor0
----
-3428
-715203
-77613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + 98 col0 FROM tab2 AS cor0
----
115
129
157

query I rowsort
SELECT + 59 + col0 AS col0 FROM tab1 AS cor0
----
123
139
62

query I rowsort
SELECT ALL - 36 + ( cor0.col0 ) - col0 AS col1 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT col1 + 60 * + col1 FROM tab2 AS cor0
----
1037
1891
3599

onlyif mysql # use DIV operator for integer division
query I rowsort label-7964
SELECT col1 + - ( 81 ) * tab1.col1 DIV + col2 AS col1 FROM tab1
----
-13
-4
3

skipif mysql # not compatible
query I rowsort label-7964
SELECT col1 + - ( 81 ) * tab1.col1 / + col2 AS col1 FROM tab1
----
-13
-4
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7965
SELECT DISTINCT - ( - col2 ) DIV tab0.col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - ( - col2 ) / tab0.col0 FROM tab0
----
0
1

query I rowsort
SELECT 68 + col0 * - col1 AS col1 FROM tab0
----
-1996
-3327
-8031

query I rowsort
SELECT ( ( col0 ) ) + - ( col1 ) AS col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT col2 + col1 * ( cor0.col1 ) * col1 FROM tab0 AS cor0
----
636089
753653
912674

query I rowsort
SELECT 73 * col2 + col2 FROM tab0 AS cor0
----
2442
6068
74

query I rowsort
SELECT DISTINCT ( + 41 ) AS col1 FROM tab2
----
41

query I rowsort
SELECT col2 * + ( tab2.col2 ) AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL + 99 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT + col2 * + col2 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7974
SELECT CAST( ( col1 ) AS SIGNED ) * + ( + col1 ) col2 FROM tab2
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7974
SELECT CAST ( ( col1 ) AS INTEGER ) * + ( + col1 ) col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT + tab1.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + cor1.col2 AS REAL ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL + 38 AS col0 FROM tab2
----
38
38
38

query I rowsort
SELECT - + 5 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT + col0 * col2 * col1 + + col1 FROM tab0 cor0
----
3492
664209
68198

query I rowsort
SELECT ALL + col1 + - col1 * + 94 AS col2 FROM tab0
----
-7998
-8463
-9021

query I rowsort
SELECT ALL col1 + - col2 + ( + col1 ) FROM tab1
----
-2
-37
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7982
SELECT col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * 74 FROM tab0 AS cor0
----
-1743
-2589
-6504

query I rowsort
SELECT ALL - col0 * + 6 AS col1 FROM tab1 cor0
----
-18
-384
-480

query I rowsort
SELECT - 1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 5 col1 FROM tab2
----
130
135
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT ALL + col0 DIV - 63 + col1 * ( + col0 + col2 ) AS col1 FROM tab1 AS cor0
----
1209
1482
2287

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL + col0 / - 63 + col1 * ( + col0 + col2 ) AS col1 FROM tab1 AS cor0
----
1209
1482
2287

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * + col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7989
SELECT + col0 DIV col0 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7989
SELECT + col0 / col0 - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT + 76 + - 92 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # use DIV operator for integer division
query I rowsort label-7991
SELECT + ( + col0 ) DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7991
SELECT + ( + col0 ) / col2 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 + - 33 * col0 - + col1 FROM tab0 AS cor0
----
-1155
-2937
-792

query I rowsort
SELECT 13 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
194
249
341

query I rowsort
SELECT DISTINCT ( col1 ) * - ( + col1 ) AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL + 56 + 77 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e854e0c31c68686b9c70090e35ddb97a

query I rowsort
SELECT ALL + + col0 + 5 AS col1 FROM tab0 cor0
----
29
40
94

query I rowsort
SELECT - 75 + col1 AS col0 FROM tab1
----
-49
-62
-65

query I rowsort
SELECT - col1 * + ( + col2 ) - col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT - col2 * ( 47 ) + col0 AS col1 FROM tab0 AS cor0
----
-12
-1527
-3765

query I rowsort
SELECT col1 * + ( 42 ) + col1 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT - col2 * + col1 * 81 + col2 AS col0 FROM tab0 AS cor0
----
-229845
-604340
-7856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 76 col0 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT ALL + cor0.col0 + + 94 FROM tab0 AS cor0
----
118
129
183

query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 63 + - 88 + col2 FROM tab0
----
-24
57
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col0 ) col2 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8007
SELECT - 13 + + 99 DIV col1 AS col2 FROM tab2 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-8007
SELECT - 13 + + 99 / col1 AS col2 FROM tab2 AS cor0
----
-10
-12
-8

query I rowsort
SELECT - - 97 + + col1 * - col0 FROM tab1 cor0
----
-543
-943
19

query I rowsort
SELECT 47 * col2 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT - 2 + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2836
7460
95

query I rowsort
SELECT + 28 + + cor1.col2 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 30d41f89cb00a9026e9f4f309cf0eadb

query I rowsort
SELECT + 73 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1152
-503
-7848

query I rowsort
SELECT DISTINCT + 50 * col0 FROM tab2 AS cor0
----
350
3900
3950

query I rowsort
SELECT DISTINCT + - col0 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT - col0 * col0 + - cor0.col2 FROM tab2 cor0
----
-6110
-6279
-76

query I rowsort
SELECT - cor0.col0 * - col2 + - col1 * - 37 FROM tab0 AS cor0
----
10665
3624
3974

onlyif mysql # use DIV operator for integer division
query I rowsort label-8017
SELECT DISTINCT - col1 + col0 DIV - cor0.col0 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT - col1 + col0 / - cor0.col0 FROM tab2 AS cor0
----
-18
-32
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8018
SELECT ALL + + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + + col2 / col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col1 * col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT - 70 + col2 * - col1 * - col1 AS col2 FROM tab0 AS cor0
----
243998
678972
9339

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL col0 * + col2 + + ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
14080
171
7744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8023
SELECT ALL ( + cor0.col2 ) * CAST( NULL AS SIGNED ) / - 25 + - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL ( + cor0.col2 ) * CAST ( NULL AS INTEGER ) / - 25 + - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8025
SELECT DISTINCT col0 - - col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT col0 - - col0 / - col2 AS col2 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT ALL - 76 * - 15 FROM tab2
----
1140
1140
1140

query I rowsort
SELECT ALL - 18 + col1 AS col2 FROM tab2 cor0
----
-1
13
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-8028
SELECT DISTINCT - col2 DIV + col1 + col1 * 70 FROM tab1 AS cor0
----
1818
695
903

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT - col2 / + col1 + col1 * 70 FROM tab1 AS cor0
----
1818
695
903

query I rowsort
SELECT ALL - col0 * col1 - + col0 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8030
SELECT ALL - col1 - + cor0.col2 DIV 32 AS col2 FROM tab2 AS cor0
----
-18
-31
-59

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - col1 - + cor0.col2 / 32 AS col2 FROM tab2 AS cor0
----
-18
-31
-59

query I rowsort
SELECT - 51 * - col1 AS col1 FROM tab2 AS cor0
----
1581
3009
867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8032
SELECT ALL col2 * - col2 * CAST( - col2 AS SIGNED ) + + col1 FROM tab2 cor0
----
17635
19714
54889

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL col2 * - col2 * CAST ( - col2 AS INTEGER ) + + col1 FROM tab2 cor0
----
17635
19714
54889

query I rowsort
SELECT ALL - 94 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT ALL col0 * + 64 FROM tab0 cor0
----
1536
2240
5696

query I rowsort
SELECT - + col0 + + 11 * col0 AS col2 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT DISTINCT - + col1 * 69 FROM tab2 AS cor0
----
-1173
-2139
-4071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8037
SELECT DISTINCT - - CAST( 14 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - - CAST ( 14 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8038
SELECT + cor0.col1 * + CAST( NULL AS SIGNED ) * - tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8038
SELECT + cor0.col1 * + CAST ( NULL AS INTEGER ) * - tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + ( col2 ) * col1 * - ( col1 ) + - col2 + + 48 * col1 FROM tab2 cor0
----
-10204
-24486
-87700

query I rowsort
SELECT - + 14 * col0 + col2 * - col0 FROM tab2 AS cor0
----
-287
-3120
-4108

query I rowsort
SELECT col1 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8042
SELECT ALL - CAST( - col2 AS SIGNED ) * col2 + + 87 FROM tab2 AS cor0
----
1531
763
816

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL - CAST ( - col2 AS INTEGER ) * col2 + + 87 FROM tab2 AS cor0
----
1531
763
816

query I rowsort
SELECT DISTINCT + + 48 * col1 + + col2 FROM tab2 AS cor0
----
1515
2858
854

onlyif mysql # use DIV operator for integer division
query I rowsort label-8044
SELECT col1 DIV col0 - col2 AS col2 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-8044
SELECT col1 / col0 - col2 AS col2 FROM tab2 AS cor0
----
-23
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8045
SELECT + col0 DIV + tab1.col1 AS col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-8045
SELECT + col0 / + tab1.col1 AS col1 FROM tab1
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 * - col0 col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL ( - 4 ) * + col1 + - col2 AS col1 FROM tab2
----
-106
-151
-262

onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT col2 * col1 + + col2 DIV 66 col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8048
SELECT col2 * col1 + + col2 / 66 col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8049
SELECT ALL + col0 DIV + ( + cor0.col0 ) + + col1 * - col2 + col1 * + cor0.col0 * + col0 AS col1 FROM tab1 cor0
----
-1169
40391
81953

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + col0 / + ( + cor0.col0 ) + + col1 * - col2 + col1 * + cor0.col0 * + col0 AS col1 FROM tab1 cor0
----
-1169
40391
81953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + col0 col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col0 * + col1 * - col0 AS col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT col1 + + col0 + - col1 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8053
SELECT - col2 * + col2 + + col2 * col2 DIV ( col0 ) FROM tab2 AS cor0
----
-1426
-625
-668

skipif mysql # not compatible
query I rowsort label-8053
SELECT - col2 * + col2 + + col2 * col2 / ( col0 ) FROM tab2 AS cor0
----
-1426
-625
-668

query I rowsort
SELECT DISTINCT + col1 + 51 * col2 AS col2 FROM tab2 cor0
----
1385
1408
1955

query I rowsort
SELECT - col0 + col1 * col2 + col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
14835
159
5652

query I rowsort
SELECT ALL ( ( - col0 ) ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8057
SELECT ALL + col0 DIV 49 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL + col0 / 49 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ( col1 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * cor0.col2 + - col1 col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL 83 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL col0 * + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + + ( col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - 52 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT - 25 * col2 AS col0 FROM tab1 cor0
----
-1350
-1425
-2400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8066
SELECT DISTINCT - ( col2 ) DIV + col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT - ( col2 ) / + col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ALL - 15 + + col1 FROM tab0 AS cor0
----
71
76
82

query I rowsort
SELECT DISTINCT col0 * - col0 + + 13 * + 22 AS col0 FROM tab0 AS cor0
----
-290
-7635
-939

onlyif mysql # use DIV operator for integer division
query I rowsort label-8069
SELECT + - col0 DIV col1 + + col0 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-8069
SELECT + - col0 / col1 + + col0 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT + + ( + col2 ) + - ( + 40 ) AS col2 FROM tab1 AS cor0
----
14
17
56

query I rowsort
SELECT DISTINCT - ( col1 ) + - 11 FROM tab2 AS cor0
----
-28
-42
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-8072
SELECT DISTINCT + ( col1 ) + col0 DIV + col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT + ( col1 ) + col0 / + col0 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8073
SELECT ALL + 21 + + col1 DIV 69 FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + 21 + + col1 / 69 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT DISTINCT - - col2 + col0 DIV + ( 79 ) AS col0 FROM tab2 AS cor0
----
26
27
39

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT - - col2 + col0 / + ( 79 ) AS col0 FROM tab2 AS cor0
----
26
27
39

query I rowsort
SELECT ALL - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col2 + col0 + col0 FROM tab0 AS cor0
----
15
69
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8077
SELECT DISTINCT - cor0.col1 * CAST( - 54 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
4644
4914
5238

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT - cor0.col1 * CAST ( - 54 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT ALL col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8079
SELECT - - col1 DIV + col1 + - 61 * col0 + 30 * - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-207148
-2164
-34133

skipif mysql # not compatible
query I rowsort label-8079
SELECT - - col1 / + col1 + - 61 * col0 + 30 * - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-207148
-2164
-34133

onlyif mysql # use DIV operator for integer division
query I rowsort label-8080
SELECT + col2 + + ( 76 ) * col2 * ( + 3 ) + + col0 DIV - 40 AS col1 FROM tab0 AS cor0
----
18776
229
7557

skipif mysql # not compatible
query I rowsort label-8080
SELECT + col2 + + ( 76 ) * col2 * ( + 3 ) + + col0 / - 40 AS col1 FROM tab0 AS cor0
----
18776
229
7557

onlyif mysql # use DIV operator for integer division
query I rowsort label-8081
SELECT ( col2 + ( + 95 ) ) DIV col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8081
SELECT ( col2 + ( + 95 ) ) / col1 FROM tab0
----
0
1
1

query I rowsort
SELECT - col0 + 41 AS col0 FROM tab0 AS cor0
----
-48
17
6

query I rowsort
SELECT ALL + ( 43 ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT + 83 + col2 AS col2 FROM tab0
----
116
165
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8085
SELECT + ( + col0 + + 64 ) DIV col1 FROM tab1
----
11
12
2

skipif mysql # not compatible
query I rowsort label-8085
SELECT + ( + col0 + + 64 ) / col1 FROM tab1
----
11
12
2

query I rowsort
SELECT col2 * 5 FROM tab2
----
130
135
190

query I rowsort
SELECT DISTINCT 4 + - col0 FROM tab2 AS cor0
----
-3
-74
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-8088
SELECT cor0.col2 DIV col2 + + col1 + ( - ( col1 ) ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8088
SELECT cor0.col2 / col2 + + col1 + ( - ( col1 ) ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 12 AS col1 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT 41 * - 24 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 0d6cff3c3e698e9c6180513e97e00896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT ( 86 ) AS col1 FROM tab1
----
86
86
86

query I rowsort
SELECT + ( col1 ) + + col0 * 5 * + col0 FROM tab2
----
276
30479
31222

query I rowsort
SELECT - ( col2 + col0 ) AS col1 FROM tab2
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 * + col2 + + col1 + 67 col1 FROM tab2 cor0
----
-1252
-1333
-1930

query I rowsort
SELECT DISTINCT + + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - 43 AS col1 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT cor0.col0 DIV - 59 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8098
SELECT cor0.col0 / - 59 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT DISTINCT - + 24 + col2 DIV + 94 AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT - + 24 + col2 / + 94 AS col0 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT ALL + - 85 * col0 AS col0 FROM tab0 AS cor0
----
-2040
-2975
-7565

query I rowsort
SELECT col1 + col0 * + tab2.col2 * tab2.col1 AS col2 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT col0 * col2 - - col0 * - col0 AS col0 FROM tab1
----
-448
1280
153

query I rowsort
SELECT - 31 AS col1 FROM tab2
----
-31
-31
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8104
SELECT - ( - col1 ) + - CAST( - ( + col2 ) AS SIGNED ) * ( - col2 ) FROM tab0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort label-8104
SELECT - ( - col1 ) + - CAST ( - ( + col2 ) AS INTEGER ) * ( - col2 ) FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT 8 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8106
SELECT - col1 * - CAST( col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8106
SELECT - col1 * - CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * 54 + col2 * col2 AS col2 FROM tab2 cor0
----
-608
-728
-729

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab1, tab2, tab0 cor0
----
72

query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 * + col2 FROM tab2
----
1026
3562
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-8111
SELECT - tab1.col2 + - tab1.col0 DIV + col0 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-8111
SELECT - tab1.col2 + - tab1.col0 / + col0 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT DISTINCT + col0 * - col0 + col2 AS col0 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT ALL - col1 * col1 + col0 * tab2.col2 AS col0 FROM tab2
----
-1453
-772
2713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col1 FROM tab0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + col2 col1 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL - col1 * col1 + col0 - + col1 FROM tab2
----
-227
-3462
-985

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 - + col1 NOT IN ( col2 / + col0 )
----

query I rowsort
SELECT DISTINCT + col0 + col0 + - col2 FROM tab1
----
-48
64
71

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL IN ( col0 * col1 )
----

query I rowsort
SELECT DISTINCT col1 * + col1 + - col1 - - col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT tab2.col2 + - col0 - + col1 FROM tab2
----
-11
-111
-58

query I rowsort
SELECT + tab2.col2 * col0 + - col1 AS col1 FROM tab2
----
158
1969
2985

query III rowsort
SELECT * FROM tab2 WHERE col1 * col0 * - col0 NOT BETWEEN ( NULL ) AND col0 + col1 * + col1
----

query I rowsort
SELECT + col1 FROM tab2 WHERE col2 - col1 * col1 IN ( + col0 )
----

query I rowsort
SELECT - col0 * col1 + col2 * col1 FROM tab1
----
-70
1326
208

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( tab2.col0 * + col1 * + col2 - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col0 / + tab0.col0 )
----

query I rowsort
SELECT DISTINCT col2 * + col0 + col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT col0 + - col0 - + col2 AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT NULL IN ( - tab0.col0 + - tab0.col2 )
----

query I rowsort
SELECT ALL col1 * + col1 + + tab0.col0 * col0 FROM tab0
----
10634
16202
7972

query I rowsort
SELECT ALL + col1 - tab0.col0 AS col0 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8133
SELECT DISTINCT - tab1.col2 + + col1 DIV + col2 col2 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT - tab1.col2 + + col1 / + col2 col2 FROM tab1
----
-54
-57
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col0 <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8135
SELECT ALL tab0.col0 * col2 + col2 DIV col2 AS col2 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL tab0.col0 * col2 + col2 / col2 AS col2 FROM tab0
----
36
7299
793

query I rowsort
SELECT + col2 + col2 * + tab1.col1 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * + col0 + - col1 col2 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT 69 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL - cor0.col0 * - tab1.col2 * + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 47c8b893ca22ca1b2680ff65a66dd3e2

query I rowsort
SELECT DISTINCT col0 * - 62 + col0 AS col1 FROM tab2
----
-427
-4758
-4819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8141
SELECT + CAST( + col1 AS SIGNED ) * - col1 + 14 AS col1 FROM tab1 AS cor0
----
-155
-662
-86

skipif mysql # not compatible
query I rowsort label-8141
SELECT + CAST ( + col1 AS INTEGER ) * - col1 + 14 AS col1 FROM tab1 AS cor0
----
-155
-662
-86

query I rowsort
SELECT ALL ( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT + col0 + - ( col2 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-8143
SELECT + col0 + - ( col2 ) / + col2 AS col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT 84 * + 82 + - col1 AS col1 FROM tab1
----
6862
6875
6878

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 AS col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col1 * + ( - tab0.col2 ) + ( - col2 ) AS col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT ALL 27 * - cor0.col1 - cor0.col0 FROM tab2 AS cor0
----
-1671
-538
-844

query I rowsort
SELECT ALL - + col1 + col0 * + col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + col1 - col1 * col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8150
SELECT ALL - ( cor0.col2 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - ( cor0.col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col2 FROM tab1 cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort
SELECT - col1 + + col1 * CAST ( 38 AS REAL ) FROM tab2
----
1147
2183
629

query I rowsort
SELECT ALL + col2 * cor0.col1 - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - col2 + + cor0.col2 * ( 34 * + col1 + - col2 ) FROM tab1 AS cor0
----
16074
33120
44766

query I rowsort
SELECT - 6 + col1 FROM tab2 AS cor0
----
11
25
53

query I rowsort
SELECT 6 + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-163
-670
-94

query I rowsort
SELECT DISTINCT ( - col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - + 9 * - cor0.col0 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT ALL col1 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8160
SELECT + col0 + + CAST( + ( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-8160
SELECT + col0 + + CAST ( + ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col1 * 47 AS col2 FROM tab0 AS cor0
----
4042
4277
4559

query I rowsort
SELECT ALL + col1 + + col0 * col2 + + col1 FROM tab1 cor0
----
214
3668
7706

query I rowsort
SELECT DISTINCT + col2 + - 47 AS col0 FROM tab1 AS cor0
----
10
49
7

query I rowsort
SELECT ALL - col0 * ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + - cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL + col0 * - col0 + + col1 * col0 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT ALL col0 + - 59 AS col0 FROM tab1 cor0
----
-56
21
5

query I rowsort
SELECT DISTINCT - col1 + ( col2 * col0 ) + - col0 * + col1 FROM tab0 AS cor0
----
-1358
-3457
-892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + col1 col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - col1 + 37 FROM tab1 AS cor0
----
11
24
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8171
SELECT ALL col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + 97 FROM tab0 AS cor0
----
-6627
-992
96

query I rowsort
SELECT ALL - col0 * + cor0.col1 + 0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ( + col2 ) - - col2 * - ( col2 ) FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 + col0 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT col1 * - col0 - col1 * - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 59 + + col0 FROM tab0 AS cor0
----
-24
-35
30

query I rowsort
SELECT - cor0.col0 * - col2 + cor0.col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ( cor0.col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col0 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col0 * + col2 + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + col2 * + col2 * - col2 + col0 * + col1 * col1 FROM tab2 cor0
----
-12956
-32041
253942

query I rowsort
SELECT col0 * col1 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL col0 + col0 * col0 AS col1 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL - 58 + col2 FROM tab2
----
-20
-31
-32

query I rowsort
SELECT ALL col2 * + col1 + + tab2.col1 AS col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-8187
SELECT DISTINCT - 91 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT - 91 / + col1 AS col2 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL - - ( col2 ) + col1 * col0 AS col1 FROM tab1 AS cor0
----
1136
132
697

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917

query I rowsort
SELECT ALL + cor0.col0 + + col0 * + col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + col2 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8192
SELECT - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 23 + - col1 * - col2 * + col1 + - col2 * - col0 FROM tab1 AS cor0
----
23927
36689
9371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8194
SELECT DISTINCT CAST( - 17 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT CAST ( - 17 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT - 89 + + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a15863b6d1aedf6652308795194ce2c1

query I rowsort
SELECT - ( col2 ) + - col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col0 * - 40 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT + col2 * - ( col2 ) * + cor0.col1 + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8199
SELECT ALL - - CAST( NULL AS SIGNED ) * 73 + + col0 * col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - - CAST ( NULL AS INTEGER ) * 73 + + col0 * col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + col0 FROM tab0 WHERE ( tab0.col1 ) <= ( - col2 )
----

query I rowsort
SELECT cor0.col0 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + col0 + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8203
SELECT ALL - col1 DIV - col0 AS col2 FROM tab2 cor0 WHERE NULL IN ( col0 ) OR NOT col2 > ( col0 - col2 )
----
0
0

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL - col1 / - col0 AS col2 FROM tab2 cor0 WHERE NULL IN ( col0 ) OR NOT col2 > ( col0 - col2 )
----
0
0

query I rowsort
SELECT col0 + + col0 * + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT + cor0.col2 + col0 AS col0 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8206
SELECT col2 * + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8206
SELECT col2 * + col1 / col1 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE col2 NOT IN ( tab1.col0 * col2 ) AND NOT NULL IN ( col0 + - col0 * + tab1.col2 + col1 )
----

query I rowsort
SELECT - col1 + col2 * - col0 AS col0 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT + cor0.col2 * + col0 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND ( NULL ) OR NOT ( NULL ) NOT IN ( + col1 + col0 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL col0 * col1 * + col2 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - - col0 * + col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + - col2 + ( ( + col1 ) ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + 86 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
86

query I rowsort
SELECT DISTINCT + col0 + 27 + cor0.col1 * + col1 FROM tab2 AS cor0
----
3586
395
995

query I rowsort
SELECT + cor0.col0 + 38 AS col0 FROM tab2 AS cor0
----
116
117
45

query I rowsort
SELECT ALL + col2 * 2 - + col0 * col2 AS col1 FROM tab1 cor0
----
-3534
-54
-7488

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8218
SELECT + col1 * CAST( 75 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
6364
6734
7178

skipif mysql # not compatible
query I rowsort label-8218
SELECT + col1 * CAST ( 75 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT ALL - col0 + ( - ( col2 ) ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT col1 + + 39 FROM tab0 AS cor0
----
125
130
136

query I rowsort
SELECT - col1 * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - col1 * - 19 * - col0 FROM tab1 AS cor0
----
-12160
-1482
-19760

query I rowsort
SELECT DISTINCT 37 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT - 37 * - 15 + + col0 FROM tab0 AS cor0
----
579
590
644

query I rowsort
SELECT ALL - col2 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8226
SELECT ALL - + col2 DIV 5 FROM tab0 AS cor0
----
-16
-6
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - + col2 / 5 FROM tab0 AS cor0
----
-16
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8227
SELECT DISTINCT + 54 + - ( + col0 ) DIV + 69 FROM tab1 AS cor0
----
53
54

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + 54 + - ( + col0 ) / + 69 FROM tab1 AS cor0
----
53
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-8228
SELECT ALL + - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + - col2 / col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 58 * cor0.col0 + col0 * - cor0.col0 FROM tab0 AS cor0
----
-2759
805
816

query I rowsort
SELECT DISTINCT - col2 * col1 * - col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + + col2 + + cor0.col2 * + col2 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT ALL col1 * tab0.col0 + ( col0 + tab0.col1 ) FROM tab0
----
2174
3527
8279

query I rowsort
SELECT - col2 * - col2 * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-22630
-24565
-39943

onlyif mysql # use DIV operator for integer division
query I rowsort label-8234
SELECT DISTINCT + cor0.col2 + + col2 DIV - col1 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + cor0.col2 + + col2 / - col1 FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col1 + - col0 * + col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - ( + col0 ) + + 53 * - col0 AS col1 FROM tab2 AS cor0
----
-378
-4212
-4266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col0 FROM tab1, tab0 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 43 AS REAL ) FROM tab1
----
-43
-43
-43

query I rowsort
SELECT ALL col2 * col1 + - ( - 5 ) * - col2 * + 80 FROM tab2 AS cor0
----
-14554
-8866
-9963

query I rowsort
SELECT ALL + ( col2 * + col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT - col2 + col2 * - 62 FROM tab2 AS cor0
----
-1638
-1701
-2394

query I rowsort
SELECT - col1 * + col1 + + col0 AS col1 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8245
SELECT DISTINCT - tab2.col2 * cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - tab2.col2 * cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT - 31 * col1 + - tab1.col1 - col2 FROM tab1
----
-377
-512
-886

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + tab1.col2 - + col0 * + CAST ( 65 AS REAL ) FROM tab1
----
-141
-4103
-5104

onlyif mysql # use DIV operator for integer division
query I rowsort label-8248
SELECT - col1 * - col1 DIV 1 + + col1 - - col2 FROM tab2
----
1019
344
3566

skipif mysql # not compatible
query I rowsort label-8248
SELECT - col1 * - col1 / 1 + + col1 - - col2 FROM tab2
----
1019
344
3566

query I rowsort
SELECT ALL ( + 95 ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8250
SELECT + col1 + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-8250
SELECT + col1 + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col2 - - 20 FROM tab2 AS cor0
----
-18
-6
-7

query I rowsort
SELECT col1 * 27 - col2 AS col2 FROM tab1 cor0
----
213
255
648

query I rowsort
SELECT ALL - - col0 + ( 80 ) FROM tab2 AS cor0
----
158
159
87

query I rowsort
SELECT DISTINCT + col0 + - ( - cor0.col1 ) - + col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ALL 98 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT - tab1.col1 + + 2 FROM tab1, tab2 AS cor0
----
9 values hashing to e3a332d381698889daa9e48046d75c28

query I rowsort
SELECT ALL - 61 * + col2 * tab1.col1 FROM tab1
----
-34770
-76128
-85644

query I rowsort
SELECT ALL - tab1.col1 + tab1.col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8260
SELECT - - col0 DIV - ( col1 * col1 ) - 5 AS col2 FROM tab2 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-8260
SELECT - - col0 / - ( col1 * col1 ) - 5 AS col2 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - - col2 + ( + ( col2 ) ) AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - col0 * + ( 6 ) + cor0.col1 - col1 * 63 FROM tab2 AS cor0
----
-1528
-1964
-4126

query I rowsort
SELECT ALL + cor0.col1 * col0 + - col2 * + col2 FROM tab2 cor0
----
-101
-512
3926

query I rowsort
SELECT DISTINCT col2 * 25 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-10
-5248
33

query I rowsort
SELECT ALL + col1 + - col1 * col1 - col1 * 76 AS col1 FROM tab1 AS cor0
----
-1144
-2626
-850

query I rowsort
SELECT DISTINCT col2 * - ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + + col0 + col0 * - col0 AS col1 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT - + cor0.col1 * - col1 - col0 * cor0.col1 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT ALL 41 + - col0 AS col2 FROM tab0 AS cor0
----
-48
17
6

query I rowsort
SELECT ALL + + 40 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT + - col0 + col1 * col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ALL - + 42 * col0 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT + ( cor0.col2 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8274
SELECT ALL - CAST( col1 AS SIGNED ) + col2 * 95 AS col2 FROM tab0 AS cor0
----
-2
3049
7699

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - CAST ( col1 AS INTEGER ) + col2 * 95 AS col2 FROM tab0 AS cor0
----
-2
3049
7699

query I rowsort
SELECT DISTINCT + col2 * - 50 AS col1 FROM tab0 AS cor0
----
-1650
-4100
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * + col2 + - col0 col2 FROM tab2 AS cor0
----
1019
1365
910

query I rowsort
SELECT ALL - cor0.col2 + + ( - col2 ) * + col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT col2 + col2 * + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + - col2 * + col0 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-8280
SELECT ALL + 80 DIV - 53 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL + 80 / - 53 AS col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( 35 ) FROM tab1 AS cor0
----
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-8282
SELECT - col1 DIV 90 AS col0 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT - col1 / 90 AS col0 FROM tab0 cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 36 col0 FROM tab0 cor0
----
122
127
133

query I rowsort
SELECT + col0 * - col1 * 50 - col1 AS col0 FROM tab1 AS cor0
----
-32010
-3926
-52013

query I rowsort
SELECT - tab0.col2 * tab0.col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 72 * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1bad8c8491d79cb604cc0ab815936781

query I rowsort
SELECT - 90 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2, tab2 AS cor1
----
243 values hashing to f04b5d496485a3d2a324b5702f6ac4c2

query I rowsort
SELECT + col1 + 74 FROM tab1 cor0
----
100
84
87

query I rowsort
SELECT - 44 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT + col1 * + 65 * - ( col1 ) + - col1 FROM tab0
----
-480826
-538356
-611682

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8291
SELECT + col0 / CAST( NULL AS SIGNED ) + col2 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT + col0 / CAST ( NULL AS INTEGER ) + col2 * + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + 32 AS col2 FROM tab2
----
224
2496
2528

query I rowsort
SELECT DISTINCT ( tab0.col2 ) AS col1 FROM tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + 26 * cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 142b4109b12e92a68a1fa1f880f7a7e8

query I rowsort
SELECT DISTINCT col0 * - col1 - + col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

query I rowsort
SELECT + 62 * 4 * tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f99da5d207ab481a35fc79fbef1eb573

query I rowsort
SELECT DISTINCT + ( 62 ) * + col0 FROM tab0
----
1488
2170
5518

query I rowsort
SELECT + 52 * - 7 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 997a180b4f1759b453707dbd7ea45734

query I rowsort
SELECT 87 * col0 * - ( col2 * - col2 ) FROM tab1
----
18090432
64143360
761076

query I rowsort
SELECT + - cor0.col0 + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 44 + - col0 * + cor0.col0 FROM tab1 AS cor0
----
-4140
-53
-6444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8303
SELECT - - cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT - - cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8304
SELECT col2 DIV - 99 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8304
SELECT col2 / - 99 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + cor0.col1 * - col0 + + cor0.col0 + + col1 FROM tab0 AS cor0
----
-1954
-3263
-7919

query I rowsort
SELECT - col1 * col0 * - ( - col0 * + tab0.col1 ) AS col0 FROM tab0
----
-11526025
-4260096
-65593801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * - col2 + 29 - + col2 col2 FROM tab2 AS cor0
----
2551
2648
3715

query I rowsort
SELECT + col0 + - col2 - - cor0.col0 * + col2 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT + 90 FROM tab2 cor0
----
90
90
90

query I rowsort
SELECT - - 92 * + col2 AS col2 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT DISTINCT + 45 - + col2 AS col2 FROM tab1
----
-12
-51
-9

query I rowsort
SELECT DISTINCT - col0 * col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT 20 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 - + ( col0 ) FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT - - 86 + + col1 * col1 * - col2 AS col0 FROM tab0 cor0
----
-243982
-678956
-9323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + col2 col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + ( col0 ) FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT tab1.col1 + col0 * + 89 FROM tab1
----
293
5706
7133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8319
SELECT + col0 * col0 + - CAST( + 68 AS SIGNED ) * + col0 * 38 AS col1 FROM tab2
----
-18039
-195468
-197895

skipif mysql # not compatible
query I rowsort label-8319
SELECT + col0 * col0 + - CAST ( + 68 AS INTEGER ) * + col0 * 38 AS col1 FROM tab2
----
-18039
-195468
-197895

query I rowsort
SELECT - tab0.col1 + tab0.col1 + + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 + cor0.col0 * ( col2 ) - + col1 FROM tab2 AS cor0
----
185
1995
3023

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8322
SELECT DISTINCT + col2 * cor0.col1 * + CAST( - col2 + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-45198
-49096
-79768

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT + col2 * cor0.col1 * + CAST ( - col2 + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-45198
-49096
-79768

query I rowsort
SELECT - col0 * col1 + - 98 FROM tab2 cor0
----
-1441
-315
-4700

query I rowsort
SELECT col1 * - cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL 5 * - col2 + - ( - col0 ) - col0 FROM tab0 AS cor0
----
-165
-410
-5

query I rowsort
SELECT - cor0.col1 - - 53 FROM tab0, tab2 AS cor0
----
9 values hashing to affa9430a531ebb6bf1d6415021cdc30

query I rowsort
SELECT col2 * tab1.col2 - - 86 * col1 FROM tab1
----
10334
4109
5152

query I rowsort
SELECT - 71 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT col1 * + col1 - - col2 AS col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT col2 + 58 * 76 FROM tab2
----
4434
4435
4446

query I rowsort
SELECT ALL - - col0 * - 51 AS col1 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT cor0.col0 * + ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8333
SELECT - col2 DIV 82 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT - col2 / 82 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * - 94 AS col0 FROM tab2 cor0
----
-658
-7332
-7426

query I rowsort
SELECT ALL - col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + ( col1 ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col0 + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT - - ( col2 ) * col2 DIV + ( + 29 + col1 ) FROM tab0 AS cor0
----
0
56
9

skipif mysql # not compatible
query I rowsort label-8339
SELECT - - ( col2 ) * col2 / + ( + 29 + col1 ) FROM tab0 AS cor0
----
0
56
9

query I rowsort
SELECT DISTINCT 34 * col0 FROM tab2 AS cor0
----
238
2652
2686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8341
SELECT CAST( NULL AS SIGNED ) * col0 / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT CAST ( NULL AS INTEGER ) * col0 / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8342
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8343
SELECT DISTINCT - tab0.col1 * CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT - tab0.col1 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8344
SELECT col0 - col1 DIV - 56 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8344
SELECT col0 - col1 / - 56 AS col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8345
SELECT col0 DIV 17 + col1 * col2 * + col2 FROM tab2
----
22599
24552
39888

skipif mysql # not compatible
query I rowsort label-8345
SELECT col0 / 17 + col1 * col2 * + col2 FROM tab2
----
22599
24552
39888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8346
SELECT - ( col1 ) + + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT - ( col1 ) + + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8347
SELECT ALL col1 * col0 DIV + col1 col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL col1 * col0 / + col1 col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 48 col2 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT ALL - 80 + + 37 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT + - tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT + cor0.col0 * + 57 AS col0 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT col2 + col2 * - ( col0 + col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-1621920
-166158
-393072

query I rowsort
SELECT - tab1.col2 + 34 * - col0 * - col1 FROM tab1
----
21703
2598
35264

query I rowsort
SELECT - col2 * col2 + - col2 AS col1 FROM tab2
----
-1482
-702
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-8355
SELECT - cor0.col1 - - col1 DIV cor0.col0 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-8355
SELECT - cor0.col1 - - col1 / cor0.col0 FROM tab1 AS cor0
----
-10
-13
-18

query I rowsort
SELECT col2 - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * + col2 + 61 col0 FROM tab0 AS cor0
----
1018
2439
90

query I rowsort
SELECT - - col1 * + col2 AS col2 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab0, tab2 cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT + ( col2 + + col2 * ( - col1 ) ) FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT col0 + 15 AS col2 FROM tab2 AS cor0
----
22
93
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-8362
SELECT DISTINCT + col2 DIV col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT + col2 / col2 FROM tab1 cor0
----
1

query I rowsort
SELECT + + col1 * + 36 + col1 * col2 AS col1 FROM tab0 AS cor0
----
10738
3589
5934

query I rowsort
SELECT cor0.col1 * 2 + - 51 AS col2 FROM tab1 AS cor0
----
-25
-31
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8365
SELECT DISTINCT col0 * col0 * + col1 + - col0 DIV - 17 AS col2 FROM tab0 AS cor0
----
118827
49537
720816

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT col0 * col0 * + col1 + - col0 / - 17 AS col2 FROM tab0 AS cor0
----
118827
49537
720816

query I rowsort
SELECT col1 + - 75 AS col0 FROM tab0 AS cor0
----
11
16
22

query I rowsort
SELECT DISTINCT - cor0.col2 * 48 + + 43 FROM tab2 AS cor0
----
-1205
-1253
-1781

query I rowsort
SELECT + + col2 * - col1 + 59 AS col1 FROM tab1 cor0
----
-1189
-1345
-511

onlyif mysql # use DIV operator for integer division
query I rowsort label-8369
SELECT ALL - + col1 DIV - col1 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - + col1 / - col1 AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL + cor0.col1 - + ( cor0.col2 * col2 ) FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + cor0.col1 * - col2 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + col1 * + ( 40 ) + + cor0.col0 AS col0 FROM tab0 AS cor0
----
3464
3729
3915

query I rowsort
SELECT ALL + ( + col0 ) + + 47 * 62 AS col1 FROM tab0
----
2938
2949
3003

query I rowsort
SELECT + col1 * col1 - - 50 FROM tab2
----
1011
339
3531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * - col0 + col0 col0 FROM tab0
----
-1440
-2100
-5340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8377
SELECT ALL cor0.col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 + 60 AS col0 FROM tab0 AS cor0
----
146
151
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + col1 col2 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL - col1 * + 73 + - col0 AS col1 FROM tab0 AS cor0
----
-6302
-6732
-7116

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT col0 * col0 - - col1 * cor0.col0 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT ALL col1 + + ( - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - + 20 FROM tab0, tab1, tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + 99 * 76 FROM tab0, tab2 cor0, tab1 AS cor1
----
7524

query I rowsort
SELECT cor0.col1 + ( + 87 ) * col2 FROM tab2 AS cor0
----
2321
2380
3323

query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab0, tab2 AS cor0
----
4

query I rowsort
SELECT - col1 * + 32 * col1 AS col2 FROM tab2 cor0
----
-111392
-30752
-9248

query I rowsort
SELECT - col1 * col2 * cor0.col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8390
SELECT + CAST( col2 AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-8390
SELECT + CAST ( col2 AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8391
SELECT - CAST( + 3 AS SIGNED ) FROM tab2 cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8391
SELECT - CAST ( + 3 AS INTEGER ) FROM tab2 cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col2 * 92 * col1 AS col0 FROM tab0
----
261096
686504
8924

query I rowsort
SELECT DISTINCT col0 + + 44 * + col2 FROM tab1 AS cor0
----
2379
2572
4304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 41 col1 FROM tab1 AS cor0
----
15
28
31

query I rowsort
SELECT - ( ( + col1 ) ) + - col1 * col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT - col2 + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8398
SELECT CAST( NULL AS SIGNED ) + 33 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT CAST ( NULL AS INTEGER ) + 33 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + 84 * col2 FROM tab1 AS cor0
----
4536
4788
8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 37 + - col1 col0 FROM tab1 AS cor0
----
11
24
27

query I rowsort
SELECT 6 FROM tab2, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

query I rowsort
SELECT ALL - ( - col1 ) * + col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL ( col0 ) * col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col0 + col1 * ( col2 ) + col2 AS col0 FROM tab0 cor0
----
133
2895
7633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + col0 ) col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - 55 * + col1 + col0 FROM tab2 AS cor0
----
-1698
-3167
-856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col1 * - 76 col2 FROM tab0 AS cor0
----
-6512
-6827
-7337

query I rowsort
SELECT DISTINCT col1 * + col2 + + ( col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT ALL + + 65 + col2 AS col1 FROM tab2 AS cor0
----
103
91
92

query I rowsort
SELECT ALL - col0 * + col1 + + 3 * - col1 + + col2 * + col0 FROM tab1 AS cor0
----
2978
6
6601

query I rowsort
SELECT - col0 * - 32 FROM tab1
----
2048
2560
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT DISTINCT col2 DIV col0 col0 FROM tab1 cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT col2 / col0 col0 FROM tab1 cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * col1 + + ( 79 ) + - col1 col2 FROM tab2
----
1554
708
885

query I rowsort
SELECT - 98 * cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT ALL 2 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT 77 * 86 * col1 AS col2 FROM tab0
----
569492
602602
642334

query I rowsort
SELECT - col2 * + cor0.col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - + col1 * col0 + - cor0.col2 * + col0 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT + col2 * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + + col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8422
SELECT DISTINCT col0 + - ( + col1 ) * col0 * - CAST( 19 * col0 + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2066956
34727
6939894

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT col0 + - ( + col1 ) * col0 * - CAST ( 19 * col0 + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2066956
34727
6939894

query I rowsort
SELECT col2 + ( col2 ) FROM tab0 cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8424
SELECT ALL + cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + + ( col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT col2 * + 79 + + ( + col2 * 2 ) + - col1 * - tab1.col0 FROM tab1
----
4452
5257
8816

query I rowsort
SELECT tab0.col0 * + tab0.col0 + col2 - col1 AS col0 FROM tab0
----
1129
523
7912

onlyif mysql # use DIV operator for integer division
query I rowsort label-8428
SELECT - col2 DIV 1 + 78 FROM tab1
----
-18
21
24

skipif mysql # not compatible
query I rowsort label-8428
SELECT - col2 / 1 + 78 FROM tab1
----
-18
21
24

query I rowsort
SELECT - col1 + + tab0.col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT tab1.col1 - - 61 AS col0 FROM tab1
----
71
74
87

query I rowsort
SELECT ALL - + col1 * - col1 * col1 AS col0 FROM tab1 cor0
----
1000
17576
2197

query I rowsort
SELECT ALL + + col2 + col2 * 91 AS col2 FROM tab1 AS cor0
----
4968
5244
8832

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 51 AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT - ( 75 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - 29 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL 22 * - 69 * col1 FROM tab1
----
-15180
-19734
-39468

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8438
SELECT + + CAST( + 88 AS SIGNED ) + col1 * col1 * col1 + + col1 * col2 FROM tab2 AS cor0
----
207001
30716
5647

skipif mysql # not compatible
query I rowsort label-8438
SELECT + + CAST ( + 88 AS INTEGER ) + col1 * col1 * col1 + + col1 * col2 FROM tab2 AS cor0
----
207001
30716
5647

query I rowsort
SELECT ALL ( + 92 * col2 ) + + tab2.col1 FROM tab2
----
2451
2515
3513

query I rowsort
SELECT - + col1 + - 11 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT col2 + ( - col1 ) + + 13 FROM tab0
----
-40
-83
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col1 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT + + col1 * + col2 + + cor0.col2 - - col0 FROM tab0 AS cor0
----
133
2895
7633

onlyif mysql # use DIV operator for integer division
query I rowsort label-8444
SELECT - - col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8444
SELECT - - col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT col0 * - col0 + col2 + 56 FROM tab1 AS cor0
----
-3983
-6248
101

query I rowsort
SELECT col0 * cor0.col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - ( - col2 ) + 9 * + 95 AS col0 FROM tab2 cor0
----
881
882
893

onlyif mysql # use DIV operator for integer division
query I rowsort label-8449
SELECT ALL + - col2 DIV + col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + - col2 / + col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
12
8

query I rowsort
SELECT cor0.col0 * col2 * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort
SELECT - 37 + + col1 * + CAST ( col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
1497
609
800

query I rowsort
SELECT DISTINCT - - 67 * col2 * ( col2 ) FROM tab2 cor0
----
45292
48843
96748

query I rowsort
SELECT - 27 * + col0 AS col0 FROM tab2 cor0
----
-189
-2106
-2133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col0 FROM tab2
----
20

query I rowsort
SELECT 20 * col0 FROM tab2
----
140
1560
1580

query I rowsort
SELECT + col1 + cor0.col1 + - 75 * - cor0.col2 AS col2 FROM tab2 cor0
----
2068
2087
2884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8457
SELECT ALL col0 + col1 * + CAST( NULL AS SIGNED ) / cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL col0 + col1 * + CAST ( NULL AS INTEGER ) / cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col1 + 98 + - cor0.col0 * + col0 FROM tab2 cor0
----
-4452
-5497
886

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27

query I rowsort
SELECT DISTINCT - 2 + - col0 * 45 * 8 AS col0 FROM tab0 AS cor0
----
-12602
-32042
-8642

query I rowsort
SELECT ALL + col2 * + 70 AS col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT ALL + col0 + 42 * cor0.col0 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT cor0.col1 * - col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8464
SELECT - - col0 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8464
SELECT - - col0 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col2 + 59 * + col2 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT DISTINCT - col2 * 77 FROM tab2 AS cor0
----
-2002
-2079
-2926

query I rowsort
SELECT - col2 + 22 * - ( col0 ) AS col0 FROM tab0 cor0
----
-2040
-561
-771

query I rowsort
SELECT ALL + col1 * + 29 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 * col1 FROM tab2 AS cor0
----
-2713
1453
772

onlyif mysql # use DIV operator for integer division
query I rowsort label-8470
SELECT DISTINCT - 22 DIV col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT - 22 / col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT - 2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 20c9213316527d507e26425041e08387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8472
SELECT col1 - + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT col1 - + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * + 45 AS col2 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT ALL + + 2 + col2 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT - - 26 * ( - col2 * + col1 ) FROM tab0 AS cor0
----
-194012
-2522
-73788

query I rowsort
SELECT DISTINCT + + 45 AS col2 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 * col0 col0 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT DISTINCT + col2 + 54 + - col2 AS col1 FROM tab0 AS cor0
----
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8479
SELECT CAST( 77 AS SIGNED ) col2 FROM tab2 cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8479
SELECT CAST ( 77 AS INTEGER ) col2 FROM tab2 cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - - 37 col1 FROM tab0 AS cor0
----
-52
13
2

query I rowsort
SELECT DISTINCT - - col2 + - 69 * col1 FROM tab0 AS cor0
----
-5901
-6197
-6692

query I rowsort
SELECT - + col0 + col2 + + col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT - col2 * - 15 * 44 FROM tab0
----
21780
54120
660

onlyif mysql # use DIV operator for integer division
query I rowsort label-8484
SELECT - + 48 DIV + col0 + cor0.col1 FROM tab1 AS cor0
----
10
10
13

skipif mysql # not compatible
query I rowsort label-8484
SELECT - + 48 / + col0 + cor0.col1 FROM tab1 AS cor0
----
10
10
13

query I rowsort
SELECT col2 + - col2 * + 89 + col2 AS col2 FROM tab0
----
-2871
-7134
-87

query I rowsort
SELECT ALL - - ( - col1 ) + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - + 78 * + 41 FROM tab1 cor0
----
-3198
-3198
-3198

query I rowsort
SELECT - + col2 - 27 * cor0.col0 FROM tab1 AS cor0
----
-135
-1785
-2256

query I rowsort
SELECT DISTINCT col0 + + 51 AS col2 FROM tab0 AS cor0
----
140
75
86

query I rowsort
SELECT DISTINCT + col0 * col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8492
SELECT + tab0.col0 + col1 DIV col1 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-8492
SELECT + tab0.col0 + col1 / col1 FROM tab0
----
25
36
90

query I rowsort
SELECT DISTINCT 88 FROM tab0, tab0 cor0 CROSS JOIN tab2
----
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT col2 + col1 DIV col0 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-8494
SELECT col2 + col1 / col0 FROM tab1
----
57
62
96

query I rowsort
SELECT DISTINCT + + cor0.col0 + - 16 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9
62
63

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) * + col2 AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL 79 + cor0.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ccf6921414f800fbd480b2d97cb3ed7f

query I rowsort
SELECT + col2 * - 32 FROM tab0
----
-1056
-2624
-32

query I rowsort
SELECT + 3 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 2 * ( - col0 ) col2 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8501
SELECT DISTINCT 35 * 92 + - col1 * + ( + cor0.col0 + + col0 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT 35 * 92 + - col1 * + ( + cor0.col0 + + col0 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - tab1.col2 * col1 FROM tab1
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 37 AS REAL ) col2 FROM tab2
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col1 * - cor0.col0 col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 21 * ( + col1 ) col2 FROM tab0 AS cor0
----
-1806
-1911
-2037

query I rowsort
SELECT - - col1 * - cor0.col2 + + col1 * + col2 * ( + col2 * col0 ) AS col1 FROM tab0 AS cor0
----
2244858
3298
54450214

query I rowsort
SELECT DISTINCT col0 * + col1 + - 45 AS col1 FROM tab0 cor0
----
2019
3350
8054

query I rowsort
SELECT col0 * + col1 + 20 FROM tab2 cor0
----
1363
237
4622

onlyif mysql # use DIV operator for integer division
query I rowsort label-8509
SELECT DISTINCT + col2 DIV + col1 + - 2 AS col2 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + col2 / + col1 + - 2 AS col2 FROM tab2 AS cor0
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8510
SELECT - + 76 DIV col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-8510
SELECT - + 76 / col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT ALL 60 + - cor0.col2 FROM tab1 cor0
----
-36
3
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8512
SELECT + - 35 DIV + col0 + col2 * 90 FROM tab2 cor0
----
2340
2425
3420

skipif mysql # not compatible
query I rowsort label-8512
SELECT + - 35 / + col0 + col2 * 90 FROM tab2 cor0
----
2340
2425
3420

query I rowsort
SELECT DISTINCT + col1 + col2 * - 0 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col2 + ( 38 ) FROM tab1 AS cor0
----
134
92
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8515
SELECT col1 DIV + ( col0 ) + col2 col1 FROM tab2 cor0
----
26
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8515
SELECT col1 / + ( col0 ) + col2 col1 FROM tab2 cor0
----
26
31
38

query I rowsort
SELECT ALL + col1 + 82 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2620
-6633
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - 77 col1 FROM tab1 AS cor0
----
-20
-23
19

query I rowsort
SELECT col2 * - col0 + + ( - col0 * + col0 ) FROM tab2
----
-238
-8112
-9243

onlyif mysql # use DIV operator for integer division
query I rowsort label-8519
SELECT - col2 DIV col0 + 74 FROM tab2
----
71
74
74

skipif mysql # not compatible
query I rowsort label-8519
SELECT - col2 / col0 + 74 FROM tab2
----
71
74
74

query I rowsort
SELECT col2 + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT - col2 + ( - 59 ) DIV col0 + col1 AS col2 FROM tab1 AS cor0
----
-47
-47
-83

skipif mysql # not compatible
query I rowsort label-8521
SELECT - col2 + ( - 59 ) / col0 + col1 AS col2 FROM tab1 AS cor0
----
-47
-47
-83

query I rowsort
SELECT + + col1 + + col0 * cor0.col1 AS col2 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT + col1 - col1 * col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT tab0.col0 * + col2 + + tab0.col0 FROM tab0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8525
SELECT col1 + CAST( NULL AS SIGNED ) / - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8525
SELECT col1 + CAST ( NULL AS INTEGER ) / - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 6 + - col2 AS col2 FROM tab2 AS cor0
----
130
135
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col1 + - col2 col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT cor0.col1 + ( + col0 ) * col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - + col0 * + col1 - - col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + col0 + 82 * + cor0.col0 FROM tab2 AS cor0
----
581
6474
6557

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8531
SELECT CAST( 62 AS SIGNED ) + col0 FROM tab0 AS cor0
----
151
86
97

skipif mysql # not compatible
query I rowsort label-8531
SELECT CAST ( 62 AS INTEGER ) + col0 FROM tab0 AS cor0
----
151
86
97

query I rowsort
SELECT - ( - 93 ) * col0 + + col2 FROM tab0 AS cor0
----
2265
3256
8359

query I rowsort
SELECT cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8534
SELECT DISTINCT cor0.col0 DIV cor0.col0 FROM tab0, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT cor0.col0 / cor0.col0 FROM tab0, tab0 AS cor0
----
1

query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT - 73 AS col2 FROM tab0 cor0
----
-73
-73
-73

query I rowsort
SELECT ALL - tab1.col0 + + col1 * + col1 * col2 FROM tab1
----
16144
36501
5636

query I rowsort
SELECT ALL 8 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT ALL - tab2.col0 + + tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 68f26bab54a791428e6ed5816df96945

onlyif mysql # use DIV operator for integer division
query I rowsort label-8541
SELECT ALL - col0 DIV + col0 + 73 FROM tab2 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - col0 / + col0 + 73 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT + - col1 * col1 * + col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT ALL + + 38 AS col0 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT ALL 31 * + cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT ALL + ( cor0.col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - + col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8547
SELECT DISTINCT + 83 DIV col1 col1 FROM tab1 AS cor0
----
3
6
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT + 83 / col1 col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT + - col0 + col2 + - 17 FROM tab2 AS cor0
----
-58
-69
3

query I rowsort
SELECT + 25 + col2 FROM tab1 cor0
----
121
79
82

query I rowsort
SELECT DISTINCT 15 FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT - col2 * col2 + + cor0.col2 * - 14 FROM tab2 AS cor0
----
-1040
-1107
-1976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8552
SELECT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT DISTINCT ( + col1 ) DIV - cor0.col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT ( + col1 ) / - cor0.col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT DISTINCT - + 99 AS col1 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT + ( + cor0.col2 ) * - 72 + + col0 + col2 AS col0 FROM tab2 cor0
----
-1768
-1910
-2619

query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * col1 * - col0 FROM tab2 AS cor0
----
-22910
-271596
-6734

onlyif mysql # use DIV operator for integer division
query I rowsort label-8557
SELECT 39 DIV - col0 FROM tab1 cor0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-8557
SELECT 39 / - col0 FROM tab1 cor0
----
-13
0
0

query I rowsort
SELECT + 36 + - 67 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-8559
SELECT - col0 + col0 DIV 71 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-8559
SELECT - col0 + col0 / 71 FROM tab2 AS cor0
----
-7
-77
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT - 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-8560
SELECT - col2 / - col1 col1 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8561
SELECT DISTINCT - col1 * CAST( + 13 AS SIGNED ) FROM tab2 AS cor0
----
-221
-403
-767

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT - col1 * CAST ( + 13 AS INTEGER ) FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT DISTINCT - col2 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8563
SELECT cor0.col0 + + 73 DIV col1 AS col0 FROM tab2 AS cor0
----
79
83
9

skipif mysql # not compatible
query I rowsort label-8563
SELECT cor0.col0 + + 73 / col1 AS col0 FROM tab2 AS cor0
----
79
83
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 39 * + col2 + + cor0.col2 - - 2 col1 FROM tab1 AS cor0
----
-2050
-2164
-3646

onlyif mysql # use DIV operator for integer division
query I rowsort label-8565
SELECT - 67 * - col0 + cor0.col0 DIV + col2 col0 FROM tab0 AS cor0
----
1608
2380
5964

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8565
SELECT - 67 * - col0 + cor0.col0 / + col2 col0 FROM tab0 AS cor0
----
1608
2380
5964

query I rowsort
SELECT ALL - - col0 + - 83 AS col0 FROM tab1 AS cor0
----
-19
-3
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 12 col0 FROM tab1 cor0
----
-42
-45
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) + col2 + col0 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 43 * - 57 + col1 + - col1 * - ( col1 + 47 ) FROM tab2 AS cor0
----
3556
4900
8764

query I rowsort
SELECT ALL 39 - + col0 FROM tab1 AS cor0
----
-25
-41
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8571
SELECT ALL CAST( NULL AS SIGNED ) * - cor0.col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL CAST ( NULL AS INTEGER ) * - cor0.col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 45 * tab1.col1 + col1 * 19 AS col0 FROM tab1
----
1664
640
832

query I rowsort
SELECT col0 - 95 FROM tab0
----
-6
-60
-71

query I rowsort
SELECT + ( col2 ) * col0 * col1 + + ( - col0 + col1 ) * col1 FROM tab1 cor0
----
35940
4810
98969

onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT - + ( col1 ) + - col1 DIV col0 FROM tab2 AS cor0
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-8575
SELECT - + ( col1 ) + - col1 / col0 FROM tab2 AS cor0
----
-17
-35
-59

query I rowsort
SELECT DISTINCT 26 + + col1 * + tab2.col0 AS col0 FROM tab2
----
1369
243
4628

query I rowsort
SELECT DISTINCT - col2 + + 45 * col2 AS col0 FROM tab2
----
1144
1188
1672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 + - tab2.col1 col0 FROM tab2
----
19
47
61

query I rowsort
SELECT DISTINCT cor0.col1 * col1 * col1 + col2 FROM tab0 AS cor0
----
636089
753653
912674

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8580
SELECT + tab1.col1 + col2 * CAST( 86 AS SIGNED ) FROM tab1
----
4670
4912
8269

skipif mysql # not compatible
query I rowsort label-8580
SELECT + tab1.col1 + col2 * CAST ( 86 AS INTEGER ) FROM tab1
----
4670
4912
8269

query I rowsort
SELECT 78 + - tab2.col1 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4ca4893e5f25137eee8126a177599194

query I rowsort
SELECT 52 + col0 FROM tab0
----
141
76
87

query I rowsort
SELECT DISTINCT col0 * col0 + 60 FROM tab1 AS cor0
----
4156
6460
69

query I rowsort
SELECT - ( + col2 ) + 60 FROM tab1 AS cor0
----
-36
3
6

query I rowsort
SELECT ALL - cor0.col2 * + col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL - col1 * - col1 + 28 AS col1 FROM tab0 AS cor0
----
7424
8309
9437

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT 54 * + col1 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
4668
5003
5273

onlyif mysql # use DIV operator for integer division
query I rowsort label-8589
SELECT cor0.col2 * col1 DIV + 99 + + col2 FROM tab0 AS cor0
----
1
157
61

skipif mysql # not compatible
query I rowsort label-8589
SELECT cor0.col2 * col1 / + 99 + + col2 FROM tab0 AS cor0
----
1
157
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * col0 col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL - 68 FROM tab1, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT DISTINCT - col0 * - 30 FROM tab2 AS cor0
----
210
2340
2370

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8593
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * cor0.col0 - col0 * + ( - cor0.col0 ) col0 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT ALL + ( col0 ) + + col2 * ( col0 ) FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT ALL + col1 + col0 - col2 AS col0 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT DISTINCT + col0 + - col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - col0 * ( - col0 ) - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-8599
SELECT - 71 - + col2 DIV + col1 FROM tab0 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-8599
SELECT - 71 - + col2 / + col1 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - col1 + - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT 73 * 98 * - col1 FROM tab2 AS cor0
----
-121618
-221774
-422086

query I rowsort
SELECT - 31 + col1 FROM tab0 AS cor0
----
55
60
66

query I rowsort
SELECT ALL - 52 + + col1 FROM tab0 AS cor0
----
34
39
45

query I rowsort
SELECT + - col0 * col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8605
SELECT + col2 * + CAST( 51 AS SIGNED ) + - col2 + ( col0 * - col2 ) AS col0 FROM tab0
----
-3198
15
858

skipif mysql # not compatible
query I rowsort label-8605
SELECT + col2 * + CAST ( 51 AS INTEGER ) + - col2 + ( col0 * - col2 ) AS col0 FROM tab0
----
-3198
15
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-8606
SELECT tab1.col2 * CAST( - 34 AS SIGNED ) DIV + col2 FROM tab1
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-8606
SELECT tab1.col2 * CAST ( - 34 AS INTEGER ) / + col2 FROM tab1
----
-34
-34
-34

query I rowsort
SELECT col1 - - 87 * + col1 FROM tab1
----
1144
2288
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + + col0 col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT - ( 96 ) * col0 AS col0 FROM tab2 AS cor0
----
-672
-7488
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-8610
SELECT - + ( + ( - col1 ) ) DIV CAST( + cor0.col1 AS SIGNED ) + - col2 * col0 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif mysql # not compatible
query I rowsort label-8610
SELECT - + ( + ( - col1 ) ) / CAST ( + cor0.col1 AS INTEGER ) + - col2 * col0 FROM tab2 AS cor0
----
-188
-2027
-3001

query I rowsort
SELECT - col2 - 13 * col1 FROM tab1 AS cor0
----
-187
-265
-392

onlyif mysql # use DIV operator for integer division
query I rowsort label-8612
SELECT - col1 DIV col0 + col0 * col2 * ( + col0 * col0 + cor0.col1 ) FROM tab1 AS cor0
----
14978688
49251840
5662

skipif mysql # not compatible
query I rowsort label-8612
SELECT - col1 / col0 + col0 * col2 * ( + col0 * col0 + cor0.col1 ) FROM tab1 AS cor0
----
14978688
49251840
5662

query I rowsort
SELECT + cor0.col0 * 9 - 27 FROM tab1 AS cor0
----
0
549
693

query I rowsort
SELECT - tab2.col1 * ( + ( col1 ) ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - col2 * - ( 48 + col0 * + col0 ) FROM tab2
----
159432
238982
2619

query I rowsort
SELECT 78 * + col0 AS col1 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT DISTINCT + col2 * 69 AS col0 FROM tab2 cor0
----
1794
1863
2622

query I rowsort
SELECT ALL - + cor0.col2 + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL cor0.col0 + col1 * col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
7444
8459
9479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT tab0.col2 * + col1 + - col2 DIV - col2 FROM tab0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-8621
SELECT tab0.col2 * + col1 + - col2 / - col2 FROM tab0
----
2839
7463
98

query I rowsort
SELECT - col2 * ( col1 ) AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + col2 * col2 * col1 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL - ( ( + col0 ) + - 40 ) AS col2 FROM tab1
----
-24
-40
37

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab0
----
63

query I rowsort
SELECT col1 * - col0 * col1 + + col2 FROM tab1
----
-13424
-1974
-6343

query I rowsort
SELECT - 72 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ( - col2 ) * col1 * - col0 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT + 76 DIV col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8630
SELECT + 76 / col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT - - 0 * col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( col2 ) + 84 * col2 AS col0 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT - ( col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col0 * col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8635
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col0 + + ( + 44 ) FROM tab2
----
1387
261
4646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8637
SELECT + col2 + - CAST( + col1 * col1 AS SIGNED ) AS col2 FROM tab1
----
-43
-622
-73

skipif mysql # not compatible
query I rowsort label-8637
SELECT + col2 + - CAST ( + col1 * col1 AS INTEGER ) AS col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT - + col0 + + col2 AS col2 FROM tab1 cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8639
SELECT DISTINCT CAST( NULL AS SIGNED ) + 82 * + cor0.col1 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 82 * + cor0.col1 FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8640
SELECT col1 DIV - tab0.col0 + tab0.col1 col1 FROM tab0
----
83
90
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8640
SELECT col1 / - tab0.col0 + tab0.col1 col1 FROM tab0
----
83
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT + + col1 DIV + col1 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-8641
SELECT + + col1 / + col1 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + + col1 * - col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 - ( 32 ) * col1 FROM tab0 AS cor0
----
-2666
-2821
-3007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( - col1 ) * cor0.col0 col2 FROM tab1 AS cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col2 * col0 col2 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL col1 + - col0 * - ( col2 ) * + col2 AS col0 FROM tab2 cor0
----
114093
5134
52787

onlyif mysql # use DIV operator for integer division
query I rowsort label-8647
SELECT ALL col2 * 99 DIV - col0 + col2 AS col0 FROM tab1 AS cor0
----
-1728
-22
-31

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL col2 * 99 / - col0 + col2 AS col0 FROM tab1 AS cor0
----
-1728
-22
-31

query I rowsort
SELECT DISTINCT - col2 + + ( + col0 * col1 ) AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT col0 + col1 + + col2 AS col2 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT 78 * - col0 FROM tab2 AS cor0
----
-546
-6084
-6162

query I rowsort
SELECT - tab0.col2 * - col1 * + col2 AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + ( col0 ) + col0 * + 59 AS col2 FROM tab1 AS cor0
----
180
3840
4800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8653
SELECT CAST( - col0 AS SIGNED ) + - col0 + ( 97 ) * col2 FROM tab2 AS cor0
----
2366
2605
3528

skipif mysql # not compatible
query I rowsort label-8653
SELECT CAST ( - col0 AS INTEGER ) + - col0 + ( 97 ) * col2 FROM tab2 AS cor0
----
2366
2605
3528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 * + col2 + col0 col0 FROM tab1 AS cor0
----
-3831
-3983
-6736

query I rowsort
SELECT - col2 * col1 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8656
SELECT DISTINCT col0 + - col2 DIV + col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT col0 + - col2 / + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - 96 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT col0 + 89 AS col2 FROM tab1
----
153
169
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8659
SELECT col1 DIV - 8 col0 FROM tab0 AS cor0
----
-10
-11
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8659
SELECT col1 / - 8 col0 FROM tab0 AS cor0
----
-10
-11
-12

query I rowsort
SELECT col1 + col1 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-255
-3363
-899

query I rowsort
SELECT ALL + col1 + + 61 AS col1 FROM tab2 AS cor0
----
120
78
92

query I rowsort
SELECT - cor0.col0 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + col2 + - 6 FROM tab2 cor0
----
20
21
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-8664
SELECT - + col0 + ( - col1 ) + col2 * col1 DIV col1 FROM tab0 AS cor0
----
-131
-77
-98

skipif mysql # not compatible
query I rowsort label-8664
SELECT - + col0 + ( - col1 ) + col2 * col1 / col1 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT - col1 + cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col0 col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + cor0.col2 * + col2 + - col0 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT 47 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 70 + col1 - - 91 col1 FROM tab1 AS cor0
----
3897
4091
6824

query I rowsort
SELECT DISTINCT + col0 * + col1 - col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT ALL - 39 * col2 * col2 AS col1 FROM tab1 AS cor0
----
-113724
-126711
-359424

query I rowsort
SELECT DISTINCT 35 * col0 FROM tab2 AS cor0
----
245
2730
2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-8673
SELECT DISTINCT + - ( col1 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT + - ( col1 ) / - col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT col0 - - col0 * col0 FROM tab2
----
56
6162
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8675
SELECT DISTINCT col2 + CAST( col2 + col1 * col0 AS SIGNED ) AS col0 FROM tab2
----
1419
271
4654

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT col2 + CAST ( col2 + col1 * col0 AS INTEGER ) AS col0 FROM tab2
----
1419
271
4654

query I rowsort
SELECT 5 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
243 values hashing to c693904f0868a91528e67f365a53d1eb

query I rowsort
SELECT - 76 + col2 FROM tab0 AS cor0
----
-43
-75
6

query I rowsort
SELECT DISTINCT - 16 * cor0.col1 FROM tab0 cor0
----
-1376
-1456
-1552

query I rowsort
SELECT ALL col1 * 64 + col0 * 19 FROM tab0 AS cor0
----
5960
6873
7515

query I rowsort
SELECT ALL - ( 68 ) FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT + - 94 * col0 + - 85 FROM tab1 cor0
----
-367
-6101
-7605

onlyif mysql # use DIV operator for integer division
query I rowsort label-8682
SELECT + col2 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8682
SELECT + col2 / cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + + col0 * + col0 * + 63 FROM tab0 AS cor0
----
36288
499023
77175

onlyif mysql # use DIV operator for integer division
query I rowsort label-8684
SELECT ALL col1 * + col1 DIV col1 + col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL col1 * + col1 / col1 + col0 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8685
SELECT ALL + + col0 DIV - col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1254
-1404
-576

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + + col0 / - col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1254
-1404
-576

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 * ( col0 ) - - col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - col0 + ( + 85 ) AS col2 FROM tab1 AS cor0
----
21
5
82

query I rowsort
SELECT + tab2.col0 * + col2 AS col1 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 - col0 * col2 * col2 col2 FROM tab1 AS cor0
----
-207296
-736240
-8670

onlyif mysql # use DIV operator for integer division
query I rowsort label-8691
SELECT + + col0 + 54 DIV + col0 FROM tab2 AS cor0
----
14
78
79

skipif mysql # not compatible
query I rowsort label-8691
SELECT + + col0 + 54 / + col0 FROM tab2 AS cor0
----
14
78
79

query I rowsort
SELECT ALL 27 + - col0 - col2 FROM tab2
----
-7
-77
-90

query I rowsort
SELECT DISTINCT - col0 * tab1.col1 + ( col2 ) * - col0 - + ( tab1.col1 ) FROM tab1
----
-266
-4298
-8733

query I rowsort
SELECT ALL + 7 - col0 * - col2 FROM tab0
----
42
7305
799

query I rowsort
SELECT col1 * + col0 - + ( 0 ) FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8696
SELECT 86 DIV - col1 AS col1 FROM tab2
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-8696
SELECT 86 / - col1 AS col1 FROM tab2
----
-1
-2
-5

query I rowsort
SELECT DISTINCT 77 + - col1 - 64 FROM tab0
----
-73
-78
-84

query I rowsort
SELECT col1 + + ( cor0.col0 ) AS col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8699
SELECT ALL col1 * col1 + + cor0.col1 DIV col2 AS col1 FROM tab0 AS cor0
----
7398
8282
9506

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL col1 * col1 + + cor0.col1 / col2 AS col1 FROM tab0 AS cor0
----
7398
8282
9506

query I rowsort
SELECT ALL - 96 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT 39 * 18 + + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2ff08b940c7ea79faccc2ca36403e53f

query I rowsort
SELECT ALL - col1 * - 18 + 54 AS col1 FROM tab0
----
1602
1692
1800

query I rowsort
SELECT ALL + 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - col0 * + col0 * - col0 + - col2 FROM tab1 cor0
----
-27
262087
511904

query I rowsort
SELECT ALL - 14 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 63e1b433786e47d973a9cb1802518d56

query I rowsort
SELECT DISTINCT - + cor0.col2 + + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-8707
SELECT DISTINCT col1 DIV col1 + 70 AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT col1 / col1 + 70 AS col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT DISTINCT - col2 + col2 + col2 * col2 * + col2 AS col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT - col2 * 78 * col0 FROM tab2
----
-14742
-158184
-234156

query I rowsort
SELECT + ( + col0 ) + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( 23 ) FROM tab0
----
23
23
23

query I rowsort
SELECT col2 * - 17 + tab2.col1 FROM tab2
----
-383
-428
-629

query I rowsort
SELECT col0 * 89 + col1 FROM tab2
----
654
7001
7048

query I rowsort
SELECT DISTINCT ( 90 ) * col0 AS col2 FROM tab0
----
2160
3150
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8715
SELECT CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-8715
SELECT CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL col2 + col2 * - 21 FROM tab1 AS cor0
----
-1080
-1140
-1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT DISTINCT + col1 + col0 DIV ( - col1 ) AS col2 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT + col1 + col0 / ( - col1 ) AS col2 FROM tab1 AS cor0
----
26
4
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8718
SELECT DISTINCT - - col2 - cor0.col2 * - col0 DIV + col0 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT - - col2 - cor0.col2 * - col0 / + col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - - 32 + col2 FROM tab2 AS cor0
----
58
59
70

query I rowsort
SELECT DISTINCT 95 + col2 * + ( - col0 ) * - cor0.col2 FROM tab0 AS cor0
----
130
26231
598531

query I rowsort
SELECT ALL - cor0.col1 * col0 * + col2 AS col2 FROM tab0 cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-8722
SELECT ALL + + col1 + - cor0.col0 DIV col1 - + col0 FROM tab1 AS cor0
----
-60
-73
23

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + + col1 + - cor0.col0 / col1 - + col0 FROM tab1 AS cor0
----
-60
-73
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + + 71 * col2 col0 FROM tab1 AS cor0
----
4147
4510
6985

query I rowsort
SELECT ALL + 42 + - cor0.col2 * + col0 FROM tab0 cor0
----
-7256
-750
7

query I rowsort
SELECT DISTINCT 25 + - col2 FROM tab0 cor0
----
-57
-8
24

query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 - + 72 FROM tab0 AS cor0
----
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-8727
SELECT ALL - col1 - + col2 DIV + 74 AS col1 FROM tab1 AS cor0
----
-10
-14
-26

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL - col1 - + col2 / + 74 AS col1 FROM tab1 AS cor0
----
-10
-14
-26

query I rowsort
SELECT ( - 54 ) FROM tab2
----
-54
-54
-54

query I rowsort
SELECT - ( 42 ) FROM tab1 AS cor0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + ( - col0 ) col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col0 * 62 AS col1 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT - col2 * col1 + - ( col2 ) FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - col2 + col1 * - 83 * - 31 AS col1 FROM tab0 AS cor0
----
221245
234061
249580

query I rowsort
SELECT + col2 + + col0 - + col1 * - col0 AS col2 FROM tab1 cor0
----
1216
135
761

query I rowsort
SELECT + + 86 + + col2 AS col1 FROM tab2 AS cor0
----
112
113
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - cor0.col2 - ( + 79 ) * - col2 col0 FROM tab1 AS cor0
----
4238
4456
7501

query I rowsort
SELECT cor0.col2 * col1 + - 30 FROM tab0 AS cor0
----
2808
67
7432

query I rowsort
SELECT - + col2 * + col2 + + col1 AS col1 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - col2 + col1 * 42 AS col2 FROM tab2 AS cor0
----
1275
2452
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-8740
SELECT ALL + - cor0.col2 + col1 DIV - 96 FROM tab0 cor0
----
-2
-33
-82

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL + - cor0.col2 + col1 / - 96 FROM tab0 cor0
----
-2
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * col1 col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 72 * - col2 + + col0 col2 FROM tab1 AS cor0
----
-3831
-3983
-6736

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 AS col0 FROM tab2 cor0
----
1534
646
837

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 cor3
----
3645 values hashing to c3f17e238f07c9d20c4ee001084f26c7

query I rowsort
SELECT DISTINCT cor0.col2 + 23 AS col1 FROM tab1 AS cor0
----
119
77
80

query I rowsort
SELECT ALL + cor0.col1 * 35 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT ALL - - 39 AS col1 FROM tab1 AS cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + + cor0.col1 col2 FROM tab0 AS cor0
----
120
125
131

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8749
SELECT ALL + - CAST( NULL AS SIGNED ) * col0 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + - CAST ( NULL AS INTEGER ) * col0 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 84 + + col0 FROM tab1 cor0
----
148
164
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8751
SELECT + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - 33 * col2 * cor0.col1 FROM tab1 AS cor0
----
-18746
-41104
-46329

query I rowsort
SELECT ALL - col1 * 46 + + col2 FROM tab1 AS cor0
----
-1142
-403
-502

query I rowsort
SELECT DISTINCT - - ( col2 ) - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + cor0.col2 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + - 49 AS col0 FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT + cor0.col1 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8758
SELECT ALL cor0.col1 + - col0 DIV col2 col1 FROM tab0 cor0
----
62
86
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL cor0.col1 + - col0 / col2 col1 FROM tab0 cor0
----
62
86
90

query I rowsort
SELECT col1 * - 33 AS col1 FROM tab2
----
-1023
-1947
-561

query I rowsort
SELECT ALL + 0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT + 85 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - col2 + - cor0.col2 AS col0 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT + col1 + + col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + + cor0.col2 * + col1 * col0 + col2 AS col2 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT - 53 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

query I rowsort
SELECT DISTINCT - + col1 * - 82 FROM tab0 cor0
----
7052
7462
7954

query I rowsort
SELECT col0 + + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + col2 + 41 FROM tab2 AS cor0
----
67
68
79

query I rowsort
SELECT DISTINCT - col0 + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 + - col1 col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT col0 - ( col2 ) AS col1 FROM tab0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 * col1 ) + 52 - col1 col2 FROM tab1
----
-1209
-1378
-528

onlyif mysql # use DIV operator for integer division
query I rowsort label-8774
SELECT - ( + tab1.col0 ) DIV + col2 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8774
SELECT - ( + tab1.col0 ) / + col2 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-8776
SELECT ALL + col2 - col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL + col2 - col0 / - col1 AS col0 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT 35 + col1 AS col0 FROM tab2 AS cor0
----
52
66
94

query I rowsort
SELECT ALL - ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL 70 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1897
1898
2739

query I rowsort
SELECT - - col0 * + col2 + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT col0 + - 76 FROM tab0
----
-41
-52
13

query I rowsort
SELECT - col2 + - 54 * - col1 + - ( 24 ) AS col1 FROM tab0
----
4587
4808
5213

query I rowsort
SELECT col1 * col2 * tab2.col2 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL col2 * - col1 * col2 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8785
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 13 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 13 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + col2 + col1 + cor0.col1 * - col1 FROM tab2 cor0
----
-234
-3396
-903

query I rowsort
SELECT - - ( - col1 ) + + col1 * col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT + - col1 * + col0 * - ( col2 ) + col2 AS col1 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT + + col0 * - col0 - + col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 * - col0 col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT + - col2 * col0 + - 19 FROM tab0 AS cor0
----
-54
-7317
-811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8793
SELECT DISTINCT - col2 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT - col2 * CAST ( NULL AS REAL ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + ( col2 ) col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col0 * - ( + col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT - col2 * - 24 FROM tab2 cor0
----
624
648
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8797
SELECT DISTINCT + - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT + - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8798
SELECT ALL col1 DIV 21 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL col1 / 21 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col2 * 9 + + 67 FROM tab0 AS cor0
----
364
76
805

query I rowsort
SELECT 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-8801
SELECT DISTINCT + cor0.col2 + 13 DIV col1 FROM tab1 AS cor0
----
54
58
97

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + cor0.col2 + 13 / col1 FROM tab1 AS cor0
----
54
58
97

query I rowsort
SELECT DISTINCT ( col1 ) * col0 * - 97 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-101920
-62720
-7644

query I rowsort
SELECT ALL + cor0.col2 + - col0 * - col1 AS col2 FROM tab2 cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col2 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT + col2 * - 71 AS col0 FROM tab0
----
-2343
-5822
-71

query I rowsort
SELECT col1 * + 20 + 77 AS col0 FROM tab1
----
277
337
597

query I rowsort
SELECT ALL - col2 * col2 + cor0.col0 FROM tab2 cor0
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-8808
SELECT DISTINCT ( + 97 ) DIV + col2 AS col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT ( + 97 ) / + col2 AS col2 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT 74 FROM tab0, tab1 AS cor0
----
74

query I rowsort
SELECT ALL cor0.col0 + ( + col2 ) * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - 81 * cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
-2835
-591138
-64152

onlyif mysql # use DIV operator for integer division
query I rowsort label-8812
SELECT DISTINCT + - 7 DIV col0 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT + - 7 / col0 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col0 + + 26 AS col0 FROM tab0 AS cor0
----
115
50
61

query I rowsort
SELECT col1 * + 68 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT 84 * - cor0.col1 FROM tab0 AS cor0
----
-7224
-7644
-8148

query I rowsort
SELECT ALL - col0 * 70 FROM tab1 AS cor0
----
-210
-4480
-5600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8817
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - + col1 * - 50 AS col0 FROM tab2 AS cor0
----
1550
2950
850

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col1 AS REAL ) + - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + - 83 * - col1 AS col0 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT - ( col1 ) + + 1 * cor0.col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT - col0 * col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8823
SELECT DISTINCT - col0 + col1 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - col0 + col1 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
-22
-88
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8824
SELECT - ( + cor0.col0 ) - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8824
SELECT - ( + cor0.col0 ) - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL NOT IN ( cor0.col0 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8826
SELECT ALL + cor0.col2 + - CAST( NULL AS DECIMAL ) / col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + cor0.col2 + - CAST ( NULL AS REAL ) / col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * ( col1 ) col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8829
SELECT ALL col2 + + CAST( NULL AS SIGNED ) + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + + col2 * + CAST ( - 30 + col0 AS REAL ) * col0 FROM tab0
----
-4719
176
430664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 99 col1 FROM tab2
----
116
130
158

query I rowsort
SELECT ALL - ( + 22 ) * - tab1.col2 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 753d4f7c514b9e015612181ef0349c00

query I rowsort
SELECT DISTINCT col0 * 50 FROM tab2
----
350
3900
3950

onlyif mysql # use DIV operator for integer division
query I rowsort label-8834
SELECT col2 + col1 DIV + col0 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-8834
SELECT col2 + col1 / + col0 FROM tab0
----
3
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * col2 * 46 col1 FROM tab0
----
1610
335708
36432

query I rowsort
SELECT ALL + 30 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col1 FROM tab2, tab0 AS cor0
----
-46

query I rowsort
SELECT 9 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

onlyif mysql # use DIV operator for integer division
query I rowsort label-8840
SELECT + + col0 DIV - cor0.col1 col2 FROM tab2 cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8840
SELECT + + col0 / - cor0.col1 col2 FROM tab2 cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8841
SELECT + col1 DIV + col1 + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-8841
SELECT + col1 / + col1 + col0 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( col2 ) col0 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8843
SELECT CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 * - 64 * - col1 AS col1 FROM tab2
----
41344
53568
98176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * + col1 col1 FROM tab0
----
-8256
-8736
-9312

query I rowsort
SELECT DISTINCT - col2 * + tab2.col1 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab0, tab1 AS cor0
----
-39

query I rowsort
SELECT 99 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
40
68
82

query I rowsort
SELECT - col1 + + cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + + ( + cor0.col2 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 22 + + col1 * - col2 AS col1 FROM tab0 cor0
----
-2816
-7440
-75

query I rowsort
SELECT - col1 + + col1 * - ( col0 + col2 ) FROM tab1 AS cor0
----
-1220
-1508
-2301

query I rowsort
SELECT + - 20 AS col2 FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8854
SELECT col0 * ( + col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8854
SELECT col0 * ( + col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col0 + col1 AS col2 FROM tab1 cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8856
SELECT col2 + col1 + CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
195
205
264

skipif mysql # not compatible
query I rowsort label-8856
SELECT col2 + col1 + CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT - col0 + cor0.col0 * - 50 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT cor0.col1 * - col0 + - ( + col2 ) AS col0 FROM tab0 cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - tab2.col0 + + col1 AS col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL - tab1.col1 + col1 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + + col0 + 72 * col2 col0 FROM tab0
----
108
2433
6075

query I rowsort
SELECT ALL - ( - col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8863
SELECT ( - col0 ) * - CAST( NULL AS DECIMAL ) * ( col1 * col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT ( - col0 ) * - CAST ( NULL AS REAL ) * ( col1 * col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 24 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT DISTINCT - + 30 AS col1 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT + ( + col1 ) + 28 * - cor0.col1 AS col1 FROM tab0 cor0
----
-2322
-2457
-2619

query I rowsort
SELECT - cor0.col1 + 49 + - 81 AS col0 FROM tab0 AS cor0
----
-118
-123
-129

query I rowsort
SELECT ALL - col1 * cor0.col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT + - cor0.col0 DIV + ( col2 ) + - col2 + 88 * - cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
650815
728645
827956

skipif mysql # not compatible
query I rowsort label-8869
SELECT + - cor0.col0 / + ( col2 ) + - col2 + 88 * - cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
650815
728645
827956

query I rowsort
SELECT ALL - + col1 + + ( + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - col2 * ( col2 + - col2 ) AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 * 38 FROM tab0 AS cor0
----
-1330
-3382
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-8873
SELECT DISTINCT + - col1 DIV + ( col1 + col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT + - col1 / + ( col1 + col0 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - ( col1 ) + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 11 + - tab2.col0 + - col0 AS col1 FROM tab2
----
-145
-147
-3

skipif mysql # not compatible
query I rowsort
SELECT - col2 * + col1 * CAST ( + col0 AS REAL ) FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - + col0 * col1 - - cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - col0 + ( - col2 ) * - col1 * + col1 AS col2 FROM tab2 cor0
----
10903
25940
90428

query I rowsort
SELECT DISTINCT 81 + - col2 FROM tab2 AS cor0
----
43
54
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8880
SELECT ALL + CAST( NULL AS SIGNED ) / col0 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + CAST ( NULL AS INTEGER ) / col0 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8881
SELECT + col0 * + 30 + col2 * CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
399
4368
5372

skipif mysql # not compatible
query I rowsort label-8881
SELECT + col0 * + 30 + col2 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
399
4368
5372

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8882
SELECT ALL CAST( col0 AS SIGNED ) + col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL CAST ( col0 AS INTEGER ) + col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + - 28 + - 42 AS col0 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT col0 - cor0.col2 * col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + - 77 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT + col0 * cor0.col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + col2 + col2 + cor0.col0 FROM tab0 cor0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8888
SELECT - col2 DIV 91 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8888
SELECT - col2 / 91 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + 4 + - cor0.col2 FROM tab2 AS cor0
----
-338
-354
-55

query I rowsort
SELECT + - 14 + col1 * col1 FROM tab0 AS cor0
----
7382
8267
9395

onlyif mysql # use DIV operator for integer division
query I rowsort label-8891
SELECT DISTINCT col2 DIV + col2 - col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT col2 / + col2 - col1 FROM tab0
----
-85
-90
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( tab2.col2 AS REAL ) * - col1 * + 65 - 22 * col2 * col1 col2 FROM tab2
----
27778
35991
65962

query I rowsort
SELECT ALL ( col1 ) - + col0 FROM tab2
----
-19
-62
24

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > col1 * - col0 / - col0
----

query I rowsort
SELECT ALL - col2 * - col2 * - col2 + col2 AS col1 FROM tab0
----
-35904
-551286
0

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT - col2 - + tab1.col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 AS col0 FROM tab0
----
1224
543
7839

query I rowsort
SELECT + col0 - tab0.col1 * col1 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT - col1 + - col2 * col1 FROM tab2
----
-1593
-663
-868

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) >= NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT + col1 / col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + tab1.col2 + col0 * - col1 AS col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT col2 + + col0 + - col1 * col1 AS col0 FROM tab1
----
-619
21
7

query I rowsort
SELECT ALL col2 * - col2 + col1 + col1 FROM tab1
----
-2864
-3229
-9190

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 / col1 + col2 - - col0 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8907
SELECT DISTINCT - tab2.col1 * col1 DIV + col0 FROM tab2
----
-137
-3
-44

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT - tab2.col1 * col1 / + col0 FROM tab2
----
-137
-3
-44

query I rowsort
SELECT ALL + tab1.col1 + col2 * col1 FROM tab1
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + - col0 + col0 col0 FROM tab1
----
-1040
-640
-78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - col2 * - col0 )
----

query I rowsort
SELECT DISTINCT col0 + - tab0.col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT + tab1.col1 + + tab1.col1 AS col0 FROM tab1
----
20
26
52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + tab1.col0 * + col2 )
----

query I rowsort
SELECT DISTINCT col1 + col2 * + col2 AS col0 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT + col2 + col1 * col2 + + tab1.col0 AS col2 FROM tab1 WHERE NOT ( NULL ) <> col0 + col0 * + col1
----

query I rowsort
SELECT ALL + col2 + - col0 * + cor0.col2 + col2 AS col2 FROM tab0 cor0
----
-33
-7134
-726

query III rowsort
SELECT * FROM tab0 WHERE NULL > ( - col2 * - col0 + col2 * col0 )
----

query I rowsort
SELECT DISTINCT col0 * + col2 + + col2 AS col2 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-8920
SELECT tab0.col1 DIV col2 - - col0 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-8920
SELECT tab0.col1 / col2 - - col0 FROM tab0
----
132
26
90

query I rowsort
SELECT + col2 * tab1.col1 + col0 - col1 FROM tab1
----
1315
1381
624

query I rowsort
SELECT DISTINCT + col0 * tab1.col2 - + col1 FROM tab1
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-8923
SELECT ALL - col2 DIV + col1 + - col0 AS col2 FROM tab2
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL - col2 / + col1 + - col0 AS col2 FROM tab2
----
-7
-78
-81

query I rowsort
SELECT ALL col2 / + col2 - col0 FROM tab1 WHERE NOT NULL <= col0 * col2
----

query I rowsort
SELECT ALL - col0 * col0 - col1 AS col1 FROM tab1
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-8926
SELECT - tab2.col1 + + col1 DIV + col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-8926
SELECT - tab2.col1 + + col1 / + col1 FROM tab2
----
-16
-30
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / col2 + - col2 <= NULL
----

query I rowsort
SELECT ALL + col1 * col2 * - col1 + + cor0.col1 FROM tab1 AS cor0
----
-16211
-36478
-5690

query I rowsort
SELECT - col0 * tab0.col1 + 68 AS col2 FROM tab0
----
-1996
-3327
-8031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( 31 ) col2 FROM tab1
----
23
26
65

query I rowsort
SELECT DISTINCT - - col2 * - 87 FROM tab2 AS cor0
----
-2262
-2349
-3306

query I rowsort
SELECT - + col1 * + ( col2 ) + - col2 + col1 FROM tab1 AS cor0
----
-1331
-1432
-617

onlyif mysql # use DIV operator for integer division
query I rowsort label-8933
SELECT ALL + - col0 DIV - 38 AS col1 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + - col0 / - 38 AS col1 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - col0 * - ( ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - tab1.col1 * - 25 AS col1 FROM tab1
----
250
325
650

query I rowsort
SELECT + col0 * col1 * 60 AS col0 FROM tab2 AS cor0
----
13020
276120
80580

onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT DISTINCT col2 + col0 * col1 DIV 42 - + col1 FROM tab0 cor0
----
-16
-4
183

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT col2 + col0 * col1 / 42 - + col1 FROM tab0 cor0
----
-16
-4
183

query I rowsort
SELECT ( + 56 ) * col2 AS col0 FROM tab1 cor0
----
3024
3192
5376

query I rowsort
SELECT DISTINCT - + ( - col1 ) * col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - 85 AS col0 FROM tab0 cor0
----
-85
-85
-85

query I rowsort
SELECT - + ( + col2 ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + ( col2 ) + - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 39 + - col1 * - 84 AS col0 FROM tab2 AS cor0
----
1467
2643
4995

query I rowsort
SELECT ALL + col1 + col1 * 7 AS col1 FROM tab2 AS cor0
----
136
248
472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - cor0.col1 - cor0.col2 * - col0 col1 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT ALL ( cor1.col2 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab0 cor0
----
53

query I rowsort
SELECT - 76 + col2 FROM tab2 AS cor0
----
-38
-49
-50

query I rowsort
SELECT ALL + - 61 AS col1 FROM tab2 cor0
----
-61
-61
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-8951
SELECT - + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8951
SELECT - + col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT + col0 + col1 * 74 * col2 FROM tab2 cor0
----
113594
47883
61945

onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT - + cor0.col2 DIV + ( - cor0.col2 ) FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8953
SELECT - + cor0.col2 / + ( - cor0.col2 ) FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT + + col0 * - col0 + ( - cor0.col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-1260
-1368
-15219

query I rowsort
SELECT - col0 + + 18 * col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
134227
1711
51060

query I rowsort
SELECT col0 * cor0.col0 * + 64 FROM tab2 AS cor0
----
3136
389376
399424

onlyif mysql # use DIV operator for integer division
query I rowsort label-8957
SELECT ALL + col1 * + col0 DIV - col0 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL + col1 * + col0 / - col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL col1 * + 5 AS col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT + - cor0.col2 + - 9 FROM tab1 AS cor0
----
-105
-63
-66

query I rowsort
SELECT ALL ( col0 ) + col1 + col0 AS col0 FROM tab1
----
138
173
32

query I rowsort
SELECT DISTINCT - col2 * col2 + + col1 AS col1 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT ALL + ( + col0 ) + col0 FROM tab2
----
14
156
158

query I rowsort
SELECT + cor0.col2 * cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 56 ) col0 FROM tab2
----
56
56
56

query I rowsort
SELECT ALL col2 + - 86 + - col2 * col1 AS col2 FROM tab0
----
-182
-2891
-7466

query I rowsort
SELECT ALL col2 + + tab1.col0 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8967
SELECT col2 + + col0 DIV 98 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8967
SELECT col2 + + col0 / 98 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ( - col2 ) * - col0 + + 6 FROM tab2
----
195
2034
3008

query I rowsort
SELECT tab0.col1 * - tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - 17 * col1 AS col0 FROM tab0 AS cor0
----
-1462
-1547
-1649

query I rowsort
SELECT - col0 * - cor0.col1 * cor0.col2 - cor0.col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT - col2 + - col1 * - col1 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8973
SELECT - col1 * CAST( col1 AS SIGNED ) FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-8973
SELECT - col1 * CAST ( col1 AS INTEGER ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + col2 * - col1 + + 59 FROM tab1 AS cor0
----
-1189
-1345
-511

query I rowsort
SELECT - + col2 + + 14 * col0 AS col0 FROM tab1 cor0
----
-12
1024
839

query I rowsort
SELECT ALL col2 - col2 * + col0 AS col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL - col1 * + col0 + - col0 * + tab1.col2 FROM tab1
----
-240
-4288
-8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-8978
SELECT DISTINCT - col0 - + col1 DIV col1 AS col1 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT - col0 - + col1 / col1 AS col1 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT ALL col2 + col2 * - col0 - - col0 * + col0 AS col2 FROM tab2
----
-113
3277
4082

query I rowsort
SELECT + col0 * col1 * col2 + col0 * tab0.col1 + - col0 AS col0 FROM tab0
----
672128
6755
70152

onlyif mysql # use DIV operator for integer division
query I rowsort label-8981
SELECT col0 DIV - col1 + col0 AS col0 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-8981
SELECT col0 / - col1 + col0 AS col0 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT - col1 + col0 * col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL - + col2 * - cor0.col0 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - - col0 * + col1 + col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-182
-5332
-6014

query I rowsort
SELECT ALL col2 * - col1 + col1 * col0 AS col2 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT + - col2 * col1 * + col1 + + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-14976
-35100
-5130

onlyif mysql # use DIV operator for integer division
query I rowsort label-8987
SELECT + + col2 DIV + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-8987
SELECT + + col2 / + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT + cor0.col0 * col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT col2 * - col1 + - col2 * - col0 FROM tab0 cor0
----
-164
-2046
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT DISTINCT + + col1 DIV cor0.col1 + col0 - + col2 FROM tab2 cor0
----
-19
42
53

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT + + col1 / cor0.col1 + col0 - + col2 FROM tab2 cor0
----
-19
42
53

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + + col0 AS col1 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT 45 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1180
-531
-7876

query I rowsort
SELECT ( - col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-8994
SELECT ALL - + col2 + + col0 DIV - col1 FROM tab2 AS cor0
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL - + col2 + + col0 / - col1 FROM tab2 AS cor0
----
-27
-27
-42

query I rowsort
SELECT ALL + + 72 + + col0 * + col2 * + col2 FROM tab2 cor0
----
114148
5175
52800

query I rowsort
SELECT - + col2 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + + col2 * col2 + + col2 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1296
-33231
-90624

query I rowsort
SELECT col1 + cor0.col1 - - col0 AS col0 FROM tab0 cor0
----
196
229
271

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * tab1.col2 col1 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9001
SELECT - col1 + - tab1.col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT - col1 + - tab1.col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( cor0.col1 ) * - ( 12 ) + - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-1196
-390
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 23 col2 FROM tab1 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT + + 99 - - col2 FROM tab2 AS cor0
----
125
126
137

onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT + + col1 DIV + col2 + + ( + col0 ) * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-9005
SELECT + + col1 / + col2 + + ( + col0 ) * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - + 65 - col0 * 68 FROM tab1 AS cor0
----
-269
-4417
-5505

onlyif mysql # use DIV operator for integer division
query I rowsort label-9007
SELECT - col2 * + col0 + - col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-162
-3649
-7680

skipif mysql # not compatible
query I rowsort label-9007
SELECT - col2 * + col0 + - col0 / col2 AS col0 FROM tab1 AS cor0
----
-162
-3649
-7680

query I rowsort
SELECT DISTINCT + col0 * + ( + col2 ) AS col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9009
SELECT DISTINCT - col0 DIV - col2 + + col0 * col2 FROM tab0 AS cor0
----
70
7299
792

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT - col0 / - col2 + + col0 * col2 FROM tab0 AS cor0
----
70
7299
792

query I rowsort
SELECT ALL + col2 * + col1 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - - col1 + col0 * - col0 * - col2 AS col0 FROM tab2 cor0
----
1354
158243
237175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9012
SELECT DISTINCT + tab2.col1 + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT + tab2.col1 + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9013
SELECT ( + col0 ) + + col2 DIV + 57 col1 FROM tab1
----
3
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9013
SELECT ( + col0 ) + + col2 / + 57 col1 FROM tab1
----
3
65
81

query I rowsort
SELECT - col1 * col2 * + ( col2 ) - col1 AS col2 FROM tab1
----
-119821
-32500
-75842

query I rowsort
SELECT DISTINCT ( - col2 ) + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + 76 * col0 + col1 AS col1 FROM tab0 AS cor0
----
-1738
-2563
-6673

query I rowsort
SELECT ALL - 25 FROM tab1 cor0
----
-25
-25
-25

query I rowsort
SELECT + - col0 - ( col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT - + ( ( - col1 ) ) * 11 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT DISTINCT + ( + 28 ) * + cor0.col1 + + col1 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT ALL 74 + col0 * - col0 FROM tab1 AS cor0
----
-4022
-6326
65

query I rowsort
SELECT DISTINCT col2 * col2 * + col0 FROM tab0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + cor0.col1 col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + 70 * col1 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT + col1 * col0 + col2 * + 81 FROM tab1 AS cor0
----
4452
5257
8816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col0 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9027
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * cor0.col2 + + ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
4558
819
9312

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * cor0.col2 + + ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
4558
819
9312

query I rowsort
SELECT DISTINCT - ( col2 ) + col1 * col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT col1 + - 44 - + col1 AS col0 FROM tab1
----
-44
-44
-44

query I rowsort
SELECT DISTINCT 62 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
62

query I rowsort
SELECT - col2 * ( col2 ) AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col0 * - 13 * - 97 - + col2 FROM tab2
----
8800
98332
99581

query I rowsort
SELECT DISTINCT + col0 + 99 FROM tab2 AS cor0
----
106
177
178

query I rowsort
SELECT ALL 60 * 19 FROM tab1 AS cor0
----
1140
1140
1140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 - - col2 col1 FROM tab0 AS cor0
----
38
6
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9036
SELECT ALL - 38 DIV 41 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - 38 / 41 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * col0 * - col1 + ( col2 * + col1 ) AS col1 FROM tab1 AS cor0
----
101088
37050
5616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + col2 col1 FROM tab0 AS cor0
----
148
67
99

query I rowsort
SELECT DISTINCT ( - 84 * col0 ) + - tab2.col1 FROM tab2
----
-619
-6611
-6653

query I rowsort
SELECT + - col2 * col2 + ( col0 ) FROM tab2 AS cor0
----
-1365
-598
-722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9041
SELECT ( + col2 ) + + CAST( 88 * - col0 + col0 AS SIGNED ) FROM tab0 AS cor0
----
-2055
-3044
-7661

skipif mysql # not compatible
query I rowsort label-9041
SELECT ( + col2 ) + + CAST ( 88 * - col0 + col0 AS INTEGER ) FROM tab0 AS cor0
----
-2055
-3044
-7661

query I rowsort
SELECT col0 * cor0.col0 + - 63 FROM tab1 AS cor0
----
-54
4033
6337

query I rowsort
SELECT + 46 * col2 AS col0 FROM tab0 AS cor0
----
1518
3772
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 21 * tab0.col0 * - col1 col2 FROM tab0
----
-169988
-43258
-71198

query I rowsort
SELECT + 6 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT - 28 * - col2 + + col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
1716
63
9594

query I rowsort
SELECT + col2 + col0 + + 95 AS col2 FROM tab0 AS cor0
----
131
152
266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 * 99 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 618ebdccc2c5664d05064eedc691ba3c

query I rowsort
SELECT DISTINCT + - col0 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT col2 * 98 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
150332
63308
82026

query I rowsort
SELECT ALL - col2 - 22 FROM tab2 AS cor0
----
-48
-49
-60

query I rowsort
SELECT ALL + 64 AS col2 FROM tab0 cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f

query I rowsort
SELECT ALL + + ( ( + col0 ) ) + 93 AS col1 FROM tab0 cor0
----
117
128
182

onlyif mysql # use DIV operator for integer division
query I rowsort label-9054
SELECT DISTINCT + col2 + col2 + + cor0.col2 * col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
173
71
84

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT + col2 + col2 + + cor0.col2 * col1 / + col0 AS col1 FROM tab2 AS cor0
----
173
71
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-9055
SELECT - col2 + - col0 DIV - col1 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-9055
SELECT - col2 + - col0 / - col1 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT ALL + cor0.col1 + + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9057
SELECT - CAST( + ( + col0 ) AS SIGNED ) FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-9057
SELECT - CAST ( + ( + col0 ) AS INTEGER ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - col0 - 30 FROM tab2 AS cor0
----
-108
-109
-37

query I rowsort
SELECT + col2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + + cor0.col2 + - col1 * - col0 AS col0 FROM tab0 cor0
----
2073
3361
8092

query I rowsort
SELECT + col0 * ( cor0.col0 ) + 19 FROM tab2 AS cor0
----
6103
6260
68

query I rowsort
SELECT - tab2.col1 + 88 * 37 * + col2 + col2 FROM tab2
----
123749
84623
87908

query I rowsort
SELECT col2 * ( col1 ) * + col0 + - col1 FROM tab0 AS cor0
----
3298
664027
68026

onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT DISTINCT col2 DIV - col2 + col2 - col1 * - col2 AS col2 FROM tab0
----
2870
7543
97

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT col2 / - col2 + col2 - col1 * - col2 AS col2 FROM tab0
----
2870
7543
97

query I rowsort
SELECT col0 + col1 * 81 FROM tab1 AS cor0
----
1133
2109
874

query I rowsort
SELECT + col0 - - 53 FROM tab0 AS cor0
----
142
77
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9067
SELECT col2 + - CAST( col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-251
-3455
-934

skipif mysql # not compatible
query I rowsort label-9067
SELECT col2 + - CAST ( col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + col2 * + ( - col1 ) + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9069
SELECT - col0 DIV col1 - + col1 AS col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9069
SELECT - col0 / col1 - + col1 AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + + col2 * 91 AS col0 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT + col1 * + 78 AS col0 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT ALL ( - col0 ) + col1 AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT + - 58 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
-399
-4446
-4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * col0 col2 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT 64 * cor1.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4a71c263c48e0486ed85204067e37c41

query I rowsort
SELECT ALL col0 * 9 FROM tab1
----
27
576
720

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
10
13
26

query I rowsort
SELECT - 4 AS col2 FROM tab1 cor0
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9079
SELECT + 4 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT + 4 / - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9080
SELECT DISTINCT 1 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT 1 / col0 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - col1 * + col1 + - 68 AS col0 FROM tab0 AS cor0
----
-7464
-8349
-9477

query I rowsort
SELECT DISTINCT col1 * col2 * 89 FROM tab1
----
111072
124956
50730

query I rowsort
SELECT col0 + + col0 * + 61 FROM tab1
----
186
3968
4960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col2 + 94 FROM tab2 AS cor0
----
56
67
68

query I rowsort
SELECT col0 + + 64 AS col2 FROM tab1 AS cor0
----
128
144
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * cor0.col2 col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - col2 + + col0 * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - - col0 * - 7 + col1 AS col2 FROM tab0 AS cor0
----
-148
-532
-82

query I rowsort
SELECT ALL ( - cor0.col0 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL + ( cor0.col2 ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT tab0.col1 * col2 + + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col2 * + col1 + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT - col2 + col1 + + col1 FROM tab0
----
100
139
193

query I rowsort
SELECT + col1 * - 12 AS col1 FROM tab2
----
-204
-372
-708

query I rowsort
SELECT + col2 + 19 + col0 FROM tab0
----
190
55
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 12 col2 FROM tab2
----
14
15
26

query I rowsort
SELECT ALL - tab2.col2 * - 80 - col0 AS col2 FROM tab2
----
2002
2153
2961

query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab2, tab0 AS cor0
----
-85

query I rowsort
SELECT DISTINCT - col1 * + ( - ( - col2 ) ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 46 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT ALL col1 + + 70 * + 38 * + tab0.col1 + tab0.col2 FROM tab0
----
228879
242233
258118

query I rowsort
SELECT col2 + + col1 * col2 * + col2 FROM tab0 cor0
----
611966
93687
98

query I rowsort
SELECT ALL + col1 + + col1 * + 48 FROM tab1 AS cor0
----
1274
490
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-9106
SELECT DISTINCT + col1 DIV tab0.col0 + - col0 col2 FROM tab0
----
-21
-33
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + col1 / tab0.col0 + - col0 col2 FROM tab0
----
-21
-33
-88

query I rowsort
SELECT 33 * col2 AS col2 FROM tab1
----
1782
1881
3168

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab1, tab2, tab1 AS cor0
----
-84

query I rowsort
SELECT - 5 * - col2 AS col1 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT 5 AS col2 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT + 4 + cor0.col2 AS col2 FROM tab2 AS cor0
----
30
31
42

query I rowsort
SELECT ALL - 5 - col2 AS col2 FROM tab2 cor0
----
-31
-32
-43

query I rowsort
SELECT 79 + cor0.col1 AS col2 FROM tab1 AS cor0
----
105
89
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + - ( col1 ) col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9115
SELECT ALL - col1 + col2 + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL - col1 + col2 + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - col1 + cor0.col0 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT ALL + col1 + - col1 + col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - col0 * - ( + tab2.col0 ) * col2 + tab2.col2 + ( - col2 ) FROM tab2
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 + - tab1.col2 col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9120
SELECT ALL - + col0 + 28 DIV + col2 AS col0 FROM tab0 AS cor0
----
-24
-7
-89

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - + col0 + 28 / + col2 AS col0 FROM tab0 AS cor0
----
-24
-7
-89

query I rowsort
SELECT ALL - col1 * ( 0 ) + - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 + + 74 * col0 FROM tab1 AS cor0
----
248
4746
5933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( 41 + - col1 ) col0 FROM tab1
----
-1984
-2240
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-9124
SELECT ALL col1 + 94 DIV tab1.col2 FROM tab1
----
11
13
27

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL col1 + 94 / tab1.col2 FROM tab1
----
11
13
27

query I rowsort
SELECT cor0.col0 + - 79 * col0 FROM tab1 AS cor0
----
-234
-4992
-6240

query I rowsort
SELECT DISTINCT + col2 + 43 * cor0.col2 * col2 + + ( col1 ) FROM tab2 AS cor0
----
29153
31405
62147

query I rowsort
SELECT DISTINCT col0 * - 6 + col0 AS col0 FROM tab1 cor0
----
-15
-320
-400

query I rowsort
SELECT ALL - ( col1 ) - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + col0 * + 49 AS col2 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT ( col0 ) * + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - + 12 * - cor0.col0 FROM tab2 AS cor0
----
84
936
948

query I rowsort
SELECT DISTINCT + - col0 * 62 + col0 * 62 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + col1 * + col0 - - col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - 11 + - col1 AS col0 FROM tab1 AS cor0
----
-21
-24
-37

query I rowsort
SELECT 82 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1526
758
811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 + col0 col2 FROM tab2 AS cor0
----
1
72
73

query I rowsort
SELECT 30 + + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1564
676
867

query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + - col0 + - 0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - col0 * col1 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - col1 * 32 + col1 FROM tab2 AS cor0
----
-1829
-527
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9142
SELECT DISTINCT ( - col1 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT ( - col1 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - + col0 * + col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - col2 + col2 * + 47 FROM tab2 cor0
----
1196
1242
1748

query I rowsort
SELECT ALL - - col1 * + col1 + col0 * + cor0.col2 AS col1 FROM tab1 cor0
----
3748
7849
838

query I rowsort
SELECT DISTINCT 29 * col1 + 54 FROM tab2
----
1765
547
953

query I rowsort
SELECT - ( col2 ) * + 42 AS col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT ALL 14 + + col1 * + 56 FROM tab0 AS cor0
----
4830
5110
5446

onlyif mysql # use DIV operator for integer division
query I rowsort label-9149
SELECT col0 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9149
SELECT col0 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 41 AS col0 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT - + 11 + col1 FROM tab0 cor0
----
75
80
86

query I rowsort
SELECT + + col0 * - col2 * + col1 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - 68 * - col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT 93 * cor0.col2 AS col0 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 AS col1 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT + col1 DIV 95 + + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9156
SELECT + col1 / 95 + + col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9157
SELECT ALL + - col0 DIV - col1 col0 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL + - col0 / - col1 col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab2, tab1 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - col0 + + col0 * + col2 * - 97 - - col0 AS col1 FROM tab0
----
-3395
-707906
-76824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9162
SELECT ALL + col0 + - CAST( 7 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
17
28
82

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL + col0 + - CAST ( 7 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
17
28
82

query I rowsort
SELECT DISTINCT + col2 * - 81 * col1 + col2 FROM tab0 AS cor0
----
-229845
-604340
-7856

onlyif mysql # use DIV operator for integer division
query I rowsort label-9164
SELECT + + col1 DIV + 29 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9164
SELECT + + col1 / + 29 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 * + ( - 81 ) AS col1 FROM tab0 AS cor0
----
-2673
-6642
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9166
SELECT ALL cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL cor0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 3 - + ( col2 ) AS col2 FROM tab0 AS cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 + col0 col0 FROM tab2 AS cor0
----
-17
141
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( + col2 ) col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT 97 * - col2 FROM tab2
----
-2522
-2619
-3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-9171
SELECT ALL 17 * col0 DIV - col1 FROM tab0
----
-16
-4
-6

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL 17 * col0 / - col1 FROM tab0
----
-16
-4
-6

query I rowsort
SELECT - + 45 + ( + col1 ) AS col1 FROM tab0 cor0
----
41
46
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9173
SELECT + tab2.col0 DIV + cor0.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 60c613737fa1ae16d3c543100fadba57

skipif mysql # not compatible
query I rowsort label-9173
SELECT + tab2.col0 / + cor0.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 60c613737fa1ae16d3c543100fadba57

query I rowsort
SELECT tab1.col2 * col0 + col0 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT - 85 * col0 AS col1 FROM tab0 cor0
----
-2040
-2975
-7565

query I rowsort
SELECT - tab0.col0 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT 53 + - col0 FROM tab2
----
-25
-26
46

query I rowsort
SELECT DISTINCT + + 31 AS col0 FROM tab2, tab0, tab1 AS cor0
----
31

query I rowsort
SELECT ALL 83 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT ALL ( - 97 + col0 ) AS col1 FROM tab1
----
-17
-33
-94

query I rowsort
SELECT + 59 + + col2 AS col0 FROM tab2 AS cor0
----
85
86
97

query I rowsort
SELECT col0 + + ( col0 ) FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + - 15 + + cor0.col2 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
104
158
83

query I rowsort
SELECT col2 + col2 * col0 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT - + col1 * - col1 + 44 * + col0 FROM tab2 AS cor0
----
1269
3765
6913

query I rowsort
SELECT ALL + 94 + col1 AS col1 FROM tab1 AS cor0
----
104
107
120

onlyif mysql # use DIV operator for integer division
query I rowsort label-9188
SELECT ALL - col0 + - col1 + - ( - col1 + - col0 ) * - col2 DIV col2 FROM tab0 AS cor0
----
-220
-264
-360

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - col0 + - col1 + - ( - col1 + - col0 ) * - col2 / col2 FROM tab0 AS cor0
----
-220
-264
-360

query I rowsort
SELECT - col0 + + 66 AS col0 FROM tab1 AS cor0
----
-14
2
63

query I rowsort
SELECT - col1 * - 1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col0 * + 21 FROM tab1 AS cor0
----
-1344
-1680
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) col2 FROM tab2, tab0 cor0
----
1
33
82

query I rowsort
SELECT + col2 * 79 FROM tab2 cor0
----
2054
2133
3002

query I rowsort
SELECT + + col1 * + 93 AS col2 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT ALL + col2 * ( 92 ) FROM tab1
----
4968
5244
8832

onlyif mysql # use DIV operator for integer division
query I rowsort label-9196
SELECT ALL + 26 + 50 DIV + col1 AS col1 FROM tab2 AS cor0
----
26
27
28

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + 26 + 50 / + col1 AS col1 FROM tab2 AS cor0
----
26
27
28

query I rowsort
SELECT - 37 + - col2 FROM tab1 AS cor0
----
-133
-91
-94

query I rowsort
SELECT ALL 40 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
4136
49
6440

query I rowsort
SELECT - - 87 * cor0.col1 FROM tab0 AS cor0
----
7482
7917
8439

query I rowsort
SELECT DISTINCT col0 * + 13 FROM tab0 AS cor0
----
1157
312
455

query I rowsort
SELECT ( 9 * col2 ) FROM tab0
----
297
738
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( col0 ) * col2 ) col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 35 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1499
-611
-802

query I rowsort
SELECT ALL - 83 + + col1 AS col1 FROM tab0 AS cor0
----
14
3
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab0.col1 ) + - cor0.col1 col0 FROM tab0, tab0 cor0
----
9 values hashing to f47321fdc704b303f53ecfb742fc419d

query I rowsort
SELECT - col0 * + col0 + - tab2.col0 * tab2.col0 AS col0 FROM tab2
----
-12168
-12482
-98

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab2, tab1 cor0
----
20

query I rowsort
SELECT - col1 + tab0.col2 * col1 AS col2 FROM tab0
----
0
2752
7371

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col2 * - cor0.col2 + + 17 AS col0 FROM tab2 AS cor0
----
-1427
-659
-712

query I rowsort
SELECT ALL cor0.col0 * col1 + + 46 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
5015
566
8216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + 73 * - 88 col0 FROM tab1 AS cor0
----
6434
6437
6450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 33 * col2 + col0 col1 FROM tab2 AS cor0
----
-6230
-66846
-98987

onlyif mysql # use DIV operator for integer division
query I rowsort label-9214
SELECT ALL - col2 DIV - col0 + + col2 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - col2 / - col0 + + col2 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT col0 - - tab2.col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9216
SELECT tab2.col2 DIV 33 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-9216
SELECT tab2.col2 / 33 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

query I rowsort
SELECT ALL + + tab1.col1 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + 31 * col1 AS col2 FROM tab2
----
1829
527
961

query I rowsort
SELECT DISTINCT - col0 + col0 * 99 FROM tab0
----
2352
3430
8722

query I rowsort
SELECT 10 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col0 * 11 col2 FROM tab2 AS cor0
----
104
884
907

query I rowsort
SELECT DISTINCT + col0 * col2 + col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT col1 + - ( + 47 + + col2 ) FROM tab0 AS cor0
----
-38
49
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9224
SELECT ALL - cor0.col2 * CAST( + 15 + + col0 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-256671
-52488
-875520

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL - cor0.col2 * CAST ( + 15 + + col0 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-256671
-52488
-875520

query I rowsort
SELECT + col0 * col1 * + col2 + + col0 * + col0 FROM tab1 AS cor0
----
106240
40576
4221

query I rowsort
SELECT col1 - - cor0.col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - col1 + + col2 + + col0 AS col2 FROM tab2
----
100
3
45

query I rowsort
SELECT ALL col2 - col2 * - col2 AS col1 FROM tab1 WHERE NULL IN ( + tab1.col1 * - col1 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + tab0.col0 col1 FROM tab0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-9231
SELECT ALL col0 DIV tab1.col2 - col0 FROM tab1
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL col0 / tab1.col2 - col0 FROM tab1
----
-3
-63
-80

query I rowsort
SELECT DISTINCT - col1 * - col1 * col0 AS col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - col0 * + col2 + + tab2.col2 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col1 * - col2 + + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - col1 * - col0 * - col1 FROM tab2
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col1 col1 FROM tab0
----
7310
8190
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col0 FROM tab1 WHERE - tab1.col0 + col2 NOT IN ( col2 )
----
1248
1404
570

query I rowsort
SELECT DISTINCT tab2.col1 + + col2 * col1 AS col0 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL - col0 * col2 * - col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT col2 * + col0 + - tab2.col2 * col2 FROM tab2
----
-540
1352
1558

onlyif mysql # use DIV operator for integer division
query I rowsort label-9241
SELECT - col1 DIV tab0.col1 + + col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-9241
SELECT - col1 / tab0.col1 + + col2 FROM tab0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT col0 DIV col2 - - col1 * - col1 AS col1 FROM tab1
----
-169
-676
-99

skipif mysql # not compatible
query I rowsort label-9242
SELECT col0 / col2 - - col1 * - col1 AS col1 FROM tab1
----
-169
-676
-99

query I rowsort
SELECT - col1 * col0 * col0 + + col0 AS col1 FROM tab2
----
-106018
-1512
-358878

query I rowsort
SELECT tab0.col1 + - tab0.col0 * tab0.col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT + col2 + + col0 * col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col0 - - col0 * col2 * col2 AS col2 FROM tab0 cor0
----
26160
598525
70

query I rowsort
SELECT - col0 * + col1 + col1 AS col2 FROM tab2
----
-1326
-186
-4543

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col2 * col1
----

query I rowsort
SELECT DISTINCT - - col0 + col0 * col2 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT ALL + col0 * col0 + col2 * + col1 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT DISTINCT + col0 * col1 + - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL col1 * col1 + + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 + col2 col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - - cor0.col1 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT + cor0.col1 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col1 * + col1 + col1 FROM tab0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9259
SELECT ALL - col0 DIV col1 + - col2 col1 FROM tab2
----
-27
-27
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL - col0 / col1 + - col2 col1 FROM tab2
----
-27
-27
-42

query I rowsort
SELECT DISTINCT - col2 + tab1.col0 * - col0 AS col0 FROM tab1
----
-4153
-63
-6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col2 FROM tab0 WHERE ( - col0 + - col2 * col1 ) <= ( + col2 * - col1 )
----
35
7298
792

query I rowsort
SELECT - col0 * + col2 * tab1.col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT + tab2.col2 * - col1 * - col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col0 * - tab1.col1 * - col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT ALL + col0 + col1 + col0 * col2 AS col2 FROM tab2
----
2165
227
3098

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL BETWEEN ( col1 ) AND col0 / col2
----

query I rowsort
SELECT tab0.col1 + col2 * col0 + + tab0.col2 AS col1 FROM tab0
----
133
7471
911

query I rowsort
SELECT + + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + tab0.col0 * tab0.col2 + tab0.col1 AS col2 FROM tab0
----
132
7389
878

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT IN ( - col0 + col0 / col2 )
----

query I rowsort
SELECT DISTINCT - col0 * - 70 * cor0.col2 + col1 FROM tab1 AS cor0
----
11366
255370
537613

query I rowsort
SELECT - - cor0.col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col2 * col0 * 68 + col1 * + col1 AS col1 FROM tab0 cor0
----
11789
504545
61252

onlyif mysql # use DIV operator for integer division
query I rowsort label-9275
SELECT DISTINCT - col0 + ( col1 ) DIV + col2 + + col2 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - col0 + ( col1 ) / + col2 + + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + cor0.col2 * 98 + - cor0.col0 FROM tab0 AS cor0
----
3210
63
7947

query I rowsort
SELECT 43 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT ALL + 87 + - col0 AS col1 FROM tab2
----
8
80
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9279
SELECT ALL 44 + - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL 44 + - col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 * - 61 FROM tab2
----
-39406
-51057
-93574

onlyif mysql # use DIV operator for integer division
query I rowsort label-9281
SELECT ALL - tab0.col1 * col0 DIV 3 FROM tab0
----
-1131
-2699
-688

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - tab0.col1 * col0 / 3 FROM tab0
----
-1131
-2699
-688

query I rowsort
SELECT 56 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 * + col0 col0 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9284
SELECT - CAST( NULL AS DECIMAL ) * cor0.col2 * col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT - CAST ( NULL AS REAL ) * cor0.col2 * col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + 26 FROM tab0
----
60
65
71

query I rowsort
SELECT + cor1.col2 * + 46 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to bf0183b54e5412a34c217a814687e823

query I rowsort
SELECT DISTINCT + col2 + + col1 * - ( 97 * - tab2.col2 ) FROM tab2
----
148824
62700
81216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - col1 + col2 * 16 AS col1 FROM tab2 AS cor0
----
357
401
591

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9291
SELECT DISTINCT + ( col0 ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT + ( col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT cor0.col0 + 79 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 562b576610ecab31197909be1728dc1f

query I rowsort
SELECT + + col2 * - cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT ( - col0 ) * + ( + ( col0 ) ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + 95 * col0 + + col0 AS col2 FROM tab2 cor0
----
672
7488
7584

query I rowsort
SELECT DISTINCT - 57 * col0 + - col0 * + col1 FROM tab0
----
-13172
-3432
-5390

query I rowsort
SELECT DISTINCT + col1 + tab0.col2 * - col0 * col0 FROM tab0
----
-1128
-18922
-649431

query I rowsort
SELECT ( + col0 ) * - col1 * - col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - - 79 + col1 FROM tab0 cor0
----
165
170
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) * cor0.col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + + 6 + col0 * col2 FROM tab2 AS cor0
----
195
2034
3008

query I rowsort
SELECT ALL - cor0.col1 + - col1 AS col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + 92 + + col1 - col2 AS col1 FROM tab0 cor0
----
101
145
188

query I rowsort
SELECT + 24 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-2184
-2328

query I rowsort
SELECT DISTINCT - col2 * col1 + col2 * + cor0.col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * - cor0.col2 - + col2 col2 FROM tab2 cor0
----
-364
-378
-532

query I rowsort
SELECT + col0 * col2 + col2 * col2 FROM tab0 AS cor0
----
14022
1881
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - col1 + - col1 * col2 col2 FROM tab0 AS cor0
----
-159
-2900
-7464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col0 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT cor0.col1 * col2 + col2 * col1 FROM tab1 cor0
----
1140
2496
2808

onlyif mysql # use DIV operator for integer division
query I rowsort label-9311
SELECT DISTINCT - cor0.col0 DIV cor0.col0 - - col0 * col0 FROM tab0 cor0
----
1224
575
7920

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT - cor0.col0 / cor0.col0 - - col0 * col0 FROM tab0 cor0
----
1224
575
7920

query I rowsort
SELECT - cor0.col2 * - col2 AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT col1 * + col1 + col2 * - col0 FROM tab2 AS cor0
----
-2713
1453
772

query I rowsort
SELECT DISTINCT 85 * - ( col0 ) FROM tab0 AS cor0
----
-2040
-2975
-7565

query I rowsort
SELECT ALL - - ( - col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL 62 * cor0.col1 AS col2 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT ALL ( 80 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL 6 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL + col1 * + 11 AS col0 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT ALL ( - col1 ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9322
SELECT DISTINCT - cor0.col1 DIV - cor0.col2 FROM tab2, tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT - cor0.col1 / - cor0.col2 FROM tab2, tab0 cor0
----
1
2
97

query I rowsort
SELECT - 31 - 49 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9324
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 5 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 5 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT 34 * - col2 AS col1 FROM tab1
----
-1836
-1938
-3264

query I rowsort
SELECT DISTINCT - col0 + col0 - col0 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9327
SELECT CAST( 60 AS SIGNED ) DIV col1 + - tab2.col1 * tab2.col1 AS col1 FROM tab2
----
-286
-3480
-960

skipif mysql # not compatible
query I rowsort label-9327
SELECT CAST ( 60 AS INTEGER ) / col1 + - tab2.col1 * tab2.col1 AS col1 FROM tab2
----
-286
-3480
-960

query I rowsort
SELECT 23 * col1 * col1 FROM tab1 AS cor0
----
15548
2300
3887

query I rowsort
SELECT ALL - - col0 + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL + 76 * + col0 AS col2 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT ALL - + 76 AS col1 FROM tab1 cor0
----
-76
-76
-76

query I rowsort
SELECT + 61 + - col1 FROM tab1 AS cor0
----
35
48
51

query I rowsort
SELECT DISTINCT col1 - - ( + col0 + + col1 ) AS col2 FROM tab0
----
196
229
271

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) + col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL 8 * col0 * + col2 + + col0 FROM tab2
----
1519
16302
24095

query I rowsort
SELECT 3 + col2 AS col1 FROM tab1
----
57
60
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9337
SELECT - ( col0 ) DIV col1 + + col1 + + tab1.col0 FROM tab1
----
29
68
87

skipif mysql # not compatible
query I rowsort label-9337
SELECT - ( col0 ) / col1 + + col1 + + tab1.col0 FROM tab1
----
29
68
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9338
SELECT CAST( - col2 AS SIGNED ) + + tab2.col2 * col0 AS col2 FROM tab2
----
162
2002
2964

skipif mysql # not compatible
query I rowsort label-9338
SELECT CAST ( - col2 AS INTEGER ) + + tab2.col2 * col0 AS col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT + col1 * + 88 AS col0 FROM tab2
----
1496
2728
5192

onlyif mysql # use DIV operator for integer division
query I rowsort label-9340
SELECT + col2 DIV 47 - tab1.col0 AS col0 FROM tab1
----
-2
-63
-78

skipif mysql # not compatible
query I rowsort label-9340
SELECT + col2 / 47 - tab1.col0 AS col0 FROM tab1
----
-2
-63
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT DISTINCT 8 * 96 DIV col1 - col0 FROM tab2
----
-34
-65
17

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT 8 * 96 / col1 - col0 FROM tab2
----
-34
-65
17

query I rowsort
SELECT DISTINCT + - 15 AS col0 FROM tab1 cor0
----
-15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9343
SELECT CAST( col0 AS SIGNED ) * + col2 col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9343
SELECT CAST ( col0 AS INTEGER ) * + col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 * + 77 FROM tab0 cor0
----
6622
7007
7469

query I rowsort
SELECT DISTINCT + col0 + - col1 * - col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - col1 * - 34 FROM tab1 AS cor0
----
340
442
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT + + col0 * 75 AS col1 FROM tab0 AS cor0
----
1800
2625
6675

query I rowsort
SELECT - 69 * - cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6a7ef85e0fb1b9085f842cc4128478e0

query I rowsort
SELECT DISTINCT - + 52 FROM tab2, tab0, tab1 AS cor0
----
-52

query I rowsort
SELECT ALL 44 * + col0 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT + 29 * col0 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT DISTINCT - - ( - 94 ) AS col1 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT ALL - + ( col0 ) * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - 6 * + col0 FROM tab1 AS cor0
----
-18
-384
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 + + cor0.col2 * cor0.col1 col0 FROM tab1 AS cor0
----
1187
1343
509

query I rowsort
SELECT + col1 + - col1 * - tab1.col2 + 52 FROM tab1
----
1313
1482
632

query I rowsort
SELECT DISTINCT 96 - cor0.col1 FROM tab1, tab1 AS cor0
----
70
83
86

query I rowsort
SELECT 38 + col2 AS col1 FROM tab1 AS cor0
----
134
92
95

query I rowsort
SELECT DISTINCT 43 FROM tab2, tab2 cor0
----
43

query I rowsort
SELECT - ( 17 + + col2 * + ( 60 ) ) FROM tab2
----
-1577
-1637
-2297

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9362
SELECT ALL - ( 32 ) * + col1 * CAST( 53 + - col1 * + 18 AS SIGNED ) FROM tab0
----
4114240
4615520
5255072

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL - ( 32 ) * + col1 * CAST ( 53 + - col1 * + 18 AS INTEGER ) FROM tab0
----
4114240
4615520
5255072

query I rowsort
SELECT ALL + col2 * + col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9364
SELECT tab0.col2 * col0 - - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT tab0.col2 * col0 - - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 56 + - cor0.col1 AS col1 FROM tab1 cor0
----
-194
-3594
-4493

query I rowsort
SELECT ALL col0 * + ( + 73 ) AS col2 FROM tab2 AS cor0
----
511
5694
5767

query I rowsort
SELECT DISTINCT - col0 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - cor0.col1 * - ( - 52 ) + col0 AS col0 FROM tab0 AS cor0
----
-4448
-4643
-5009

onlyif mysql # use DIV operator for integer division
query I rowsort label-9369
SELECT ALL col0 + - ( - cor0.col1 ) DIV + col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL col0 + - ( - cor0.col1 ) / + col0 FROM tab1 AS cor0
----
11
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT DISTINCT + col0 DIV 35 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + col0 / 35 FROM tab2 AS cor0
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9371
SELECT DISTINCT - col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT - col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - 19 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT col2 + + ( col0 ) AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT col2 * - 91 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT DISTINCT - col1 + - 86 FROM tab1 cor0
----
-112
-96
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9376
SELECT ALL - - cor0.col2 + - col1 DIV cor0.col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - - cor0.col2 + - col1 / cor0.col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + - cor0.col2 + ( + cor0.col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9378
SELECT DISTINCT - cor0.col2 DIV col2 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT - cor0.col2 / col2 + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL 99 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT + - col1 + - 10 * col2 * col0 FROM tab0 AS cor0
----
-447
-73071
-8006

query I rowsort
SELECT ALL col1 * + 42 * col2 FROM tab1 AS cor0
----
23940
52416
58968

query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 * cor0.col2 FROM tab1 cor0
----
2862
3192
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-9383
SELECT + 86 DIV tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to bdc4d1a0f3cb4d6d9e3b600dcdc5ca97

skipif mysql # not compatible
query I rowsort label-9383
SELECT + 86 / tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to bdc4d1a0f3cb4d6d9e3b600dcdc5ca97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9384
SELECT + col2 DIV col0 + col0 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-9384
SELECT + col2 / col0 + col0 FROM tab0
----
25
35
89

query I rowsort
SELECT - col1 * + 16 AS col0 FROM tab2
----
-272
-496
-944

query I rowsort
SELECT + tab0.col0 + 15 FROM tab0
----
104
39
50

query I rowsort
SELECT ALL + 62 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT + 74 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT - col1 DIV + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9389
SELECT - col1 / + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + + tab2.col0 col2 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL + col2 * - col1 * col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-119728
-32426
-75813

query I rowsort
SELECT - col0 + - col1 * 68 FROM tab2 AS cor0
----
-1235
-2115
-4090

onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT DISTINCT + 37 + - cor0.col0 DIV col1 - 42 DIV col0 FROM tab1 cor0
----
23
31

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT + 37 + - cor0.col0 / col1 - 42 / col0 FROM tab1 cor0
----
23
31

query I rowsort
SELECT ALL - + col1 * + col0 + - col0 * - col0 - + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-119
11139
7566

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 - 90 - col0 FROM tab2 cor0
----
-168
-169
-97

query I rowsort
SELECT DISTINCT 86 * - col0 AS col0 FROM tab1
----
-258
-5504
-6880

query I rowsort
SELECT + col2 + + col0 - cor0.col1 AS col2 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT ALL col2 * col0 * - 81 + + col2 * col2 + col1 AS col1 FROM tab1 AS cor0
----
-10180
-292229
-612851

query I rowsort
SELECT + col0 * col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - + col1 + - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - col0 + ( cor0.col1 * - col0 ) AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL + + col0 - + ( - 60 ) * col0 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT - cor0.col0 * 94 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
-2342
-3387
-8457

query I rowsort
SELECT ALL 85 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + col1 + col0 + ( - 54 ) AS col1 FROM tab1 AS cor0
----
-25
20
39

query I rowsort
SELECT + col1 + - col1 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + 42 + - cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT - col2 * col0 + + ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - col1 + col0 + 86 FROM tab1 AS cor0
----
140
153
63

query I rowsort
SELECT DISTINCT 52 * + col0 + - col2 FROM tab0 AS cor0
----
1215
1819
4546

query I rowsort
SELECT ALL 5 + - cor0.col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-157
-3643
-7675

query I rowsort
SELECT + 18 + cor0.col2 + + col0 FROM tab1 AS cor0
----
139
194
75

query I rowsort
SELECT ALL - ( - col2 ) + 11 FROM tab1 AS cor0
----
107
65
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-9415
SELECT tab2.col2 DIV - 79 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9415
SELECT tab2.col2 / - 79 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - - col1 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9417
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL + 48 * tab1.col1 FROM tab1
----
1248
480
624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9419
SELECT DISTINCT CAST( 96 AS SIGNED ) * + col2 FROM tab0 cor0
----
3168
7872
96

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT CAST ( 96 AS INTEGER ) * + col2 FROM tab0 cor0
----
3168
7872
96

query I rowsort
SELECT - col1 * + col2 + col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + 37 + col0 FROM tab0 AS cor0
----
126
61
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-9422
SELECT ( - 42 ) DIV col2 - + col0 FROM tab0 cor0
----
-25
-77
-89

skipif mysql # not compatible
query I rowsort label-9422
SELECT ( - 42 ) / col2 - + col0 FROM tab0 cor0
----
-25
-77
-89

query I rowsort
SELECT DISTINCT + ( col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + + 16 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9425
SELECT DISTINCT + CAST( col1 AS SIGNED ) - - col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT + CAST ( col1 AS INTEGER ) - - col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + ( col1 ) * - col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - 45 + col2 + + col2 * - ( col1 ) FROM tab0 AS cor0
----
-141
-2850
-7425

query I rowsort
SELECT ALL 14 * col0 + col0 FROM tab2
----
105
1170
1185

query I rowsort
SELECT DISTINCT - ( + col2 ) + tab2.col1 * 63 * + 26 AS col0 FROM tab2
----
27808
50751
96616

query I rowsort
SELECT ( - cor0.col0 ) * - col1 + - col2 + - col1 * col0 * - 55 FROM tab0 cor0
----
115551
190119
453462

query I rowsort
SELECT - cor0.col0 * cor0.col0 FROM tab1, tab0 cor0
----
9 values hashing to 4734c38591591662f77999e8d1e5daf1

query I rowsort
SELECT + 58 * col0 - + col2 FROM tab2 AS cor0
----
379
4498
4544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + + col2 col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col1 * + col0 * col1 - col2 FROM tab0
----
177471
329314
736927

query I rowsort
SELECT ALL 3 * col2 + col1 AS col1 FROM tab2
----
112
131
137

query I rowsort
SELECT - col0 + - 48 AS col2 FROM tab2
----
-126
-127
-55

query I rowsort
SELECT ALL 0 * col2 * col0 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col1 * + cor0.col1 + col2 * cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
14095
18722
54583

query I rowsort
SELECT DISTINCT - - 19 + col1 - + ( ( - col2 ) ) * + col1 AS col1 FROM tab0 AS cor0
----
213
2943
7572

query I rowsort
SELECT + ( + cor1.col2 ) FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + 86 + - col0 AS col1 FROM tab0
----
-3
51
62

query I rowsort
SELECT DISTINCT - col2 * + col1 + col1 + col0 AS col2 FROM tab1 cor0
----
-1155
-1375
-496

query I rowsort
SELECT 89 - col0 FROM tab0 AS cor0
----
0
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * col2 * col2 + cor0.col2 * col1 col2 FROM tab2 cor0
----
-2242
-621
182

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * col0 AS col2 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT - 7 * col1 + - cor0.col2 FROM tab2 AS cor0
----
-157
-244
-439

onlyif mysql # use DIV operator for integer division
query I rowsort label-9448
SELECT + ( + col0 ) * + 86 * cor0.col2 + col0 DIV 56 AS col2 FROM tab0 AS cor0
----
3010
627629
68112

skipif mysql # not compatible
query I rowsort label-9448
SELECT + ( + col0 ) * + 86 * cor0.col2 + col0 / 56 AS col2 FROM tab0 AS cor0
----
3010
627629
68112

query I rowsort
SELECT DISTINCT + - col0 + + cor0.col1 * + ( + col2 ) FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT + ( - col2 ) * + 94 * + 74 + col1 AS col2 FROM tab0 AS cor0
----
-229462
-570301
-6859

query I rowsort
SELECT ( col2 ) - - col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col1 + col2 * + col1 * - col1 AS col0 FROM tab2
----
-10965
-25916
-90447

query I rowsort
SELECT col0 * cor0.col1 * + ( - cor0.col0 ) FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL cor0.col1 + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd

query I rowsort
SELECT ALL - - col0 + + col1 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-9457
SELECT ALL + col0 DIV 7 AS col1 FROM tab1 cor0
----
0
11
9

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL + col0 / 7 AS col1 FROM tab1 cor0
----
0
11
9

query I rowsort
SELECT ALL - 37 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 94 * + ( - cor0.col0 ) FROM tab1 AS cor0
----
282
6016
7520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9461
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - col1 * 1 - col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - col1 + + col0 * col0 * - col2 FROM tab0 AS cor0
----
-1322
-19094
-649613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * + col2 col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + + cor0.col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9467
SELECT ALL - - col0 DIV - col0 - + col2 col2 FROM tab2 AS cor0
----
-27
-28
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - - col0 / - col0 - + col2 col2 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT ALL - - ( 64 ) * + col2 - col0 FROM tab0 AS cor0
----
2088
29
5159

query I rowsort
SELECT DISTINCT + col0 * - 45 FROM tab0 cor0
----
-1080
-1575
-4005

query I rowsort
SELECT ALL tab2.col1 * + 27 FROM tab2
----
1593
459
837

query I rowsort
SELECT ALL col2 + - col0 * + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - 85 * col2 * col0 FROM tab0 cor0
----
-2975
-620330
-67320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9473
SELECT DISTINCT - + col0 + + col0 * CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
159
3584
7600

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - + col0 + + col0 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + ( col2 ) + ( - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL - - 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT tab2.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - + col1 * + 33 FROM tab1 AS cor0
----
-330
-429
-858

query I rowsort
SELECT + + col2 * - 48 FROM tab1 cor0
----
-2592
-2736
-4608

query I rowsort
SELECT DISTINCT col2 * ( - col0 ) AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col2 * - cor0.col0 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT + - ( col1 ) + cor0.col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL - - col1 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9484
SELECT ALL CAST( NULL AS SIGNED ) * + col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9485
SELECT + col1 * col0 + col0 DIV + tab0.col0 FROM tab0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-9485
SELECT + col1 * col0 + col0 / + tab0.col0 FROM tab0
----
2065
3396
8100

query I rowsort
SELECT ALL - + 45 - 11 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9487
SELECT ALL CAST( - 25 AS SIGNED ) AS col2 FROM tab2 cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL CAST ( - 25 AS INTEGER ) AS col2 FROM tab2 cor0
----
-25
-25
-25

query I rowsort
SELECT 2 + - 96 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to d4c5b1dbf2cd8753fb5ffe745ca9f5de

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 + + 42 col1 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT + 44 * col1 FROM tab1 AS cor0
----
1144
440
572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9491
SELECT col2 * col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT col2 * col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + cor0.col2 + col0 * col0 + col0 FROM tab2 AS cor0
----
-133
3318
4134

query I rowsort
SELECT DISTINCT + + ( col1 ) * ( ( - col2 ) ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 77 - - col2 * ( - col0 ) FROM tab0 AS cor0
----
-112
-7375
-869

onlyif mysql # use DIV operator for integer division
query I rowsort label-9495
SELECT ALL + 78 DIV col2 FROM tab0 cor0
----
0
2
78

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL + 78 / col2 FROM tab0 cor0
----
0
2
78

query I rowsort
SELECT col2 * col1 * ( 51 * col0 ) + - 67 FROM tab2 AS cor0
----
2602667
298742
6102185

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * - 29 FROM tab0 AS cor0
----
-2408
-2548
-2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT 31 DIV - col0 + - CAST( - col2 AS SIGNED ) * + col1 * 56 FROM tab0 AS cor0
----
158927
417872
5432

skipif mysql # not compatible
query I rowsort label-9498
SELECT 31 / - col0 + - CAST ( - col2 AS INTEGER ) * + col1 * 56 FROM tab0 AS cor0
----
158927
417872
5432

query I rowsort
SELECT ALL - 29 * col1 + col2 AS col0 FROM tab0
----
-2461
-2557
-2812

query I rowsort
SELECT ALL - 34 + 85 FROM tab0
----
51
51
51

query I rowsort
SELECT DISTINCT - col2 * + 39 + + col0 FROM tab2
----
-1046
-1403
-936

onlyif mysql # use DIV operator for integer division
query I rowsort label-9502
SELECT - col2 DIV + col2 + col2 - col1 * 17 AS col1 FROM tab0
----
-1430
-1466
-1649

skipif mysql # not compatible
query I rowsort label-9502
SELECT - col2 / + col2 + col2 - col1 * 17 AS col1 FROM tab0
----
-1430
-1466
-1649

query I rowsort
SELECT 6 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT - 21 + col2 FROM tab0 AS cor0
----
-20
12
61

query I rowsort
SELECT - col1 + + col0 * - tab2.col1 * col2 + tab2.col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + cor0.col0 + cor0.col2 * ( col2 ) FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col2 + 23 FROM tab2
----
49
50
61

query I rowsort
SELECT + col0 * col2 - 33 FROM tab2 AS cor0
----
156
1995
2969

query I rowsort
SELECT 39 * - col1 AS col0 FROM tab2
----
-1209
-2301
-663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9510
SELECT - col2 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT - col2 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col2 col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT DISTINCT col2 + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT col2 + col0 / col0 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT - col0 + - ( col2 + col0 * 5 ) FROM tab2 AS cor0
----
-494
-512
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-9514
SELECT DISTINCT 8 DIV - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT 8 / - col1 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9515
SELECT + + 68 DIV col1 FROM tab1 AS cor0
----
2
5
6

skipif mysql # not compatible
query I rowsort label-9515
SELECT + + 68 / col1 FROM tab1 AS cor0
----
2
5
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9516
SELECT - CAST( - col0 AS SIGNED ) * col0 DIV + 9 FROM tab0 AS cor0
----
136
64
880

skipif mysql # not compatible
query I rowsort label-9516
SELECT - CAST ( - col0 AS INTEGER ) * col0 / + 9 FROM tab0 AS cor0
----
136
64
880

query I rowsort
SELECT 42 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + + col1 * + col2 + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-9519
SELECT - + col1 DIV ( cor0.col0 ) FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT - + col1 / ( cor0.col0 ) FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT - ( - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL ( - cor0.col2 ) + col0 + col2 * col0 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT DISTINCT col2 * 36 - col2 FROM tab2
----
1330
910
945

query I rowsort
SELECT DISTINCT col1 * - tab1.col1 - - ( - col0 ) AS col0 FROM tab1
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-9524
SELECT DISTINCT tab1.col2 * col2 DIV + tab1.col0 - - col1 * col2 AS col1 FROM tab1
----
1363
2376
620

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT tab1.col2 * col2 / + tab1.col0 - - col1 * col2 AS col1 FROM tab1
----
1363
2376
620

query I rowsort
SELECT - col1 + col0 - col0 * col0 FROM tab0
----
-1287
-638
-7923

query I rowsort
SELECT + - col2 + cor0.col0 * col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT - col0 + + cor0.col0 * + 91 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT col1 + 62 * + col1 * col0 FROM tab0 cor0
----
128054
210587
502229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9529
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 11 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT - CAST ( NULL AS REAL ) + 11 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - 21 * col2 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
153176
16599
734

query I rowsort
SELECT ALL + col0 * col1 + + col0 * cor0.col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT + col1 + - 17 * cor0.col2 FROM tab2 AS cor0
----
-383
-428
-629

query I rowsort
SELECT ALL + - col1 * - 81 + col1 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT - + ( col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT ( - col1 ) + + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + 95 + col2 FROM tab0 AS cor0
----
128
177
96

query I rowsort
SELECT ALL - + 20 + col2 - - col2 * cor0.col2 FROM tab1 AS cor0
----
2950
3286
9292

query I rowsort
SELECT - - 58 * col1 + + cor0.col2 FROM tab0 AS cor0
----
5021
5360
5627

query I rowsort
SELECT ALL col0 * 94 AS col1 FROM tab1 cor0
----
282
6016
7520

query I rowsort
SELECT ALL - 67 * 55 FROM tab0 AS cor0
----
-3685
-3685
-3685

query I rowsort
SELECT DISTINCT + col2 + 98 * + cor0.col1 - + 31 FROM tab0 AS cor0
----
8430
8969
9476

query I rowsort
SELECT + 39 * - cor0.col2 + col0 * - 14 FROM tab0 AS cor0
----
-1623
-4444
-529

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 - + col1 AS col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - + col1 + - 36 AS col0 FROM tab0 AS cor0
----
-122
-127
-133

query I rowsort
SELECT ALL - col1 + - 92 * - col0 AS col2 FROM tab0 AS cor0
----
2122
3123
8097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * cor0.col1 col0 FROM tab0 AS cor0
----
-1806
-1911
-2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-9547
SELECT ALL + 25 + + col2 DIV - ( col2 ) FROM tab0 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + 25 + + col2 / - ( col2 ) FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT 73 - col1 AS col0 FROM tab1 AS cor0
----
47
60
63

query I rowsort
SELECT - 59 + - col1 AS col2 FROM tab0 AS cor0
----
-145
-150
-156

query I rowsort
SELECT DISTINCT 37 * ( col0 ) AS col2 FROM tab1
----
111
2368
2960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + - col2 col0 FROM tab2 AS cor0
----
40
51
52

query I rowsort
SELECT - - 23 * + col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT DISTINCT + col2 * + ( 82 ) FROM tab2 AS cor0
----
2132
2214
3116

onlyif mysql # use DIV operator for integer division
query I rowsort label-9554
SELECT col0 * col2 DIV + col0 AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9554
SELECT col0 * col2 / + col0 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 * - col0 + + col2 * + col0 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT DISTINCT col0 + + col2 * 42 FROM tab2 AS cor0
----
1141
1170
1675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9557
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + + ( col1 ) * - 0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + + ( col1 ) * - 0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col2 * ( - col0 * col0 ) FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT + col1 * ( - 29 ) FROM tab1 AS cor0
----
-290
-377
-754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9560
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * tab1.col2 + + 75 * - col1 FROM tab1
----
-180
-546
273

query I rowsort
SELECT DISTINCT col0 + - 38 AS col1 FROM tab1 AS cor0
----
-35
26
42

query I rowsort
SELECT DISTINCT - col2 + - 39 AS col1 FROM tab0 AS cor0
----
-121
-40
-72

query I rowsort
SELECT DISTINCT col2 + col0 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - cor0.col1 * - col1 - col0 AS col0 FROM tab2 cor0
----
210
3403
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9566
SELECT cor1.col1 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9566
SELECT cor1.col1 + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9567
SELECT tab0.col1 * + 76 + col2 DIV col0 + 5 FROM tab0
----
6542
6921
7377

skipif mysql # not compatible
query I rowsort label-9567
SELECT tab0.col1 * + 76 + col2 / col0 + 5 FROM tab0
----
6542
6921
7377

query I rowsort
SELECT col2 + 87 FROM tab1 AS cor0
----
141
144
183

onlyif mysql # use DIV operator for integer division
query I rowsort label-9569
SELECT DISTINCT - col1 DIV 65 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT - col1 / 65 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + cor0.col0 * 17 col1 FROM tab2 AS cor0
----
1267
1326
88

query I rowsort
SELECT + col1 + col0 * - ( + 92 ) FROM tab1 AS cor0
----
-250
-5878
-7347

query I rowsort
SELECT + 65 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 * col2 col1 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - tab1.col2 + - col1 * col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col0 * + tab2.col0 * col1 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT col0 * col0 + 41 * tab2.col1 FROM tab2
----
1320
6938
8503

query I rowsort
SELECT DISTINCT + col1 * col0 * - tab0.col1 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + - 30 * + col1 FROM tab0 cor0
----
-2580
-2730
-2910

query I rowsort
SELECT - + col2 + col1 * 44 AS col2 FROM tab1 AS cor0
----
1090
383
476

query I rowsort
SELECT ALL - + 13 + - col0 AS col1 FROM tab1 AS cor0
----
-16
-77
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT col2 * + col2 + col0 * col1 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT ( - 12 ) AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT - + col0 + col2 * - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col0 + 87 FROM tab2
----
165
166
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9588
SELECT CAST( NULL AS DECIMAL ) * - 83 + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT CAST ( NULL AS REAL ) * - 83 + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9589
SELECT DISTINCT col2 DIV + 77 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT col2 / + 77 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + cor0.col0 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9592
SELECT DISTINCT + col2 * cor0.col0 DIV col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT + col2 * cor0.col0 / col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col1 + col2 + col0 * cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
314
41027
83309

query I rowsort
SELECT DISTINCT - 94 FROM tab2, tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - col1 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + 9 + + col1 AS col1 FROM tab1 AS cor0
----
19
22
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9597
SELECT CAST( col2 AS DECIMAL ) + col2 + CAST( NULL AS SIGNED ) * - 31 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT CAST ( col2 AS REAL ) + col2 + CAST ( NULL AS INTEGER ) * - 31 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab2.col0 * - col0 - tab2.col1 AS col2 FROM tab2
----
-6143
-6258
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9599
SELECT DISTINCT + tab1.col1 + col1 DIV ( ( col0 ) ) FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT + tab1.col1 + col1 / ( ( col0 ) ) FROM tab1
----
10
13
34

query I rowsort
SELECT DISTINCT + tab1.col0 + + col1 * + ( col1 ) FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-9601
SELECT ALL col1 + col0 DIV - 15 AS col2 FROM tab2
----
12
31
54

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL col1 + col0 / - 15 AS col2 FROM tab2
----
12
31
54

query I rowsort
SELECT + col2 * + col2 * + col2 + + ( + col0 + col0 ) * col1 AS col0 FROM tab1
----
157620
186473
886816

query I rowsort
SELECT ALL + col0 + + col1 * - 10 * - col2 FROM tab0 AS cor0
----
1005
28404
74709

query I rowsort
SELECT + - cor0.col0 * cor0.col1 - - col1 * - col0 FROM tab1 AS cor0
----
-1280
-156
-2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-9605
SELECT ALL - col0 * col0 + + col2 DIV - col2 AS col0 FROM tab0 cor0
----
-1226
-577
-7922

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - col0 * col0 + + col2 / - col2 AS col0 FROM tab0 cor0
----
-1226
-577
-7922

query I rowsort
SELECT DISTINCT + col2 + col0 + - ( col0 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 * - col2 - 68 AS col2 FROM tab1 AS cor0
----
1180
1336
502

query I rowsort
SELECT ALL + col1 + - col0 * 83 AS col0 FROM tab1 AS cor0
----
-223
-5302
-6627

query I rowsort
SELECT col0 * - col1 + cor0.col0 * - col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT ALL + col0 - 58 FROM tab0 cor0
----
-23
-34
31

query I rowsort
SELECT ALL - col1 * - 74 + - 60 AS col1 FROM tab2 AS cor0
----
1198
2234
4306

onlyif mysql # use DIV operator for integer division
query I rowsort label-9612
SELECT ALL col0 DIV + col2 + - col2 + cor0.col1 * - col0 AS col2 FROM tab0 cor0
----
-2097
-3361
-8180

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL col0 / + col2 + - col2 + cor0.col1 * - col0 AS col2 FROM tab0 cor0
----
-2097
-3361
-8180

query I rowsort
SELECT col2 * - col2 * + 18 + - col2 + - col0 FROM tab2
----
-12272
-13156
-26109

query I rowsort
SELECT col2 * + tab1.col2 + - ( + col0 ) * - col0 - + col1 FROM tab1
----
15603
2899
7335

query I rowsort
SELECT 68 + - col2 * col1 + + col0 AS col0 FROM tab0
----
-2746
-7305
6

query I rowsort
SELECT ALL - 72 + tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 546d0234a94dc4dd84b953a8f39d1766

query I rowsort
SELECT ALL - + cor0.col1 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT 41 * col1 - + col1 FROM tab1
----
1040
400
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * + col2 - + col2 col1 FROM tab0 AS cor0
----
244035
678960
9408

query I rowsort
SELECT - col2 * col1 - + col2 * col1 AS col1 FROM tab0 cor0
----
-14924
-194
-5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9621
SELECT col0 DIV CAST( col0 AS SIGNED ) col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9621
SELECT col0 / CAST ( col0 AS INTEGER ) col2 FROM tab1
----
1
1
1

query I rowsort
SELECT col2 * + ( - col1 * - col1 ) FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - + ( col2 ) * cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 2 - col2 FROM tab0 AS cor0
----
-31
-80
1

query I rowsort
SELECT + - 74 * col1 + + col2 FROM tab2 AS cor0
----
-1220
-2267
-4340

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col1 + - col1 + col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - col2 + + col0 * 89 FROM tab2 cor0
----
596
6916
6993

query I rowsort
SELECT DISTINCT - 46 * col1 AS col2 FROM tab1 cor0
----
-1196
-460
-598

onlyif mysql # use DIV operator for integer division
query I rowsort label-9630
SELECT col1 + + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9630
SELECT col1 + + col2 / col2 AS col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT - + col2 * - cor0.col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9632
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - tab2.col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - tab2.col1 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 73 + + tab2.col1 * tab2.col1 FROM tab2
----
1034
3554
362

query I rowsort
SELECT + + 92 + cor0.col1 FROM tab1 AS cor0
----
102
105
118

query I rowsort
SELECT ALL - 42 + - col1 AS col1 FROM tab2 AS cor0
----
-101
-59
-73

query I rowsort
SELECT - col1 + - col1 * cor0.col0 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL + col0 * - cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 AS cor0, tab2 cor1
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

query I rowsort
SELECT - cor0.col0 - - cor0.col1 * - col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + - col2 - cor0.col2 * + 30 FROM tab0 AS cor0
----
-1023
-2542
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-9641
SELECT ALL 59 DIV + cor0.col1 + 83 FROM tab2 AS cor0
----
84
84
86

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL 59 / + cor0.col1 + 83 FROM tab2 AS cor0
----
84
84
86

query I rowsort
SELECT + 24 + col1 * cor0.col1 FROM tab1 AS cor0
----
124
193
700

onlyif mysql # use DIV operator for integer division
query I rowsort label-9643
SELECT ALL - col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL - col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 94 + cor0.col0 + col1 AS col1 FROM tab2 cor0
----
-56
2
43

query I rowsort
SELECT ALL + - 39 AS col1 FROM tab1 AS cor0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * col0 + 67 col2 FROM tab1 AS cor0
----
229
3715
7747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col2 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT - 58 + col0 * col2 AS col0 FROM tab0 AS cor0
----
-23
7240
734

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col0 * - col1 + + col1 + col2 FROM tab2 cor0
----
-1288
-159
-4517

query I rowsort
SELECT col0 - - ( col2 ) * + col1 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT col0 * + col2 + + tab2.col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT DISTINCT - + col0 + + 29 AS col1 FROM tab2 AS cor0
----
-49
-50
22

query I rowsort
SELECT + 64 + col1 AS col1 FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT DISTINCT - ( 41 ) * col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT DISTINCT + + cor0.col2 + - 92 * - col1 AS col0 FROM tab2 AS cor0
----
1602
2879
5454

query I rowsort
SELECT - 25 * + col1 FROM tab0 AS cor0
----
-2150
-2275
-2425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9660
SELECT + + col0 * + ( cor0.col2 + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT + + col0 * + ( cor0.col2 + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9661
SELECT DISTINCT 86 DIV - col0 AS col0 FROM tab2 cor0
----
-1
-12

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT 86 / - col0 AS col0 FROM tab2 cor0
----
-1
-12

query I rowsort
SELECT - - ( col0 ) * + col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9663
SELECT + CAST( NULL AS SIGNED ) * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT 16 + + col1 * + col0 FROM tab2
----
1359
233
4618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9666
SELECT ALL - CAST( col0 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - CAST ( col0 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 28 + col0 AS col2 FROM tab1 AS cor0
----
108
31
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9668
SELECT ALL CAST( 90 AS SIGNED ) FROM tab2 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL CAST ( 90 AS INTEGER ) FROM tab2 AS cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - ( cor0.col2 + 91 ) col0 FROM tab2 AS cor0
----
10191
826
9126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - 58 ) col0 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT - ( col1 ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col1 + 86 FROM tab1 AS cor0
----
112
96
99

query I rowsort
SELECT ALL - + ( - col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 59 * + ( - col0 * - col0 ) FROM tab1 AS cor0
----
-241664
-377600
-531

query I rowsort
SELECT - - 15 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
-111930
-1455
-42570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9677
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * + 32 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT - - CAST ( NULL AS REAL ) * + 32 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 * 64 FROM tab2 cor0
----
1664
1728
2432

query I rowsort
SELECT DISTINCT 67 * + col0 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT ALL + ( + col0 ) * col2 + - col2 * col2 + - col0 FROM tab1 AS cor0
----
-1616
-2757
335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + + col2 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 24 * + col2 AS col1 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT DISTINCT - 73 + col0 AS col1 FROM tab2 AS cor0
----
-66
5
6

query I rowsort
SELECT - col1 * - col1 * + 1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT + col1 * - 52 * col1 + col2 * 2 DIV - col0 FROM tab0
----
-384594
-430613
-489268

skipif mysql # not compatible
query I rowsort label-9685
SELECT + col1 * - 52 * col1 + col2 * 2 / - col0 FROM tab0
----
-384594
-430613
-489268

query I rowsort
SELECT + cor0.col0 * col1 + col0 * col2 AS col1 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT + + col0 + 71 FROM tab1 AS cor0
----
135
151
74

query I rowsort
SELECT + col0 * - col2 - ( col1 + + col0 ) AS col0 FROM tab1 AS cor0
----
-191
-3722
-7773

query I rowsort
SELECT ALL + col0 + - col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT tab2.col0 + - ( tab2.col1 ) FROM tab2
----
-24
19
62

query I rowsort
SELECT - col2 * 71 * + col1 AS col0 FROM tab1
----
-40470
-88608
-99684

query I rowsort
SELECT - + cor0.col0 * col0 + - 38 * - cor0.col2 + + col2 FROM tab2 AS cor0
----
-4759
-5070
1004

query I rowsort
SELECT col1 + + col0 + + 99 FROM tab1 AS cor0
----
128
173
192

query I rowsort
SELECT DISTINCT + col1 * + 87 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT ALL col0 * - 99 FROM tab1 cor0
----
-297
-6336
-7920

query I rowsort
SELECT ALL - 76 - - cor0.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 649cf1996b954783adf168b3c6a72978

query I rowsort
SELECT col0 * col1 - col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT col0 * - 64 FROM tab1 AS cor0
----
-192
-4096
-5120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - 33 ) col0 FROM tab0 AS cor0
----
-1155
-2937
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9700
SELECT + ( - col2 ) DIV - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-9700
SELECT + ( - col2 ) / - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT col1 * + cor0.col2 - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col0 * 95 FROM tab0
----
2280
3325
8455

query I rowsort
SELECT col1 * + 96 FROM tab2
----
1632
2976
5664

query I rowsort
SELECT cor0.col2 * + col0 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL 89 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

onlyif mysql # use DIV operator for integer division
query I rowsort label-9706
SELECT col1 + col1 DIV col1 AS col0 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9706
SELECT col1 + col1 / col1 AS col0 FROM tab0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9707
SELECT - 77 DIV - cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7aa69b40271a940e819795e3c7e5d960

skipif mysql # not compatible
query I rowsort label-9707
SELECT - 77 / - cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7aa69b40271a940e819795e3c7e5d960

query I rowsort
SELECT DISTINCT 75 + col2 * - ( col2 ) FROM tab0 AS cor0
----
-1014
-6649
74

query I rowsort
SELECT ALL - - 58 + col1 * 15 FROM tab0 AS cor0
----
1348
1423
1513

query I rowsort
SELECT - + 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT + cor0.col1 + 23 FROM tab0 AS cor0
----
109
114
120

query I rowsort
SELECT ALL + 49 AS col0 FROM tab2
----
49
49
49

query I rowsort
SELECT DISTINCT col0 * ( col1 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col1 * + 17 FROM tab0 cor0
----
-1462
-1547
-1649

query I rowsort
SELECT ALL - + col2 * - col1 + - col2 * + col0 AS col0 FROM tab2 cor0
----
-2356
-494
648

query I rowsort
SELECT tab0.col0 * + 85 FROM tab0
----
2040
2975
7565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col2 FROM tab2
----
54

query I rowsort
SELECT DISTINCT - ( col1 * + col2 ) AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col1 * + 17 + col0 AS col1 FROM tab1 AS cor0
----
234
301
445

query I rowsort
SELECT - 87 * + col0 + col1 FROM tab0 cor0
----
-2002
-2948
-7652

query I rowsort
SELECT - - 39 * - col0 FROM tab2 AS cor0
----
-273
-3042
-3081

query I rowsort
SELECT ALL - ( - 8 ) FROM tab1
----
8
8
8

query I rowsort
SELECT + 4 + + col2 AS col1 FROM tab0
----
37
5
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-9724
SELECT - + col1 DIV - col1 + ( + col2 ) FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-9724
SELECT - + col1 / - col1 + ( + col2 ) FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL - col1 * - col2 + - col0 * + 68 FROM tab1 AS cor0
----
-3782
-4192
1200

query I rowsort
SELECT - + col2 + cor0.col2 * + 59 AS col1 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT + ( - col1 ) + - col0 * - col0 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-9728
SELECT DISTINCT + 34 DIV - 5 AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + 34 / - 5 AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL + 26 * 32 FROM tab0 AS cor0
----
832
832
832

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab2, tab1 AS cor0
----
-78

query I rowsort
SELECT - cor0.col0 * - cor0.col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 83 * + ( col1 ) col1 FROM tab2
----
1332
2566
4819

query I rowsort
SELECT ALL ( - col1 ) * - cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * 70 AS col0 FROM tab0
----
1680
2450
6230

query I rowsort
SELECT ALL - 56 * 34 FROM tab0
----
-1904
-1904
-1904

onlyif mysql # use DIV operator for integer division
query I rowsort label-9736
SELECT DISTINCT + 71 DIV cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
0
2
71

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + 71 / cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
0
2
71

query I rowsort
SELECT 6 + - col1 FROM tab2
----
-11
-25
-53

query I rowsort
SELECT ALL + ( col0 * + col1 ) FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT ALL - cor0.col0 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL - cor0.col0 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor0.col0 + ( + col0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT - col2 * ( + col1 ) + - col0 AS col0 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT ALL col1 + + col1 * + 89 AS col2 FROM tab1
----
1170
2340
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-9743
SELECT ALL cor0.col0 DIV - col1 + col0 + + col0 FROM tab2 cor0
----
14
154
155

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL cor0.col0 / - col1 + col0 + + col0 FROM tab2 cor0
----
14
154
155

query I rowsort
SELECT col2 + col1 * col0 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - col1 * col0 + 89 * col0 + col2 FROM tab0 AS cor0
----
-279
-96
105

query I rowsort
SELECT col1 + 72 + 11 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT + cor0.col0 * col0 + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + col1 + 17 FROM tab2
----
34
48
76

query I rowsort
SELECT DISTINCT ( tab1.col2 ) FROM tab1, tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9750
SELECT DISTINCT col1 + - 95 + col1 DIV - col0 FROM tab0
----
-12
-5
0

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT col1 + - 95 + col1 / - col0 FROM tab0
----
-12
-5
0

query I rowsort
SELECT col1 + + ( col1 ) FROM tab1
----
20
26
52

query I rowsort
SELECT cor0.col2 * ( 28 ) * + col0 + 58 FROM tab1 AS cor0
----
102202
215098
4594

query I rowsort
SELECT DISTINCT - col0 * + col0 * col2 FROM tab1
----
-233472
-486
-614400

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7

query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - col2 * ( - col2 ) + + col1 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - 16 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + - col1 + col1 * col1 * + 34 FROM tab1 AS cor0
----
22958
3390
5733

query I rowsort
SELECT ALL + + col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - ( - col2 ) + col1 * + 74 FROM tab0 cor0
----
6397
6816
7179

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9763
SELECT ALL + 17 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL + 17 / - col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT + - ( 99 ) * cor0.col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT + col1 * - col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9766
SELECT DISTINCT CAST( - 77 AS SIGNED ) + - col1 * + col2 FROM tab1 AS cor0
----
-1325
-1481
-647

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT CAST ( - 77 AS INTEGER ) + - col1 * + col2 FROM tab1 AS cor0
----
-1325
-1481
-647

onlyif mysql # use DIV operator for integer division
query I rowsort label-9767
SELECT DISTINCT - col2 DIV + 52 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT - col2 / + 52 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 81 * col1 + col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT ALL + col2 + - 40 AS col2 FROM tab2 AS cor0
----
-13
-14
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9770
SELECT ALL + col2 + col0 DIV col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL + col2 + col0 / col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT DISTINCT col0 * 38 + + col0 FROM tab1 cor0
----
117
2496
3120

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-36

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT - cor0.col0 * + col2 - - ( + col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT ALL - col1 + col1 * + 68 * cor0.col0 FROM tab1 cor0
----
43510
5278
70707

query I rowsort
SELECT ALL - 34 FROM tab1 cor0
----
-34
-34
-34

query I rowsort
SELECT - - 28 * col0 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT DISTINCT + + col0 * + col2 * - ( - col2 ) - col2 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT ALL + - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * + cor0.col2 * 89 + col0 * col0 AS col2 FROM tab1 AS cor0
----
117568
125019
54883

query I rowsort
SELECT + + col1 * - cor0.col2 - - col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT 0 * + col2 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 36 * col0 * cor0.col2 FROM tab0 AS cor0
----
1260
262728
28512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * col1 col2 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT ALL + + col1 * + col1 + col1 + + col2 AS col2 FROM tab1 AS cor0
----
167
278
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - - col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + col2 * col0 - 79 AS col0 FROM tab2 AS cor0
----
110
1949
2923

query I rowsort
SELECT + 91 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT col1 + - cor0.col0 + col1 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT DISTINCT + col1 + + 2 * + col1 AS col0 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT ALL col1 * + col2 + - 44 AS col0 FROM tab1 AS cor0
----
1204
1360
526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * - 29 + - col2 * + col1 col1 FROM tab2 AS cor0
----
-634
1645
728

query I rowsort
SELECT ALL - + col0 * col1 + col2 - - col0 * + ( ( col2 ) ) FROM tab2 AS cor0
----
-1
-2548
1697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9794
SELECT - tab2.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9794
SELECT - tab2.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 74 - + col0 FROM tab2
----
-4
-5
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * + ( col0 ) col1 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT cor1.col2 + cor0.col1 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 0ad956cdb3746767ee9c99dc295fe848

query I rowsort
SELECT + ( + 27 ) FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT + ( - col1 ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + + 26 * 67 AS col2 FROM tab2 AS cor0
----
1742

query I rowsort
SELECT ALL - 82 * - 7 FROM tab0 AS cor0
----
574
574
574

query I rowsort
SELECT DISTINCT 50 + + col1 FROM tab1 AS cor0
----
60
63
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col0 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + ( - col1 ) + - col1 * 95 AS col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT ALL 10 * + col2 AS col0 FROM tab2 AS cor0
----
260
270
380

query I rowsort
SELECT + col1 * col0 + ( col0 ) FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT col1 + - col1 * 22 FROM tab0 cor0
----
-1806
-1911
-2037

query I rowsort
SELECT 30 + - col1 AS col0 FROM tab0 AS cor0
----
-56
-61
-67

query I rowsort
SELECT - cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL + + col0 * 92 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT 36 + - 57 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT - - col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT tab2.col2 * ( col1 ) * col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT + 29 DIV + col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9814
SELECT + 29 / + col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 * cor0.col0 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL + + ( - 32 ) FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT + ( ( - col2 ) ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 85 FROM tab2, tab1 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col1 FROM tab2
----
35
35
35

query I rowsort
SELECT DISTINCT 34 * 40 AS col2 FROM tab2
----
1360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( + col0 ) col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9822
SELECT ALL + 38 DIV + col0 + - col2 + ( + col0 ) AS col0 FROM tab2
----
-15
41
52

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL + 38 / + col0 + - col2 + ( + col0 ) AS col0 FROM tab2
----
-15
41
52

query I rowsort
SELECT 94 + + tab2.col2 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to b845622e270ba97544e233e744199f29

query I rowsort
SELECT + 85 + - col2 FROM tab2
----
47
58
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT 87 + + col1 + + ( - tab1.col0 ) DIV col2 FROM tab1
----
100
113
96

skipif mysql # not compatible
query I rowsort label-9825
SELECT 87 + + col1 + + ( - tab1.col0 ) / col2 FROM tab1
----
100
113
96

query I rowsort
SELECT 29 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT - cor0.col0 + + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col2 + - col0 + + col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col2 + ( col1 ) + + col2 FROM tab0 AS cor0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9830
SELECT - col2 + col0 DIV 62 FROM tab1 cor0
----
-54
-56
-95

skipif mysql # not compatible
query I rowsort label-9830
SELECT - col2 + col0 / 62 FROM tab1 cor0
----
-54
-56
-95

query I rowsort
SELECT col2 + - 0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col0 + col0 * - 51 * + 29 + col2 FROM tab2 AS cor0
----
-10319
-115258
-116724

query I rowsort
SELECT col2 + - col0 * + col0 + col2 * - col1 FROM tab0 AS cor0
----
-1321
-15301
-3381

query I rowsort
SELECT ALL col0 * col2 + col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT + + 98 * col0 + col0 * 73 AS col1 FROM tab1 cor0
----
10944
13680
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col2 * - col1 - - col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-9838
SELECT DISTINCT col0 DIV + cor0.col0 - 76 AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT col0 / + cor0.col0 - 76 AS col2 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT - + col1 * cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT - col0 - + 28 * col0 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT DISTINCT - cor0.col0 * 68 + col1 + + col1 * - col0 FROM tab1 AS cor0
----
-256
-4982
-6467

query I rowsort
SELECT DISTINCT - col2 + ( cor0.col1 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL cor0.col2 - + col0 * - 69 AS col0 FROM tab0 AS cor0
----
1689
2416
6223

query I rowsort
SELECT col0 + + col2 * col2 AS col2 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT ALL + col1 * + cor0.col2 + col1 + + col2 * - cor0.col2 FROM tab0 AS cor0
----
1835
193
829

query I rowsort
SELECT DISTINCT cor0.col2 - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL - col2 * - ( col0 ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-9848
SELECT + col2 DIV 11 + + col2 * col1 AS col1 FROM tab1 cor0
----
1256
1408
575

skipif mysql # not compatible
query I rowsort label-9848
SELECT + col2 / 11 + + col2 * col1 AS col1 FROM tab1 cor0
----
1256
1408
575

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col0 * + col1 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
179568
332710
745108

query I rowsort
SELECT ALL - col0 * - col1 + + tab2.col2 AS col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL col2 * tab1.col2 + 92 * + col1 * - tab1.col1 AS col0 FROM tab1
----
-59276
-5951
-6332

query I rowsort
SELECT ALL - 73 + tab0.col2 AS col2 FROM tab0
----
-40
-72
9

query I rowsort
SELECT + col1 - + tab1.col0 * - col1 FROM tab1
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-9854
SELECT DISTINCT col1 + col1 * - col1 + + 63 DIV tab1.col2 FROM tab1
----
-156
-649
-89

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT col1 + col1 * - col1 + + 63 / tab1.col2 FROM tab1
----
-156
-649
-89

query I rowsort
SELECT 80 * 95 + + cor0.col2 FROM tab2 AS cor0
----
7626
7627
7638

query I rowsort
SELECT ALL + 29 * col2 FROM tab0 AS cor0
----
2378
29
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9857
SELECT CAST( NULL AS SIGNED ) - - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT CAST ( NULL AS INTEGER ) - - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 25 + col1 AS col1 FROM tab1 AS cor0
----
260
338
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9859
SELECT ALL + col2 DIV - 79 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL + col2 / - 79 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT ALL col1 DIV 15 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL col1 / 15 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9861
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9862
SELECT - CAST( NULL AS SIGNED ) - col0 / + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT - CAST ( NULL AS INTEGER ) - col0 / + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - - 93 AS col2 FROM tab2 AS cor0
----
119
120
131

query I rowsort
SELECT - 80 + + col0 AS col0 FROM tab1 AS cor0
----
-16
-77
0

query I rowsort
SELECT ALL + col0 * col2 + col2 * - col1 FROM tab2 cor0
----
-648
2356
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 40 col1 FROM tab2 AS cor0
----
57
71
99

query I rowsort
SELECT DISTINCT + 10 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
10

query I rowsort
SELECT 11 + col1 * col1 FROM tab1
----
111
180
687

query I rowsort
SELECT ALL + 37 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT DISTINCT 10 + col2 * col2 AS col0 FROM tab0
----
1099
11
6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - cor0.col0 * + col1 col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - + 61 * - cor0.col1 FROM tab1 AS cor0
----
1586
610
793

onlyif mysql # use DIV operator for integer division
query I rowsort label-9874
SELECT DISTINCT + col2 DIV col1 + - tab0.col2 DIV + ( + col1 ) + + col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + col2 / col1 + - tab0.col2 / + ( + col1 ) + + col1 AS col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9875
SELECT ALL - col1 * - col2 + + col2 DIV + ( col0 * - col1 ) AS col0 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL - col1 * - col2 + + col2 / + ( col0 * - col1 ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 11 + 20 * + col0 FROM tab0
----
1769
469
689

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0, tab2 cor0, tab0 cor1
----
17
31
59

query I rowsort
SELECT - 91 FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to ef93c6bfa06f5a2259971541054317e0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 3 + col1 + - ( - 69 ) col0 FROM tab1
----
104
271
322

query I rowsort
SELECT DISTINCT + 99 * - tab0.col0 + + col0 FROM tab0
----
-2352
-3430
-8722

query I rowsort
SELECT 19 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - - 48 + + col0 AS col2 FROM tab0 AS cor0
----
137
72
83

query I rowsort
SELECT + col1 + - col2 + + 17 AS col2 FROM tab2 AS cor0
----
-4
21
50

query I rowsort
SELECT + cor0.col0 * - col1 + 25 + 46 AS col0 FROM tab0 AS cor0
----
-1993
-3324
-8028

query I rowsort
SELECT ALL col1 * col2 + + 84 * col0 FROM tab0 AS cor0
----
14938
3037
4854

query I rowsort
SELECT ALL + - col1 * col0 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT col1 * ( cor0.col0 ) + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9888
SELECT col0 * + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT col0 * + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col1 + - cor0.col1 * 73 AS col0 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT + col2 * ( - 22 ) FROM tab0 AS cor0
----
-1804
-22
-726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9892
SELECT DISTINCT + + col0 * - CAST( NULL AS DECIMAL ) - + col1 * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT + + col0 * - CAST ( NULL AS REAL ) - + col1 * col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT ALL ( - 72 ) DIV - col0 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL ( - 72 ) / - col0 FROM tab2 AS cor0
----
0
0
10

query I rowsort
SELECT 9 + + ( - col0 ) AS col0 FROM tab1
----
-55
-71
6

query I rowsort
SELECT ALL col1 * - col0 + col0 + - 86 FROM tab2
----
-1350
-296
-4610

query I rowsort
SELECT ALL 8 * + col2 + tab0.col0 FROM tab0
----
288
43
745

query I rowsort
SELECT ( 49 ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e587c122dea39a2488ff88b884cea462

query I rowsort
SELECT DISTINCT + 95 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1615
-2945
-5605

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9899
SELECT ALL CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 18 AS REAL ) col1 FROM tab1 AS cor0
----
18

query I rowsort
SELECT + ( col0 ) + col0 * + col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) * + col1 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + - 52 * - col2 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
12672
2970
6612

onlyif mysql # use DIV operator for integer division
query I rowsort label-9904
SELECT DISTINCT - col0 * + col0 + + col2 DIV - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT - col0 * + col0 + + col2 / - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1224
-575
-7920

query I rowsort
SELECT ALL - ( + col1 ) - + col2 AS col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT 40 * col2 AS col0 FROM tab2
----
1040
1080
1520

query I rowsort
SELECT + - 56 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9908
SELECT DISTINCT col2 DIV + 60 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT col2 / + 60 AS col0 FROM tab1
----
0
1

query I rowsort
SELECT 82 FROM tab1, tab2 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - + col0 + + 31 FROM tab0 AS cor0
----
-4
-58
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col2 FROM tab1
----
-96
-96
-96

query I rowsort
SELECT + 51 FROM tab2, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT ( ( cor0.col2 ) ) + ( - col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 0 * col1 - - col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + ( 1 ) * col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ( + col0 ) + col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + cor0.col1 col1 FROM tab2 AS cor0
----
-21
-7
21

query I rowsort
SELECT - cor0.col1 * col1 + col2 AS col2 FROM tab2 cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT + + col1 * + col2 + + cor0.col2 - - cor0.col0 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT ALL + - ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 + - col0 col1 FROM tab1 AS cor0
----
-46
-62
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-9922
SELECT + 81 * + col2 + cor0.col1 DIV cor0.col0 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-655
1884
48

skipif mysql # not compatible
query I rowsort label-9922
SELECT + 81 * + col2 + cor0.col1 / cor0.col0 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-655
1884
48

query I rowsort
SELECT DISTINCT - + 99 + col1 FROM tab2 cor0
----
-40
-68
-82

query I rowsort
SELECT 4 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT 67 + - col1 AS col0 FROM tab2 AS cor0
----
36
50
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 52 col0 FROM tab1 AS cor0
----
52

query I rowsort
SELECT col1 * + col0 * + ( col2 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT - + col1 + - col2 AS col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL col0 + col0 * - ( - col0 * col2 ) FROM tab1
----
233536
489
614480

query I rowsort
SELECT ( col2 ) * ( + col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + + 17 FROM tab0 cor0
----
17
17
17

query I rowsort
SELECT - - 4 - col2 AS col0 FROM tab1 AS cor0
----
-50
-53
-92

query I rowsort
SELECT DISTINCT + col1 + - col0 * + col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT cor0.col2 * 75 FROM tab2, tab1 AS cor0
----
9 values hashing to d3c37d9bea3d7cc635929b3854990329

query I rowsort
SELECT col1 + col1 - 54 FROM tab0 AS cor0
----
118
128
140

query I rowsort
SELECT DISTINCT + - 1 AS col1 FROM tab1 cor0
----
-1

query I rowsort
SELECT col2 - col1 * col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-9938
SELECT + col2 - + col1 * - col2 DIV cor0.col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-9938
SELECT + col2 - + col1 * - col2 / cor0.col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + 8 * + col0 FROM tab0 cor0
----
192
280
712

onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT col2 DIV col0 - 48 FROM tab1 AS cor0
----
-30
-47
-48

skipif mysql # not compatible
query I rowsort label-9940
SELECT col2 / col0 - 48 FROM tab1 AS cor0
----
-30
-47
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col2 - + cor0.col1 col1 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL col2 * + ( col1 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9943
SELECT DISTINCT - col1 DIV 41 col0 FROM tab2 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT - col1 / 41 col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) FROM tab1, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - cor0.col1 * 69 * + 27 + + col1 FROM tab1 cor0
----
-18620
-24206
-48412

query I rowsort
SELECT + tab1.col1 + ( cor0.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to cdd61993e198773b18d4b6827ca81a9e

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 AS col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT - - col1 + 90 AS col0 FROM tab1 AS cor0
----
100
103
116

query I rowsort
SELECT DISTINCT - col2 * - 84 * - tab0.col1 FROM tab0
----
-238392
-626808
-8148

query I rowsort
SELECT DISTINCT 92 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1181
6816
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor1.col0 ) col2 FROM tab0, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL 65 AS col0 FROM tab1
----
65
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-9954
SELECT ALL + col0 DIV + col1 + 89 AS col0 FROM tab1 AS cor0
----
89
95
95

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + col0 / + col1 + 89 AS col0 FROM tab1 AS cor0
----
89
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - cor0.col1 * 5 col1 FROM tab1 AS cor0
----
-104
-40
-52

skipif mysql # not compatible
query I rowsort
SELECT - - ( col0 ) + CAST ( 8 AS REAL ) FROM tab0 cor0
----
32
43
97

skipif mysql # not compatible
query I rowsort
SELECT - ( + col2 ) + + col2 * CAST ( - col2 AS REAL ) * col0 AS col2 FROM tab1
----
-207993
-737376
-8802

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9958
SELECT ALL ( - 4 + - col1 ) * CAST( - col2 AS SIGNED ) * col1 FROM tab2
----
13566
29295
96642

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL ( - 4 + - col1 ) * CAST ( - col2 AS INTEGER ) * col1 FROM tab2
----
13566
29295
96642

query I rowsort
SELECT - + ( - col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col1 * 45 * + col1 FROM tab2
----
-13005
-156645
-43245

query I rowsort
SELECT DISTINCT 5 * 80 * + col1 FROM tab1
----
10400
4000
5200

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * - col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + - ( col1 ) * + col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 46 + 29 AS col2 FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee

onlyif mysql # use DIV operator for integer division
query I rowsort label-9966
SELECT + + col0 - + col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-9966
SELECT + + col0 - + col0 / - col0 AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + col0 * 79 + - col2 AS col0 FROM tab0 cor0
----
1863
2764
6949

query I rowsort
SELECT col2 * col0 + + col0 * + 48 + + col2 AS col1 FROM tab2 AS cor0
----
552
5798
6832

query I rowsort
SELECT col1 + + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + col2 * - ( + col0 ) AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col2 + + 62 AS col1 FROM tab2 AS cor0
----
100
88
89

query I rowsort
SELECT 59 + - col2 FROM tab2 AS cor0
----
21
32
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9973
SELECT ALL + + CAST( - cor0.col2 AS SIGNED ) * - col1 + col1 * + col2 * + col0 + + col1 FROM tab0 AS cor0
----
3589
671671
71036

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + + CAST ( - cor0.col2 AS INTEGER ) * - col1 + col1 * + col2 * + col0 + + col1 FROM tab0 AS cor0
----
3589
671671
71036

query I rowsort
SELECT DISTINCT + cor1.col1 * cor1.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) + col1 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + + 85 AS col1 FROM tab0 AS cor0
----
85

query I rowsort
SELECT ALL col2 * col1 + + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT - ( col2 ) + col0 + + col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT ( col0 ) * + cor0.col2 + ( - col2 ) + + col0 FROM tab2 AS cor0
----
169
2080
3043

query I rowsort
SELECT ALL + col1 + ( - col1 ) + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 88 * + tab1.col1 + col1 FROM tab1
----
1157
2314
890

query I rowsort
SELECT ALL + - 71 + + col0 FROM tab0 AS cor0
----
-36
-47
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9983
SELECT - col1 * + cor0.col1 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT - col1 * + cor0.col1 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 52 + cor0.col2 FROM tab2 AS cor0
----
78
79
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9985
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col2 + 91 FROM tab0 AS cor0
----
124
173
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT ALL + col2 * col0 DIV + 2 FROM tab1 AS cor0
----
1824
3840
81

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + col2 * col0 / + 2 FROM tab1 AS cor0
----
1824
3840
81

query I rowsort
SELECT - col0 - + 79 AS col0 FROM tab2 AS cor0
----
-157
-158
-86

query I rowsort
SELECT col2 * col1 - col0 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9990
SELECT DISTINCT + cor0.col0 + ( - col1 ) DIV - cor0.col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT + cor0.col0 + ( - col1 ) / - cor0.col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + col2 + ( col1 ) AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + col2 * col1 + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 30 * col1 col1 FROM tab2 AS cor0
----
1848
589
937

query I rowsort
SELECT col2 + col0 * + col0 * + 11 AS col0 FROM tab2
----
566
66950
68689

query I rowsort
SELECT DISTINCT - cor0.col0 * + 84 + col1 AS col0 FROM tab2 AS cor0
----
-557
-6493
-6619

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col1 * CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
29

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * - CAST ( + 77 AS REAL ) * + col1 FROM tab0 AS cor0
----
-218526
-574574
-7469

